File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ module Make (User : USER) = struct
112
112
113
113
and undo =
114
114
| Undo_at_most_one of lit option ref
115
- | Decided of t
115
+ | Decided
116
116
117
117
and var =
118
118
{ id : VarID .t (* A unique ID, used to test identity *)
@@ -130,7 +130,7 @@ module Make (User : USER) = struct
130
130
131
131
and lit = sign * var
132
132
133
- and t =
133
+ type t =
134
134
{ id_maker : VarID .mint
135
135
; (* Propagation *)
136
136
mutable vars : var list
@@ -232,9 +232,9 @@ module Make (User : USER) = struct
232
232
| Neg -> Pp. text " not(" ++ User. pp var.obj ++ Pp. char ')'
233
233
;;
234
234
235
- let undo undo lit =
235
+ let undo problem undo lit =
236
236
match undo with
237
- | Decided problem -> problem.set_to_false < - false
237
+ | Decided -> problem.set_to_false < - false
238
238
| Undo_at_most_one current ->
239
239
if debug
240
240
then
@@ -329,7 +329,7 @@ module Make (User : USER) = struct
329
329
while var_info.undo <> [] do
330
330
let cb = List. hd var_info.undo in
331
331
var_info.undo < - List. tl var_info.undo;
332
- undo cb lit
332
+ undo problem cb lit
333
333
done
334
334
;;
335
335
@@ -874,7 +874,7 @@ module Make (User : USER) = struct
874
874
| None ->
875
875
(* Switch to set_to_false mode (until we backtrack). *)
876
876
problem.set_to_false < - true ;
877
- undecided.undo < - Decided problem :: undecided.undo;
877
+ undecided.undo < - Decided :: undecided.undo;
878
878
(* Printf.printf "%s -> false\n" (name_lit undecided); *)
879
879
Neg , undecided)
880
880
in
You can’t perform that action at this time.
0 commit comments