Use bigger max depth in cli and increase depth on neg jumpi.

pull/261/head
Joran Honig 7 years ago
parent a284a4d13d
commit b7e37de4fd
  1. 2
      mythril/interfaces/cli.py
  2. 1
      mythril/laser/ethereum/svm.py

@ -62,7 +62,7 @@ def main():
options = parser.add_argument_group('options')
options.add_argument('-m', '--modules', help='Comma-separated list of security analysis modules', metavar='MODULES')
options.add_argument('--max-depth', type=int, default=12, help='Maximum recursion depth for symbolic execution')
options.add_argument('--max-depth', type=int, default=22, help='Maximum recursion depth for symbolic execution')
options.add_argument('--solc-args', help='Extra arguments for solc')
options.add_argument('--phrack', action='store_true', help='Phrack-style call graph')
options.add_argument('--enable-physics', action='store_true', help='enable graph physics simulation')

@ -905,6 +905,7 @@ class LaserEVM:
if not is_false(simplify(negated)):
new_gblState = LaserEVM.copy_global_state(gblState)
new_gblState.mstate.constraints.append(negated)
new_gblState.mstate.depth += 1
new_node = self._sym_exec(new_gblState)
self.nodes[new_node.uid] = new_node

Loading…
Cancel
Save