Skip to content

Commit

Permalink
clear live display before starting new instance
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Jan 7, 2025
1 parent 3af4e53 commit dfa27cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/halmos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def run(

timer = NamedTimer("time")
timer.create_subtimer("paths")
sevm.status.start()
sevm.status_start()

exs = sevm.run(
Exec(
Expand Down
6 changes: 6 additions & 0 deletions src/halmos/sevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
TypeVar,
)

import rich
import xxhash
from eth_hash.auto import keccak
from rich.status import Status
Expand Down Expand Up @@ -1718,6 +1719,11 @@ def __init__(self, options: HalmosConfig) -> None:
is_generic = self.options.storage_layout == "generic"
self.storage_model = GenericStorage if is_generic else SolidityStorage

def status_start(self) -> None:
# clear any remaining live display before starting a new instance
rich.get_console().clear_live()
self.status.start()

def div_xy_y(self, w1: Word, w2: Word) -> Word:
# return the number of bits required to represent the given value. default = 256
def bitsize(w: Word) -> int:
Expand Down

0 comments on commit dfa27cf

Please sign in to comment.