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] Value Analysis and user-defined predicates


  • Subject: [Frama-c-discuss] Value Analysis and user-defined predicates
  • From: sylvain.nahas at googlemail.com (sylvain nahas)
  • Date: Tue, 10 Apr 2012 15:04:30 +0200

Dear list,

I am getting unexpected results with the value analysis plug-in, in
which basically boils down to the following code snippet:


/*@ predicate greater_than_zero(integer myval) = myval > 0; */
...
int a;
a =  10;
/*@ assert a > 0; */
/*@ assert greater_than_zero(a); */
...


I would expect the status "valid" for all "assert" above, but the
value analysis obstinately considers the second one as "unknown".

Could somebody by kind enough to point me at what I am doing wrong there?
Thanks in advance,
Sylvain