}
void AlloyInterpreter::compileRunCommand(char * command, size_t size){
+ model_print("Calling Alloy...\n");
snprintf(command, size, "./run.sh timeout %u java -Xmx10000m edu.mit.csail.sdg.alloy4whole.ExampleAlloyCompilerNoViz %s > %s", getTimeout(), ALLOYFILENAME, ALLOYSOLUTIONFILE);
}
}
void MathSATInterpreter::compileRunCommand(char * command , size_t size){
- snprintf(command, size, "timeout %u ./mathsat -model %s > %s", getTimeout(), SMTFILENAME, SMTSOLUTIONFILE);
+ model_print("Calling MathSAT...\n");
+ snprintf(command, size, "./run.sh timeout %u mathsat -model %s > %s", getTimeout(), SMTFILENAME, SMTSOLUTIONFILE);
}
MathSATInterpreter::~MathSATInterpreter(){
strcpy ( cline, line.c_str() );
char valuestr [512];
uint id;
- if (2 == sscanf(cline,"%*[^0123456789]%u%*[^0123456789]%s", &id, valuestr)){
+ if (2 == sscanf(cline,"%*[^0123456789]%u %s", &id, valuestr)){
uint value;
if (strcmp (valuestr, "true)") == 0 ){
value =1;
}
void SMTInterpreter::compileRunCommand(char * command, size_t size){
- snprintf(command, size, "./z3 -T:%u -in < %s > %s", getTimeout(), SMTFILENAME, SMTSOLUTIONFILE);
+ model_print("Calling Z3...\n");
+ snprintf(command, size, "./run.sh z3 -T:%u -in < %s > %s", getTimeout(), SMTFILENAME, SMTSOLUTIONFILE);
}
string SMTInterpreter::negateConstraint(string constr){
}
void SMTRatInterpreter::compileRunCommand(char * command , size_t size){
- snprintf(command, size, "timeout %u ./smtrat %s > %s", getTimeout(), SMTFILENAME, SMTSOLUTIONFILE);
+ model_print("Calling SMTRat...\n");
+ snprintf(command, size, "./run.sh timeout %u smtrat %s > %s", getTimeout(), SMTFILENAME, SMTSOLUTIONFILE);
}
SMTRatInterpreter::~SMTRatInterpreter(){
}
-
void serialize(void *solver) {
CCSOLVER(solver)->serialize();
}
void *clone(void *solver) {
return CCSOLVER(solver)->clone();
-}
\ No newline at end of file
+}
void printConstraints(void *solver);
void serialize(void *solver);
void mustHaveValue(void *solver, void *element);
-void setAlloyEncoder(void *solver);
+void setInterpreter(void *solver, unsigned int type);
void *clone(void *solver);
#ifdef __cplusplus
}