strange warning "postcondition got status invalid"
ID0001369: This issue was created automatically from Mantis Issue 1369. Further discussion may take place here.
|Plug-in > Eva
|Fixed in Version
Running "frama-c -val ftest.c" on the attached program produces a "[value] Function foo: postcondition got status invalid" in line 6, although the ensures clause looks quite reasonable. (I don't understand the notion of a "postcondition status": shouldn't the postconditions of a function be satisfied automatically if all its preconditions are?) The warning disappears if the ensures clause in line 5 is removed or an appropriate function body (e.g. the one commented out at the end of line 6) is added.