Skip to content

Commit dfa27cf

Browse files
committed
clear live display before starting new instance
1 parent 3af4e53 commit dfa27cf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/halmos/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def run(
606606

607607
timer = NamedTimer("time")
608608
timer.create_subtimer("paths")
609-
sevm.status.start()
609+
sevm.status_start()
610610

611611
exs = sevm.run(
612612
Exec(

src/halmos/sevm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
TypeVar,
1616
)
1717

18+
import rich
1819
import xxhash
1920
from eth_hash.auto import keccak
2021
from rich.status import Status
@@ -1718,6 +1719,11 @@ def __init__(self, options: HalmosConfig) -> None:
17181719
is_generic = self.options.storage_layout == "generic"
17191720
self.storage_model = GenericStorage if is_generic else SolidityStorage
17201721

1722+
def status_start(self) -> None:
1723+
# clear any remaining live display before starting a new instance
1724+
rich.get_console().clear_live()
1725+
self.status.start()
1726+
17211727
def div_xy_y(self, w1: Word, w2: Word) -> Word:
17221728
# return the number of bits required to represent the given value. default = 256
17231729
def bitsize(w: Word) -> int:

0 commit comments

Comments
 (0)