solidity/test/libsolidity/smtCheckerTests/operators/compound_add_chain.sol

16 lines
242 B
Solidity
Raw Normal View History

contract C
{
function f() public pure {
uint a = 1;
uint b = 3;
uint c = 7;
a += b += c;
assert(b == 10 && a == 11);
a += (b += c);
assert(b == 17 && a == 28);
a += a += a;
assert(a == 112);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all