Skip to content

Commit f140c0f

Browse files
committed
prepare for 0.6
1 parent 1fed495 commit f140c0f

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 0.6
2+
3+
- migrate from minisat-c 1.14 to minisat 2.2 (in C++); refactor it to build with C++11
4+
5+
- add `Lit.{apply_sign,hash,equal,compare}`
6+
- add `ensure_lit_exists`
7+
- do not call `simplify` implicitly before `solve`
8+
- add `value_at_level_0`
9+
- add `unsat_core`
10+
- add `okay`
11+
112
## 0.5
213

314
- format C and OCaml code

dune-project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
(lang dune 2.0)
2+
(name minisat)

minisat.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "0.5"
2+
version: "0.6"
33
author: "simon.cruanes.2007@m4x.org"
44
maintainer: "simon.cruanes.2007@m4x.org"
55
synopsis: "Bindings to the SAT solver Minisat, with the solver included."

src/minisat.mli

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ module Lit : sig
1515
integers. *)
1616

1717
val equal : t -> t -> bool
18-
(** @since NEXT_RELEASE *)
18+
(** @since 0.6 *)
1919

2020
val compare : t -> t -> int
21-
(** @since NEXT_RELEASE *)
21+
(** @since 0.6 *)
2222

2323
val hash : t -> int
24-
(** @since NEXT_RELEASE *)
24+
(** @since 0.6 *)
2525

2626
val make : int -> t
2727
(** [make n] creates the literal whose index is [n].
@@ -37,7 +37,7 @@ module Lit : sig
3737

3838
val apply_sign : bool -> t -> t
3939
(** [apply_sign true lit] is [lit]; [apply_sign false lit] is [neg lit]
40-
@since NEXT_RELEASE *)
40+
@since 0.6 *)
4141

4242
val sign : t -> bool
4343
(** Sign: [true] if the literal is positive, [false] for a negated literal.
@@ -58,13 +58,13 @@ val create : unit -> t
5858

5959
val okay : t -> bool
6060
(** [true] if the solver isn't known to be in an unsat state
61-
@since NEXT_RELEASE *)
61+
@since 0.6 *)
6262

6363
exception Unsat
6464

6565
val ensure_lit_exists : t -> Lit.t -> unit
6666
(** Make sure the solver decides this literal.
67-
@since NEXT_RELEASE *)
67+
@since 0.6 *)
6868

6969
val add_clause_l : t -> Lit.t list -> unit
7070
(** Add a clause (as a list of literals) to the solver state.
@@ -114,37 +114,37 @@ val value_at_level_0 : t -> Lit.t -> value
114114
there, or [V_undef].
115115
If [lit] is not assigned at level 0, this returns [V_undef] even when the
116116
literal has a value in the current model.
117-
@since NEXT_RELEASE *)
117+
@since 0.6 *)
118118

119119
val unsat_core : t -> Lit.t array
120120
(** Returns the subset of assumptions of a solver that returned "unsat"
121121
when called with [solve ~assumptions s].
122-
@since NEXT_RELEASE
122+
@since 0.6
123123
*)
124124

125125
val set_verbose : t -> int -> unit
126126
(** Verbose mode. *)
127127

128128
val interrupt : t -> unit
129129
(** Interrupt the solver, typically from another thread.
130-
@since NEXT_RELEASE *)
130+
@since 0.6 *)
131131

132132
val clear_interrupt : t -> unit
133133
(** Clear interrupt flag so that we can use the solver again.
134-
@since NEXT_RELEASE *)
134+
@since 0.6 *)
135135

136136
val n_clauses : t -> int
137-
(** @since NEXT_RELEASE *)
137+
(** @since 0.6 *)
138138

139139
val n_vars : t -> int
140-
(** @since NEXT_RELEASE *)
140+
(** @since 0.6 *)
141141

142142
val n_conflicts : t -> int
143-
(** @since NEXT_RELEASE *)
143+
(** @since 0.6 *)
144144

145145
module Debug : sig
146146
val to_dimacs_file : t -> string -> unit
147147
(** [to_dimacs_file solver path] writes the solver's set of clauses into the
148148
file at [path].
149-
@since NEXT_RELEASE *)
149+
@since 0.6 *)
150150
end

0 commit comments

Comments
 (0)