mirror of https://github.com/ConsenSys/mythril
Support symbolic bytecode (#1560)
* Support symbolic bytecode * Use hex notation * Handle swarm hashpull/1564/head
parent
47ba692d5c
commit
510ff95655
@ -0,0 +1,23 @@ |
||||
pragma solidity ^0.8.0; |
||||
|
||||
contract Test { |
||||
uint256 immutable inputSize; |
||||
|
||||
constructor(uint256 _log2Size) { |
||||
inputSize = (1 << _log2Size); |
||||
} |
||||
|
||||
function getBytes(bytes calldata _input) public view returns (bytes32) { |
||||
require( |
||||
_input.length > 0 && _input.length <= inputSize, |
||||
"input len: (0,inputSize]" |
||||
); |
||||
|
||||
return "123"; |
||||
} |
||||
|
||||
function commencekilling() public { |
||||
address payable receiver = payable(msg.sender); |
||||
selfdestruct(receiver); |
||||
} |
||||
} |
@ -0,0 +1 @@ |
||||
60a060405234801561001057600080fd5b5060405161039b38038061039b83398181016040528101906100329190610059565b806001901b60808181525050506100ac565b60008151905061005381610095565b92915050565b60006020828403121561006f5761006e610090565b5b600061007d84828501610044565b91505092915050565b6000819050919050565b600080fd5b61009e81610086565b81146100a957600080fd5b50565b6080516102d56100c66000396000608601526102d56000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063781c6dbe1461003b5780637c11da201461006b575b600080fd5b61005560048036038101906100509190610188565b610075565b6040516100629190610207565b60405180910390f35b610073610114565b005b600080838390501180156100ac57507f00000000000000000000000000000000000000000000000000000000000000008383905011155b6100eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100e290610222565b60405180910390fd5b7f3132330000000000000000000000000000000000000000000000000000000000905092915050565b60003390508073ffffffffffffffffffffffffffffffffffffffff16ff5b60008083601f84011261014857610147610262565b5b8235905067ffffffffffffffff8111156101655761016461025d565b5b60208301915083600182028301111561018157610180610267565b5b9250929050565b6000806020838503121561019f5761019e610271565b5b600083013567ffffffffffffffff8111156101bd576101bc61026c565b5b6101c985828601610132565b92509250509250929050565b6101de81610253565b82525050565b60006101f1601883610242565b91506101fc82610276565b602082019050919050565b600060208201905061021c60008301846101d5565b92915050565b6000602082019050818103600083015261023b816101e4565b9050919050565b600082825260208201905092915050565b6000819050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f696e707574206c656e3a2028302c696e70757453697a655d000000000000000060008201525056fea26469706673582212203f37af85f2d345d5d16dd25ae1404605d9e5e7240b970530ef963385fc73a82e64736f6c63430008060033 |
Loading…
Reference in new issue