SetIteratorBooleanEdge *iterator = csolver->getConstraints();
while (iterator->hasNext()) {
BooleanEdge constraint = iterator->next();
+// constraint.getBoolean()->print();
Edge c = encodeConstraintSATEncoder(constraint);
addConstraintCNF(cnf, c);
}
void SATEncoder::encodeElementSATEncoder(Element *element) {
/* Check to see if we have already encoded this element. */
- if (getElementEncoding(element)->variables != NULL)
+ if (element->getElementEncoding()->variables != NULL)
return;
/* Need to encode. */
}
void SATEncoder::encodeElementFunctionSATEncoder(ElementFunction *function) {
- switch (function->function->type) {
+ switch (function->getFunction()->type) {
case TABLEFUNC:
encodeTableElementFunctionSATEncoder(function);
break;
}
void SATEncoder::encodeTableElementFunctionSATEncoder(ElementFunction *function) {
- switch (getElementFunctionEncoding(function)->type) {
+ switch (function->getElementFunctionEncoding()->type) {
case ENUMERATEIMPLICATIONS:
encodeEnumTableElemFunctionSATEncoder(function);
break;