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
0cb88859
Commit
0cb88859
authored
10 months ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
Some work on the experimental -rte option
parent
de4ee4a4
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
lib/licDump.ml
+11
-4
11 additions, 4 deletions
lib/licDump.ml
with
11 additions
and
4 deletions
lib/licDump.ml
+
11
−
4
View file @
0cb88859
(* Time-stamp: <modified the
06
/0
3
/2024 (at 1
7:0
5) by Erwan Jahier> *)
(* Time-stamp: <modified the
19
/0
4
/2024 (at 1
0:2
5) by Erwan Jahier> *)
(*
(*
This module is used both for
This module is used both for
...
@@ -501,17 +501,24 @@ and (string_of_by_pos_op_eff:
...
@@ -501,17 +501,24 @@ and (string_of_by_pos_op_eff:
if
AstPredef
.
is_a_predef_op
(
snd
(
fst
op
.
it
))
then
if
AstPredef
.
is_a_predef_op
(
snd
(
fst
op
.
it
))
then
let
op_str
=
snd
(
fst
op
.
it
)
in
let
op_str
=
snd
(
fst
op
.
it
)
in
let
op_short_str
,
rte
=
match
global_opt
.
rte
,
op_str
with
let
op_short_str
,
rte
=
match
global_opt
.
rte
,
op_str
with
|
Some
_
,
(
"plus"
|
"slash"
|
"minus"
|
"uminus"
|
"times"
|
"iplus"
|
Some
t
,
(
"plus"
|
"slash"
|
"minus"
|
"uminus"
|
"times"
|
"islash"
|
"iminus"
|
"iuminus"
|
"itimes"
|
"mod"
|
"iplus"
|
"islash"
|
"iminus"
|
"iuminus"
|
"itimes"
|
"mod"
|
"div"
)
->
(
|
"div"
)
->
(
try
try
let
ve
=
List
.
hd
vel
in
let
ve
=
List
.
hd
vel
in
(
match
ve
.
ve_typ
with
(
match
ve
.
ve_typ
with
|
Real_type_eff
::_
|
Int_type_eff
::_
->
"rte_"
^
op_str
^
"_"
^
t
,
true
|
(
External_type_eff
(
_
,
mint
))
::_
->
|
(
External_type_eff
(
_
,
mint
))
::_
->
"rte_"
^
op_str
^
"_"
^
mint
,
true
"rte_"
^
op_str
^
"_"
^
mint
,
true
|
[]
->
assert
false
|
_
->
assert
false
(* SNO *)
|
_
->
assert
false
(* SNO *)
)
)
with
_
->
assert
false
(* SNO *)
with
e
->
(* op2string (AstPredef.string_to_op op_str), false *)
Printf
.
printf
"Error: operator '%s' not supported with -rte
\n
%s
\n
%!"
op_str
(
Printexc
.
to_string
e
);
assert
false
(* SNO *)
)
)
|
_
,_
->
op2string
(
AstPredef
.
string_to_op
op_str
)
,
false
|
_
,_
->
op2string
(
AstPredef
.
string_to_op
op_str
)
,
false
in
in
...
...
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