Skip to content

Commit ca18e35

Browse files
Remark on issue with fractional coefficients
1 parent f99f320 commit ca18e35

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/regression/63-affeq/19-witness.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,20 @@ void main(void) {
1515
j = j + 3;
1616
}
1717
__goblint_check(3 * i - j + k == 1);
18+
19+
// Represented with fractional coefficients and thus not put into witness yet
20+
21+
int a = 0;
22+
int b = 0;
23+
int z = 0;
24+
25+
while(z < 100) {
26+
a++;
27+
b += 2;
28+
z++;
29+
30+
__goblint_check(2*z - b == 0);
31+
// b == 2*z is put into the witness
32+
}
33+
1834
}

0 commit comments

Comments
 (0)