MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / operator^

Method operator^

smt/expr.cpp:1463–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1461}
1462
1463expr expr::operator^(const expr &rhs) const {
1464 if (eq(rhs))
1465 return mkUInt(0, sort());
1466 if (isAllOnes())
1467 return bits() == 1 ? (rhs == 0).toBVBool() : ~rhs;
1468 if (rhs.isAllOnes())
1469 return bits() == 1 ? (*this == 0).toBVBool() : ~*this;
1470 return binopc(Z3_mk_bvxor, operator^, Z3_OP_BXOR, isZero, alwaysFalse);
1471}
1472
1473expr expr::operator!() const {
1474 C();

Callers

nothing calls this directly

Calls 2

toBVBoolMethod · 0.80
isAllOnesMethod · 0.80

Tested by

no test coverage detected