MCPcopy Create free account
hub / github.com/Gecode/gecode / main

Function main

contribs/quacode/examples/qdimacs.cpp:331–346  ·  view source on GitHub ↗

\brief Main-function */

Source from the content-addressed store, hash-verified

329/** \brief Main-function
330 */
331int main(int argc, char* argv[]) {
332
333 QDimacsOptions opt("QDIMACS",true);
334 opt.parse(argc,argv);
335
336 // Check whether all arguments are successfully parsed
337 if (argc > 1) {
338 std::cerr << "Could not parse all arguments." << std::endl;
339 opt.help();
340 std::exit(EXIT_FAILURE);
341 }
342
343 // Run SAT solver
344 Script::run<QDimacs,DFS,QDimacsOptions>(opt);
345 return 0;
346}
347
348// STATISTICS: example-any

Callers

nothing calls this directly

Calls 2

parseMethod · 0.45
helpMethod · 0.45

Tested by

no test coverage detected