File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1949,7 +1949,7 @@ module Make (Th : Theory.S) : SAT_ML with type th = Th.t = struct
1949
1949
about these at the SAT level. *)
1950
1950
let rec loop env =
1951
1951
let acts = theory_slice env in
1952
- env.tenv < - Th. do_optimize ~acts env.tenv;
1952
+ Th. do_optimize ~acts env.tenv;
1953
1953
if not (is_sat env) then
1954
1954
try solve env; assert false
1955
1955
with Sat -> loop env
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ module type S = sig
58
58
val get_real_env : t -> Ccx.Main .t
59
59
val get_case_split_env : t -> Ccx.Main .t
60
60
val do_optimize :
61
- acts :Shostak .Literal .t Th_util .acts -> t -> t
61
+ acts :Shostak .Literal .t Th_util .acts -> t -> unit
62
62
val do_case_split :
63
63
?acts : Shostak.Literal .t Th_util .acts ->
64
64
t -> Util .case_split_policy -> t * Expr.Set .t
@@ -677,9 +677,8 @@ module Main_Default : S = struct
677
677
match Objective.Model. next_unknown objectives with
678
678
| Some obj ->
679
679
let add_objective = acts.Th_util. acts_add_objective in
680
- optimize_obj ~for_model: false add_objective obj t;
681
- t
682
- | None -> t
680
+ optimize_obj ~for_model: false add_objective obj t
681
+ | None -> ()
683
682
684
683
let do_sat_splits acts t =
685
684
let splits, t = sat_splits t in
@@ -963,7 +962,7 @@ module Main_Empty : S = struct
963
962
964
963
let get_real_env _ = CC_X. empty
965
964
let get_case_split_env _ = CC_X. empty
966
- let do_optimize ~acts :_ env = env
965
+ let do_optimize ~acts :_ _ = ()
967
966
let do_case_split ?acts :_ env _ = env, E.Set. empty
968
967
let add_term env _ ~add_in_cs :_ = env
969
968
let compute_concrete_model ~acts :_ _env = ()
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ module type S = sig
49
49
val get_real_env : t -> Ccx.Main .t
50
50
val get_case_split_env : t -> Ccx.Main .t
51
51
val do_optimize :
52
- acts :Shostak .Literal .t Th_util .acts -> t -> t
52
+ acts :Shostak .Literal .t Th_util .acts -> t -> unit
53
53
val do_case_split :
54
54
?acts : Shostak.Literal .t Th_util .acts ->
55
55
t -> Util .case_split_policy -> t * Expr.Set .t
You can’t perform that action at this time.
0 commit comments