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
f69e7ea2
Commit
f69e7ea2
authored
3 years ago
by
BRUN Lelio
Browse files
Options
Downloads
Patches
Plain Diff
add -O -1 flag to disable fusion of conditionals
parent
7a1b2819
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/backends/backends.ml
+8
-8
8 additions, 8 deletions
src/backends/backends.ml
src/main_lustre_compiler.ml
+4
-3
4 additions, 3 deletions
src/main_lustre_compiler.ml
src/options.ml
+1
-2
1 addition, 2 deletions
src/options.ml
src/options_management.ml
+4
-2
4 additions, 2 deletions
src/options_management.ml
with
17 additions
and
15 deletions
src/backends/backends.ml
+
8
−
8
View file @
f69e7ea2
...
...
@@ -2,14 +2,14 @@
let
join_guards
=
ref
true
let
setup
()
=
match
!
Options
.
output
with
|
"emf"
->
(* Not merging branches *)
join_guards
:=
false
;
(* In case of a default "int" type, substitute it with the legal int32 value *)
if
!
Options
.
int_type
=
"int"
th
en
Options
.
int_type
:=
"int32"
|
_
->
()
if
!
Options
.
output
=
"emf"
then
begin
(* Not merging branches *)
join_guards
:=
false
;
(* In case of a default "int" type, substitute it with the legal int32 value *)
if
!
Options
.
int_type
=
"int"
then
Options
.
int_type
:=
"int32"
en
d
;
if
!
Options
.
optimization
<
0
then
join_guards
:=
false
let
is_functional
()
=
match
!
Options
.
output
with
...
...
This diff is collapsed.
Click to expand it.
src/main_lustre_compiler.ml
+
4
−
3
View file @
f69e7ea2
...
...
@@ -57,7 +57,7 @@ let compile dirname basename extension =
let
params
=
Backends
.
get_normalization_params
()
in
let
prog
,
dependencies
=
Log
.
report
~
level
:
1
(
fun
fmt
->
fprintf
fmt
"@[<v 2>.. Phase 1
: Normalisation@,"
);
Log
.
report
~
level
:
1
(
fun
fmt
->
fprintf
fmt
"@[<v 2>.. Phase 1: Normalisation@,"
);
try
Compiler_stages
.
stage1
params
prog
dirname
basename
extension
with
Compiler_stages
.
StopPhase1
prog
->
(
...
...
@@ -124,11 +124,12 @@ let anonymous filename =
else
ok
,
ext
)
(
false
,
""
)
extensions
in
if
ok_ext
then
if
ok_ext
then
begin
Options_management
.
setup
()
;
let
dirname
=
Filename
.
dirname
filename
in
let
basename
=
Filename
.
chop_suffix
(
Filename
.
basename
filename
)
ext
in
compile
dirname
basename
ext
else
end
else
raise
(
Arg
.
Bad
(
"Can only compile *.lusi, *.lus or *.ec files"
))
let
_
=
...
...
This diff is collapsed.
Click to expand it.
src/options.ml
+
1
−
2
View file @
f69e7ea2
...
...
@@ -65,8 +65,7 @@ let al_nb_max = ref 15
(* Printer options *)
let
kind2_print
=
ref
false
(* Local Variables: *)
(* compile-command:"make -C .." *)
(* End: *)
This diff is collapsed.
Click to expand it.
src/options_management.ml
+
4
−
2
View file @
f69e7ea2
...
...
@@ -88,10 +88,12 @@ let set_real_type s =
)
|
_
->
real_type
:=
s
let
set_backend
s
=
output
:=
s
;
let
setup
()
=
Backends
.
setup
()
let
set_backend
s
=
output
:=
s
let
common_options
=
[
"-d"
,
Arg
.
Set_string
dest_dir
,
"uses the specified
\x1b
[4mdirectory
\x1b
[0m as root for generated/imported object and C files <default: .>"
;
"-I"
,
Arg
.
String
add_include_dir
,
"sets include
\x1b
[4mdirectory
\x1b
[0m"
;
...
...
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