Fix statement-expression expansion for Kani-provided quantifiers#8649
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8649 +/- ##
========================================
Coverage 80.36% 80.36%
========================================
Files 1686 1686
Lines 206981 206983 +2
Branches 73 73
========================================
+ Hits 166337 166342 +5
+ Misses 40644 40641 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Did you try that with gcc/clang? |
|
E.g., clang will accept |
CBMC side of model-checking/kani#4020: re-using the same converter instance would confuse finish-gotos (when really we don't want gotos inside the statement expression to be considered at all by the main goto-converter instances).
98f0035 to
f77349f
Compare
While that is true for statement expressions in general we must not accept this for the use in quantifiers. As discussed offline a wider redesign is required in the medium term so as not to re-purpose statement expressions, but the PR at hand addresses the immediate bug. |
CBMC side of model-checking/kani#4020: re-using the same converter instance would confuse finish-gotos (when really we don't want gotos inside the statement expression to be considered at all by the main goto-converter instances).