2020-08-23 19:21:45 +00:00
|
|
|
contract C {
|
|
|
|
function f() public pure {
|
|
|
|
int8 x = 1;
|
|
|
|
int16 y = 0;
|
|
|
|
assert(x ^ y == 1);
|
|
|
|
int16 z = -1;
|
|
|
|
assert(x ^ z == -2);
|
|
|
|
assert(y ^ z == -1);
|
|
|
|
assert(y ^ z > 0);
|
|
|
|
x = 7; y = 3;
|
|
|
|
assert(x ^ y < 5);
|
|
|
|
assert(x ^ y > 5);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-08-23 19:21:45 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 6328: (156-173): CHC: Assertion violation happens here.\nCounterexample:\n\nx = 1\ny = 0\nz = (- 1)\n\nTransaction trace:\nC.constructor()\nC.f()
|
|
|
|
// Warning 6328: (214-231): CHC: Assertion violation happens here.\nCounterexample:\n\nx = 7\ny = 3\nz = (- 1)\n\nTransaction trace:\nC.constructor()\nC.f()
|