-
Notifications
You must be signed in to change notification settings - Fork 9
YAML-based format: Rename loop_invariant
entry?
#60
Comments
There is some overlap of this suggestion with #59 which proposes adding such a |
There's another problem regarding
So a loop invariant is stronger than an assertion inserted into any single of the four possible locations. |
Indeed, I forgot that I already tasked Sven with this before hand!
Indeed, this is the usual semantics.There are also some pecularities regarding special cases when variables go out of scope after the loop (i.e., the C expression is not valid "after" the loop). This is not a problem for the witness automata from the graphml-based format, but when one tries to translate these into concrete locations then there might be no specific location to put 4. to. As such an |
In a discussion between some Munich Goblint folks and @MartinSpiessl and others from the CPAChecker team on Friday we were wondering whether
loop_invariant
is actually the right name for the entry as it is currently specified:loop_invariant
entry - one could just as well provide invariants for locations / program points that are not in loopsCalling this assertion the loop invariant is a bit strange as it does not hold inside the loop, but only after the loop.
Maybe just
invariant
orlocation_invariant
is a better name?The text was updated successfully, but these errors were encountered: