Skip to content
Snippets Groups Projects
Commit 1bafbc1a authored by David Bühler's avatar David Bühler Committed by Virgile Prevosto
Browse files

[kernel] Logic_utils: optimizes the [complete_types] visitor.

Skips the visit of C codes.
parent 23c80697
No related branches found
No related tags found
No related merge requests found
...@@ -2349,6 +2349,15 @@ class complete_types = ...@@ -2349,6 +2349,15 @@ class complete_types =
not (isLogicType Cil.isCompleteType t.term_type) -> not (isLogicType Cil.isCompleteType t.term_type) ->
ChangeDoChildrenPost({ t with term_type = v.lv_type }, fun x -> x) ChangeDoChildrenPost({ t with term_type = v.lv_type }, fun x -> x)
| _ -> DoChildrenPost self#insert_cast_term | _ -> DoChildrenPost self#insert_cast_term
method! vinst = function
| Code_annot _ -> Cil.DoChildren
| _ -> Cil.SkipChildren
method! vexpr _ = Cil.SkipChildren
method! vlval _ = Cil.SkipChildren
method! vtype _ = Cil.SkipChildren
method! vinit _ _ _ = Cil.SkipChildren
end end
let complete_types f = Cil.visitCilFile (new complete_types) f let complete_types f = Cil.visitCilFile (new complete_types) f
......
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