printf("You only specify the name of the file ...");
exit(-1);
}
+ char buffer[512];
CSolver *solver = CSolver::deserialize(argv[1]);
uint timeout;
sscanf(argv[2], "%u", &timeout);
myfile << metric;
myfile << sat;
myfile.close();
+ //serialize out the tuner we used
+ snprintf(buffer, sizeof(buffer), "%sused", argv[3]);
+ tuner->serialize(buffer);
+
delete solver;
return 0;
}
tuner->serialize(buffer);
//Do run
- snprintf(buffer, sizeof(buffer), "deserializerun %s %u tuner%u result%s%u > log%u", problem->getProblem(), timeout, execnum, problem->getProblem(), execnum, execnum);
+ snprintf(buffer, sizeof(buffer), "./run.sh deserializerun %s %u tuner%u result%s%u > log%u", problem->getProblem(), timeout, execnum, problem->getProblem(), execnum, execnum);
int status = system(buffer);
long long metric = -1;