Skip to content

non-constant size of 2-dim array causes error in recursive procedure

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


Id Project Category View Due Date Updated
ID0000852 Frama-C Kernel public 2011-06-01 2013-01-25
Reporter Jochen Assigned To virgile Resolution open
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Carbon-20110201 Target Version - Fixed in Version -

Description :

Calling "frama-c -val ftest.c" for the attached program results in a kernel error message "Invalid length in array type". The error vanishes if either

  • the recursive call in the body is removed,
  • the 2-dimensional array (b[1][a]) is made a one-dimensional one (b[a]),
  • or the variable size (b[1][a]) is made constant (b[1][9]). Since I cannot imagine why just the combination (recursion + two dimensions + variable size) shall be an error, I guess there is a bug here. Moreover, even the Jessie plug-in reports only warnings on ftest.c.

Attachments

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