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

Method operator|

smt/expr.cpp:1446–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1444}
1445
1446expr expr::operator|(const expr &rhs) const {
1447 if (eq(rhs) || isAllOnes() || rhs.isZero())
1448 return *this;
1449 if (isZero() || rhs.isAllOnes())
1450 return rhs;
1451
1452 if (bits() == 1) {
1453 if (auto a = get_bool(*this);
1454 a.isValid())
1455 if (auto b = get_bool(rhs);
1456 b.isValid())
1457 return (a || b).toBVBool();
1458 }
1459
1460 return binopc(Z3_mk_bvor, operator|, Z3_OP_BOR, isZero, isAllOnes);
1461}
1462
1463expr expr::operator^(const expr &rhs) const {
1464 if (eq(rhs))

Callers

nothing calls this directly

Calls 5

get_boolFunction · 0.85
isAllOnesMethod · 0.80
toBVBoolMethod · 0.80
isZeroMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected