Skip to content
Snippets Groups Projects
Commit faba19ba authored by Valentin Perrelle's avatar Valentin Perrelle Committed by David Bühler
Browse files

[Security_slicing] Use the new Eva API

parent 3b0eca16
No related branches found
No related tags found
No related merge requests found
...@@ -398,7 +398,7 @@ module Component = struct ...@@ -398,7 +398,7 @@ module Component = struct
todolist todolist
callsites) callsites)
todolist todolist
(!Db.Value.callers kf) (Eva.Results.callsites kf)
let related_nodes_of_nodes kind result nodes = let related_nodes_of_nodes kind result nodes =
let initial_nodes = let initial_nodes =
...@@ -460,7 +460,7 @@ module Component = struct ...@@ -460,7 +460,7 @@ module Component = struct
in in
List.fold_left do_call todolist callsites List.fold_left do_call todolist callsites
in in
List.fold_left do_caller todolist (!Db.Value.callers kf) List.fold_left do_caller todolist (Eva.Results.callsites kf)
| _ -> | _ ->
todolist todolist
in in
...@@ -502,11 +502,7 @@ module Component = struct ...@@ -502,11 +502,7 @@ module Component = struct
todolist todolist
else else
let stmt = Key.call_from_id id in let stmt = Key.call_from_id id in
let called_kfs = let called_kfs = Eva.Results.callee stmt in
Kernel_function.Hptset.elements
(try Db.Value.call_to_kernel_function stmt
with Db.Value.Not_a_call -> assert false)
in
let todolist = let todolist =
List.fold_left List.fold_left
(fun todolist called_kf -> (fun todolist called_kf ->
...@@ -629,7 +625,7 @@ module Component = struct ...@@ -629,7 +625,7 @@ module Component = struct
~level:3 "computing initial nodes for %d" stmt.sid; ~level:3 "computing initial nodes for %d" stmt.sid;
let pdg = !Db.Pdg.get kf in let pdg = !Db.Pdg.get kf in
let nodes = let nodes =
if Db.Value.is_reachable_stmt stmt then if Eva.Results.is_reachable stmt then
try !Db.Pdg.find_simple_stmt_nodes pdg stmt try !Db.Pdg.find_simple_stmt_nodes pdg stmt
with Not_found -> assert false with Not_found -> assert false
else begin else begin
......
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