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
VeriFast accepts the following program, even though it exhibits undefined behavior per C's "effective types" rules:
#include<stdlib.h>#include<stdint.h>intmain()
//@ requires true;//@ ensures false;
{
inti=0;
int*p=&i;
int16_t*q= (void*)p;
*p=42;
//@ open integer(p, 42);//@ open int_(p, some(42));//@ integer__to_chars(p, 4, true);//@ chars_to_integer_(q, 2, true);*q=0; // This is Undefined Behavior. It can lead to miscompilation: https://godbolt.org/z/Yz6z1G6f5abort();
}
VeriFast accepts the following program, even though it exhibits undefined behavior per C's "effective types" rules:
See #315 .
The text was updated successfully, but these errors were encountered: