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 global variables and functions


  • Subject: [Frama-c-discuss] Jessie global variables and functions
  • From: Pascal.CUOQ at cea.fr (CUOQ Pascal)
  • Date: Wed, 9 Dec 2009 19:13:20 +0100
  • References: <4B1FE405.6070400@adelard.com>


> Jessie generates four proof obligations for f2()one of which is not prooved.

The unproved PO corresponds to the assigns clause.
Your function f2 calls f1 which assigns var1, and in this sense,
it is not true that f2 assigns only var2.

A correct specification for f2 as it is written would be assigns var1, var2;

Also, as it is written, the premise "var1 ==1 =>" in f2's postcondition
is not necessary. function f2 will always set var2 to 0, because it
sets var1 to 1 itself before the if.

Pascal