Skip to content

Commit

Permalink
Use relift deriver more
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jun 28, 2023
1 parent 816a6f5 commit 2e2bcc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/cdomains/mHP.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ type t = {
tid: ThreadIdDomain.ThreadLifted.t;
created: ConcDomain.ThreadSet.t;
must_joined: ConcDomain.ThreadSet.t;
} [@@deriving eq, ord, hash]

let relift {tid; created; must_joined} =
{tid = ThreadIdDomain.ThreadLifted.relift tid; created = ConcDomain.ThreadSet.relift created; must_joined = ConcDomain.ThreadSet.relift must_joined}
} [@@deriving eq, ord, hash, relift]

let current (ask:Queries.ask) =
{
Expand Down
3 changes: 1 addition & 2 deletions src/framework/analyses.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ end

module Var =
struct
type t = Node.t [@@deriving eq, ord, hash]
let relift = Node.relift
type t = Node.t [@@deriving eq, ord, hash, relift]

let printXml f n =
let l = Node.location n in
Expand Down
1 change: 1 addition & 0 deletions src/ppx/printable/ppx_deriving_printable.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ struct
let name = "relift"
end

(* TODO: Map1 should also do variants *)
module ReliftDeriver = Deriver.Make (Product.Map1.Make (ReliftArg))
let relift_deriving = ReliftDeriver.register ()

Expand Down

0 comments on commit 2e2bcc3

Please sign in to comment.