Skip to content

Commit

Permalink
config tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma-eth committed May 31, 2024
1 parent a0ea38d commit 7ebc213
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/halmos/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Config:
help="run tests in contracts matching the given regex. Ignored if the --contract name is given.",
global_default="",
metavar="CONTRACT_NAME_REGEX",
short="mc",
)

function: str = arg(
Expand All @@ -128,13 +129,15 @@ class Config:
)

width: int = arg(
help="set the max number of paths",
global_default=2**16,
help="set the max number of paths, 0 for unlimited",
global_default=0,
metavar="MAX_WIDTH",
)

depth: int = arg(
help="set the max path length", global_default=None, metavar="MAX_DEPTH"
help="set the maximum length in steps of a single path, 0 for unlimited",
global_default=0,
metavar="MAX_DEPTH",
)

array_lengths: str = arg(
Expand All @@ -143,6 +146,11 @@ class Config:
metavar="NAME1=LENGTH1,NAME2=LENGTH2,...",
)

# default set of selectors:
# - IERC721.onERC721Received
# - IERC1271.isValidSignature
# - IERC1155.onERC1155Received
# - IERC1155.onERC1155BatchReceived
uninterpreted_unknown_calls: str = arg(
help="use uninterpreted abstractions for unknown external calls with the given function signatures",
global_default="0x150b7a02,0x1626ba7e,0xf23a6e61,0xbc197c81",
Expand Down

0 comments on commit 7ebc213

Please sign in to comment.