https://github.com/crillab/nacre_mini
Tip revision: 3f02e6c4bf356b9a62a565be2bc4e39c2fcbcbe4 authored by Gaël Glorian on 06 June 2018, 07:50:02 UTC
Fix to avoid marking domain constraint as reason during locking
Fix to avoid marking domain constraint as reason during locking
Tip revision: 3f02e6c
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;
}
