Skip to content

Commit b082ed7

Browse files
committed
kevm-pyk/__main__: write cfg every iteration
1 parent 4a6c910 commit b082ed7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kevm-pyk/src/kevm_pyk/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def prove_it(id_and_cfg: Tuple[str, Tuple[KCFG, Path]]) -> bool:
367367
iterations = 0
368368

369369
while cfg.frontier:
370+
_write_cfg(cfg, cfgpath)
370371
if max_iterations is not None and max_iterations <= iterations:
371372
break
372373
iterations += 1
@@ -430,7 +431,7 @@ def prove_it(id_and_cfg: Tuple[str, Tuple[KCFG, Path]]) -> bool:
430431
branch_node = cfg.get_or_create_node(bs)
431432
cfg.create_edge(next_node.id, branch_node.id, mlAnd(bc), 1)
432433

433-
_write_cfg(cfg, cfgpath)
434+
_write_cfg(cfg, cfgpath)
434435

435436
failure_nodes = cfg.frontier + cfg.stuck
436437
if len(failure_nodes) == 0:

0 commit comments

Comments
 (0)