return result;
}
-void CSolver::setAlloyEncode(){
+void CSolver::setAlloyEncoder(){
alloyEncoder = new AlloyEnc(this);
}
case ELEMSET:
case ELEMCONST:
case ELEMFUNCRETURN:
- return alloyEncoder == NULL? getElementValueSATTranslator(this, element):
- alloyEncoder->getValue(element);
+ return useAlloyCompiler()? alloyEncoder->getValue(element):
+ getElementValueSATTranslator(this, element);
default:
ASSERT(0);
}
Boolean *boolean = bedge.getBoolean();
switch (boolean->type) {
case BOOLEANVAR:
- return getBooleanVariableValueSATTranslator(this, boolean);
+ return useAlloyCompiler()? alloyEncoder->getBooleanValue(boolean):
+ getBooleanVariableValueSATTranslator(this, boolean);
default:
ASSERT(0);
}