Early subsumption complete

Signed-off-by: gothictomato <gothictomato@pm.me>
This commit is contained in:
gothictomato
2022-08-21 12:49:48 -04:00
parent a1b6cdaea9
commit 4c111f4b6f
8 changed files with 277 additions and 323 deletions

1
ncnf.c
View File

@@ -127,6 +127,7 @@ cnf* readDIMACS(char* path) {
// Realloc the arrays to exactly match the number of literals
c->variables = realloc(c->variables, sizeof(u32) * cnt);
c->parities = realloc(c->parities, sizeof(u8) * cnt);
c->cnts[2] = cnt;
free(buf);
if (fclose(f)) {
printf("Failed to close file\n");