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] WP - Verifiable annotations with some types but not others
- Subject: [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- From: arnaud.dieumegard at enseeiht.fr (Arnaud Dieumegard)
- Date: Fri, 6 Jul 2012 11:18:44 +0200
- In-reply-to: <223E4B1A-AD1D-4314-B139-E679A0BC2BA1@first.fraunhofer.de>
- References: <1341236500.2183.49.camel@iti27.informatik.htw-dresden.de> <47C0712F-E281-48EB-991E-263D6EADC271@enseeiht.fr> <1341564914.2095.2.camel@iti27.informatik.htw-dresden.de>, <32B125A8-65E4-4455-B854-6CAE75E29A38@enseeiht.fr> <223E4B1A-AD1D-4314-B139-E679A0BC2BA1@first.fraunhofer.de>
Not really, I have not take the time to move to the Nitrogen version. But I will ... Regarding my question I tried also: requires \valid_range(&b.val,0,1); Which does the trick. With this solution, the two requires clauses are the only things that are not verified. Arnaud On Jul 6, 2012, at 11:11 AM, Jens Gerlach wrote: > Do you have a particular reason to use the Carbon release? > I usually try to stick to the newer releases (Nitrogen, and hopefully soon Oxygen). > > Jens > > Von meinem iPad gesendet > > Am 06.07.2012 um 11:03 schrieb "Arnaud Dieumegard" <arnaud.dieumegard at enseeiht.fr>: > >> Hi, thanks for the quick reply. >> >> I added: >> requires \forall unsigned char n,m; 0 <= n < 2 && 0 <= m < 2 ==> \valid(&b.val[n]+m); >> >> but it does not changes anything on unsigned char or unsigned int. >> >> Arnaud >> >> On Jul 6, 2012, at 10:55 AM, Boris Hollas wrote: >> >>> On Fri, 2012-07-06 at 10:37 +0200, Arnaud Dieumegard wrote: >>>> typedef struct{ >>>> double val[2][2]; >>>> }t_struct; >>>> >>>> t_struct b; >>>> >>>> /*@ requires \valid(&b.val); >>> >>> Here, you only specify that val[0][0] is valid. See the ACSL doc on how >>> to specify ranges. >>> -- >>> Best regards, >>> Boris >>> >>> >>> _______________________________________________ >>> Frama-c-discuss mailing list >>> Frama-c-discuss at lists.gforge.inria.fr >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss >> >> Cordialement, >> >> Arnaud Dieumegard >> PhD Student >> IRIT-ENSEEIHT / ACADIE >> 2 rue Charles CAMICHEL BP 7122 >> 31071 TOULOUSE cedex 07 >> arnaud.dieumegard at enseeiht.fr >> Tel: 05.34.32.21.64 >> >> >> >> >> >> >> _______________________________________________ >> Frama-c-discuss mailing list >> Frama-c-discuss at lists.gforge.inria.fr >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss > > _______________________________________________ > Frama-c-discuss mailing list > Frama-c-discuss at lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss Cordialement, Arnaud Dieumegard PhD Student IRIT-ENSEEIHT / ACADIE 2 rue Charles CAMICHEL BP 7122 31071 TOULOUSE cedex 07 arnaud.dieumegard at enseeiht.fr Tel: 05.34.32.21.64
- Follow-Ups:
- [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- From: arnaud.dieumegard at enseeiht.fr (Arnaud Dieumegard)
- [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- References:
- [Frama-c-discuss] Predicates fully supported in WP?
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- From: arnaud.dieumegard at enseeiht.fr (Arnaud Dieumegard)
- [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- From: arnaud.dieumegard at enseeiht.fr (Arnaud Dieumegard)
- [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- From: jens.gerlach at first.fraunhofer.de (Jens Gerlach)
- [Frama-c-discuss] Predicates fully supported in WP?
- Prev by Date: [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- Next by Date: [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- Previous by thread: [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- Next by thread: [Frama-c-discuss] WP - Verifiable annotations with some types but not others
- Index(es):