aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/solve_multithread.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/solvers/h48/solve_multithread.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/solvers/h48/solve_multithread.h b/src/solvers/h48/solve_multithread.h
index e33ed49..d7e5e43 100644
--- a/src/solvers/h48/solve_multithread.h
+++ b/src/solvers/h48/solve_multithread.h
@@ -214,15 +214,16 @@ solve_h48_single(dfsarg_solveh48_t *arg, task_queue_t *tq)
214 if (solve_h48_stop(arg)) 214 if (solve_h48_stop(arg))
215 return 0; 215 return 0;
216 216
217 if (arg->nmoves + arg->npremoves == arg->depth){ 217 if (issolved(arg->cube)){
218 if(issolved(arg->cube)) { 218 if (arg->nmoves + arg->npremoves != arg->depth)
219 solve_h48_appendsolution_thread(arg, tq);
220 return 1;
221 } else {
222 return 0; 219 return 0;
223 } 220 solve_h48_appendsolution_thread(arg, tq);
221 return 1;
224 } 222 }
225 223
224 if(arg->nmoves + arg->npremoves == arg->depth)
225 return 0;
226
226 nextarg = *arg; 227 nextarg = *arg;
227 ret = 0; 228 ret = 0;
228 uint32_t allowed; 229 uint32_t allowed;

Generated with cgit - Back to sebastiano.tronto.net