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: Patrick.Baudin at cea.fr (BAUDIN Patrick)
- Date: Mon, 14 Dec 2009 15:54:32 +0100
- In-reply-to: <4B2620B0.2080504@adelard.com>
- References: <4B2276E4.2090702@adelard.com> <4B25F5A1.3040303@cea.fr> <4B2620B0.2080504@adelard.com>
Damien, I won't state about \separated keyword which is experimental, but locations are clearly defined into ACL 1.4. > Thank you for the reply but I am not sure what you meant.p and *p are > different types and \separated takes only memory locations. Is there a > way to cast between them? > Yes, because a location is a set of l-values. All l-values can be written as follow: *((T*)(addr)). In that case, the memory location related to that l-value starts at the addresse addr, and its size in bytes is sizeof(*((T*)(addr)))=sizeof(T). Mainly, tools which do not support cast in C code don't support cast into specifications too (it is the same kind of difficulty). I guess the \separated key word will be introduced into ACSL in order to express a contraint on pointers without using pointer comparisons nor casts: - it gives more readable specification - tools may take benefits of it Patrick.
- References:
- [Frama-c-discuss] Proof conditions with simple pointer assignment
- From: dak at adelard.com (Damien Karkinsky)
- [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
- From: dak at adelard.com (Damien Karkinsky)
- [Frama-c-discuss] Proof conditions with simple pointer assignment
- Prev by Date: [Frama-c-discuss] Proof conditions with simple pointer assignment
- Next by Date: [Frama-c-discuss] Problems with value analysis
- Previous by thread: [Frama-c-discuss] Proof conditions with simple pointer assignment
- Next by thread: [Frama-c-discuss] Proof conditions with simple pointer assignment
- Index(es):