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] Problem with \old
- Subject: [Frama-c-discuss] Problem with \old
- From: Claude.Marche at inria.fr (Claude Marche)
- Date: Thu, 20 May 2010 12:24:36 +0200
- In-reply-to: <4BF50B09.3010502@googlemail.com>
- References: <4BF50B09.3010502@googlemail.com>
Michael Schausten wrote: > Hello, > > I'm getting started using Frama-c, but now I'm stuck with a (probably > simple) problem. > My code: > > /*@ ensures (\old(*p) < *p); > */ > void fun(int* p) { > *p++; > } > > I try to prove it with Alt-Ergo via the GWhy-Tool with > frama-c -jessie-analysis -jessie-gui fun.c If you enforce parentheses: (*p)++ then you will get the expected answer. If you really meant *p++, that is *(p++), then your ensures clause is wrong: *p is not modified. -- Claude March? | tel: +33 1 72 92 59 69 INRIA Saclay - ?le-de-France | mobile: +33 6 33 14 57 93 Parc Orsay Universit? | fax: +33 1 74 85 42 29 4, rue Jacques Monod - B?timent N | http://www.lri.fr/~marche/ F-91893 ORSAY Cedex |
- References:
- [Frama-c-discuss] Problem with \old
- From: michaelschausten at googlemail.com (Michael Schausten)
- [Frama-c-discuss] Problem with \old
- Prev by Date: [Frama-c-discuss] Problem with \old
- Next by Date: [Frama-c-discuss] Problem with \old
- Previous by thread: [Frama-c-discuss] Problem with \old
- Next by thread: [Frama-c-discuss] Problem with \old
- Index(es):