Skip to content

Cil generates incorrect switch (with missing cases)

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


Id Project Category View Due Date Updated
ID0000882 Frama-C Kernel public 2011-07-06 2014-02-12
Reporter yakobowski Assigned To yakobowski Resolution fixed
Priority normal Severity crash Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Carbon-20110201 Target Version - Fixed in Version Frama-C Nitrogen-20111001

Description :

frama-c -check crashes on the following code. This is a regression from Boron.

void main () { int r; switch(1) { case 2: r = (int) f(1); break; default: break; } }

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