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] *p and p[0]


  • Subject: [Frama-c-discuss] *p and p[0]
  • From: Dillon.Pariente at dassault-aviation.com (Pariente Dillon)
  • Date: Thu, 8 Jul 2010 11:13:59 +0200

> -----Message d'origine-----
> De : Pariente Dillon 
> Envoy? : jeudi 8 juillet 2010 10:57
> ? : 'Frama-C public discussion'
> Objet : RE: [Frama-c-discuss] *p and p[0]
> 
> Hello,
> 
> > /*@ requires n > 0;
> >     requires \valid(p+ (0..n-1));
> >     assigns \nothing;
> >     ensures \forall int i;
> >                  0 <= i <= n-1 ==> \result >= p[i];
> >     ensures \exists int e;
> 
> Changing this last line into "ensures \exists integer e;"
> permits to prove all the POs (with Alt-ergo 0.9 + (Z3 2.4 or 
> CVC3 2.2)),

> whatever the declaration of p (int*p, or int p[0]).

I meant, the definition of res = ...