Skip to content

Commit

Permalink
Remark on issue with fractional coefficients
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Jan 12, 2024
1 parent f99f320 commit ca18e35
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/regression/63-affeq/19-witness.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,20 @@ void main(void) {
j = j + 3;
}
__goblint_check(3 * i - j + k == 1);

// Represented with fractional coefficients and thus not put into witness yet

int a = 0;
int b = 0;
int z = 0;

while(z < 100) {
a++;
b += 2;
z++;

__goblint_check(2*z - b == 0);
// b == 2*z is put into the witness
}

}

0 comments on commit ca18e35

Please sign in to comment.