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] Ghost variables and function prototypes
- Subject: [Frama-c-discuss] Ghost variables and function prototypes
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Fri, 18 Feb 2011 15:56:44 +0100
- In-reply-to: <eece403dbc9a7e4e070b5aa9764f7a67.squirrel@webmail.informatik.htw-dresden.de>
- References: <eece403dbc9a7e4e070b5aa9764f7a67.squirrel@webmail.informatik.htw-dresden.de>
On Fri, Feb 18, 2011 at 3:07 PM, Boris Hollas <hollas at informatik.htw-dresden.de> wrote: > In the following code, I use a ghost variable foo_result to express a > specification on the return value of function foo. If I don't specify > assigns foo_result; in the contract of foo, the code verifies. See the discussion at http://bts.frama-c.com/view.php?id=615 > However, shouldn't Jessie automatically deduce from foo's postcondition > that foo may modify foo_result? Why should it do that? If the postcondition was x == y, should it deduce that the function assigns x, assigns y, assigns both, or assigns none but has a precondition that implies that x is already equal to y when it is called? Our position on generated assigns clauses is: if you don't like them, write assigns clauses by hand or write your own plug-in that generates assigns clauses for functions that do not have them. Pascal
- References:
- [Frama-c-discuss] Ghost variables and function prototypes
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] Ghost variables and function prototypes
- Prev by Date: [Frama-c-discuss] Problem with predicate and location labels
- Next by Date: [Frama-c-discuss] Problem with predicate and location labels
- Previous by thread: [Frama-c-discuss] Ghost variables and function prototypes
- Next by thread: [Frama-c-discuss] Ghost variables and function prototypes
- Index(es):