mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
23 lines
390 B
Solidity
23 lines
390 B
Solidity
|
contract D {
|
||
|
uint public d;
|
||
|
function g() public {
|
||
|
++d;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contract C {
|
||
|
function f() public {
|
||
|
D a = new D();
|
||
|
assert(a.d() == 0); // should hold
|
||
|
a.g();
|
||
|
assert(a.d() == 1); // should hold
|
||
|
assert(a.d() == 0); // should fail
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// SMTEngine: chc
|
||
|
// SMTExtCalls: trusted
|
||
|
// SMTTargets: assert
|
||
|
// ----
|
||
|
// Warning 6328: (203-221): CHC: Assertion violation happens here.
|