45 lines
533 B
C++
45 lines
533 B
C++
|
|
#include <cmdln_flags.hpp>
|
|
|
|
#include <parse.hpp>
|
|
|
|
#include <build_automata.hpp>
|
|
|
|
#include <automata.hpp>
|
|
|
|
#include <find_solutions.hpp>
|
|
|
|
int main(
|
|
int argc,
|
|
char* const* argv)
|
|
{
|
|
cmdln_flags flags(argc, argv);
|
|
|
|
auto problems = parse(flags.input_path);
|
|
|
|
for (const auto &problem: problems)
|
|
{
|
|
automata* start = build_automata(flags, problem);
|
|
|
|
find_solutions(problem->number_of_variables, start);
|
|
|
|
automata::free(start);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|