symmetry_mask_tests.c (325B)
1 #include "../test.h" 2 3 uint64_t symmetry_mask(cube_t); 4 5 void run(void) { 6 char str[STRLENMAX]; 7 uint64_t i, result; 8 cube_t cube; 9 10 fgets(str, STRLENMAX, stdin); 11 cube = readcube("H48", str); 12 result = symmetry_mask(cube); 13 14 for (i = 0; i < 48; result >>= 1, i++) 15 printf("%" PRIu64, result % UINT64_C(2)); 16 printf("\n"); 17 }