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] \at in ACSL assertions
- Subject: [Frama-c-discuss] \at in ACSL assertions
- From: yannick.moy at adacore.com (Yannick Moy)
- Date: Mon, 15 Nov 2010 15:07:03 +0100
- In-reply-to: <20101115145125.5bad24be@is010235>
- References: <AANLkTimyk_961c8Xk6_U33TAxabBGSeoaRB+EtM-OiBR@mail.gmail.com> <20101115145125.5bad24be@is010235>
>> a- should the commented functions main and f be parsable by the >> front-end? Currently, they can't be parsed with either Boron or the >> development version. The error message is similar to "u.c:14:[kernel] >> user error: logic label `cond' not found in annotation" Interesting possibility, to designate the last value at some label, including at a more deeply nested level. >> b- if they were parsable, should the assertion in each function be provable? > > yes for main: the value of j the last time we reach odd before > evaluating the assert is indeed 3. \at(...,cond) does not play any > role here, it is subsumed by the inner \at, > > no for f: then is not reached when c==0, \at(i-d,then) has no defined > value. Basically, we can't say much more than \at(i-d,then) == > \at(i-d,then). > > //@ assert \at(c,Pre) != 0 ==> \at(i-d, then) == 0; > would be true, though. I agree with this semantics. You should not be able to prove much if the value is semantically 'not always initialized'. -- Yannick
- Follow-Ups:
- [Frama-c-discuss] \at in ACSL assertions
- From: virgile.prevosto at cea.fr (Virgile Prevosto)
- [Frama-c-discuss] \at in ACSL assertions
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] \at in ACSL assertions
- References:
- [Frama-c-discuss] \at in ACSL assertions
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] \at in ACSL assertions
- From: virgile.prevosto at cea.fr (Virgile Prevosto)
- [Frama-c-discuss] \at in ACSL assertions
- Prev by Date: [Frama-c-discuss] \at in ACSL assertions
- Next by Date: [Frama-c-discuss] \at in ACSL assertions
- Previous by thread: [Frama-c-discuss] \at in ACSL assertions
- Next by thread: [Frama-c-discuss] \at in ACSL assertions
- Index(es):