solidity icon indicating copy to clipboard operation
solidity copied to clipboard

SMTChecker: Unable to accurately describe the balance

Open Subway2023 opened this issue 10 months ago • 0 comments

Description

Unable to correctly determine that the current balance is 0 after transferring out all balances.

Environment

  • Compiler version: 0.8.25
  • Target EVM version (as per compiler settings): No restrictions
  • Framework/IDE (e.g. Truffle or Remix): Command-line
  • EVM execution environment / backend / blockchain client: None
  • Operating system: Linux

Steps to Reproduce

contract C{
  address payable recipient;
  function f() public {
      bool success = recipient.send(address(this).balance);
      if (success) {
          assert(address(this).balance==0);
      }
  }
}
solc C.sol --model-checker-engine all

1712926835356

Subway2023 avatar Apr 12 '24 13:04 Subway2023