/**************************************************************************/
-Id
+unsigned int
solver_problem_count(Solver *solv)
{
return solv->problems.count / 2;
return (problem + 1) * 2 - 1 < solv->problems.count ? problem + 1 : 0;
}
-Id
+unsigned int
solver_solution_count(Solver *solv, Id problem)
{
Id solidx = solv->problems.elements[problem * 2 - 1];
return solv->solutions.elements[solidx + solution + 1] ? solution + 1 : 0;
}
-Id
+unsigned int
solver_solutionelement_count(Solver *solv, Id problem, Id solution)
{
Id solidx = solv->problems.elements[problem * 2 - 1];
void solver_enableproblem(struct _Solver *solv, Id v);
int solver_prepare_solutions(struct _Solver *solv);
-Id solver_problem_count(struct _Solver *solv);
+unsigned int solver_problem_count(struct _Solver *solv);
Id solver_next_problem(struct _Solver *solv, Id problem);
-Id solver_solution_count(struct _Solver *solv, Id problem);
+unsigned int solver_solution_count(struct _Solver *solv, Id problem);
Id solver_next_solution(struct _Solver *solv, Id problem, Id solution);
-Id solver_solutionelement_count(struct _Solver *solv, Id problem, Id solution);
+unsigned int solver_solutionelement_count(struct _Solver *solv, Id problem, Id solution);
Id solver_next_solutionelement(struct _Solver *solv, Id problem, Id solution, Id element, Id *p, Id *rp);
void solver_take_solutionelement(struct _Solver *solv, Id p, Id rp, Queue *job);