Skip to content

Commit

Permalink
finish merge
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkarmacoma committed Jan 22, 2025
1 parent b9f2985 commit 5068e59
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/halmos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,20 @@ def solve_end_to_end_callback(future: Future):
submitted_futures.append(solve_future)

elif ex.context.is_stuck():
debug(f"Potential error path (id: {idx+1})")
res, _, _ = solve(ex.path.to_smt2(args), args)
debug(f"Potential error path (id: {path_id})")
path_ctx = PathContext(
args=args,
path_id=path_id,
query=ex.path.to_smt2(args),
solving_ctx=ctx.solving_ctx,
)
res, _, _ = solve_low_level(path_ctx)
if res != unsat:
stuck.append((idx, ex, ex.context.get_stuck_reason()))
stuck.append((path_id, ex, ex.context.get_stuck_reason()))
if args.print_blocked_states:
traces[idx] = f"{hexify(ex.path)}\n{rendered_trace(ex.context)}"
ctx.traces[path_id] = (
f"{hexify(ex.path)}\n{rendered_trace(ex.context)}"
)

elif not error_output:
if args.print_success_states:
Expand Down

0 comments on commit 5068e59

Please sign in to comment.