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
dcd5caae
Commit
dcd5caae
authored
9 years ago
by
Mamadou Ndiaye
Browse files
Options
Downloads
Patches
Plain Diff
-kcg:ok for node calling another node.(for example in the file aa.lus)
parent
e544d7e5
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/licDump.ml
+7
-3
7 additions, 3 deletions
src/licDump.ml
with
7 additions
and
3 deletions
src/licDump.ml
+
7
−
3
View file @
dcd5caae
...
@@ -253,7 +253,7 @@ and string_of_type_matches pm =
...
@@ -253,7 +253,7 @@ and string_of_type_matches pm =
(* for printing recursive node *)
(* for printing recursive node *)
and
string_of_node_key_rec
(
no_prefix
:
bool
)
(
nkey
:
node_key
)
=
and
string_of_node_key_rec
(
no_prefix
:
bool
)
(
nkey
:
node_key
)
=
match
nkey
with
match
nkey
with
|
(
ik
,
[]
)
->
|
(
ik
,
[]
)
->
if
global_opt
.
kcg
then
Lv6Id
.
no_pack_string_of_long
ik
else
if
no_prefix
if
no_prefix
then
Lv6Id
.
no_pack_string_of_long
ik
then
Lv6Id
.
no_pack_string_of_long
ik
else
Lv6Id
.
string_of_long
ik
else
Lv6Id
.
string_of_long
ik
...
@@ -584,6 +584,8 @@ and string_of_eq_info_eff (leff_list, vee) =
...
@@ -584,6 +584,8 @@ and string_of_eq_info_eff (leff_list, vee) =
and
(
string_of_assert
:
Lic
.
val_exp
srcflagged
->
string
)
=
and
(
string_of_assert
:
Lic
.
val_exp
srcflagged
->
string
)
=
fun
eq_eff
->
fun
eq_eff
->
wrap_long_line
(
wrap_long_line
(
(*if global_opt.kcg then "guarantee ID :"^ string_of_val_exp_eff eq_eff.it ^ ";"
else*)
"assert("
^
string_of_val_exp_eff
eq_eff
.
it
^
");"
)
"assert("
^
string_of_val_exp_eff
eq_eff
.
it
^
");"
)
and
(
string_of_eq
:
Lic
.
eq_info
srcflagged
->
string
)
=
and
(
string_of_eq
:
Lic
.
eq_info
srcflagged
->
string
)
=
...
@@ -648,7 +650,9 @@ and (const_decl: Lv6Id.long -> Lic.const -> string) =
...
@@ -648,7 +650,9 @@ and (const_decl: Lv6Id.long -> Lic.const -> string) =
(
match
ceff
with
(
match
ceff
with
|
Enum_const_eff
(
id
,
t
)
->
""
|
Enum_const_eff
(
id
,
t
)
->
""
|
Extern_const_eff
_
|
Extern_const_eff
_
|
Abstract_const_eff
_
->
|
Abstract_const_eff
_
->
if
global_opt
.
kcg
then
"const imported "
^
(
dump_long
tname
)
^
" : "
^
(
string_of_type_eff
(
Lic
.
type_of_const
ceff
))
^
(
";
\n
"
)
else
begin_str
^
" : "
^
(
string_of_type_eff
(
Lic
.
type_of_const
ceff
))
^
begin_str
^
" : "
^
(
string_of_type_eff
(
Lic
.
type_of_const
ceff
))
^
(* (if global_opt.ec then ".\n" else *)
(* (if global_opt.ec then ".\n" else *)
(
";
\n
"
)
(
";
\n
"
)
...
@@ -700,7 +704,7 @@ and node_of_node_exp_eff (neff: Lic.node_exp): string =
...
@@ -700,7 +704,7 @@ and node_of_node_exp_eff (neff: Lic.node_exp): string =
|
MetaOpLic
->
(
|
MetaOpLic
->
(
(* on écrit juste un alias *)
(* on écrit juste un alias *)
" = "
^
" = "
^
(
string_of_node_key_def
neff
.
node_key_eff
)
^
(
string_of_node_key_def
neff
.
node_key_eff
)
^
(
";
\n
"
)
(
";
\n
"
)
)
)
|
AbstractLic
_
->
";
\n
"
|
AbstractLic
_
->
";
\n
"
...
...
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