mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-08 20:25:31 -05:00
details
This commit is contained in:
parent
383afcf19f
commit
e8162fdaf4
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 *)
|
||||
|
|
|
|||
|
|
@ -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. *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue