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

[Eva] Update the Callstack interface for Mthread

parent c12375b8
No related branches found
No related tags found
No related merge requests found
......@@ -202,4 +202,13 @@ struct
| Global _vi -> []
| Local ls ->
List.rev_map snd ls.stack
(* This function should not be used as callstack should be initialized
with their thread instead of fixing it afterwards. To be removed as soon
as this issue is fixed. *)
let change_thread cs thread =
match cs with
| Global _ -> cs
| Local ls ->
Local { ls with thread }
end
......@@ -58,6 +58,8 @@ sig
val to_legacy : t -> Value_types.callstack
val to_kf_list : t -> Cil_types.kernel_function list
val to_stmt_list : t -> Cil_types.stmt list
val change_thread : t -> int -> t
end
[@@alert db_deprecated
"Eva_types is only provided for compatibility reason and will be removed \
......
......@@ -173,6 +173,8 @@ module Callstack: sig
(** Gives the list of call statements from the bottom to the top of the callstack (i.e. reverse order of the call stack). *)
val to_stmt_list : t -> Cil_types.stmt list
val change_thread : t -> int -> t
end
module Results: sig
......
......@@ -78,4 +78,6 @@ val to_kf_list : t -> Cil_types.kernel_function list
(** Gives the list of call statements from the bottom to the top of the callstack (i.e. reverse order of the call stack). *)
val to_stmt_list : t -> Cil_types.stmt list
val change_thread : t -> int -> t
[@@@ api_end]
......@@ -28,6 +28,7 @@ module Abstractions = Abstractions
module Active_behaviors = Active_behaviors
module Alarmset = Alarmset
module Analysis = Analysis
module Callstack = Callstack
module Cvalue_domain = Cvalue_domain
module Domain_builder = Domain_builder
module Eva_dynamic = Eva_dynamic
......
......@@ -32,6 +32,7 @@ module Abstractions = Abstractions
module Active_behaviors = Active_behaviors
module Alarmset = Alarmset
module Analysis = Analysis
module Callstack = Callstack
module Cvalue_domain = Cvalue_domain
module Domain_builder = Domain_builder
module Eva_dynamic = Eva_dynamic
......
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