(void) signal (SIGBUS, sig_bus_handler);
}
+static inline double cpuTime(void) {
+ struct rusage ru;
+ getrusage(RUSAGE_SELF, &ru);
+ return (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000;
+}
+
static void caughtsigmsg (int sig) {
if (verbose < 0) return;
printf ("c\nc CAUGHT SIGNAL %d", sig);
outbuffer[outoffset++]=value;
}
+#define bool int
+#define false 0
+#define true 1
+
void readClauses(LGL *solver) {
bool haveClause = false;
while(true) {
int main (int argc, char ** argv) {
- int res, i, j, val, len, lineno, simponly, count;
- const char * pname, * match, * p, * err, * thanks;
- int maxvar, lit, nopts, simplevel;
+ int res, i, j, val, len, lineno, simponly;
+ const char * pname, * match, * p, * thanks;
+ int nopts, simplevel;
FILE * pfile;
char * tmp;
LGL * lgl;
ranlib $@
incling: lglincremental.o liblgl.a makefile $(LDEPS)
- $(CC) $(CFLAGS) -I../.. -o $@ lglincremetal.o -L. -llgl $(LIBS)
+ $(CC) $(CFLAGS) -o $@ lglincremental.o -L. -llgl $(LIBS)
lingeling: lglmain.o liblgl.a makefile $(LDEPS)
$(CC) $(CFLAGS) -o $@ lglmain.o -L. -llgl $(LIBS)
plingeling: plingeling.o liblgl.a makefile $(LDEPS)
$(CC) $(CFLAGS) -o $@ lglddtrace.o -L. -llgl $(LIBS)
lglincremental.o: lglincremental.c lglib.h makefile
- $(CC) $(CFLAGS) -c lglincremental.c
+ $(CC) $(CFLAGS) -I../.. -c lglincremental.c
lglmain.o: lglmain.c lglib.h makefile
$(CC) $(CFLAGS) -c lglmain.c
plingeling.o: plingeling.c lglib.h makefile