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] Proof conditions with simple pointer assignment


Le ven. 11 d?c. 2009 16:44:20 CET,
Damien Karkinsky <dak at> a ?crit :

> /*@ requries \valid(p);
>    @ assigns *p;
>    @ ensures *p == 1;
> */
> void f(int *p)
> {
>     *p = 1;
> }

> The conditions is not discharged although axiom select_store_eq seems
> quite sufficient to discharge it. Is integer_of_int32 somehow getting in
> the way?

Which prover are you using? alt-ergo 0.9 seems indeed to have some
difficulties, but Simplify 1.5.4 and z3 2.0 succeed on all obligations.

Hope this helps,
E tutto per oggi, a la prossima volta.