different error messages for "0<x" and "0<x<9" when x is of class type
ID0002007: This issue was created automatically from Mantis Issue 2007. Further discussion may take place here.
|ID0002007||Frama-Clang||Plug-in > clang||public||2014-12-01||2015-02-16|
|Product Version||-||Target Version||-||Fixed in Version||-|
Output of "frama-c -wp 185.cpp" in its current version:
185.cpp:4:24: comparison of incompatible types Now output intermediate result 185.cpp:4:[kernel] user error: comparison of incompatible types: struct _Z1X and ℤ in annotation. [kernel] user error: skipping file "185.cpp" that has errors. [kernel] Frama-C aborted: invalid user input.
Output of the same command after deleting "< 9" (or, alternatively, deleting "0 <") in line 4:
185.cpp:4:20: comparison of incompatible types 185.cpp:4:20: expecting a term or predicate 185.cpp:4:20: expecting a predicate Now output intermediate result [wp] Running WP plugin... [wp] Collecting axiomatic usage [wp] warning: Missing RTE guards [wp] 0 goal scheduled [wp] Proved goals: 0 / 0
While both behaviors of Frama-C are ok, their difference (in particular not running / running the Wp plugin) could indicate a bug.