This commit is contained in:
Simon Cruanes 2016-01-29 14:34:45 +01:00
parent 383afcf19f
commit e8162fdaf4
3 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ module Fsat = struct
let apply_sign b i = if b then i else neg i
let set_sign b i = if b then abs i else neg (abs i)
let hash (a:int) = Hashtbl.hash a
let hash (a:int) = a land max_int
let equal (a:int) b = a=b
let compare (a:int) b = Pervasives.compare a b

View file

@ -17,7 +17,7 @@ module type S = sig
(** Formula constants. A valid formula should never be physically equal to [dummy] *)
val fresh : unit -> t
(** Returns a fresh litteral, distinct from any other literal (used in cnf conversion) *)
(** Returns a fresh literal, distinct from any other literal (used in cnf conversion) *)
val neg : t -> t
(** Formula negation *)

View file

@ -27,7 +27,7 @@ module type S = sig
get : int -> formula;
push : formula list -> proof -> unit;
}
(** The type for a slice of litterals to assume/propagate in the theory.
(** The type for a slice of literals to assume/propagate in the theory.
[get] operations should only be used for integers [ start <= i < start + length].
[push clause proof] allows to add a tautological clause to the sat solver. *)