Static Analyzer for Solidity
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.
slither/tests/constant_folding_rational.sol

9 lines
298 B

contract C {
uint256 constant a = 2.5 + 7 + 0.5;
int128 b = 6 / 3.0;
int64 constant c = 5 * 0.5 + 0.5;
int256 d = 1e3 + 5E2;
uint256 e = 2 ** 255;
uint256 f = 115792089237316195423570985008687907853269984665640564039457584_007_913_129_639_935;
int64 constant g = -7.0;
}