Skip to content

Conversation

@sim642
Copy link
Member

@sim642 sim642 commented Feb 8, 2024

This fixes the c/weaver/chl-collitem-subst.wvr.c problem in goblint/analyzer#1356.

Because the logic of making locations synthetic is "Change all stmt and instr locs to synthetic, except the first one." and the first flag indicates whether the current statement is first, the logic should be flipped. That is, the first location should not be made synthetic.

It's surprising that this complete logic flip didn't reveal itself from the very beginning of synthetic locations. This could be the reason we couldn't verify so many of our own witnesses even.

@michael-schwarz michael-schwarz merged commit 833378d into develop Feb 10, 2024
@michael-schwarz michael-schwarz deleted the loc-synthetic-first branch February 10, 2024 16:02
@sim642
Copy link
Member Author

sim642 commented Feb 14, 2024

I ran sv-benchmarks with our validation and this caused the confirmation rate to drop:

  • Before: 7121/9145 = ~78%.
  • After: 6798/9136 = ~74%.

I don't exactly know why that is, but these fixed locations are definitely a correction for collaborating with other tools. These benchmarks were with Goblint self-validation, so it wasn't bothered at all by the invalid locations: it generated them and also validated them at the same (invalid) locations.

sim642 added a commit to sim642/opam-repository that referenced this pull request Jul 30, 2024
CHANGES:

* Add `Return` statement expression location (goblint/cil#167).
* Add `availability` attribute support (goblint/cil#168, goblint/cil#171).
* Remove unused `Libmaincil` module (goblint/cil#165).
* Fix some synthetic locations (goblint/cil#166, goblint/cil#167).
avsm pushed a commit to avsm/opam-repository that referenced this pull request Sep 5, 2024
CHANGES:

* Add `Return` statement expression location (goblint/cil#167).
* Add `availability` attribute support (goblint/cil#168, goblint/cil#171).
* Remove unused `Libmaincil` module (goblint/cil#165).
* Fix some synthetic locations (goblint/cil#166, goblint/cil#167).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants