MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / get_bool

Function get_bool

smt/expr.cpp:1390–1399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1388}
1389
1390static expr get_bool(const expr &e) {
1391 expr cond, then, els;
1392 if (e.isIf(cond, then, els)) {
1393 if (then.isOne() && els.isZero())
1394 return cond;
1395 if (then.isZero() && els.isOne())
1396 return !cond;
1397 }
1398 return {};
1399}
1400
1401expr expr::operator&(const expr &rhs) const {
1402 if (eq(rhs) || isZero() || rhs.isAllOnes())

Callers 2

operator&Method · 0.85
operator|Method · 0.85

Calls 3

isIfMethod · 0.80
isOneMethod · 0.80
isZeroMethod · 0.45

Tested by

no test coverage detected