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 specify the options when calling wp_compute?


   I have specified the options already. I used the version-Carbon before
and the way you said is not supported. Now I move my work to  Nitrogen and
it works.
   I find a small problem. If wp plugin is loaded as follow:

let module OLS = Datatype.Option(Datatype.List(Datatype.String)) in
let module OKF = Datatype.Option(Kernel_function) in
        let module OP = Datatype.Option(Property) in
        let wp_compute = Dynamic.get ~plugin:"Wp" "wp_compute" (Datatype.func3
OKF.ty OLS.ty OP.ty Datatype.unit) in
        wp_compute (Some(kf)) bhv (Some(ip)); and the type of bhv is:
string list option When the value of bhv as None(another case is not
tested), it will raise an exception ,described as follow: Unexpected error
(Type.Make_tbl(Key)(Info).Incompatible_type("Wp.wp_compute has type
Cil_datatype.Kf.t option -> string list -> identified property option ->
unit but is used with type Cil_datatype.Kf.t option -> string list option
-> identified property option -> unit.")). I wonder how it is. Thank you
for your kindness.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>