Add generativity of Dimacs functor

Since the dimacs functor has an internal state (relating to the output
in iCNF format), it is desirable to have a generative functor, inc as
esomeone wants to output select parts of a problem to two distinct iCNF
files).
This commit is contained in:
Guillaume Bury 2017-03-27 16:32:25 +02:00
parent d0d47fe73f
commit 154cb373fc
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ module type S = sig
end
module Make(St : Solver_types.S) = struct
module Make(St : Solver_types.S)(Dummy: sig end) = struct
(* Dimacs & iCNF export *)
let export_vec name fmt vec =

View file

@ -40,6 +40,6 @@ module type S = sig
end
module Make(St: Solver_types.S) : S with type clause := St.clause
module Make(St: Solver_types.S)(Dummy: sig end) : S with type clause := St.clause
(** Functor to create a module for exporting probems to the dimacs (& iCNF) formats. *)

View file

@ -120,7 +120,7 @@ module Make
let new_atom = S.new_atom
(* Dimacs & iCNF export *)
module D = Dimacs.Make(St)
module D = Dimacs.Make(St)(struct end)
let export_dimacs fmt () =
let hyps = S.hyps () in