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: Christoph.Weber at first.fraunhofer.de (Christoph Weber)
- Date: Fri, 23 Jan 2009 12:06:33 +0100
- In-reply-to: <49798986.3010306@inria.fr>
- References: <CCFF6F0509A5405C8124C03AA51AF1B1@AHARDPLACE><4979803D.2090000@inria.fr> <49798986.3010306@inria.fr>
Hello again, I would like to clarify something: Given, that while(++i != length) {} is equivalent to the following: and the loop invariant requires that i < length, /*@ loop invariant 0 <= i < length; */ while(true) { i++; if (i == length) break; } Why is i allowed to become equal to length? I remember the ACSL document state, that abnormal termination with a "break" it is not required that the loop invariant holds. That leaves only one question, are both loops truly equivalent. Again, Thank you for your help. Cheers Christoph
- 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
- 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] Frama-C / Jessie-Plugin
- 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):