Skip to content
Snippets Groups Projects
Commit 108c8881 authored by David Bühler's avatar David Bühler
Browse files

[callgraph] Uses Eva.Results instead of Db.Value.

parent 00b2b916
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ let syntactic_compute g = ...@@ -205,7 +205,7 @@ let syntactic_compute g =
let semantic_compute g = let semantic_compute g =
Globals.Functions.iter Globals.Functions.iter
(fun kf -> (fun kf ->
let callers = !Db.Value.callers kf in let callers = Eva.Results.callsites kf in
let must_add = let must_add =
callers <> [] (* the function is called *) callers <> [] (* the function is called *)
|| is_entry_point kf || is_entry_point kf
......
...@@ -42,23 +42,27 @@ ...@@ -42,23 +42,27 @@
[eva] Recording results for main [eva] Recording results for main
[eva] done for function main [eva] done for function main
[eva] ====== VALUES COMPUTED ====== [eva] ====== VALUES COMPUTED ======
[from] Computing for function main
[from] Done for function main
[from] Computing for function main2 [from] Computing for function main2
[from] Done for function main2 [from] Done for function main2
[from] Computing for function test [from] Computing for function test
[from] Done for function test [from] Done for function test
[from] Computing for function main
[from] Done for function main
[from] ====== DEPENDENCIES COMPUTED ====== [from] ====== DEPENDENCIES COMPUTED ======
These dependencies hold at termination for the executions that terminate: These dependencies hold at termination for the executions that terminate:
[from] Function main:
FROMTOP
\result FROM ANYTHING(origin:Unknown)
[from] Function main2: [from] Function main2:
FROMTOP FROMTOP
[from] Function test: [from] Function test:
FROMTOP FROMTOP
\result FROM ANYTHING(origin:Unknown) \result FROM ANYTHING(origin:Unknown)
[from] Function main:
FROMTOP
\result FROM ANYTHING(origin:Unknown)
[from] ====== END OF DEPENDENCIES ====== [from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function main:
ANYTHING(origin:Unknown)
[inout] Inputs for function main:
ANYTHING(origin:Unknown)
[inout] Out (internal) for function main2: [inout] Out (internal) for function main2:
\nothing \nothing
[inout] Inputs for function main2: [inout] Inputs for function main2:
...@@ -67,7 +71,3 @@ ...@@ -67,7 +71,3 @@
tmp; a tmp; a
[inout] Inputs for function test: [inout] Inputs for function test:
a a
[inout] Out (internal) for function main:
ANYTHING(origin:Unknown)
[inout] Inputs for function main:
ANYTHING(origin:Unknown)
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