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
- Subject: [Frama-c-discuss] Proof conditions with simple pointer assignment
- From: dak at adelard.com (Damien Karkinsky)
- Date: Fri, 11 Dec 2009 16:44:20 +0000
Hello, Consider the following spec, /*@ requries \valid(p); @ assigns *p; @ ensures *p == 1; */ void f(int *p) { *p = 1; } This generates the proof condition (in consice terms) H2: integer_of_int32(result) = 1 int_P_int_M_p_1_0: int(int_P, int32) memory H3: int_P_int_M_p_1_0 = store(int_P_int_M_p_1, p, result) ------------------------- integer_of_int32(select (int_P_int_M_p_1_0, 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? Thank you Damien
- Follow-Ups:
- [Frama-c-discuss] Proof conditions with simple pointer assignment
- From: virgile.prevosto at cea.fr (Virgile Prevosto)
- [Frama-c-discuss] Proof conditions with simple pointer assignment
- From: Patrick.Baudin at cea.fr (BAUDIN Patrick)
- [Frama-c-discuss] Proof conditions with simple pointer assignment
- Prev by Date: [Frama-c-discuss] Help with proving post-conditions
- Next by Date: [Frama-c-discuss] Proof conditions with simple pointer assignment
- Previous by thread: [Frama-c-discuss] Res: Jessie global variables and functions
- Next by thread: [Frama-c-discuss] Proof conditions with simple pointer assignment
- Index(es):