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



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