Skip to content

Commit

Permalink
fix: check infeasible errors
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Jan 21, 2025
1 parent edeb7c6 commit 11e84e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/halmos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,11 @@ def future_callback(future_model):
future_models.append(future_model)

elif ex.context.is_stuck():
stuck.append((idx, ex, ex.context.get_stuck_reason()))
if args.print_blocked_states:
traces[idx] = f"{hexify(ex.path)}\n{rendered_trace(ex.context)}"
res, _, _ = solve(ex.path.to_smt2(args), args)
if res != unsat:
stuck.append((idx, ex, ex.context.get_stuck_reason()))
if args.print_blocked_states:
traces[idx] = f"{hexify(ex.path)}\n{rendered_trace(ex.context)}"

elif not error_output:
if args.print_success_states:
Expand Down

0 comments on commit 11e84e4

Please sign in to comment.