Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-v6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
lustre-v6
Commits
45b91f4d
Commit
45b91f4d
authored
1 year ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
add a -rte cli option
parent
8f54a0e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/lv6MainArgs.ml
+8
-1
8 additions, 1 deletion
lib/lv6MainArgs.ml
lib/lv6MainArgs.mli
+2
-1
2 additions, 1 deletion
lib/lv6MainArgs.mli
with
10 additions
and
2 deletions
lib/lv6MainArgs.ml
+
8
−
1
View file @
45b91f4d
(* Time-stamp: <modified the 16/
06
/2023 (at
09:39
) by Erwan Jahier> *)
(* Time-stamp: <modified the 16/
11
/2023 (at
12:24
) by Erwan Jahier> *)
(*
Le manager d'argument adapt de celui de lutin, plus joli
N.B. solution un peu batarde : les options sont stockes, comme avant, dans Global,
...
...
@@ -52,6 +52,7 @@ type global_opt = {
mutable
dir
:
string
;
mutable
gen_c_inline_predef
:
bool
;
mutable
lv4
:
bool
;
mutable
rte
:
bool
;
mutable
kcg
:
bool
;
mutable
ec
:
bool
;
mutable
gen_autotest
:
bool
;
...
...
@@ -84,6 +85,7 @@ let (global_opt:global_opt) =
gen_c_inline_predef
=
true
;
gen_autotest
=
false
;
lv4
=
false
;
rte
=
false
;
kcg
=
false
;
ec
=
false
;
one_op_per_equation
=
true
;
...
...
@@ -436,6 +438,11 @@ let mkoptab (opt:t) : unit = (
(
Arg
.
Unit
(
fun
_
->
set_v4_options
opt
))
[
"deprecated: generate Lustre V4 code (force '-ei -ee -esa')"
]
;
mkopt
opt
~
doc_level
:
Advanced
[
"-rte"
;
"--runtime-error"
]
(
Arg
.
Unit
(
fun
_
->
global_opt
.
rte
<-
true
;
set_v4_options
opt
))
[
"Generate kind2 contracts to check for runtime errors"
]
;
mkopt
opt
~
doc_level
:
Dev
[
"-kcg"
;
"--generate-scade-lustre"
]
(
Arg
.
Unit
(
fun
_
->
...
...
This diff is collapsed.
Click to expand it.
lib/lv6MainArgs.mli
+
2
−
1
View file @
45b91f4d
(* Time-stamp: <modified the
09/06
/2023 (at 1
1:06
) by Erwan Jahier> *)
(* Time-stamp: <modified the
16/11
/2023 (at 1
2:25
) by Erwan Jahier> *)
type
enum_mode
=
AsInt
(* translate enums into int (for rif-friendlyness *)
...
...
@@ -57,6 +57,7 @@ type global_opt = {
mutable
dir
:
string
;
mutable
gen_c_inline_predef
:
bool
;
mutable
lv4
:
bool
;
mutable
rte
:
bool
;
mutable
kcg
:
bool
;
mutable
ec
:
bool
;
mutable
gen_autotest
:
bool
;
...
...
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