Cleaned up map module in formulas

Removed a warning in explanation.ml
This commit is contained in:
Guillaume Bury 2014-10-31 17:15:29 +01:00
parent 854c7e3f6e
commit 722cdc7d6d
4 changed files with 3 additions and 18 deletions

View file

@ -28,7 +28,7 @@ module Make(Stypes : Solver_types.S) = struct
| Atom _, Fresh _ -> -1
| Fresh _, Atom _ -> 1
| Fresh i1, Fresh i2 -> i1 - i2
| Atom a, Atom b -> a.aid - b.aid
| Atom a, Atom b -> Stypes.(a.aid - b.aid)
end)
type t = S.t

View file

@ -34,8 +34,5 @@ module type S = sig
val add_label : Hstring.t -> t -> unit
val print : Format.formatter -> t -> unit
module Map : Map.S with type key = t
end

View file

@ -951,3 +951,4 @@ module Make (F : Formula_intf.S)
if negated then not truth else truth
end

View file

@ -83,7 +83,7 @@ module Make (F : Formula_intf.S) = struct
learnt = false;
cpremise = [] }
module MA = F.Map
module MA = Map.Make(F)
type varmap = var MA.t
let ale = Hstring.make "<="
@ -158,19 +158,6 @@ module Make (F : Formula_intf.S) = struct
let cpt = ref 0 in
fun () -> incr cpt; "C" ^ (string_of_int !cpt)
module Clause = struct
let size c = Vec.size c.atoms
let pop c = Vec.pop c.atoms
let shrink c i = Vec.shrink c.atoms i
let last c = Vec.last c.atoms
let get c i = Vec.get c.atoms i
let set c i v = Vec.set c.atoms i v
end
let to_float i = float_of_int i
let to_int f = int_of_float f