Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Jessie - behavior-specific loop invariants

  • Subject: [Frama-c-discuss] Jessie - behavior-specific loop invariants
  • From: kerstin.hartig at (Kerstin Hartig)
  • Date: Mon, 8 Nov 2010 13:59:08 +0100


I got a syntactical question about specifying behavior-specific loop
Having specified different behaviors in the function contract I can relate
to them by assigning the 
specific loop invariants by using "for <behavior>: loop invariant..;"
This works fine if specification and implementation are located in the same

As we usually divide spec. and impl. I experienced the following problem:
Including the specification file to the implementation file results in some
unknown behavior error.

I simplified an example and attached it.
It is just about the syntax, I am aware that the content of specification,
especially the loop invariants make no sense at all.
By running frama-c -jessie test.c the following error occurs:
test.c:11:[kernel] user error: Error during annotations analysis: reference
to unknown behavior one

Is this a bug? Or is there something I overlooked?

Kind Regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: application/octet-stream
Size: 158 bytes
Desc: test.c
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.spec
Type: application/octet-stream
Size: 104 bytes
Desc: test.spec
URL: <>