Skip to content
Snippets Groups Projects
Commit 3f31f5e3 authored by Basile Desloges's avatar Basile Desloges Committed by Julien Signoles
Browse files

[eacsl] Update Bound_variables to visit global logic functions and predicates

parent 9c462e1a
No related branches found
No related tags found
No related merge requests found
......@@ -696,19 +696,15 @@ end
(Result.Error (Error.make_not_yet "unguarded \\exists quantification"))
| _ -> ()
let do_user_predicates () =
let gannot a =
match a with
| Dfun_or_pred ({l_body = LBpred p},loc) ->
let p = Logic_normalizer.get_pred p in
process_quantif ~loc p
| _ -> ()
in
Annotations.iter_global (fun _ a -> gannot a)
let preprocessor = object
inherit E_acsl_visitor.visitor
method !glob_annot _ = Cil.DoChildren
method !vannotation annot =
match annot with
| Dfun_or_pred _ -> Cil.DoChildren
| _ -> Cil.SkipChildren
method !vpredicate p =
let loc = p.pred_loc in
let p = Logic_normalizer.get_pred p in
......@@ -720,8 +716,7 @@ end
let compute ast =
Visitor.visitFramacFileSameGlobals
(preprocessor :> Visitor.frama_c_inplace)
ast;
do_user_predicates ()
ast
let compute_annot annot =
ignore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment