double puzzle - precondition not proved using WP/Val plugin
ID0001664: This issue was created automatically from Mantis Issue 1664. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001664 | Frama-C | Plug-in > Eva | public | 2014-02-28 | 2014-06-06 |
Reporter | dharma | Assigned To | yakobowski | Resolution | no change required |
Priority | normal | Severity | major | Reproducibility | always |
Platform | Ubuntu | OS | Linux | OS Version | 64 bit |
Product Version | Frama-C Fluorine-20130601 | Target Version | - | Fixed in Version | - |
Description :
#include <stdio.h> #include <limits.h>
/*@ requires x != 0; assigns \nothing; */ void assert(int x);
int x = 0;
int main() { assert(x == (int)(double)x); return 0; }
Additional Information :
[kernel] preprocessing with "gcc -C -E -I. -dD double_casting_puzzle.c" [value] Analyzing an incomplete application starting at main [value] Computing initial state [value] Initial state computed [value] Values of globals at initialization x ∈ -..- [value] computing for function assert <- main. Called from double_casting_puzzle.c:13. [value] using specification for function assert double_casting_puzzle.c:4:[value] Function assert: precondition got status unknown. [value] Done for function assert [value] Recording results for main [value] done for function main [value] ====== VALUES COMPUTED ====== [value] Values at end of function main: __retres ∈ {0}
Steps To Reproduce :
frama-c -val double_casting_puzzle.c -pp-annot -lib-entry