Skip to content

Commit

Permalink
Update options: improve help for view/show-kcfg, refactor rpc_args (
Browse files Browse the repository at this point in the history
#2161)

* Move `use-booster`, `kore-rpc-command` to rpc args

* Set Version: 1.0.341

* Update help for `view-kcfg`, `show-kcfg`

* Set Version: 1.0.342

* Set Version: 1.0.351

* Set Version: 1.0.354

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
palinatolmach and devops authored Nov 11, 2023
1 parent a7d6fd7 commit 0b6d468
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion kevm-pyk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kevm-pyk"
version = "1.0.353"
version = "1.0.354"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from typing import Final


VERSION: Final = '1.0.353'
VERSION: Final = '1.0.354'
11 changes: 2 additions & 9 deletions kevm-pyk/src/kevm_pyk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,6 @@ def parse(s: str) -> list[T]:
action='store_true',
help='Reinitialize CFGs even if they already exist.',
)
prove_args.add_argument(
'--use-booster',
dest='use_booster',
default=False,
action='store_true',
help="Use the booster RPC server instead of kore-rpc. Requires calling kompile with '--target haskell-booster' flag",
)

prune_proof_args = command_parser.add_parser(
'prune-proof',
Expand Down Expand Up @@ -742,13 +735,13 @@ def parse(s: str) -> list[T]:

command_parser.add_parser(
'view-kcfg',
help='Display tree view of CFG',
help='Explore a given proof in the KCFG visualizer.',
parents=[kevm_cli_args.logging_args, kevm_cli_args.k_args, kevm_cli_args.spec_args],
)

command_parser.add_parser(
'show-kcfg',
help='Display tree show of CFG',
help='Print the CFG for a given proof.',
parents=[
kevm_cli_args.logging_args,
kevm_cli_args.k_args,
Expand Down
22 changes: 15 additions & 7 deletions kevm-pyk/src/kevm_pyk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,25 @@ def rpc_args(self) -> ArgumentParser:
args = ArgumentParser(add_help=False)
args.add_argument(
'--trace-rewrites',
dest='trace_rewrites',
default=False,
action='store_true',
help='Log traces of all simplification and rewrite rule applications.',
)
args.add_argument(
'--kore-rpc-command',
dest='kore_rpc_command',
type=str,
default=None,
help='Custom command to start RPC server',
)
args.add_argument(
'--use-booster',
dest='use_booster',
default=False,
action='store_true',
help="Use the booster RPC server instead of kore-rpc. Requires calling kompile with '--target haskell-booster' flag",
)
return args

@cached_property
Expand Down Expand Up @@ -203,13 +218,6 @@ def explore_args(self) -> ArgumentParser:
type=int,
help='Number of times to expand the next pending node in the CFG.',
)
args.add_argument(
'--kore-rpc-command',
dest='kore_rpc_command',
type=str,
default=None,
help='Custom command to start RPC server',
)
args.add_argument(
'--port',
dest='port',
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.353
1.0.354

0 comments on commit 0b6d468

Please sign in to comment.