Skip to content

Commit b50f6c1

Browse files
committed
refactor(sat): remove useless argument of [Decided]
Signed-off-by: Rudi Grinberg <[email protected]> <!-- ps-id: 42c78b9f-bdbf-43fd-8253-2a58050a7e03 --> Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 776d5d8 commit b50f6c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sat/sat.ml

+6-6
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module Make (User : USER) = struct
112112

113113
and undo =
114114
| Undo_at_most_one of lit option ref
115-
| Decided of t
115+
| Decided
116116

117117
and var =
118118
{ id : VarID.t (* A unique ID, used to test identity *)
@@ -130,7 +130,7 @@ module Make (User : USER) = struct
130130

131131
and lit = sign * var
132132

133-
and t =
133+
type t =
134134
{ id_maker : VarID.mint
135135
; (* Propagation *)
136136
mutable vars : var list
@@ -232,9 +232,9 @@ module Make (User : USER) = struct
232232
| Neg -> Pp.text "not(" ++ User.pp var.obj ++ Pp.char ')'
233233
;;
234234

235-
let undo undo lit =
235+
let undo problem undo lit =
236236
match undo with
237-
| Decided problem -> problem.set_to_false <- false
237+
| Decided -> problem.set_to_false <- false
238238
| Undo_at_most_one current ->
239239
if debug
240240
then
@@ -329,7 +329,7 @@ module Make (User : USER) = struct
329329
while var_info.undo <> [] do
330330
let cb = List.hd var_info.undo in
331331
var_info.undo <- List.tl var_info.undo;
332-
undo cb lit
332+
undo problem cb lit
333333
done
334334
;;
335335

@@ -874,7 +874,7 @@ module Make (User : USER) = struct
874874
| None ->
875875
(* Switch to set_to_false mode (until we backtrack). *)
876876
problem.set_to_false <- true;
877-
undecided.undo <- Decided problem :: undecided.undo;
877+
undecided.undo <- Decided :: undecided.undo;
878878
(* Printf.printf "%s -> false\n" (name_lit undecided); *)
879879
Neg, undecided)
880880
in

0 commit comments

Comments
 (0)