Skip to content

Commit

Permalink
Merge pull request #1119 from daniel-larraz/keep-ghost-vars-env-check
Browse files Browse the repository at this point in the history
Keep ghost vars when checking realizability of a node's environment
  • Loading branch information
daniel-larraz authored Dec 12, 2024
2 parents f783c33 + dc7da94 commit 9fcf01e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lustre/lustreGenRefTypeImpNodes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ let node_decl_to_contracts
= fun pos ctx (id, extern, _, params, inputs, outputs, locals, _, contract) ->
let base_contract = match contract with | None -> [] | Some (_, contract) -> contract in
let contract' = List.filter_map (fun ci ->
match ci with
match ci with
| A.GhostConst _ | GhostVars _ -> Some ci
| A.Assume (pos, name, b, expr) -> Some (A.Guarantee (pos, name, b, expr))
| _ -> None
) base_contract in
Expand Down

0 comments on commit 9fcf01e

Please sign in to comment.