Skip to content

Commit

Permalink
Add example where autotuner crashed when trying to activate congruenc…
Browse files Browse the repository at this point in the history
…e domain when termination was enabled
  • Loading branch information
jerhard committed Nov 23, 2023
1 parent 5be07e5 commit 9b954b5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/regression/78-termination/51-modulo.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SKIP TERM PARAM: --enable ana.autotune.enabled --enable ana.sv-comp.functions --enable ana.sv-comp.enabled --set ana.autotune.activated "['congruence']" --set ana.specification "CHECK( init(main()), LTL(F end) )"

// This task previously crashed due to the autotuner
int main() {
int a;
int odd, count = 0;
while(a > 1) {
odd = a % 2;
if(!odd) a = a / 2;
else a = a - 1;
count++;
}
return count;
}

0 comments on commit 9b954b5

Please sign in to comment.