Go to the source code of this file.
◆ check_equiv()
Definition at line 74 of file equiv.c.
76{
77 register pcube *f1list, *f2list;
79
84 }
85 }
87
92 }
93 }
95
97}
#define foreach_set(R, last, p)
◆ find_equiv_outputs()
Definition at line 16 of file equiv.c.
18{
19 int i, j, ipart, jpart, some_equiv;
21
23
25
28
29 for(i = 0; i <
cube.part_size[
cube.output]; i++) {
30 ipart =
cube.first_part[
cube.output] + i;
33 }
34
35 for(i = 0; i <
cube.part_size[
cube.output]-1; i++) {
36 for(j = i+1; j <
cube.part_size[
cube.output]; j++) {
37 ipart =
cube.first_part[
cube.output] + i;
38 jpart =
cube.first_part[
cube.output] + j;
39
41 (void) printf("# Outputs %d and %d (%s and %s) are equivalent\n",
45 (void) printf("# Outputs %d and NOT %d (%s and %s) are equivalent\n",
49 (void) printf("# Outputs NOT %d and %d (%s and %s) are equivalent\n",
53 (void) printf("# Outputs NOT %d and NOT %d (%s and %s) are equivalent\n",
56 }
57 }
58 }
59
60 if (! some_equiv) {
61 (void) printf("# No outputs are equivalent\n");
62 }
63
64 for(i = 0; i <
cube.part_size[
cube.output]; i++) {
67 }
70}