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] Porting some simple example from Jessie to WP


  • Subject: [Frama-c-discuss] Porting some simple example from Jessie to WP
  • From: jnarboux at narboux.fr (Julien Narboux)
  • Date: Mon, 21 Sep 2015 09:49:38 +0200

Hi,

For teaching, I am trying to port some examples I have to WP, the following
example could be proved by jessie, but it doesn't work with WP.

Can I have a hint ?

/*@
requires \valid(x)&&-10<*x<10;
requires \valid(y)&&-10<*y<10;
assigns *x;
assigns *y;
ensures *x == \old(*y);
ensures *y == \old(*x);
*/

void echange(int *x, int *y)

{
  *x=*x+*y;
  *y=*x-*y;
  *x=*x-*y;
  return;
}

Regards,

Julien Narboux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150921/4e7606de/attachment.html>