prompt
stringlengths
290
20.4k
response
dict
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 MSTORE LOG1 CALLVALUE ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary SafeMath {\n function add(uint a, uint b) internal pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function sub(uint a, uint b) internal pure returns (uint c) {\n require(b <= a);\n c = a - b;...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 BLOCK_END and find the...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.23;\n\nlibrary AddressUtils {\n\n function isContract(address addr) internal view returns (bool) {\n\n uint256 size = 0;\n\n assembly {\n\n size := extcodesize(addr)\n }\n\n return size > 0;\n }\n\n}\n\nlibrary StringUtils {\n\n function a...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL|CALLVALUE_CHECK] BLOCK...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address i...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOC...
{ "vulnerability": "clean", "code": "pragma solidity >=0.4.22 <0.6.0;\n\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) public pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function safeDiv(uint256 a, uint256 b)public pure returns (uint...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI...
{ "vulnerability": "clean", "code": "pragma solidity ^0.5.0;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n if (a == 0) {\n return 0;\n }\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATALOAD JUMPI BLOCK_END [B3] BLOCK_START BLOCK_...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant returns (uint256) {...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.5.7;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function sub(uint256 a, uint256 b) internal ...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract ERC20Basic {\n uint256 public totalSupply;\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address indexed to, u...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE ML...
{ "vulnerability": "clean", "code": "library SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant returns (uint256) {\n\n uint256 c = a / b;\n...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MSTORE RETURN MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST JUMP BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n function transfer(address _to, uint256 _value) returns (bool success) {}\n functio...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLVALUE JUMPI REVERT BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL J...
{ "vulnerability": "clean", "code": "contract Pavos {\n\n string public standard = 'Token 0.1';\n string public name;\n string public symbol;\n uint8 public decimals;\n uint256 public initialSupply;\n uint256 public totalSupply;\n\n mapping (address => uint256) public balanceOf;\n mapping (a...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.23;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n ...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN MSTORE REVERT LOG1 MSTORE8 BALANCE BLOCK_END and fi...
{ "vulnerability": "clean", "code": "pragma solidity ^0.5.0;\n\nlibrary SafeMath {\n function add(uint a, uint b) internal pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function sub(uint a, uint b) internal pure returns (uint c) {\n require(b <= a);\n c = a - b;\...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD SLOAD SSTORE RETURN STOP MST...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.24;\n\nlibrary SafeMath {\n\n function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {\n\n if (_a == 0) {\n return 0;\n }\n\n c = _a * _b;\n assert(c / _a == _b);\n return c;\n }\n\n function div(uint256 _a, uint256 _b) ...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST SSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_E...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\ncontract ERC20Standard {\n\tuint public totalSupply;\n\n\tstring public name;\n\tuint8 public decimals;\n\tstring public symbol;\n\tstring public version;\n\n\tmapping (address => uint256) balances;\n\tmapping (address => mapping (address => uint)) al...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE BLOCK_END [B2] BLOCK_START JUMPDEST BLOCK_END [B3] BLOCK_START BLOCK_INTERNAL JUMPD...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.13;\n\ncontract Ownable {\n address public owner;\n\n function Ownable() {\n owner = msg.sender;\n }\n\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n function transferOwnership(address newOwner) onlyOwner {\n if (newO...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.23;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n ...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE REVERT STOP LOG1 DELEGATECALL BLOCK_END and find the main potential vulnerability...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) internal returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function safeDiv(uint256 a, uint256 b) internal returns (uint256) {\n ass...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST SLOAD ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.5.0;\n\ninterface IERC20 {\n function totalSupply() external view returns (uint256);\n\n function balanceOf(address who) external view returns (uint256);\n\n function allowance(address owner, address spender)\n external view returns (uint256);\n\n funct...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MSTORE RETURN MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST JUMP BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n f...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.24;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n\n if (a == 0) {\n return 0;\n }\n\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALO...
{ "vulnerability": "clean", "code": "contract Ownable {\n address public owner;\n\n function Ownable() {\n owner = msg.sender;\n }\n\n modifier onlyOwner() {\n if (msg.sender != owner) {\n throw;\n }\n _;\n }\n\n function transferOwnership(address newOwner) onlyOwner {\n if (newOwner != ad...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD MLOAD MLOAD SLOAD SSTORE SLOAD C...
{ "vulnerability": "clean", "code": "contract TokenERC20 {string public name;string public symbol;uint8 public decimals = 18;uint256 public totalSupply;mapping (address => uint256) public balanceOf;mapping (address => mapping (address => uint256)) public allowance;event Transfer(address indexed from, address indexe...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD MLOAD MLOAD MLOAD CALLER MSTORE MSTORE SSTORE...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract EIP20Interface {\n\n uint256 public totalSupply;\n\n function balanceOf(address _owner) public view returns (uint256 balance);\n\n function transfer(address _to, uint256 _value) public returns (bool success);\n\n function transfer...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD J...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\ncontract Ownable {\n address public owner;\n\n function Ownable() {\n owner = msg.sender;\n }\n\n modifier onlyOwner() {\n if (msg.sender != owner) {\n throw;\n }\n _;\n }\n\n function transferOwnership(address newOwner) onlyOwn...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALO...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n assert(b <= a);\n return a - b;\n }\n\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n assert(c >= ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [TX_ORIGIN_AUTH] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.25;\n\ncontract HI_QUIZ\n{\n function Try(string _response) external payable\n {\n require(msg.sender == tx.origin);\n\n if(responseHash == keccak256(_response) && msg.value > 0.4 ether)\n {\n msg.sender.transfer(this.ba...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 BLOCK_END and find the...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.21;\n\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed f...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 STOP BLOCK_END and fin...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary SafeMath {\n function add(uint256 a, uint256 b) internal pure returns (uint256 c) {\n c = a + b;\n require(c >= a);\n }\n function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {\n require(b <= a);\n...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract ERC20Basic {\n uint256 public totalSupply;\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address index...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDAT...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.15;\n\ncontract ElcoinICO {\n\n uint256 public constant tokensPerEth = 300;\n uint256 public constant tokenLimit = 60 * 1e6 * 1e18;\n uint256 public constant tokensForSale = tokenLimit * 50 / 100;\n uint256 public presaleSold = 0;\n uint256 public start...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDES...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.21;\n\ncontract Ownable {\n address public owner;\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n function Ownable() public {\n owner = msg.sender;...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLER SLOAD SSTORE SSTORE SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPD...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\ncontract Lotto {\n\n address public owner = msg.sender;\n address[] internal playerPool;\n uint seed = 0;\n uint amount = 0.1 ether;\n\n event Payout(address from, address to, uint quantity);\n event BoughtIn(address from);\n event Rejected();\n\...
Give me the source code of the following ethereum smart contract opcode: [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD SLOAD MSTORE JUMPI MLOAD SSTORE JUMP BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST SSTORE JUMPI BLOC...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n f...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [TX_ORIGIN_AUTH] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.5.0;\n\ninterface PriceWatcherI\n{\n function getUSDcentsPerETH() external view returns (uint256 _USDcentsPerETH);\n}\n\ncontract PriceWatcherPlaceholder is PriceWatcherI\n{\n function getUSDcentsPerETH() external view returns (uint256 _USDcentsPerETH)\n...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALO...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract Ownable {\n address public owner;\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() public {\n owner = m...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 MSTORE8 BLOCK_END and ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.23;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n if (a == 0) {\n return 0;\n }\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(ui...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD J...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\ncontract ERC20Standard {\n\tuint public totalSupply;\n\n\tstring public name;\n\tuint8 public decimals;\n\tstring public symbol;\n\tstring public version;\n\n\tmapping (address => uint256) balances;\n\tmapping (address => mapping (address => uint)) al...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.25;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE MLOAD MSTO...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function add(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function sub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a - b;\n ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SSTORE SSTORE SSTORE SSTORE SSTORE SLOAD SSTORE SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGE...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n ass...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASI...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.25;\n\ncontract MMEToken {\n string public constant name = \"MME Token\";\n string public constant symbol = \"MME\";\n uint8 public constant decimals = 18;\n address public owner;\n uint256 public _totalSupply;\n mapping(address => uint256) ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE CALLER SLOAD SSTORE SLOAD SSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MSTORE MSTORE MLOAD...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.19;\n\ncontract Ownable {\n\n address public owner = msg.sender;\n\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n function transferOwnership(address newOwner) public onlyOwner {\n require(newOwner != ad...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE MLOAD MSTORE MSTORE MSTORE ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary SafeMath {\n function add(uint a, uint b) internal pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function sub(uint a, uint b) internal pure returns (uint c) {\n require(b <= a);\n c = a - b;...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MSTORE RETURN MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST JUMP BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n f...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 STOP BLOCK_END and fin...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ninterface FoundationInterface {\n function deposit() external payable;\n}\n\ninterface PlayerBookReceiverInterface {\n function receivePlayerInfo(uint256 _pID, address _addr, bytes32 _name, uint256 _laff) external;\n function receivePlayerNam...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.23;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) intern...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE REVERT STOP LOG1 CREATE STATICCALL JUMPI STOP BLOCK_END and find the main potenti...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.25;\n\ncontract Utils {\n\n uint constant DAILY_PERIOD = 1;\n uint constant WEEKLY_PERIOD = 7;\n\n int constant PRICE_DECIMALS = 10 ** 8;\n\n int constant INT_MAX = 2 ** 255 - 1;\n\n uint constant UINT_MAX = 2 ** 256 - 1;\n\n}\n\ncontract Owna...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD MLOAD MLOAD MLOAD MLOAD MLOAD MLOAD...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant returns (uint256) {...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE REVERT STOP LOG1 LOG3 STOP BLOCK_END and find the main potential vulnerability th...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n\n ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD MLOAD JUMPI MLOAD MSTORE MSTORE MSTORE MSTORE...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.24;\n\ncontract SafeDecimalMath {\n\n uint8 public constant decimals = 18;\n\n uint public constant UNIT = 10 ** uint(decimals);\n\n function addIsSafe(uint x, uint y)\n pure\n internal\n returns (bool)\n {\n return x +...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE REVERT STOP LOG1 CREATE BLOCK_END and find the main potential vulnerability that ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.19;\n\ncontract ERC721 {\n function approve(address to, uint256 tokenId) public;\n function balanceOf(address owner) public view returns (uint256 balance);\n function implementsERC721() public pure returns (bool);\n function ownerOf(uint256 token...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MSTORE RETURN MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST JUMP BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n f...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLER SLOAD SSTORE CALLER SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract Ownable\n{\n address newOwner;\n address owner = msg.sender;\n\n function changeOwner(address addr)\n public\n onlyOwner\n {\n newOwner = addr;\n }\n\n function confirmOwner()\n public\n {\n if(msg....
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER MSTORE MSTORE SSTORE ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.16;\ncontract GAC{\n\n uint256 constant private MAX_UINT256 = 2**256 - 1;\n mapping (address => uint256) public balances;\n mapping (address => mapping (address => uint256)) public allowed;\n\n uint256 public totalSupply;\n string public name;...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE SSTORE SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER ...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant re...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLVALUE JUMPI REVERT BLOCK_END...
{ "vulnerability": "clean", "code": "contract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n function transferFrom(addres...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B2|CALLVALUE_CHECK] BLOCK_START B...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract ERC20Interface {\n function totalSupply() public view returns (uint);\n function balanceOf(address tokenOwner) public view returns (uint balance);\n function transfer(address to, uint tokens) public returns (bool success);\n\n eve...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 EXTCODESIZE SELFDESTRU...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.20;\n\ncontract PODEVIDHARJ {\n\n modifier onlyBagholders() {\n require(myTokens() > 0);\n _;\n }\n\n modifier onlyStronghands() {\n require(myDividends(true) > 0);\n _;\n }\n\n modifier onlyAdministrator(){\n ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLVALUE JUMPI REVERT BLOCK_END...
{ "vulnerability": "clean", "code": "pragma solidity ^ 0.4 .2;\ncontract Topinvestmentcoin {\n string public standard = 'Token 0.1';\n string public name;\n string public symbol;\n uint8 public decimals;\n uint256 public totalSupply;\n address public owner;\n address[] public users;\n mappi...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST SSTORE CALLER MSTORE MSTORE SSTO...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.23;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n\n if (a == 0) {\n return 0;\n }\n\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE BLOCK_END [B3] BLOCK_START BLOCK_INTERNAL JUMPDEST S...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant r...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD SLOAD SSTOR...
{ "vulnerability": "clean", "code": "contract ERC20Basic {\n uint256 public totalSupply;\n function balanceOf(address who) public constant returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n\nlib...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.23;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n if (a == 0) {\n return 0;\n }\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MLOAD MLOAD MLOAD MLO...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.24;\n\nlibrary SafeMath {\n function mul(uint a, uint b) internal pure returns (uint) {\n uint c = a * b;\n require(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint a, uint b) internal pure returns (uint) {\n r...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.21;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n\n ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASIZE...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract Migrations {\n address public owner;\n uint public lastCompletedMigration;\n\n modifier restricted() {\n if (msg.sender == owner) {\n _;\n }\n }\n\n constructor() public {\n owner = msg.sender;\n...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI J...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.19;\n\ncontract EthereumClaimsRegistry {\n\n mapping(address => mapping(address => mapping(bytes32 => bytes32))) public registry;\n\n event ClaimSet(\n address indexed issuer,\n address indexed subject,\n bytes32 indexed key,\n ...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE BLOCK_END [B3] BLOCK_START BLOCK_INTERNAL JUMPDEST S...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant r...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function ...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.25;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNA...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.19;\n\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed f...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE SSTORE MLOAD MSTORE MLOAD MLOAD BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST SLOAD SSTORE SLOAD SSTORE BLOCK_END [B2] ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract PresaleToken {\n\n function PresaleToken(address _tokenManager, address _escrow) {\n tokenManager = _tokenManager;\n escrow = _escrow;\n }\n\n string public constant name = \"SONM Presale Token\";\n string public cons...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE REVERT STOP LOG1 STOP BLOCK_END and find the main potential vulnerability that th...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) intern...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.25;\n\ncontract ERC20Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n function transfer(address _to, uint256 _value) returns (bool success) {}\n f...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B2|CALLVALUE_CHE...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract GOLD {\n string public name = \"GOLD\";\n string public symbol = \"GOLD\";\n uint8 public decimals = 0;\n uint256 public totalSupply = 30000000;\n mapping (address => uint256) public balanceOf;\n event Transfer(address index...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALO...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.21;\n\ncontract owned {\n address public owner;\n\n function owned() public {\n owner = msg.sender;\n }\n\n modifier onlyOwner {\n require(msg.sender == owner);\n _;\n }\n\n function transferOwnership(address newOwner) ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE MLOAD MSTORE MSTORE MSTORE ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE BLOCK_END [B3] BLOCK_START ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.16;\n\npragma solidity ^0.4.16;\n\npragma solidity ^0.4.16;\n\ncontract ERC20 {\n\n uint256 public totalSupply;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(address indexed owner, address indexed spen...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n\n if (a == 0) {\n return 0;\n }\n\n c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI BLOCK_END [B2] BLOCK_STAR...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\ncontract SafeMath {\n function safeAdd(uint a, uint b) public pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint a, uint b) public pure returns (uint c) {\n require(b <= a);\n c = a...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLER SLOAD SSTORE SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_S...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n ui...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MSTORE MSTORE MLOAD JUMP BLOCK_END [B2|CALLVALUE_CHECK] BLOCK_START B...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1|INTEGER_OVERFLOW|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.21;\n\ncontract Ownable {\n address public owner;\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n function Ownable() public {\n owner = msg.sender;...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN MSTORE REVERT LOG2 REVERT BLOCK_END and find the main potential vulnerability that the smart contract has.
{ "vulnerability": "clean", "code": "pragma solidity ^0.5.9;\n\nlibrary Math {\n\nfunction max(uint256 a, uint256 b) internal pure returns (uint256) {\nreturn a >= b ? a : b;\n}\n\nfunction min(uint256 a, uint256 b) internal pure returns (uint256) {\nreturn a < b ? a : b;\n}\n\nfunction average(uint256 a, uint256 b...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [UNCHECKED_CALL] [UNCHECKED_SEND] [B0|ACCESS_CONTROL] BLOCK_START BLOCK_INTERNAL MSTORE CALLER SLOAD SSTORE RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI BLOCK_END [B1] BLOCK_ST...
{ "vulnerability": "clean", "code": "pragma solidity 0.4.24;\n\ncontract Ownable {\n\n address public owner;\n\n constructor() public {\n owner = msg.sender;\n }\n\n function setOwner(address _owner) public onlyOwner {\n owner = _owner;\n }\n\n modifier onlyOwner {\n require(m...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MLOAD MSTORE MSTORE MSTORE MSTORE MLOAD MSTORE MSTORE MSTORE MSTORE MLOAD MSTORE MSTORE MSTORE MSTORE MLOAD MSTORE MSTORE MS...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.6;\n\ncontract Presale {\n\n string public constant VERSION = \"0.1.4-beta\";\n\n uint public constant PRESALE_START = 3147370;\n uint public constant PRESALE_END = 3155594;\n uint public constant WITHDRAWAL_END = 3161353;\n\n address publ...
Give me the source code of the following ethereum smart contract opcode: [ACCESS_CONTROL] [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE SLOAD SSTORE SLOAD SSTORE BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST CALLER SLOAD SSTORE BLOCK_END [B2] BLOCK_START JUMPDEST BLOCK_EN...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal constant r...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE SLOAD SSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST MLOAD MSTORE MSTORE MSTORE MLOAD MLOAD BLOCK_END [B2] BLOCK_START BL...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract BulletinBoard {\n event PostMade(\n address indexed poster,\n string note,\n bytes32 hash,\n uint256 listIndex,\n uint256 blocknum\n );\n\n struct Post {\n address poster;\n string not...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATALOAD JUMPI JUMPI BLOCK_END [B3] BLOCK_START ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\npragma solidity ^0.4.0;\n\ncontract OraclizeI {\n address public cbAddress;\n function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id);\n function query_withGasLimit(uint _timestamp, string _datasource, s...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [INTEGER_OVERFLOW] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI REVERT BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATASIZE JUMPI CALLDATALOAD JUMPI JUMPI JUMPI JUMPI JUMPI ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed f...
Give me the source code of the following ethereum smart contract opcode: [CALLVALUE_CHECK] [B0|CALLVALUE_CHECK] BLOCK_START BLOCK_INTERNAL MSTORE CALLVALUE JUMPI BLOCK_END [B1] BLOCK_START JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST RETURN STOP MSTORE CALLDATALOAD JUMPI JUMPI BLOCK_END [B3] BLOCK_START ...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.11;\n\npragma solidity ^0.4.0;\n\ncontract OraclizeI {\n address public cbAddress;\n function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id);\n function query_withGasLimit(uint _timestamp, string _datasource, s...
Give me the source code of the following ethereum smart contract opcode: [INTEGER_OVERFLOW] [UNCHECKED_CALL] [B0|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL MSTORE MLOAD MSTORE MSTORE MSTORE MLOAD SLOAD MSTORE JUMPI MLOAD SSTORE JUMP BLOCK_END [B1|INTEGER_OVERFLOW] BLOCK_START BLOCK_INTERNAL JUMPDEST SSTORE JUMPI BLOC...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.4;\n\ncontract Token {\n\n function totalSupply() constant returns (uint256 supply) {}\n\n function balanceOf(address _owner) constant returns (uint256 balance) {}\n\n function transfer(address _to, uint256 _value) returns (bool success) {}\n\n f...
Give me the source code of the following ethereum smart contract opcode: [NO_PATTERNS_DETECTED] [B0] BLOCK_START BLOCK_INTERNAL MLOAD JUMPI JUMP BLOCK_END [B1] BLOCK_START BLOCK_INTERNAL JUMPDEST BLOCK_END [B2] BLOCK_START BLOCK_INTERNAL JUMPDEST MSTORE MSTORE8 RETURN STOP MSTORE REVERT STOP LOG1 STOP BLOCK_END and fin...
{ "vulnerability": "clean", "code": "pragma solidity ^0.4.24;\n\nlibrary Math {\n\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a >= b ? a : b;\n }\n\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n function average(u...