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

[Eva] api: Callsites are always retrieved by caller

parent 242f8271
No related branches found
No related tags found
No related merge requests found
...@@ -113,8 +113,7 @@ module Results: sig ...@@ -113,8 +113,7 @@ module Results: sig
(* Callers / Callees / Callsites *) (* Callers / Callees / Callsites *)
val callers : Cil_types.kernel_function -> Cil_types.kernel_function list val callers : Cil_types.kernel_function -> Cil_types.kernel_function list
val callsites : Cil_types.kernel_function -> Cil_types.stmt list val callsites : Cil_types.kernel_function ->
val callsites_per_caller : Cil_types.kernel_function ->
(Cil_types.kernel_function * Cil_types.stmt list) list (Cil_types.kernel_function * Cil_types.stmt list) list
(* Returns the kernel functions called in the given statement. (* Returns the kernel functions called in the given statement.
......
...@@ -742,14 +742,6 @@ let callers kf = ...@@ -742,14 +742,6 @@ let callers kf =
let uniq_sites = List.sort_uniq Cil_datatype.Stmt.compare let uniq_sites = List.sort_uniq Cil_datatype.Stmt.compare
let callsites kf = let callsites kf =
let f = function
| [] | (_,Cil_types.Kglobal) :: _ -> None
| (_,Kstmt stmt) :: _-> Some stmt
in
at_start_of kf |> callstacks |>
List.filter_map f |> uniq_sites
let callsites_per_caller kf =
let module Map = Kernel_function.Map in let module Map = Kernel_function.Map in
let f acc = function let f acc = function
| [] | (_,Cil_types.Kglobal) :: _ -> acc | [] | (_,Cil_types.Kglobal) :: _ -> acc
......
...@@ -116,8 +116,7 @@ val is_reachable : Cil_types.stmt -> bool (* reachable by the analysis, not by t ...@@ -116,8 +116,7 @@ val is_reachable : Cil_types.stmt -> bool (* reachable by the analysis, not by t
(* Callers / Callees / Callsites *) (* Callers / Callees / Callsites *)
val callers : Cil_types.kernel_function -> Cil_types.kernel_function list val callers : Cil_types.kernel_function -> Cil_types.kernel_function list
val callsites : Cil_types.kernel_function -> Cil_types.stmt list val callsites : Cil_types.kernel_function ->
val callsites_per_caller : Cil_types.kernel_function ->
(Cil_types.kernel_function * Cil_types.stmt list) list (Cil_types.kernel_function * Cil_types.stmt list) list
(* Returns the kernel functions called in the given statement. (* Returns the kernel functions called in the given statement.
......
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