h48

A prototype for an optimal Rubik's cube solver, work in progress.
git clone https://git.tronto.net/h48
Download | Log | Files | Refs | README | LICENSE

commit 5c3d850bbe088d075bca8c7b4b5d746ee803798d
parent bca11bdbd8c9912601974f61de6a55c3a41a2b79
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Wed, 18 Dec 2024 19:28:51 +0100

Revert small error

Diffstat:
Msrc/solvers/h48/gendata_cocsep.h | 5++---
Msrc/solvers/h48/gendata_eoesep.h | 4++--
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/solvers/h48/gendata_cocsep.h b/src/solvers/h48/gendata_cocsep.h @@ -1,8 +1,7 @@ STATIC_INLINE bool gendata_cocsep_get_visited(const uint8_t *, int64_t); STATIC_INLINE void gendata_cocsep_set_visited(uint8_t *, int64_t); -STATIC size_t gendata_cocsep( - char [static COCSEP_FULLSIZE], uint64_t *, cube_t *); +STATIC size_t gendata_cocsep(char *, uint64_t *, cube_t *); STATIC uint32_t gendata_cocsep_dfs(cocsep_dfs_arg_t *); STATIC void getdistribution_cocsep(const uint32_t *, uint64_t [static 21]); @@ -10,7 +9,7 @@ STATIC_INLINE int8_t get_h48_cdata(cube_t, const uint32_t *, uint32_t *); STATIC size_t gendata_cocsep( - char buf[static COCSEP_FULLSIZE], + char *buf, uint64_t *selfsim, cube_t *rep ) diff --git a/src/solvers/h48/gendata_eoesep.h b/src/solvers/h48/gendata_eoesep.h @@ -1,7 +1,7 @@ STATIC int64_t coord_eoesep_sym(cube_t, const uint32_t [static ESEP_MAX]); STATIC size_t gendata_esep_classes( uint32_t [static ESEP_MAX], uint16_t [static ESEP_CLASSES]); -STATIC size_t gendata_eoesep(char [static EOESEP_FULLSIZE], uint8_t); +STATIC size_t gendata_eoesep(char *, uint8_t); STATIC uint32_t gendata_eoesep_bfs(uint8_t, uint8_t [static EOESEP_BUF], uint32_t [static ESEP_MAX], uint16_t [static ESEP_CLASSES]); STATIC uint32_t gendata_eoesep_fromnew(uint8_t, uint8_t [static EOESEP_BUF], @@ -65,7 +65,7 @@ gendata_esep_classes( } STATIC size_t -gendata_eoesep(char buf[static EOESEP_FULLSIZE], uint8_t maxdepth) +gendata_eoesep(char *buf, uint8_t maxdepth) { uint8_t *buf8, d; uint16_t rep[ESEP_CLASSES];