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] Help with using user-declared functions in preconditions
- Subject: [Frama-c-discuss] Help with using user-declared functions in preconditions
- From: rod at proteancode.com (Roderick Chapman)
- Date: Sun, 16 Jun 2019 17:12:55 +0100
- In-reply-to: <02A76450-ECF4-4409-B962-7C3CCCEDF578@fokus.fraunhofer.de>
- References: <mailman.7.1560592812.11901.frama-c-discuss@lists.gforge.inria.fr> <02A76450-ECF4-4409-B962-7C3CCCEDF578@fokus.fraunhofer.de>
On 15/06/2019 11:15, Gerlach, Jens wrote: > The code of the examples and the various logic functions and predicates can be found under > > https://github.com/fraunhoferfokus/acsl-by-example OK..got it... you define a predicate called "Empty" and use that in the "ensures" clause of the "stack_empty" function... which can then be used in the preconditions of other functions... > From time to time I hear the Frama-C developers talk about the idea of allowing âpureâ C functions > (no side effects etc) in contracts. However, this hasnât materialized yet. > Ah...of course...in SPARK, functions are always pure, so using them directly in contracts is always OK... Â Thanks for the help, Â Rod
- Follow-Ups:
- [Frama-c-discuss] Help with using user-declared functions in preconditions
- From: rod at proteancode.com (Roderick Chapman)
- [Frama-c-discuss] Help with using user-declared functions in preconditions
- References:
- [Frama-c-discuss] Help with using user-declared functions in preconditions
- From: jens.gerlach at fokus.fraunhofer.de (Gerlach, Jens)
- [Frama-c-discuss] Help with using user-declared functions in preconditions
- Prev by Date: [Frama-c-discuss] Help with using user-declared functions in preconditions
- Next by Date: [Frama-c-discuss] Help with using user-declared functions in preconditions
- Previous by thread: [Frama-c-discuss] Help with using user-declared functions in preconditions
- Next by thread: [Frama-c-discuss] Help with using user-declared functions in preconditions
- Index(es):