--- layout: fc_discuss_archives title: Message 4 from Frama-C-discuss on May 2012 ---
Hi, > ------------------------------------------------------------------------------------------------------------- > 1) I would like to use behavior specification (see the function below). > But I couldn?t prove the Vcs > related with the behavior one: > I didn't understand the problem. If I don?t use behavior , I have all > the proven VCs. > > /*@ assigns \nothing; > @ ensures \result == \abs(x); > @*/ > extern double fabs(double x); > > #define LIMIT 6.111111e-2 > > /*@ requires \valid(AB_Ptr) && \valid(CD_Ptr); The right question is: are AB_Ptr and CD_ptr separated ? My guess is that if you pass the same pointer for both arguments, your contract with behaviors does not hold. - Claude -- Claude March? | tel: +33 1 72 92 59 69 INRIA Saclay - ?le-de-France | Universit? Paris-sud, Bat. 650 | http://www.lri.fr/~marche/ F-91405 ORSAY Cedex |