Skip to content

Commit 6c4f175

Browse files
committed
updated master to a working state
1 parent ff07e3b commit 6c4f175

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3667
-4213
lines changed

include/config.h

-230
This file was deleted.

include/log.h

+72
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ int dX_printf (int , const char* , ...);
5353
#endif
5454
* ----------------- */
5555

56+
#define D_E(x) { x }
57+
#define D_0(x) { x }
58+
59+
#if _DEBUG_LVL_COMPILE >= 1
60+
# define D_1(x) { if ((DEBUG_LVL&15) >= 1) { x; } }
61+
#else
62+
# define D_1(x) {}
63+
#endif
64+
5665
#if _DEBUG_LVL_COMPILE >= 2
5766
# define D_2(x) if ((DEBUG_LVL&15) >= 2) { x }
5867
# define D_2E(x) if ((DEBUG_LVL&15) == 2) { x }
@@ -63,6 +72,24 @@ int dX_printf (int , const char* , ...);
6372
# define DM_2(x) {}
6473
#endif
6574

75+
#if _DEBUG_LVL_COMPILE >= 6
76+
# define D_6(x) if ((DEBUG_LVL&15) >= 6) { x }
77+
#else
78+
# define D_6(x) {}
79+
#endif
80+
81+
#if _DEBUG_LVL_COMPILE >= 7
82+
# define D_7(x) if ((DEBUG_LVL&15) >= 7) { x }
83+
#else
84+
# define D_7(x) {}
85+
#endif
86+
87+
#if _DEBUG_LVL_COMPILE >= 8
88+
# define D_8(x) if ((DEBUG_LVL&15) >= 8) { x }
89+
#else
90+
# define D_8(x) {}
91+
#endif
92+
6693
#if _DEBUG_LVL_COMPILE >= 9
6794
# define D_9(x) if ((DEBUG_LVL&15) >= 9) { x }
6895
# define TB_9(x) D_9(if(ite_counters[NUM_BACKTRACKS]>=TRACE_START) { x })
@@ -77,11 +104,26 @@ int dX_printf (int , const char* , ...);
77104
# define D_C(x) {}
78105
#endif
79106

107+
#define dE_printf1(x) D_E(fprintf(stddbg, x);)
108+
#define dE_printf2(x1,x2) D_E(fprintf(stddbg, x1, x2);)
109+
#define dE_printf3(x1,x2,x3) D_E(fprintf(stddbg, x1, x2, x3);)
110+
#define dE_printf4(x1,x2,x3,x4) D_E(fprintf(stddbg, x1, x2, x3,x4);)
111+
80112
#define dC_printf1(x) D_C(printf(x);)
81113
#define dC_printf2(x1,x2) D_C(printf(x1, x2);)
82114
#define dC_printf3(x1,x2,x3) D_C(printf(x1, x2, x3);)
83115
#define dC_printf4(x1,x2,x3,x4) D_C(printf(x1, x2, x3,x4);)
84116

117+
#define d0_printf1(x) D_0(fprintf(stddbg, x);)
118+
#define d0_printf2(x1,x2) D_0(fprintf(stddbg, x1, x2);)
119+
#define d0_printf3(x1,x2,x3) D_0(fprintf(stddbg, x1, x2, x3);)
120+
#define d0_printf4(x1,x2,x3,x4) D_0(fprintf(stddbg, x1, x2, x3,x4);)
121+
122+
#define d1_printf1(x) D_1(fprintf(stddbg, x);)
123+
#define d1_printf2(x1,x2) D_1(fprintf(stddbg, x1, x2);)
124+
#define d1_printf3(x1,x2,x3) D_1(fprintf(stddbg, x1, x2, x3);)
125+
#define d1_printf4(x1,x2,x3,x4) D_1(fprintf(stddbg, x1, x2, x3,x4);)
126+
85127
#define d2_printf1(x) D_2(fprintf(stddbg, x);)
86128
#define d2_printf2(x1,x2) D_2(fprintf(stddbg, x1, x2);)
87129
#define d2_printf3(x1,x2,x3) D_2(fprintf(stddbg, x1, x2, x3);)
@@ -100,6 +142,36 @@ int dX_printf (int , const char* , ...);
100142

101143
#define dm2_printf2(x1,x2) DM_2(fprintf(stddbg, x1, x2);)
102144

145+
#define d6_printf1(x) D_6(fprintf(stddbg, x);)
146+
#define d6_printf2(x1,x2) D_6(fprintf(stddbg, x1, x2);)
147+
#define d6_printf3(x1,x2,x3) D_6(fprintf(stddbg, x1, x2, x3);)
148+
#define d6_printf4(x1,x2,x3,x4) D_6(fprintf(stddbg, x1, x2, x3,x4);)
149+
#define d6_printf5(x1,x2,x3,x4,x5) D_6(fprintf(stddbg, x1, x2, x3,x4,x5);)
150+
#define d6_printf6(x1,x2,x3,x4,x5,x6) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6);)
151+
#define d6_printf7(x1,x2,x3,x4,x5,x6,x7) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7);)
152+
#define d6_printf8(x1,x2,x3,x4,x5,x6,x7,x8) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8);)
153+
#define d6_printf9(x1,x2,x3,x4,x5,x6,x7,x8,x9) D_6(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8,x9);)
154+
155+
#define d7_printf1(x) D_7(fprintf(stddbg, x);)
156+
#define d7_printf2(x1,x2) D_7(fprintf(stddbg, x1, x2);)
157+
#define d7_printf3(x1,x2,x3) D_7(fprintf(stddbg, x1, x2, x3);)
158+
#define d7_printf4(x1,x2,x3,x4) D_7(fprintf(stddbg, x1, x2, x3,x4);)
159+
#define d7_printf5(x1,x2,x3,x4,x5) D_7(fprintf(stddbg, x1, x2, x3,x4,x5);)
160+
#define d7_printf6(x1,x2,x3,x4,x5,x6) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6);)
161+
#define d7_printf7(x1,x2,x3,x4,x5,x6,x7) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7);)
162+
#define d7_printf8(x1,x2,x3,x4,x5,x6,x7,x8) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8);)
163+
#define d7_printf9(x1,x2,x3,x4,x5,x6,x7,x8,x9) D_7(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8,x9);)
164+
165+
#define d8_printf1(x) D_8(fprintf(stddbg, x);)
166+
#define d8_printf2(x1,x2) D_8(fprintf(stddbg, x1, x2);)
167+
#define d8_printf3(x1,x2,x3) D_8(fprintf(stddbg, x1, x2, x3);)
168+
#define d8_printf4(x1,x2,x3,x4) D_8(fprintf(stddbg, x1, x2, x3,x4);)
169+
#define d8_printf5(x1,x2,x3,x4,x5) D_8(fprintf(stddbg, x1, x2, x3,x4,x5);)
170+
#define d8_printf6(x1,x2,x3,x4,x5,x6) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6);)
171+
#define d8_printf7(x1,x2,x3,x4,x5,x6,x7) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7);)
172+
#define d8_printf8(x1,x2,x3,x4,x5,x6,x7,x8) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8);)
173+
#define d8_printf9(x1,x2,x3,x4,x5,x6,x7,x8,x9) D_8(fprintf(stddbg, x1, x2, x3,x4,x5,x6,x7,x8,x9);)
174+
103175
#define d9_printf1(x) D_9(fprintf(stddbg, x);)
104176
#define d9_printf2(x1,x2) D_9(fprintf(stddbg, x1, x2);)
105177
#define d9_printf3(x1,x2,x3) D_9(fprintf(stddbg, x1, x2, x3);)

include/params.h

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include <sys/types.h>
4747
#include <sys/stat.h>
4848
#include <unistd.h>
49-
#include <signal.h>
5049

5150
/*
5251
* parameter types

include/prototypes.h

+1-13
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@
3737

3838
#ifndef PROTOTYPES_H
3939
#define PROTOTYPES_H
40-
// this include and using stmt should be removed once move to scons is
41-
// complete.
42-
#include <sstream>
43-
#include <vector>
44-
using namespace std;
40+
4541

4642
double get_runtime();
4743
long get_memusage();
@@ -67,14 +63,6 @@ int splitXors();
6763
void countSingleXors(BDDNode *, int *, int *);
6864
int are_oppos(BDDNode *, BDDNode *);
6965

70-
int build_algebraic_func(BDDNode* xdd, stringstream& ss);
71-
int GBReduceXors();
72-
vector<BDDNode*> build_BDDs_from_sage(stringstream& ss);
73-
BDDNode* parseXOR(string andstr);
74-
BDDNode* parseAND(string andstr);
75-
string strip_whitespace(string str);
76-
string strip_char(string str, char c);
77-
7866
void SAT_to_CNF();
7967
void Smurfs_to_BDD();
8068
void Do_Lemmas();

0 commit comments

Comments
 (0)