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] unproven VC with newer why version
- Subject: [Frama-c-discuss] unproven VC with newer why version
- From: Claude.Marche at inria.fr (Claude Marche)
- Date: Tue, 08 Dec 2009 17:12:50 +0100
- In-reply-to: <FC0686BB6178BC43B9DC035287A11A720DBE7AF284@SI-MBX12.de.bosch.com>
- References: <40C72502-3C98-4574-9DC6-52FC4F981F26@first.fraunhofer.de> <4B1E5AA7.8020307@inria.fr> <3d13dcfc0912080700y68dea97bvf17f45662574e08f@mail.gmail.com> <FC0686BB6178BC43B9DC035287A11A720DBE7AF284@SI-MBX12.de.bosch.com>
Hollas Boris (CR/AEY1) wrote: >> Would it be useful to add automatically a clause "variant N-i;" for >> loops having the simple syntactic structure "for (i = ... ; i < N ; >> i++)"? This way proof obligations for such loops (which are quite >> common) would be automatically discharged. >> > > >> Regards, >> david >> > > In C, the loop variable can be modified in the body. Hence, The loop variant you propose may not hold. If a variant was added automatically, it wouldn't be possible to verify these loops. The same is true for loop invariants. > Yes, that's why I'm reluctant to implement such an heuristic. the same for the heuristic loop inv 0 <= i <= N But I think it would be possible to implement another plugin devoted to suggest simple annotations like this. Then running Jessie on the automatically annotated code could be done, and do a manual modification for wrong generated annotations. In other words, I don't think it is a good idea to generate such an annotation without telling the user. - Claude > A solution is to use abstract interpretation to infer simple loop invariants and variants automatically. > > _______________________________________________ > Frama-c-discuss mailing list > Frama-c-discuss at lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss > -- 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 |
- Follow-Ups:
- [Frama-c-discuss] unproven VC with newer why version
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] unproven VC with newer why version
- References:
- [Frama-c-discuss] unproven VC with newer why version
- From: jens.gerlach at first.fraunhofer.de (Jens Gerlach)
- [Frama-c-discuss] unproven VC with newer why version
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] unproven VC with newer why version
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] unproven VC with newer why version
- From: Boris.Hollas at de.bosch.com (Hollas Boris (CR/AEY1))
- [Frama-c-discuss] unproven VC with newer why version
- Prev by Date: [Frama-c-discuss] Frama-C doesn't warn me about the illegal assignment of a variable
- Next by Date: [Frama-c-discuss] Frama-C doesn't warn me about the illegal assignment of a variable
- Previous by thread: [Frama-c-discuss] unproven VC with newer why version
- Next by thread: [Frama-c-discuss] unproven VC with newer why version
- Index(es):