diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-03 08:44:28 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-03 08:44:28 +0200 |
| commit | 7ef86345ab968b0bcee70a6402c7f84691e4b683 (patch) | |
| tree | 887205493982e3e31169e0f892bc5600af4281b4 | |
| parent | 0c86492d61bc1cec696b22580224408afba0f79d (diff) | |
| download | nissy-classic-7ef86345ab968b0bcee70a6402c7f84691e4b683.tar.gz nissy-classic-7ef86345ab968b0bcee70a6402c7f84691e4b683.zip | |
Fixed bug
Diffstat (limited to '')
| -rw-r--r-- | src/coord.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/coord.c b/src/coord.c index 72e4403..f946d57 100644 --- a/src/coord.c +++ b/src/coord.c | |||
| @@ -538,6 +538,11 @@ init_htr_eposs(void) | |||
| 538 | int eps_solved[4] = {UL, UR, DL, DR}; | 538 | int eps_solved[4] = {UL, UR, DL, DR}; |
| 539 | unsigned int i, j; | 539 | unsigned int i, j; |
| 540 | 540 | ||
| 541 | /* NOTE: we loop over all possible positions of S-slice edges, * | ||
| 542 | * although some of them are not possible (because the E-slice * | ||
| 543 | * edges are already in the E-slice). Then we discard the invalid * | ||
| 544 | * configurations by checking that the value returned by * | ||
| 545 | * subset_to_index() is acceptable. */ | ||
| 541 | for (i = 0; i < BINOM12ON4; i++) { | 546 | for (i = 0; i < BINOM12ON4; i++) { |
| 542 | for (j = 0; j < 12; j++) | 547 | for (j = 0; j < 12; j++) |
| 543 | ep[j] = ep2[j] = 0; | 548 | ep[j] = ep2[j] = 0; |
| @@ -545,7 +550,8 @@ init_htr_eposs(void) | |||
| 545 | for (j = 0; j < 8; j++) | 550 | for (j = 0; j < 8; j++) |
| 546 | ep2[j/2 + 4*(j%2)] = ep[j] ? 1 : 0; | 551 | ep2[j/2 + 4*(j%2)] = ep[j] ? 1 : 0; |
| 547 | htr_eposs_ind[i] = subset_to_index(ep2, 8, 4); | 552 | htr_eposs_ind[i] = subset_to_index(ep2, 8, 4); |
| 548 | htr_eposs_ant[htr_eposs_ind[i]] = i*24; | 553 | if (htr_eposs_ind[i] < (int)BINOM8ON4) |
| 554 | htr_eposs_ant[htr_eposs_ind[i]] = i*24; | ||
| 549 | } | 555 | } |
| 550 | } | 556 | } |
| 551 | 557 | ||
| @@ -605,17 +611,11 @@ init_coord(void) | |||
| 605 | init_trans(); | 611 | init_trans(); |
| 606 | 612 | ||
| 607 | init_cphtr_cosets(); | 613 | init_cphtr_cosets(); |
| 608 | |||
| 609 | printf("%d\n", cphtr_right_rep[0]); | ||
| 610 | init_cornershtrfin(); | 614 | init_cornershtrfin(); |
| 611 | printf("%d\n", cphtr_right_rep[0]); | ||
| 612 | init_htr_eposs(); | 615 | init_htr_eposs(); |
| 613 | printf("%d\n", cphtr_right_rep[0]); | ||
| 614 | init_cpud_separate(); | 616 | init_cpud_separate(); |
| 615 | printf("%d\n", cphtr_right_rep[0]); | ||
| 616 | 617 | ||
| 617 | init_move_epud(); | 618 | init_move_epud(); |
| 618 | printf("%d\n", cphtr_right_rep[0]); | ||
| 619 | init_move_cphtr(); | 619 | init_move_cphtr(); |
| 620 | } | 620 | } |
| 621 | 621 | ||
