Skip to content

Commit b71518c

Browse files
committed
Refactor Printable.LiftingNames
1 parent 3d5c65d commit b71518c

26 files changed

+101
-79
lines changed

src/analyses/base.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct
5454

5555
module G =
5656
struct
57-
include Lattice.Lift2Conf (struct let expand1 = false let expand2 = false end) (Priv.G) (VD) (Printable.DefaultNames)
57+
include Lattice.Lift2Conf (struct include Printable.DefaultConf let expand1 = false let expand2 = false end) (Priv.G) (VD)
5858

5959
let priv = function
6060
| `Bot -> Priv.G.bot ()

src/analyses/basePriv.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ struct
799799
struct
800800
(* weak: G -> (2^M -> WeakRange) *)
801801
(* sync: M -> (2^M -> SyncRange) *)
802-
include Lattice.Lift2Conf (struct let expand1 = false let expand2 = false end) (GWeak) (GSync) (Printable.DefaultNames)
802+
include Lattice.Lift2Conf (struct include Printable.DefaultConf let expand1 = false let expand2 = false end) (GWeak) (GSync)
803803

804804
let weak = function
805805
| `Bot -> GWeak.bot ()

src/analyses/commonPriv.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ struct
198198

199199
module G =
200200
struct
201-
include Lattice.Lift2Conf (struct let expand1 = false let expand2 = false end) (GMutex) (GThread) (Printable.DefaultNames)
201+
include Lattice.Lift2Conf (struct include Printable.DefaultConf let expand1 = false let expand2 = false end) (GMutex) (GThread)
202202

203203
let mutex = function
204204
| `Bot -> GMutex.bot ()

src/analyses/loopTermination.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let check_bounded ctx varinfo =
1919
(** We want to record termination information of loops and use the loop
2020
* statements for that. We use this lifting because we need to have a
2121
* lattice. *)
22-
module Statements = Lattice.Flat (CilType.Stmt) (Printable.DefaultNames)
22+
module Statements = Lattice.Flat (Printable.DefaultConf) (CilType.Stmt)
2323

2424
(** The termination analysis considering loops and gotos *)
2525
module Spec : Analyses.MCPSpec =

src/analyses/mCPRegistry.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ end
426426

427427
module DomVariantLattice (DLSpec : DomainListLatticeSpec) =
428428
struct
429-
include Lattice.Lift (DomVariantLattice0 (DLSpec)) (Printable.DefaultNames)
429+
include Lattice.Lift (Printable.DefaultConf) (DomVariantLattice0 (DLSpec))
430430
let name () = "MCP.G"
431431
end
432432

src/analyses/mutexAnalysis.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ struct
132132

133133
module G =
134134
struct
135-
include Lattice.Lift2Conf (struct let expand1 = false let expand2 = false end) (GProtecting) (GProtected) (Printable.DefaultNames)
135+
include Lattice.Lift2Conf (struct include Printable.DefaultConf let expand1 = false let expand2 = false end) (GProtecting) (GProtected)
136136

137137
let protecting = function
138138
| `Bot -> GProtecting.bot ()

src/analyses/raceAnalysis.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ struct
194194

195195
module G =
196196
struct
197-
include Lattice.Lift2Conf (struct let expand1 = false let expand2 = false end) (OffsetTrie) (MemoSet) (Printable.DefaultNames)
197+
include Lattice.Lift2Conf (struct include Printable.DefaultConf let expand1 = false let expand2 = false end) (OffsetTrie) (MemoSet)
198198

199199
let access = function
200200
| `Bot -> OffsetTrie.bot ()

src/analyses/threadId.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct
3131

3232
module N =
3333
struct
34-
include Lattice.Flat (VNI) (struct let bot_name = "unknown node" let top_name = "unknown node" end)
34+
include Lattice.Flat (struct include Printable.DefaultConf let bot_name = "unknown node" let top_name = "unknown node" end) (VNI)
3535
let name () = "wrapper call"
3636
end
3737
module TD = Thread.D

src/analyses/tutorials/signs.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636
* We then lift the above operations to the lattice. *)
3737
module SL =
3838
struct
39-
include Lattice.Flat (Signs) (Printable.DefaultNames)
39+
include Lattice.Flat (Printable.DefaultConf) (Signs)
4040
let of_int i = `Lifted (Signs.of_int i)
4141

4242
let lt x y = match x, y with

src/analyses/wrapperFunctionAnalysis0.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ module ThreadCreateUniqueCount =
3636
MakeUniqueCount (val unique_count_args_from_config "ana.thread.unique_thread_id_count")
3737

3838
(* since the query also references NodeFlatLattice, it also needs to reside here *)
39-
module NodeFlatLattice = Lattice.Flat (Node) (struct
39+
module NodeFlatLattice = Lattice.Flat (struct
40+
include Printable.DefaultConf
4041
let top_name = "Unknown node"
4142
let bot_name = "Unreachable node"
42-
end)
43+
end) (Node)

0 commit comments

Comments
 (0)