Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
2b476ad8
Commit
2b476ad8
authored
9 years ago
by
THIRIOUX Xavier
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
12738191
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins.ml
+35
-0
35 additions, 0 deletions
src/plugins.ml
with
35 additions
and
0 deletions
src/plugins.ml
0 → 100644
+
35
−
0
View file @
2b476ad8
open
LustreSpec
module
type
PluginType
=
sig
end
let
inline_annots
rename_var_fun
annot_list
=
List
.
map
(
fun
ann
->
{
ann
with
annots
=
List
.
fold_left
(
fun
accu
(
sl
,
eexpr
)
->
let
items
=
match
sl
with
|
plugin_name
::
args
->
if
plugin_name
=
"salsa"
then
match
args
with
|
[
"ranges"
;
varname
]
->
[[
"salsa"
;
"ranges"
;(
rename_var_fun
varname
)]
,
eexpr
]
|
_
->
[(
sl
,
eexpr
)]
else
[(
sl
,
eexpr
)]
|
_
->
assert
false
in
items
@
accu
)
[]
ann
.
annots
}
)
annot_list
(* Local Variables: *)
(* compile-command:"make -C .." *)
(* End: *)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment