-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CLI skeleton * Add further command line options * Set Version: 0.1.42 --------- Co-authored-by: devops <[email protected]>
- Loading branch information
1 parent
08fdbbf
commit f0a6183
Showing
4 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "kmxwasm" | ||
version = "0.1.41" | ||
version = "0.1.42" | ||
description = "Symbolic execution for the MultiversX blockchain with the Wasm semantics, using pyk." | ||
authors = [ | ||
"Runtime Verification, Inc. <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
from typing import TYPE_CHECKING | ||
|
||
from pyk.utils import BugReport | ||
|
||
from ..property import RunClaim | ||
|
||
if TYPE_CHECKING: | ||
from .utils import KasmerxProject | ||
|
||
|
||
def kasmerx_verify( | ||
project: KasmerxProject, | ||
test: str, | ||
*, | ||
step: int | None = None, | ||
iterations: int | None = None, | ||
restart: bool | None = None, | ||
booster: bool | None = None, | ||
bug_report: BugReport | None = None, | ||
) -> None: | ||
claim_file = project.test_dir / f'generated_claims/{test}-spec.json' | ||
|
||
if not claim_file.exists(): | ||
raise ValueError(f'Claim file does not exist: {claim_file}') | ||
|
||
# Default values | ||
step = 10000 if step is None else step | ||
iterations = 10000 if iterations is None else iterations | ||
restart = bool(restart) | ||
booster = bool(booster) | ||
|
||
action = RunClaim( | ||
claim_path=claim_file, | ||
is_k=False, | ||
restart=restart, | ||
booster=booster, | ||
remove=[], | ||
run_node_id=None, | ||
depth=step, | ||
iterations=iterations, | ||
kcfg_path=Path(f'.property/{test}'), | ||
bug_report=bug_report, | ||
) | ||
action.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.41 | ||
0.1.42 |