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: florent.kirchner at cea.fr (Florent Kirchner)
  • Date: Wed, 15 Feb 2012 12:46:07 +0100
  • In-reply-to: <CALiiei43n6f68tBKXE4sc6fA_0N5=dxsj6A1Fc8bEXB+aKSiSw@mail.gmail.com>
  • References: <CALiiei43n6f68tBKXE4sc6fA_0N5=dxsj6A1Fc8bEXB+aKSiSw@mail.gmail.com>

Hi,

> 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?

The command `frama-c-gui henry1.c -wp` will prove all of your invariants
at once.

Another solution is to call Frama-C programatically, ie:

    frama-c henry1.c -wp -then -report

Then WP yields:
    [wp] [WP:simplified] Goal store_phase_loop_inv_established : Valid
    [wp] [WP:simplified] Goal store_phase_loop_inv_2_established : Valid
    [wp] [Alt-Ergo] Goal store_phase_loop_inv_preserved : Valid
    [wp] [Alt-Ergo] Goal store_phase_loop_inv_2_preserved : Valid

and Report synthesizes:
--------------------------------------------------------------------------------
--- Properties of Function 'phase'
--------------------------------------------------------------------------------

[  Valid  ] Invariant (file henry1.c, line 7)
            by WP-Store.
[  Valid  ] Invariant (file henry1.c, line 8)
            by WP-Store.

--------------------------------------------------------------------------------
--- Status Report Summary
--------------------------------------------------------------------------------
     2 Completely validated
     2 Total
--------------------------------------------------------------------------------

HTH,
Florent.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120215/eb40cca6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: florent_kirchner.vcf
Type: text/x-vcard
Size: 308 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120215/eb40cca6/attachment.vcf>