Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Apr 5, 2024
1 parent cf3b8a2 commit 9570638
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/bin/common/solving_loop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1458,9 +1458,12 @@ let main () =
cmd_on_modes st [Assert; Sat; Unsat] "goal";
let st = pop_if_post_query st in
let st = push_before_query st in
let st = handle_query st id loc attrs contents in
let st, raised_timeout =
try handle_query st id loc attrs contents, false with
| Util.Timeout -> st, true
in
let () =
if has_timeout st then
if raised_timeout || has_timeout st then
if Options.get_timelimit_per_goal ()
then begin
Options.Time.start ();
Expand All @@ -1475,9 +1478,12 @@ let main () =
cmd_on_modes st [Assert; Unsat; Sat] "check-sat";
let st = pop_if_post_query st in
let st = push_before_query st in
let st = handle_solve st id contents loc attrs in
let st, raised_timeout =
try handle_solve st id contents loc attrs, false with
| Util.Timeout -> st, true
in
let () =
if has_timeout st then
if raised_timeout || has_timeout st then
if Options.get_timelimit_per_goal ()
then begin
Options.Time.start ();
Expand Down

0 comments on commit 9570638

Please sign in to comment.