Skip to content

Conversation

@sim642
Copy link
Member

@sim642 sim642 commented Oct 23, 2025

The existing while_continue labels (which aren't used for anything) are always at the beginning of loop body, which would be wrong for do-while loops.
The __Cont labels (which are actually used for continue-s) are always at the end of loop body, which would be wrong for for loops.

So this is needed to mark the location before evaluating the loop condition, which is needed to fix goblint/analyzer#1736.

The existing while_continue labels (which aren't used for anything) are always at the beginning of loop body, which would be wrong for do-while loops.
The __Cont labels (which are actually used for continue-s) are always at the end of loop body, which would be wrong for for loops.
@michael-schwarz
Copy link
Member

I think we should make this configurable, the CIL AST now is polluted with lots of strange SV-COMP related things, which I may not want to have if I am, e.g., using CIL primarily as a merger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect loop head for do-while loops in YAML witnesses

3 participants