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] (no subject)
- Subject: [Frama-c-discuss] (no subject)
- From: gavran at mpi-sws.org (gavran at mpi-sws.org)
- Date: Fri, 31 Oct 2014 16:09:54 +0100
Hi, I have a problem with assigns clause. Assume the following code: /*@ ensures \result != \null; @ assigns \nothing; @*/ extern int *new_value(); //@ assigns *p; void f(int* p){ *p = 8; } //@ assigns \nothing; int main(void){ int *p = new_value(); f(p); } The prover is unable to prove that main assigns \nothing, which makes sense, as main assigns to *p through function f. However, how should I state that in \assigns clause, since p is local variable and can not be accessed within annotation? Ivan p.s. I repeat the question posted on SO - http://stackoverflow.com/questions/26591694/assigns-clause-for-local-variables-in-frama-c
- Follow-Ups:
- [Frama-c-discuss] (no subject)
- From: loic.correnson at cea.fr (Loïc Correnson)
- [Frama-c-discuss] (no subject)
- From: Claude.Marche at inria.fr (Claude Marche)
- [Frama-c-discuss] (no subject)
- Prev by Date: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Next by Date: [Frama-c-discuss] (no subject)
- Previous by thread: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Next by thread: [Frama-c-discuss] (no subject)
- Index(es):