Skip to content

Unable to verify non-decreasing balance. #58

Open
@michael-emmi

Description

@michael-emmi
$ cat a.sol && solc-verify.py a.sol 
pragma solidity ^0.5.0;

contract A {

    /// @notice postcondition address(this).balance >= __verifier_old_uint(address(this).balance)
    function f1() public payable { }

}
A::f1: ERROR
 - a.sol:6:5: Postcondition 'address(this).balance >= __verifier_old_uint(address(this).balance)' might not hold at end of function.
A::[implicit_constructor]: OK
Errors were found by the verifier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions