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] Unable to prove the example code in ACSL documentation
- Subject: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- Date: Fri, 24 Oct 2014 10:16:36 +0200
- In-reply-to: <CAFMfd-yaiuGBG56eFxAJqbEamLcLbYTZ6reKdmM67H0gJY-Anw@mail.gmail.com>
- References: <CAFMfd-wCu7sXQxDHsSWhxMUMW3uO_BhDFCirOPTdge8vv6+nbg@mail.gmail.com> <CA+yPOVic8ttY9=xY0gPMLfLi-T7RDsGpC5dxuQf3RO8_Z-sMag@mail.gmail.com> <54490ACE.4000901@inria.fr> <CA+yPOVgTOR4mu-zORta5v6ov9_CrZ+tMo9vBA+un1G5FVvGv1Q@mail.gmail.com> <CAFMfd-yaiuGBG56eFxAJqbEamLcLbYTZ6reKdmM67H0gJY-Anw@mail.gmail.com>
2014-10-24 9:53 GMT+02:00 George Lee <georgeleeliangwei at gmail.com>: > I have tried this too and it works. > > Now I have this burning question: why does "logic" work in this case and "ghost" fails? > What is the main difference between the two? > > As I am new to Frama-C and am learning how to use it, any explanation here will be greatly appreciated. Thanks! > logic and ghost are two very different things: logic introduces a logic constant, which is immutable by definition (there is no execution of anything in the pure, logical world), while ghost declares a C global variable, which is treated as any other global and in particular might be modified during the execution of the program (despite its const qualifier, since as previously mentionned you're always only a cast away from being able to modify a const variable). Best regards, -- E tutto per oggi, a la prossima volta Virgile
- References:
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: georgeleeliangwei at gmail.com (gg lee)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: georgeleeliangwei at gmail.com (George Lee)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Prev by Date: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Next by Date: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Previous by thread: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Next by thread: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Index(es):