diff --git a/src/plugins/e-acsl/src/analyses/bound_variables.ml b/src/plugins/e-acsl/src/analyses/bound_variables.ml index 8f953694307ccb21a301b92b4288c5e7553dc9f8..2d9306e5d217b334bdc912c627acae7e0dfe3100 100644 --- a/src/plugins/e-acsl/src/analyses/bound_variables.ml +++ b/src/plugins/e-acsl/src/analyses/bound_variables.ml @@ -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