Progress on early subsumption

Signed-off-by: gothictomato <gothictomato@pm.me>
This commit is contained in:
gothictomato
2022-08-18 22:04:52 -04:00
parent 1d938273f3
commit a1b6cdaea9
10 changed files with 679 additions and 13 deletions

25
ncnf.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include "types.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define CHECK(X, Y) if (X == NULL) { \
printf(Y); \
return NULL; \
}
typedef struct {
u32 cnts[2]; // { varcnt, clausecnt }
u32* clausedat; // { ind, len, jval }
u32* variables;
u8* parities;
} cnf;
cnf* readDIMACS(char* path);
void printcnf(cnf* c);
void sortlastnum(cnf* c);
void freecnf(cnf* c);