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] bug with loop invariant, wrong loop invariant gets proven
- Subject: [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- From: Claude.Marche at inria.fr (Claude Marché)
- Date: Fri, 23 Jan 2009 10:10:30 +0100
- In-reply-to: <4979803D.2090000@inria.fr>
- References: <CCFF6F0509A5405C8124C03AA51AF1B1@AHARDPLACE> <4979803D.2090000@inria.fr>
Claude March? wrote: > third loop: no problem. Beware that your "rewriting" of the loop has the > effect that the invariant is now posed after incrementation of i. Which > makes things different! No bug here. To make things clearer: a proper rewriting of while(++i != length) {} would be while(true) { i++; if (i == length) break; } -- 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] bug with loop invariant, wrong loop invariant gets proven
- From: Christoph.Weber at first.fraunhofer.de (Christoph Weber)
- [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- References:
- [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- From: Christoph.Weber at first.fraunhofer.de (Christoph Weber)
- [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- From: Claude.Marche at inria.fr (Claude Marché)
- [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- Prev by Date: [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- Next by Date: [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- Previous by thread: [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- Next by thread: [Frama-c-discuss] bug with loop invariant, wrong loop invariant gets proven
- Index(es):