Skip to content
Snippets Groups Projects
Commit d788d610 authored by Basile Desloges's avatar Basile Desloges
Browse files

[eacsl] Add a way to filter generated RTE annotations

parent 5aa26731
No related branches found
No related tags found
No related merge requests found
......@@ -1040,9 +1040,14 @@ and translate_rte_annots:
is_visiting_valid := old_valid;
Env.set_annotation_kind env old_kind
and translate_rte kf env e =
and translate_rte ?filter kf env e =
let stmt = Cil.mkStmtOneInstr ~valid_sid:true (Skip e.eloc) in
let l = Rte.exp kf stmt e in
let l =
match filter with
| Some f -> List.filter f l
| None -> l
in
translate_rte_annots Printer.pp_exp e kf env l
and translate_named_predicate kf env p =
......
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