solidity/test/libsolidity/smtCheckerTests/imports/duplicated_errors_1.sol

25 lines
879 B
Solidity
Raw Normal View History

2021-09-06 20:23:24 +00:00
==== Source: a.sol ====
contract A {
uint x;
}
==== Source: b.sol ====
import "a.sol";
contract B is A {
function g() public view { assert(x > x); }
}
==== Source: c.sol ====
import "b.sol";
contract C is B {
function h(uint x) public pure { assert(x < x); }
}
// ====
// SMTEngine: all
// SMTSolvers: smtlib2
// ----
// Warning 6328: (b.sol:62-75): CHC: Assertion violation might happen here.
// Warning 3996: CHC analysis was not possible. No Horn solver was available. None of the installed solvers was enabled.
// Warning 7812: (b.sol:62-75): BMC: Assertion violation might happen here.
// Warning 8084: BMC analysis was not possible. No SMT solver (Z3 or CVC4) was available. None of the installed solvers was enabled.
// Warning 6328: (c.sol:68-81): CHC: Assertion violation might happen here.
// Warning 7812: (c.sol:68-81): BMC: Assertion violation might happen here.