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: moy at adacore.com (Yannick Moy)
- Date: Fri, 14 Jun 2019 15:48:44 +0200
- In-reply-to: <5a666625-e40e-5ee1-f34f-d00baa7e2e8f@proteancode.com>
- References: <5a666625-e40e-5ee1-f34f-d00baa7e2e8f@proteancode.com>
> Perhaps you can help please? In languages like Eiffel, Ada or SPARK, I am used to being able to use user-defined functions in subsequent contracts. Like a Stack ADT, declaring an executable Boolean-valued function called "Empty", then saying "not Empty" in the precondition of my "Pop" function. > > If I try to do that in ACSL, it fails... the simplest example I can come up with is: Hi Rod, You have to declare capacity as a logic function inside annotations. Similar to what you were used to in old SPARK. Even if you already have a program function called capacity. -- Yannick Moy, Senior Software Engineer, AdaCore -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20190614/66ae8967/attachment.html>
- 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: rod at proteancode.com (Roderick Chapman)
- [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):