Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mythril/tests/testdata/input_contracts/integer_edge_case.sol

13 lines
372 B

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
contract B {
function f(uint256 arg) public view returns(uint256) {
uint256 res;
unchecked{
res = 10_000_000_000 * arg; // undetected overflow
}
//assert(res > arg); // the assertion violation is correctly detected if added
return res;
}
}