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] How to get the "VALID" results with dynamically calling wp?


  • Subject: [Frama-c-discuss] How to get the "VALID" results with dynamically calling wp?
  • From: njucslzh0714 at gmail.com (Henry)
  • Date: Wed, 15 Feb 2012 15:26:12 +0800

Hi, I have some doubts about wp. A simple program named b.c as below

void phase(void)
{
  int m;
  int a;
  m = 0;
  a = 10;
  /*@ loop invariant a-10 == 0;
      loop invariant m >= 0;
  */
  while(m<=a)
{
m=m+1;
}
  return;
}

void main(void)
{
  phase();
  return;
}

There are two invariants here. Now run the command "frama-c-gui b.c" and we
can find that both of the status of the invariants is "no verification
attempted".
If I click the menu "Prove the annotation by WP" on one of them and get the
result is
local status--valid
consolidated status--unkonwn.
Then click the menu on the other invariant and the statuses all become to
be valid.
If wp is dynamically  called with code to prove the invariants it can only
be proved one by one. How to get the "VALID" results above?

----
Best regards.
Henry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120215/1261861c/attachment.htm>