int main(int argc, char* argv[]){ int i, j; int count = 0; char* string; int* binary = calloc(sizeof(int), 10); for (i = 10; count < 8; i++){ count = 0; string = toString(i); // Zero binary array for (j = 0; j < strlen(string); j++){ binary[j] = 0; } binary[0] = 1; printf("i: %d\n", i); while(next_binary (binary, strlen(string))){ printf("family size:%d\n",family_size(string, binary)); fflush(stdout); if (family_size(string, binary) >= 8){ exit(0); } // printf("%d\n", binary == NULL); } } return 0; }
Expr const* operator()(Mod const* e) const { return next_binary(e); }