From 4abb800c4b4f3a509c07821ade8d34e3699bdf10 Mon Sep 17 00:00:00 2001 From: enricotenuti Date: Fri, 30 Aug 2024 17:47:48 +0200 Subject: format fix --- src/solvers/h48/solve.h | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'src/solvers/h48') diff --git a/src/solvers/h48/solve.h b/src/solvers/h48/solve.h index ed06a85..bbe59e5 100644 --- a/src/solvers/h48/solve.h +++ b/src/solvers/h48/solve.h @@ -29,8 +29,7 @@ typedef struct { _static void solve_h48_appendsolution(dfsarg_solveh48_t *); _static_inline bool solve_h48_stop(dfsarg_solveh48_t *); _static int64_t solve_h48_dfs(dfsarg_solveh48_t *); -_static int64_t solve_h48( - cube_t, int8_t, int8_t, int8_t, uint8_t, uint8_t, const void *, char *); +_static int64_t solve_h48(cube_t, int8_t, int8_t, int8_t, uint8_t, uint8_t, const void *, char *); _static int64_t solve_h48stats_dfs(dfsarg_solveh48stats_t *); _static int64_t solve_h48stats(cube_t, int8_t, const void *, char [static 12]); @@ -38,26 +37,26 @@ _static int64_t solve_h48stats(cube_t, int8_t, const void *, char [static 12]); _static void solve_h48_appendsolution(dfsarg_solveh48_t *arg) { - int strl; - char *solution = *arg->nextsol; + int strl; + char *solution = *arg->nextsol; - strl = writemoves(arg->moves, arg->nmoves, *arg->nextsol); - *arg->nextsol += strl; + strl = writemoves(arg->moves, arg->nmoves, *arg->nextsol); + *arg->nextsol += strl; - if (arg->npremoves) { - **arg->nextsol = ' '; - (*arg->nextsol)++; + if (arg->npremoves) { + **arg->nextsol = ' '; + (*arg->nextsol)++; uint8_t* invertedpremoves = invertpremoves(arg->premoves, arg->npremoves); - strl = writemoves(invertedpremoves, arg->npremoves, *arg->nextsol); + strl = writemoves(invertedpremoves, arg->npremoves, *arg->nextsol); free(invertedpremoves); - *arg->nextsol += strl; - } - LOG("Solution found: %s\n", solution); + *arg->nextsol += strl; + } + LOG("Solution found: %s\n", solution); - **arg->nextsol = '\n'; - (*arg->nextsol)++; - (*arg->nsols)++; + **arg->nextsol = '\n'; + (*arg->nextsol)++; + (*arg->nsols)++; } _static_inline bool -- cgit v1.3