Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display "timeout" result even if timeout occurs in model generation #722

Merged
merged 1 commit into from
Jul 10, 2023
Merged
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
16 changes: 5 additions & 11 deletions src/lib/frontend/frontend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -313,19 +313,13 @@ module Make(SAT : Sat_solver_sig.S) : S with type sat_env = SAT.t = struct
(Some loc) (Some time) (Some steps) (get_goal_name d);

| Timeout (Some d) ->
if Options.get_interpretation () then
Printer.print_wrn "Timeout"
else
let loc = d.st_loc in
Printer.print_status_timeout ~validity_mode
(Some loc) (Some time) (Some steps) (get_goal_name d);
let loc = d.st_loc in
Printer.print_status_timeout ~validity_mode
(Some loc) (Some time) (Some steps) (get_goal_name d);

| Timeout None ->
if Options.get_interpretation () then
Printer.print_wrn "Timeout"
else
Printer.print_status_timeout ~validity_mode
None (Some time) (Some steps) None;
Printer.print_status_timeout ~validity_mode
None (Some time) (Some steps) None;

| Preprocess ->
Printer.print_status_preprocess ~validity_mode
Expand Down
8 changes: 4 additions & 4 deletions src/lib/reasoners/fun_sat.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1164,14 +1164,14 @@ module Make (Th : Theory.S) : Sat_solver_sig.S = struct
begin
match !latest_saved_env with
| None ->
Printer.print_fmt (Options.Output.get_fmt_std ())
"@[<v 0>[FunSat]@, \
Printer.print_wrn
"[FunSat]@, @[<v 0>\
It seems that no model has been computed so far.@,\
You may need to change your model generation strategy@,\
or to increase your timeout.@]"
| Some env ->
Printer.print_fmt (Options.Output.get_fmt_std ())
"@[<v 0>[FunSat]@, \
Printer.print_wrn
"[FunSat]@, @[<v 0>\
A model has been computed. However, I failed \
while computing it so may be incorrect.@]";
let prop_model = extract_prop_model ~complete_model:true env in
Expand Down
Loading