Skip to content

Commit

Permalink
Temporarily disabled defaultvalue, because it is not handled in satur…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
mondokm committed Feb 20, 2024
1 parent 9d786af commit 71ba6b0
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,17 @@ public RecursiveIntObjMapView<? extends MddNode> toCanonicalRepresentation(MddVa
return mddVariable.getMddGraph().getTerminalZeroNode();
}

// Check if default or terminal 1
if (!ExprUtils.getConstants(canonizedExpr).contains(decl)) {
if (mddVariable.getLower().isPresent()) {
final MddNode childNode = mddVariable.getLower().get().checkInNode(new MddExpressionTemplate(canonizedExpr, o -> (Decl) o, solverPool));
return MddExpressionRepresentation.ofDefault(canonizedExpr, decl, mddVariable, solverPool, childNode);
} else {
final MddGraph<Expr> mddGraph = (MddGraph<Expr>) mddVariable.getMddGraph();
return mddGraph.getNodeFor(canonizedExpr);
}
}
// Check if default
// if (!ExprUtils.getConstants(canonizedExpr).contains(decl)) {
// final MddNode childNode;
// if (mddVariable.getLower().isPresent()) {
// childNode = mddVariable.getLower().get().checkInNode(new MddExpressionTemplate(canonizedExpr, o -> (Decl) o, solverPool));
// } else {
// final MddGraph<Expr> mddGraph = (MddGraph<Expr>) mddVariable.getMddGraph();
// childNode = mddGraph.getNodeFor(canonizedExpr);
// }
// return MddExpressionRepresentation.ofDefault(canonizedExpr, decl, mddVariable, solverPool, childNode);
// }

return MddExpressionRepresentation.of(canonizedExpr, decl, mddVariable, solverPool);

Expand Down

0 comments on commit 71ba6b0

Please sign in to comment.