solidity/test/cmdlineTests/model_checker_show_unproved_default_bmc/input.sol

13 lines
209 B
Solidity
Raw Normal View History

2021-07-02 12:43:37 +00:00
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
struct S {
uint x;
}
S s;
function f(bool b) public {
s.x |= b ? 1 : 2;
assert(s.x > 0);
}
}