Node resultNode = d_theoryEngine->getValue(n);
// type-check the result we got
- Assert(resultNode.getType(true) == eNode.getType());
+ Assert(resultNode.isNull() || resultNode.getType(true) == eNode.getType());
return Expr(d_exprManager, new Node(resultNode));
}
if(n.getType().isBoolean()) {
if(d_cc.areCongruent(d_trueNode, n)) {
return nodeManager->mkConst(true);
- } else if(d_cc.areCongruent(d_trueNode, n)) {
+ } else if(d_cc.areCongruent(d_falseNode, n)) {
return nodeManager->mkConst(false);
}
- return Node::null();
}
return d_cc.normalize(n);