Skip to content

Commit

Permalink
Merge branch 'develop' into polymorphic-type-decl
Browse files Browse the repository at this point in the history
  • Loading branch information
lorchrob committed Aug 1, 2024
2 parents f9f7dd4 + c69b51e commit d662033
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/lustre/lustreInput.ml
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,19 @@ let of_channel old_frontend only_parse in_ch =
(* If checking realizability, then
we are actually checking realizability of Kind 2-generated imported nodes representing
the (1) the main node's contract instrumented with type info and
(2) the main node's enviornment *)
if (not main_lustre_node.is_extern) && List.mem `CONTRACTCK (Flags.enabled ()) then
[LustreIdent.mk_string_ident (LGI.contract_tag ^ s);
LustreIdent.mk_string_ident (LGI.inputs_tag ^ s)]
else if main_lustre_node.is_extern && List.mem `CONTRACTCK (Flags.enabled ()) then
[s_ident;
LustreIdent.mk_string_ident (LGI.inputs_tag ^ s)]
else [s_ident]
(2) the main node's enviornment, if environment checking is enabled *)
let main_nodes =
if (not main_lustre_node.is_extern) && List.mem `CONTRACTCK (Flags.enabled ()) then
[LustreIdent.mk_string_ident (LGI.contract_tag ^ s);]
else [s_ident]
in
let main_nodes =
if (Flags.Contracts.check_environment ()) && List.mem `CONTRACTCK (Flags.enabled ()) then
LustreIdent.mk_string_ident (LGI.inputs_tag ^ s) :: main_nodes
else
main_nodes
in
main_nodes
(* User-specified main node in command-line input might not exist *)
with Not_found ->
let msg =
Expand Down

0 comments on commit d662033

Please sign in to comment.