}
void computePredicatePolarityAndBooleanValue(BooleanPredicate *This) {
- updatePolarity(This->undefStatus, P_BOTHTRUEFALSE);
- computePolarityAndBooleanValue(This->undefStatus);
+ if (This->undefStatus != NULL) {
+ updatePolarity(This->undefStatus, P_BOTHTRUEFALSE);
+ computePolarityAndBooleanValue(This->undefStatus);
+ }
}
void computeLogicOpPolarityAndBooleanValue(BooleanLogic *This) {
Predicate *equal2 = solver->createPredicateOperator(EQUALS, domain2, 2);
Element *inputs2 [] = {e4, e3};
Boolean *pred = solver->applyPredicate(equal2, inputs2, 2);
-solver-> addConstraint(pred);
+ solver->addConstraint(pred);
if (solver->startEncoding() == 1)
printf("e1=%llu e2=%llu\n", solver->getElementValue(e1), solver->getElementValue(e2));