https://github.com/crillab/nacre_mini
Tip revision: 60034b4b99f7ef57fca314a9d9089bcdf6a2fee2 authored by Gaël Glorian on 28 May 2018, 11:46:10 UTC
Fix rare bug in conflict analysis
Fix rare bug in conflict analysis
Tip revision: 60034b4
main.cc
#include "XCSP3CoreParser.h"
#include "XCSP3PrintCallbacks.h"
using namespace XCSP3Core;
int main(int argc,char **argv) {
XCSP3PrintCallbacks cb; // my interface between the parser and the solver
if(argc!=2)
throw std::runtime_error("usage: ./test xcsp3instance.xml");
try
{
XCSP3CoreParser parser(&cb);
parser.parse(argv[1]); // fileName is a string
}
catch (exception &e)
{
cout.flush();
cerr << "\n\tUnexpected exception :\n";
cerr << "\t" << e.what() << endl;
exit(1);
}
return 0;
}
