You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java the following program verifies where it shouldn't:
classTest {
inta;
//@ context Perm(a, write);//@ ensures a == \old(a) + 1;//@ ensures !\result;booleaninc() {
a += 1;
returnfalse;
}
//@ context Perm(a, write);//@ requires a == 0;voidfoo() {
booleanb = inc() & inc();
//@ assert !b;// Should fail because & is not short-circuiting (i.e. a should be 2//@ assert a == 1;
}
}
In the Disambiguate rewrite pass bitwise operations on booleans are simply replaced with the short-circuiting operator variants. (The other front ends either don't parse the bitwise operators at all or keep them until the end crashing VerCors)
The text was updated successfully, but these errors were encountered:
In Java the following program verifies where it shouldn't:
In the Disambiguate rewrite pass bitwise operations on booleans are simply replaced with the short-circuiting operator variants. (The other front ends either don't parse the bitwise operators at all or keep them until the end crashing VerCors)
The text was updated successfully, but these errors were encountered: