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: loic.correnson at cea.fr (Loïc Correnson)
  • Date: Wed, 15 Feb 2012 14:18:45 +0100
  • In-reply-to: <CALiiei6L0SA3qUph+P7ghssfZozbsg-ygJvvk=mmDHk_OnhMXw@mail.gmail.com>
  • References: <CALiiei43n6f68tBKXE4sc6fA_0N5=dxsj6A1Fc8bEXB+aKSiSw@mail.gmail.com> <CALiiei6L0SA3qUph+P7ghssfZozbsg-ygJvvk=mmDHk_OnhMXw@mail.gmail.com>

Hi,
I'm a bit surprised with this "bug" from programatic invokation of Wp.

The GUI plug-in for WP simply invokes the function "Wp.wp_compute" as  
I you do programmatically.
Actually, the consolidated status for properties that depend on others  
is performed by the Frama-C kernel, not by Wp.
However, the GUI plug-in for WP explicitly ask the GUI for refreshing,  
which may cause property statuses to be re-computed :

/* from src/wp/wp_gui.ml */
let run_and_prove (main_ui:Design.main_window_extension_points)  
strategy =
     [.....]
     Register.wp_compute  s.sp_kf s.sp_bhv s.sp_ip
     [......]
     main_ui#rehighlight () ;
     [.....]

Have also a look at module Property_status for forcing the kernel to  
recompute consolidation :

Property_status.Feedback.get : Property.t -> t (* feedback used for  
bullets *)
Property_status.Consolidation.get : Property.t -> Consolidation.t (*  
full consolidation data *)

Regards,
	L.