Skip to content

Commit

Permalink
Merge pull request #1058 from lorchrob/subrange-props
Browse files Browse the repository at this point in the history
Always include subrange properties on output variables as guarantees
  • Loading branch information
daniel-larraz authored Mar 28, 2024
2 parents abad8d7 + e8ef9e3 commit 82cb49a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lustre/lustreNodeGen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2077,12 +2077,10 @@ and compile_node_decl gids is_function cstate ctx i ext inputs outputs locals it
(source, contract_scope, is_original, pos, id, rexpr)
=
let sv = H.find !map.state_var (mk_ident id) in
let effective_contract = guarantees != [] || modes != [] in
let constraint_kind = match source with
| GI.Input -> Some N.Assumption
| Local -> None
| Output -> if not ext && not effective_contract then
None else Some N.Guarantee
| Output -> Some N.Guarantee
| Ghost -> Some N.Guarantee
in
if is_original then
Expand Down

0 comments on commit 82cb49a

Please sign in to comment.