Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/lib/reasoners/fun_sat.ml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module Make (Th : Theory.S) = struct
guards : guards;
add_inst: E.t -> bool;
unit_facts_cache : (E.gformula * Ex.t) ME.t ref;
last_saved_model : Models.t Lazy.t option ref;
last_saved_model : Models.t option ref;
unknown_reason : Sat_solver_sig.unknown_reason option;

declare_top : Id.typed list ref;
Expand Down Expand Up @@ -1838,8 +1838,7 @@ module Make (Th : Theory.S) = struct
{env with tbox = Th.assume_th_elt env.tbox th_elt dep}

(** returns the latest model stored in the env if any *)
let get_model env =
Option.map Lazy.force !(env.last_saved_model)
let get_model env = !(env.last_saved_model)

let get_unknown_reason env = env.unknown_reason

Expand Down
2 changes: 1 addition & 1 deletion src/lib/reasoners/satml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module type SAT_ML = sig
val compute_concrete_model :
declared_ids:Id.typed list ->
t ->
Models.t Lazy.t * Objective.Model.t
Models.t * Objective.Model.t

val set_new_proxies : t -> FF.proxies -> unit

Expand Down
2 changes: 1 addition & 1 deletion src/lib/reasoners/satml.mli
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module type SAT_ML = sig
val compute_concrete_model :
declared_ids:Id.typed list ->
t ->
Models.t Lazy.t * Objective.Model.t
Models.t * Objective.Model.t

val set_new_proxies : t -> Flat_Formula.proxies -> unit

Expand Down
Loading