Skip to content

Typing error on expression array == pointer

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


Id Project Category View Due Date Updated
ID0000885 Frama-C Kernel > ACSL implementation public 2011-07-19 2014-02-12
Reporter patrick Assigned To virgile Resolution fixed
Priority normal Severity minor Reproducibility have not tried
Platform - OS - OS Version -
Product Version Frama-C Carbon-20110201 Target Version - Fixed in Version Frama-C Nitrogen-20111001

Description :

File: extern int t1[10]; //@ requires t1 == \null; void main(void) { ; }

is interpreted as:

extern int t1[10]; //@ requires (int *)t1 == (int []) \null; void main(void) { ; }

Both operands of the equality have not the same type!

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