value analysis introduces weird pointer assert with variable length arrays
ID0002137: This issue was created automatically from Mantis Issue 2137. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0002137 | Frama-C | Plug-in > Eva | public | 2015-06-26 | 2017-06-15 |
Reporter | rcl | Assigned To | yakobowski | Resolution | fixed |
Priority | normal | Severity | minor | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Sodium | Target Version | Frama-C 15-Phosphorus | Fixed in Version | Frama-C 15-Phosphorus |
Description :
The value analysis plugin generates an assertion of the form
/*@ assert Value: ptr_comparison: \pointer_comparable((void )(arr+0), (void *)val); */
when arr is a VLA. This assertion looks bogus; it doesn't make any sense and doesn't even type check.
Steps To Reproduce :
Run the value analysis plugin on the attached source code form.