Skip to content

Commit

Permalink
debug loop bound info
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Sep 21, 2024
1 parent ebf1e91 commit 0cc631a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/halmos/sevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,6 +2364,12 @@ def jumpi(
follow_false = visited[False] < self.options.loop
if not (follow_true and follow_false):
self.logs.bounded_loops.append(jid)
if self.options.debug:
debug(f"\nloop id: {jid}")
debug(f"loop condition: {cond}")
debug(f"calldata: {ex.calldata()}")
debug("path condition:")
debug(ex.path)
else:
# for constant-bounded loops
follow_true = potential_true
Expand Down

0 comments on commit 0cc631a

Please sign in to comment.