mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
693 B
Solidity
22 lines
693 B
Solidity
contract A {
|
|
constructor() payable {}
|
|
}
|
|
|
|
contract B {
|
|
function f() public payable {
|
|
require(address(this).balance == 100);
|
|
A a = new A{value: 50}();
|
|
assert(address(this).balance == 50); // should hold
|
|
assert(address(this).balance == 60); // should fail
|
|
assert(address(a).balance >= 50); // should hold
|
|
assert(address(a).balance == 50); // should fail
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: chc
|
|
// SMTExtCalls: trusted
|
|
// ----
|
|
// Warning 6328: (211-246): CHC: Assertion violation happens here.
|
|
// Warning 6328: (316-348): CHC: Assertion violation happens here.
|
|
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|