Skip to content

Unprovable inequality involving (unsigned) -1

ID0002127: This issue was created automatically from Mantis Issue 2127. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002127 Frama-C Plug-in > wp public 2015-06-04 2016-01-26
Reporter loic Assigned To correnson Resolution fixed
Priority normal Severity minor Reproducibility always
Platform Linux OS Ubuntu OS Version 12.04.5 LTS
Product Version - Target Version - Fixed in Version Frama-C Magnesium

Description :

Nitrogen-20111001 alt-ergo 0.94

The following assertion cannot be proven.

void arithmetic_testcase(unsigned i) { /*@ assert i <= (unsigned) -10 ==> i + 9 <= (unsigned) -1; */ }

Steps To Reproduce :

frama-c -wp -wp-ret for the code above (also as attachment).

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information