diff options
| -rw-r--r-- | TODO.txt | 4 | ||||
| -rw-r--r-- | src/solve_h48.h | 6 |
2 files changed, 7 insertions, 3 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | Correctness | ||
| 2 | - Check all cases of bitwise operations for type mismatch, | ||
| 3 | force cast to same type. Change to ULL where appropriate. | ||
| 4 | |||
| 1 | Solver | 5 | Solver |
| 2 | - write a solver (how many tricks? some, but not all are needed) | 6 | - write a solver (how many tricks? some, but not all are needed) |
| 3 | 7 | ||
diff --git a/src/solve_h48.h b/src/solve_h48.h index a2e3184..ecb0863 100644 --- a/src/solve_h48.h +++ b/src/solve_h48.h | |||
| @@ -288,9 +288,9 @@ gendata_esep_bfs(bfsarg_esep_t *arg) | |||
| 288 | set_esep_pval(arg->buf32, j, arg->depth); | 288 | set_esep_pval(arg->buf32, j, arg->depth); |
| 289 | cc += x != arg->depth; | 289 | cc += x != arg->depth; |
| 290 | cocsep_coord = j / H48_ESIZE(arg->h); | 290 | cocsep_coord = j / H48_ESIZE(arg->h); |
| 291 | sim = arg->selfsim[cocsep_coord]; | 291 | sim = arg->selfsim[cocsep_coord] >> 1ULL; |
| 292 | for (t = 1; t < 48; t++) { /* Skip trivial trans */ | 292 | for (t = 1; t < 48 && sim; t++, sim >>= 1ULL) { |
| 293 | if (!(sim & (1ULL << t))) | 293 | if (!(sim & 1ULL)) |
| 294 | continue; | 294 | continue; |
| 295 | transd = transform(moved, t); | 295 | transd = transform(moved, t); |
| 296 | k = coord_h48(transd, arg->cocsepdata, arg->h); | 296 | k = coord_h48(transd, arg->cocsepdata, arg->h); |
