Frama-C/WP fails to discharge simple bit operation for small integer types
ID0001750: This issue was created automatically from Mantis Issue 1750. Further discussion may take place here.
|Plug-in > wp
|Fixed in Version
In the attached file there are for simple functions that computes
b = a & 1;
//@ assert b == 0 || b == 1;
where a and b are of type unsigned char, unsigned short, unsigned int and unsigned long.
Only for the types unsigned int and unsigned long cab WP (in fact QED) discharge the assertion. Both alt-ergo and CVC4 fail on unsigned char and unsigned short.
I would be very nice if Frama-C/WP could handle the other cases automatically as well.