|
|
@ -1,23 +1,17 @@ |
|
|
|
from copy import copy |
|
|
|
|
|
|
|
from ethereum import utils |
|
|
|
from ethereum import utils |
|
|
|
from random import randint |
|
|
|
from random import randint |
|
|
|
from mythril.laser.ethereum.state.global_state import GlobalState |
|
|
|
|
|
|
|
from mythril.laser.ethereum.state.constraints import Constraints |
|
|
|
from mythril.laser.ethereum.state.constraints import Constraints |
|
|
|
from mythril.laser.smt import ( |
|
|
|
from mythril.laser.smt import ( |
|
|
|
BitVec, |
|
|
|
BitVec, |
|
|
|
Bool, |
|
|
|
|
|
|
|
Expression, |
|
|
|
|
|
|
|
Function, |
|
|
|
Function, |
|
|
|
URem, |
|
|
|
URem, |
|
|
|
symbol_factory, |
|
|
|
symbol_factory, |
|
|
|
ULE, |
|
|
|
ULE, |
|
|
|
And, |
|
|
|
And, |
|
|
|
ULT, |
|
|
|
ULT, |
|
|
|
Or, |
|
|
|
|
|
|
|
simplify, |
|
|
|
simplify, |
|
|
|
Extract, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
from typing import Dict, Tuple, Optional, List |
|
|
|
from typing import Dict, Tuple |
|
|
|
|
|
|
|
|
|
|
|
TOTAL_PARTS = 10 ** 40 |
|
|
|
TOTAL_PARTS = 10 ** 40 |
|
|
|
PART = (2 ** 256 - 1) // TOTAL_PARTS |
|
|
|
PART = (2 ** 256 - 1) // TOTAL_PARTS |
|
|
|