fix abstract nondet exception

This commit is contained in:
Leo Alt
2023-02-08 16:59:37 +01:00
parent 665bf29a84
commit db9c11a2a5
4 changed files with 21 additions and 12 deletions
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
contract C {
function f(uint x) external pure {
uint t = msb(x);
assert(t == 0); // should fail
}
}
/// @custom:smtchecker abstract-function-nondet
function msb(uint256 x) pure returns (uint256 result) {}
// ====
// SMTEngine: chc
// ----
// Warning 6328: (144-158): CHC: Assertion violation happens here.