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] Problem with ACSL annotations
- Subject: [Frama-c-discuss] Problem with ACSL annotations
- From: Patrick.Baudin at cea.fr (BAUDIN Patrick)
- Date: Wed, 19 Dec 2012 15:21:49 +0100
- In-reply-to: <25842C23E9421645904C0919C9881E9F1ECDBE6D@CURIE.fokus.fraunhofer.de>
- References: <25842C23E9421645904C0919C9881E9F1ECDBE6D@CURIE.fokus.fraunhofer.de>
Hello Initisar, Yes, It is a good idea to look at ACSL tutorial recommended by Jens. But, just looking at these two lines of your previous mail : > This new version is verifiable: > ensures \exists int e; 0<=e && (\forall int i; 0<=i<15 && e > queue[i]) && ( (e >= 5) || (e >= 10) ) ==> \result == 0; I can see that you didn't fully understand the answer of Virgile. That ensures is almost equivalent to: ensures false ==> what_ever; This is always true what ever does your code! The ensures of your first mail is almost equivalent to ensures what_ever ==> false; A function doing the impossible can be compliant with this specification. That is difficult to implement! An alternative is to implement a function which doesn't terminate (while(true);). I guess your code is not like that. So, in addition to the tutorial, look again more carefully at the answer of Virgile. That should help you in understanding why your specification is equivalent to what I say. Patrick. -- Patrick Baudin, DILS/LSL, B?t. 862, Point Courrier n? 174 Institut CARNOT CEA LIST, CEA Saclay Nano-INNOV, 91191 Gif-sur-Yvette cedex, France. tel: +33 (0)1 6908 2072
- Follow-Ups:
- [Frama-c-discuss] Problem with ACSL annotations
- From: intissar_mzalouat at yahoo.fr (intissar mzalouat)
- [Frama-c-discuss] Problem with ACSL annotations
- References:
- [Frama-c-discuss] Problem with ACSL annotations
- From: jens.gerlach at fokus.fraunhofer.de (Gerlach, Jens)
- [Frama-c-discuss] Problem with ACSL annotations
- Prev by Date: [Frama-c-discuss] Problem with ACSL annotations
- Next by Date: [Frama-c-discuss] Problem with ACSL annotations
- Previous by thread: [Frama-c-discuss] Problem with ACSL annotations
- Next by thread: [Frama-c-discuss] Problem with ACSL annotations
- Index(es):