Skip to content

Commit

Permalink
Add names to threadid analysis domains
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 11, 2023
1 parent 151ccb1 commit b0ce369
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/analyses/threadId.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,30 @@ module Spec =
struct
include Analyses.IdentitySpec

module N = Lattice.Flat (VNI) (struct let bot_name = "unknown node" let top_name = "unknown node" end)
module N =
struct
include Lattice.Flat (VNI) (struct let bot_name = "unknown node" let top_name = "unknown node" end)
let name () = "wrapper call"
end
module TD = Thread.D
module Created =
struct
module Current =
struct
include TD
let name () = "current function"
end
module Callees =
struct
include TD
let name () = "callees"
end
include Lattice.Prod (Current) (Callees)
let name () = "created"
end

(** Uniqueness Counter * TID * (All thread creates of current thread * All thread creates of the current function and its callees) *)
module D = Lattice.Prod3 (N) (ThreadLifted) (Lattice.Prod(TD)(TD))
module D = Lattice.Prod3 (N) (ThreadLifted) (Created)
module C = D
module P = IdentityP (D)

Expand Down

0 comments on commit b0ce369

Please sign in to comment.