Skip to content

Commit

Permalink
Refactor is_invariant_node in YamlWitness
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Feb 7, 2024
1 parent 20c500f commit 7e51d9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/witness/yamlWitness.ml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ struct
let is_invariant_node (n : Node.t) =
let loc = Node.location n in
match n with
| Statement _ when not loc.synthetic && WitnessInvariant.is_invariant_node n ->
not (is_stub_node n)
| _ ->
| Statement _ ->
not loc.synthetic && WitnessInvariant.is_invariant_node n && not (is_stub_node n)
| FunctionEntry _ | Function _ ->
(* avoid FunctionEntry/Function, because their locations are not inside the function where asserts could be inserted *)
false
in
Expand Down

0 comments on commit 7e51d9a

Please sign in to comment.