Skip to content

Commit 400fabe

Browse files
committed
kevm-pyk/__main__: allow --max-iterations to be 0
1 parent 15d3c7e commit 400fabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kevm-pyk/src/kevm_pyk/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ def exec_foundry_prove(
280280
_ignore_arg(kwargs, 'spec_module', f'--spec-module: {kwargs["spec_module"]}')
281281
if workers <= 0:
282282
raise ValueError(f'Must have at least one worker, found: --workers {workers}')
283-
if max_iterations is not None and max_iterations <= 0:
284-
raise ValueError(f'Must have at least one iteration, found: --max-iterations {max_iterations}')
283+
if max_iterations is not None and max_iterations < 0:
284+
raise ValueError(f'Must have a non-negative number of iterations, found: --max-iterations {max_iterations}')
285285
definition_dir = foundry_out / 'kompiled'
286286
use_directory = foundry_out / 'specs'
287287
use_directory.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)