Skip to content

syntax error before loop contract reported after loop contract

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


Id Project Category View Due Date Updated
ID0002297 Frama-C Kernel public 2017-05-08 2017-12-06
Reporter Jochen Assigned To maroneze Resolution fixed
Priority normal Severity minor Reproducibility always
Platform Phosphorus-20170501-beta1 OS xubuntu 16.04.1 OS Version -
Product Version - Target Version - Fixed in Version Frama-C 16-Sulfur

Description :

Running "frama-c -wp synt.c" gives the output:

[kernel] Parsing FRAMAC_SHARE/libc/__fc_builtin_for_normalization.i (no preprocessing) [kernel] Parsing synt.c (with preprocessing) [kernel] syntax error at synt.c:7: 5 loop assigns i,s; 6 loop variant 9-i; 7 */ ^^^ 8 for (int i=0; i<9; ++i) 9 s += 2; [kernel] Frama-C aborted: invalid user input.

This suggests that there is some syntax error within the loop contract (and it often takes a long time to check the contract byte by byte for correctness). However, the error is the missing semi-colon in line 3, immediately before the contract.

Attachments

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