Skip to content

Commit

Permalink
Use Conf in Printable.LiftConf
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 15, 2023
1 parent dceb4be commit cc39ddd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyses/mCPRegistry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ end

module DomVariantLattice (DLSpec : DomainListLatticeSpec) =
struct
include Lattice.Lift (DomVariantLattice0 (DLSpec))
include Lattice.LiftConf (struct include Printable.DefaultConf let expand1 = false end) (DomVariantLattice0 (DLSpec))
let name () = "MCP.G"
end

Expand Down
4 changes: 4 additions & 0 deletions src/common/domains/printable.ml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ end

module LiftConf (Conf: LiftConf) (Base: S) =
struct
open struct
module Base = PrefixName (struct let expand = Conf.expand1 end) (Base)
end

type t = [`Bot | `Lifted of Base.t | `Top] [@@deriving eq, ord, hash]
include Std
open Conf
Expand Down

0 comments on commit cc39ddd

Please sign in to comment.