Skip to content

Commit

Permalink
Split 82-widen/02-mihaila-widen-fig7-delay into two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jun 7, 2024
1 parent f34fc14 commit 1a8021d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tests/regression/82-widen/02-mihaila-widen-fig7-delay.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.sv-comp.functions --set ana.widen.delay.local 3
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.sv-comp.functions --set ana.widen.delay.local 1
// From "Widening as Abstract Domain", Fig. 7: https://doi.org/10.1007/978-3-642-38088-4_12
// They claim delay 2 (https://bytebucket.org/mihaila/bindead/wiki/resources/widening-talk.pdf), we need 3 for some reason. Why?
#include <goblint.h>
extern _Bool __VERIFIER_nondet_bool();

Expand Down
19 changes: 19 additions & 0 deletions tests/regression/82-widen/03-mihaila-widen-slide-delay.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --set ana.widen.delay.local 3
// From "Widening as Abstract Domain" slides: https://bytebucket.org/mihaila/bindead/wiki/resources/widening-talk.pdf
// They claim delay 2, we need 3 for some reason. Why?
#include <goblint.h>

int main() {
int x = 0;
int y = 0;
while (x < 100) {
__goblint_check(0 <= y);
__goblint_check(y <= 1);
if (x > 5)
y = 1;
x = x + 4;
}
__goblint_check(0 <= y);
__goblint_check(y <= 1);
return 0;
}
File renamed without changes.

0 comments on commit 1a8021d

Please sign in to comment.