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

7 lines
168 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;
}