Skip to content

Error when function contract defined after function definition and with different parameter names

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


Id Project Category View Due Date Updated
ID0000588 Frama-C Kernel public 2010-09-21 2014-02-12
Reporter dpariente Assigned To virgile Resolution fixed
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C GIT, precise the release id Target Version - Fixed in Version Frama-C Carbon-20101201-beta1

Description :

Analyzing this code:

void f(int a){ a=1;} //@ ensures x>0; void f(int x);

with: frama-c foo.c

generates the following error message: e1.c:4:[kernel] user error: unbound logic variable x in annotation. [kernel] user error: skipping file "e1.c" that has errors. [kernel] Frama-C aborted because of invalid user input.

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