|
19 | 19 |
|
20 | 20 | //#include "algorithms/cutvertex/cv_fact.hpp" |
21 | 21 | //#include "algorithms/cc/cc.hpp" |
22 | | -//#include "algorithms/matching/matching_fact.hpp" |
23 | | -//#include "algorithms/scc/scc_fact.hpp" |
| 22 | +#include "algorithms/matching/matching_fact.hpp" |
| 23 | +#include "algorithms/scc/scc_fact.hpp" |
24 | 24 | //#include "algorithms/toposort/ts_fact.hpp" |
25 | 25 | #include "eval/eval_exec.hpp" |
26 | 26 | #include "eval/file_evaluator.hpp" |
@@ -55,11 +55,11 @@ void printHeader(Util::prog_opts::variables_map vm) |
55 | 55 | std::cout << "Set implementation: " << LIB::SET_FACT.kind() << "\n"; |
56 | 56 | std::cout << "PWMap implementation: " << LIB::PWMAP_FACT.kind() << "\n"; |
57 | 57 | std::cout << "-----------------------------------\n"; |
58 | | - //std::cout << "Matching algorithm: " << LIB::MATCH_FACT.kind() << "\n"; |
59 | | - //std::cout << "SCC algorithm: " << LIB::SCC_FACT.kind() << "\n"; |
| 58 | + std::cout << "Matching algorithm: " << LIB::MATCH_FACT.kind() << "\n"; |
| 59 | + std::cout << "SCC algorithm: " << LIB::SCC_FACT.kind() << "\n\n"; |
60 | 60 | //std::cout << "Cut vertex algorithm: " << LIB::CV_FACT.kind() << "\n"; |
61 | 61 | //std::cout << "Topological sort algorithm: " << LIB::TS_FACT.kind() |
62 | | - // << "\n"; |
| 62 | + // << "\n"; |
63 | 63 | } |
64 | 64 | std::cout << "-----------------------------------\n"; |
65 | 65 | std::cout << ">>>>>>>>>>> Eval result <<<<<<<<<<<\n"; |
@@ -88,6 +88,8 @@ EvalExecutor::EvalExecutor() : scc_impl_(1) |
88 | 88 | "\n - 0 for V1 of minimum reachable SCC" |
89 | 89 | "\n - 1 for V2 of minimum reachable SCC (default option)"); |
90 | 90 |
|
| 91 | + // First option without name is the input file |
| 92 | + _positional.add("input-file", 1); |
91 | 93 | _cmd_line_opts.add(_generic).add(_config).add(_hidden); |
92 | 94 | _cfg_file_opts.add(_config).add(_hidden); |
93 | 95 | _visible.add(_generic).add(_config); |
@@ -123,12 +125,12 @@ detail::EvalUserInput EvalExecutor::chooseImplementation() |
123 | 125 | return result; |
124 | 126 | } |
125 | 127 |
|
126 | | -void EvalExecutor::execute(int arg_count, char* args[]) |
| 128 | +void EvalExecutor::execute(int argc, char* argv[]) |
127 | 129 | { |
128 | 130 | // Command line options handling --------------------------------------------- |
129 | 131 |
|
130 | 132 | Util::prog_opts::variables_map vm; |
131 | | - store(Util::prog_opts::command_line_parser(arg_count, args) |
| 133 | + store(Util::prog_opts::command_line_parser(argc, argv) |
132 | 134 | .options(_cmd_line_opts).positional(_positional).run(), vm); |
133 | 135 | notify(vm); |
134 | 136 |
|
|
0 commit comments