Skip to content

Commit

Permalink
Replace Quick mode with Thorough mode
Browse files Browse the repository at this point in the history
Replaces the `quick_mode` flag with `thorough_mode` and inverts the logic. Closes #2424.
  • Loading branch information
Eric Hennenfent committed May 26, 2021
1 parent c128872 commit 9870979
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions manticore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ def positive(value):
)

eth_flags.add_argument(
"--quick-mode",
"--thorough-mode",
action="store_true",
help="Configure Manticore for quick exploration. Disable gas, generate testcase only for alive states, "
"do not explore constant functions. Disable all detectors.",
help="Configure Manticore for more exhaustive exploration. Evaluate gas, generate testcases for dead states, "
"explore constant functions, and run a small suite of detectors.",
)

config_flags = parser.add_argument_group("Constants")
Expand Down
2 changes: 1 addition & 1 deletion manticore/ethereum/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def choose_detectors(args):
def ethereum_main(args, logger):
m = ManticoreEVM(workspace_url=args.workspace)

if args.quick_mode:
if not args.thorough_mode:
args.avoid_constant = True
args.exclude_all = True
args.only_alive_testcases = True
Expand Down
6 changes: 3 additions & 3 deletions manticore/ethereum/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ def main():
eth_flags = parser.add_argument_group("Ethereum flags")

eth_flags.add_argument(
"--quick-mode",
"--thorough-mode",
action="store_true",
help="Configure Manticore for quick exploration. Disable gas, generate testcase only for alive states, "
"do not explore constant functions. Disable all detectors.",
help="Configure Manticore for more exhaustive exploration. Evaluate gas, generate testcases for dead states, "
"explore constant functions, and run a small suite of detectors.",
)
eth_flags.add_argument(
"--contract_name", type=str, help="The target contract name defined in the source code"
Expand Down

0 comments on commit 9870979

Please sign in to comment.