Skip to content
Snippets Groups Projects
Commit 328eda82 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[server] iterate on computed ast

parent af77cb7c
No related branches found
No related tags found
No related merge requests found
...@@ -370,18 +370,19 @@ struct ...@@ -370,18 +370,19 @@ struct
let model = States.model () let model = States.model ()
let iter_declaration f = let iter_declaration f =
let marked = Declaration.Hashtbl.create 0 in if Ast.is_computed () then
Cil.iterGlobals let marked = Declaration.Hashtbl.create 0 in
(Ast.get()) Cil.iterGlobals
(fun g -> (Ast.get())
match declaration_of_global g with (fun g ->
| None -> () match declaration_of_global g with
| Some d -> | None -> ()
if not @@ Declaration.Hashtbl.mem marked d then | Some d ->
begin if not @@ Declaration.Hashtbl.mem marked d then
Declaration.Hashtbl.add marked d () ; begin
f (d,Decl.index d) Declaration.Hashtbl.add marked d () ;
end) f (d,Decl.index d)
end)
let () = let () =
States.column States.column
......
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