Skip to content

Instrumentation of statements with labels are not inserted at the correct location

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


Id Project Category View Due Date Updated
ID0001717 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 8 in the attached program fails since the call to __full_init is placed before the label on line 8, instead of after.

Steps To Reproduce :

Frama-c run with the following parameters: -machdep x86_64 -e-acsl bug-annotation-after-label.c -then-on e-acsl -print -ocode bug-annotation-after-label.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-annotation-after-label.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-annotation-after-label.gen.c -lgmp

Attachments

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