refactor: move Backtrackable_ref into its own sub-library

This commit is contained in:
Simon Cruanes 2019-02-06 22:01:33 -06:00 committed by Guillaume Bury
parent 8d012d2f49
commit 1ccc292d79
7 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,2 @@
module Ref = Backtrackable_ref

11
src/backtrack/dune Normal file
View file

@ -0,0 +1,11 @@
(library
(name msat_backtrack)
(public_name msat.backtrack)
(libraries msat)
(synopsis "backtrackable data structures for msat")
(flags :standard -warn-error -3 -w +a-4-42-44-48-50-58-32-60@8
-color always -safe-string -open Msat)
(ocamlopt_flags :standard -O3 -bin-annot
-unbox-closures -unbox-closures-factor 20)
)

View file

@ -68,8 +68,6 @@ module Make_mcsat = Solver.Make_mcsat
module Make_cdcl_t = Solver.Make_cdcl_t
module Make_pure_sat = Solver.Make_pure_sat
module Backtrackable_ref = Backtrackable_ref
(**/**)
module Vec = Vec
module Log = Log

View file

@ -2,7 +2,7 @@
(executable
(name sudoku_solve)
(modes native)
(libraries msat sequence containers)
(libraries msat msat.backtrack sequence containers)
(flags :standard -warn-error -a -w +a-4-42-44-48-50-58-32-60@8 -color always -safe-string)
(ocamlopt_flags :standard -O3 -bin-annot
-unbox-closures -unbox-closures-factor 20)

View file

@ -125,7 +125,7 @@ end = struct
a
end
module B_ref = Msat.Backtrackable_ref
module B_ref = Msat_backtrack.Ref
module Solver : sig
type t