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] WP: assigns needed to prove function contract?


  • Subject: [Frama-c-discuss] WP: assigns needed to prove function contract?
  • From: dmentre at linux-france.org (David MENTRE)
  • Date: Mon, 9 Sep 2013 09:42:59 +0200

Hello,

In the attached find.c example, everything is proved with WP (loop
invariant, function contract).

However, if I remove the "loop assigns i;" in the for loop, the
ensures clauses of the function contract are not proved any more. Can
somebody explain to me why, as I think my loop invariant is building
all the information needed to prove the ensures clauses.

As far as I remember, this was not the case with previous version of
Frama-C (or with Jessie?).

Best regards,
david
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find.c
Type: text/x-csrc
Size: 540 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20130909/6d13e707/attachment.c>