Debian Codegraph @

dik/trans/twist7.a

raw symbols SCIP
1 /* Twistiness */cxx . . $ `<file>/dik/trans/twist7.a`/
2 /* Numbering of corner cubelets top layer to bottom:
3 0 . 1
4 . . .
5 3 . 2
6
7 . . .
8 . . .
9 . . .
10
11 4 . 5
12 . . .
13 7 . 6
14 Cubelet 4 is fixed
15 */
16
17 #define MAX_TWISTScxx . . $ `dik/trans/twist7.a:17:9`! 729
18
19 static unsigned short twistscxx . . $ twists.[MAX_TWISTScxx . . $ `dik/trans/twist7.a:17:9`!][3];
20
21 static int twist_valcxx . . $ twist_val(432bfeec7533bee3).(t0,t1,t2,t3,t5,t6,t7)
22 int t0,t1,t2,t3,t5,t6,t7;
23 {
24 return ((((t6*3+
25 t5)*3+
26 t3)*3+
27 t2)*3+
28 t1)*3+
29 t0;
30 }
31
32 static void init_twistscxx . . $ init_twists(d878ad36e69247c7).()
33 {
34 int i, j;
35 int t0, t1, t2, t3, t5, t6, t7;
36 int nt0, nt1, nt2, nt3, nt5, nt6, nt7;
37 #define inccxx . . $ `dik/trans/twist7.a:37:9`!(i, j) ((i+j) % 3)
38 #define paramscxx . . $ `dik/trans/twist7.a:38:9`! nt0,nt1,nt2,nt3,nt5,nt6,nt7
39
40 t0 = t1 = t2 = t3 = t5 = t6 = t7 = 0;
41 for(i = 0; i < MAX_TWISTScxx . . $ `dik/trans/twist7.a:17:9`!; i++) {
42 /* F */
43 nt0 = t0;
44 nt1 = t1;
45 nt2 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t3,1);
46 nt3 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t7,2);
47 nt5 = t5;
48 nt6 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t2,2);
49 nt7 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t6,1);
50 twistscxx . . $ twists.[i][0] = twist_valcxx . . $ twist_val(432bfeec7533bee3).(paramscxx . . $ `dik/trans/twist7.a:38:9`!);
51 /* R */
52 nt0 = t0;
53 nt1 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t2,1);
54 nt2 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t6,2);
55 nt3 = t3;
56 nt5 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t1,2);
57 nt6 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t5,1);
58 nt7 = t7;
59 twistscxx . . $ twists.[i][1] = twist_valcxx . . $ twist_val(432bfeec7533bee3).(paramscxx . . $ `dik/trans/twist7.a:38:9`!);
60 /* U */
61 nt0 = t3;
62 nt1 = t0;
63 nt2 = t1;
64 nt3 = t2;
65 nt5 = t5;
66 nt6 = t6;
67 nt7 = t7;
68 twistscxx . . $ twists.[i][2] = twist_valcxx . . $ twist_val(432bfeec7533bee3).(paramscxx . . $ `dik/trans/twist7.a:38:9`!);
69 t0 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t0,1);
70 if(t0 == 0) {
71 t1 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t1,1);
72 if(t1 == 0) {
73 t2 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t2,1);
74 if(t2 == 0) {
75 t3 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t3,1);
76 if(t3 == 0) {
77 t5 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t5,1);
78 if(t5 == 0) {
79 t6 = inccxx . . $ `dik/trans/twist7.a:37:9`!(t6,1);
80 }
81 }
82 }
83 }
84 }
85 j = (t0 + t1 + t2 + t3 + t5 + t6) % 3;
86 t7 = 3 - j;
87 if(t7 == 3) {
88 t7 = 0;
89 }
90 }
91 #ifdef VERBOSEcxx . . $ `<built-in>:413:9`!
92 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "\tInitialized = %d\n", MAX_TWISTScxx . . $ `dik/trans/twist7.a:17:9`!);
93 #endif /* VERBOSE */
94 }
95 #undef inccxx . . $ `dik/trans/twist7.a:37:9`!
96 #undef paramscxx . . $ `dik/trans/twist7.a:38:9`!
97