Arithmetic safety of bitwise operators cannot be verified
ID0000348: This issue was created automatically from Mantis Issue 348. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0000348 | Frama-C | Plug-in > jessie | public | 2009-12-03 | 2009-12-03 |
Reporter | boris | Assigned To | cmarche | Resolution | open |
Priority | normal | Severity | major | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Beryllium-20090901 | Target Version | - | Fixed in Version | - |
Description :
Jessie cannot verify arithmetic safety in the following code:
typedef unsigned int uint32;
uint32 b1(uint32 x, uint32 y) { return x^y; }
uint32 b2(uint32 x, uint32 y) { return x&y; }
uint32 b3(uint32 x, uint32 y) { return x|y; }
uint32 b4(uint32 x) { return ~x; }