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] Jessie: type invariant
- Subject: [Frama-c-discuss] Jessie: type invariant
- From: dillon.pariente at dassault-aviation.fr (Dillon Pariente)
- Date: Thu Oct 23 14:43:00 2008
Dear All, Just a small question: are type invariants available in the current (humm! precisely of october, 4) version of Jessie? Indeed, these definition and annotation: typedef struct {int c;} las; //@ type invariant Plas(las v) = \valid(&v.c); do not generate any (of the expected) POs (i.e., nothing appears in the context of POs expressing this type invariant). The goal, here, is to get the validity of [p] in function g specification, through the use of this kind of type invariant: typedef struct { int d; } las2; typedef struct lasx { las2 c; } las; extern las v; //@ type invariant Plasx(struct lasx x) = \valid(&x.c.d); //@ requires \valid(p); assigns *p; ensures *p==3; void g(int * p){*p=3;} //@ assigns v.c.d; ensures v.c.d==3; void f(){g(&v.c.d);} Thanks in advance for your answers! Cheers, Dillon Pariente
- Prev by Date: [Frama-c-discuss] Partial correctness explained to children!
- Next by Date: [Frama-c-discuss] Partial correctness explained to children!
- Previous by thread: [Frama-c-discuss] Partial correctness explained to children!
- Next by thread: [Frama-c-discuss] predicates and axioms
- Index(es):