Dynamically allocated variables in body of while without break are not instrumented
ID0001716: This issue was created automatically from Mantis Issue 1716. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001716 | Frama-C | Plug-in > E-ACSL | public | 2014-03-25 | 2014-09-15 |
Reporter | arvidj | Assigned To | signoles | Resolution | fixed |
Priority | normal | Severity | minor | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | - | Target Version | - | Fixed in Version | Frama-C Neon-20140301 |
Description :
The assertion on line 14 of the attached program fails even though p is a valid pointer at this point. However if the break on line 12 is uncommented, the assertion passes.
Steps To Reproduce :
Frama-c run with the following parameters: -machdep x86_64 -e-acsl bug-while-without-break.c -then-on e-acsl -print -ocode bug-while-without-break.gen.c
Compiled with the following flags:
export SHARE=frama-c -print-share-path
gcc -g -O0 -std=c99 -pedantic -Wall -Wno-long-long -Wno-attributes -Wno-unused-but-set-variable -fno-builtin -o bug-while-without-break.c.out $SHARE/e-acsl/e_acsl.c $SHARE/e-acsl/memory_model/e_acsl_bittree.c $SHARE/e-acsl/memory_model/e_acsl_mmodel.c bug-while-without-break.gen.c -lgmp