1
- diff -urN minisat-2.2.1/minisat/core/Solver.cc minisat-2.2.1.patched/minisat/core/Solver.cc
2
- --- minisat-2.2.1/minisat/core/Solver.cc 2011-02-21 13:31:17.000000000 +0000
3
- +++ minisat-2.2.1.patched/minisat/core/Solver.cc 2016-03-05 16:21:17.000000000 +0000
4
- @@ -210,7 +210,7 @@
1
+ diff --git a/minisat/core/Solver.cc b/minisat/core/Solver.cc
2
+ index 501393d..b450b73 100644
3
+ --- a/minisat/core/Solver.cc
4
+ +++ b/minisat/core/Solver.cc
5
+ @@ -210,7 +210,7 @@ void Solver::cancelUntil(int level) {
5
6
for (int c = trail.size()-1; c >= trail_lim[level]; c--){
6
7
Var x = var(trail[c]);
7
8
assigns [x] = l_Undef;
@@ -10,7 +11,7 @@ diff -urN minisat-2.2.1/minisat/core/Solver.cc minisat-2.2.1.patched/minisat/cor
10
11
polarity[x] = sign(trail[c]);
11
12
insertVarOrder(x); }
12
13
qhead = trail_lim[level];
13
- @@ -666,7 +666,7 @@
14
+ @@ -666,7 +666,7 @@ lbool Solver::search(int nof_conflicts)
14
15
15
16
}else{
16
17
// NO CONFLICT
@@ -19,10 +20,11 @@ diff -urN minisat-2.2.1/minisat/core/Solver.cc minisat-2.2.1.patched/minisat/cor
19
20
// Reached bound on number of conflicts:
20
21
progress_estimate = progressEstimate();
21
22
cancelUntil(0);
22
- diff -urN minisat-2.2.1/minisat/core/SolverTypes.h minisat-2.2.1.patched/minisat/core/SolverTypes.h
23
- --- minisat-2.2.1/minisat/core/SolverTypes.h 2011-02-21 13:31:17.000000000 +0000
24
- +++ minisat-2.2.1.patched/minisat/core/SolverTypes.h 2016-03-05 16:29:42.000000000 +0000
25
- @@ -47,7 +47,7 @@
23
+ diff --git a/minisat/core/SolverTypes.h b/minisat/core/SolverTypes.h
24
+ index 4757b20..c3fae2b 100644
25
+ --- a/minisat/core/SolverTypes.h
26
+ +++ b/minisat/core/SolverTypes.h
27
+ @@ -47,7 +47,7 @@ struct Lit {
26
28
int x;
27
29
28
30
// Use this as a constructor:
@@ -31,7 +33,7 @@ diff -urN minisat-2.2.1/minisat/core/SolverTypes.h minisat-2.2.1.patched/minisat
31
33
32
34
bool operator == (Lit p) const { return x == p.x; }
33
35
bool operator != (Lit p) const { return x != p.x; }
34
- @@ -55,7 +55,7 @@
36
+ @@ -55,7 +55,7 @@ struct Lit {
35
37
};
36
38
37
39
@@ -40,7 +42,18 @@ diff -urN minisat-2.2.1/minisat/core/SolverTypes.h minisat-2.2.1.patched/minisat
40
42
inline Lit operator ~(Lit p) { Lit q; q.x = p.x ^ 1; return q; }
41
43
inline Lit operator ^(Lit p, bool b) { Lit q; q.x = p.x ^ (unsigned int)b; return q; }
42
44
inline bool sign (Lit p) { return p.x & 1; }
43
- @@ -142,11 +142,12 @@
45
+ @@ -127,7 +127,10 @@ class Clause {
46
+ unsigned has_extra : 1;
47
+ unsigned reloced : 1;
48
+ unsigned size : 27; } header;
49
+ +#include <util/pragma_push.def>
50
+ +#include <util/pragma_wzero_length_array.def>
51
+ union { Lit lit; float act; uint32_t abs; CRef rel; } data[0];
52
+ +#include <util/pragma_pop.def>
53
+
54
+ friend class ClauseAllocator;
55
+
56
+ @@ -142,11 +145,12 @@ class Clause {
44
57
for (int i = 0; i < ps.size(); i++)
45
58
data[i].lit = ps[i];
46
59
@@ -54,7 +67,7 @@ diff -urN minisat-2.2.1/minisat/core/SolverTypes.h minisat-2.2.1.patched/minisat
54
67
}
55
68
56
69
// NOTE: This constructor cannot be used directly (doesn't allocate enough memory).
57
- @@ -157,11 +158 ,12 @@
70
+ @@ -157,11 +161 ,12 @@ class Clause {
58
71
for (int i = 0; i < from.size(); i++)
59
72
data[i].lit = from[i];
60
73
@@ -68,10 +81,11 @@ diff -urN minisat-2.2.1/minisat/core/SolverTypes.h minisat-2.2.1.patched/minisat
68
81
}
69
82
70
83
public:
71
- diff -urN minisat-2.2.1/minisat/mtl/IntTypes.h minisat-2.2.1.patched/minisat/mtl/IntTypes.h
72
- --- minisat-2.2.1/minisat/mtl/IntTypes.h 2011-02-21 13:31:17.000000000 +0000
73
- +++ minisat-2.2.1.patched/minisat/mtl/IntTypes.h 2016-03-05 16:21:17.000000000 +0000
74
- @@ -31,7 +31,9 @@
84
+ diff --git a/minisat/mtl/IntTypes.h b/minisat/mtl/IntTypes.h
85
+ index c488162..e8e24bd 100644
86
+ --- a/minisat/mtl/IntTypes.h
87
+ +++ b/minisat/mtl/IntTypes.h
88
+ @@ -31,7 +31,9 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
75
89
#else
76
90
77
91
# include <stdint.h>
@@ -81,10 +95,11 @@ diff -urN minisat-2.2.1/minisat/mtl/IntTypes.h minisat-2.2.1.patched/minisat/mtl
81
95
82
96
#endif
83
97
84
- diff -urN minisat-2.2.1/minisat/mtl/Vec.h minisat-2.2.1.patched/minisat/mtl/Vec.h
85
- --- minisat-2.2.1/minisat/mtl/Vec.h 2011-02-21 13:31:17.000000000 +0000
86
- +++ minisat-2.2.1.patched/minisat/mtl/Vec.h 2016-03-05 16:21:17.000000000 +0000
87
- @@ -96,7 +96,7 @@
98
+ diff --git a/minisat/mtl/Vec.h b/minisat/mtl/Vec.h
99
+ index b225911..d46e169 100644
100
+ --- a/minisat/mtl/Vec.h
101
+ +++ b/minisat/mtl/Vec.h
102
+ @@ -96,7 +96,7 @@ template<class T>
88
103
void vec<T>::capacity(int min_cap) {
89
104
if (cap >= min_cap) return;
90
105
int add = imax((min_cap - cap + 1) & ~1, ((cap >> 1) + 2) & ~1); // NOTE: grow by approximately 3/2
@@ -93,10 +108,11 @@ diff -urN minisat-2.2.1/minisat/mtl/Vec.h minisat-2.2.1.patched/minisat/mtl/Vec.
93
108
throw OutOfMemoryException();
94
109
}
95
110
96
- diff -urN minisat-2.2.1/minisat/simp/SimpSolver.cc minisat-2.2.1.patched/minisat/simp/SimpSolver.cc
97
- --- minisat-2.2.1/minisat/simp/SimpSolver.cc 2011-02-21 13:31:17.000000000 +0000
98
- +++ minisat-2.2.1.patched/minisat/simp/SimpSolver.cc 2016-03-05 16:21:17.000000000 +0000
99
- @@ -130,8 +130,6 @@
111
+ diff --git a/minisat/simp/SimpSolver.cc b/minisat/simp/SimpSolver.cc
112
+ index 1d219a3..5ccdb67 100644
113
+ --- a/minisat/simp/SimpSolver.cc
114
+ +++ b/minisat/simp/SimpSolver.cc
115
+ @@ -130,8 +130,6 @@ lbool SimpSolver::solve_(bool do_simp, bool turn_off_simp)
100
116
return result;
101
117
}
102
118
@@ -105,7 +121,7 @@ diff -urN minisat-2.2.1/minisat/simp/SimpSolver.cc minisat-2.2.1.patched/minisat
105
121
bool SimpSolver::addClause_(vec<Lit>& ps)
106
122
{
107
123
#ifndef NDEBUG
108
- @@ -227,10 +225,12 @@
124
+ @@ -227,10 +225,12 @@ bool SimpSolver::merge(const Clause& _ps, const Clause& _qs, Var v, vec<Lit>& ou
109
125
if (var(qs[i]) != v){
110
126
for (int j = 0; j < ps.size(); j++)
111
127
if (var(ps[j]) == var(qs[i]))
@@ -118,7 +134,7 @@ diff -urN minisat-2.2.1/minisat/simp/SimpSolver.cc minisat-2.2.1.patched/minisat
118
134
out_clause.push(qs[i]);
119
135
}
120
136
next:;
121
- @@ -261,10 +261,12 @@
137
+ @@ -261,10 +261,12 @@ bool SimpSolver::merge(const Clause& _ps, const Clause& _qs, Var v, int& size)
122
138
if (var(__qs[i]) != v){
123
139
for (int j = 0; j < ps.size(); j++)
124
140
if (var(__ps[j]) == var(__qs[i]))
@@ -131,10 +147,11 @@ diff -urN minisat-2.2.1/minisat/simp/SimpSolver.cc minisat-2.2.1.patched/minisat
131
147
size++;
132
148
}
133
149
next:;
134
- diff -urN minisat-2.2.1/minisat/utils/Options.h minisat-2.2.1.patched/minisat/utils/Options.h
135
- --- minisat-2.2.1/minisat/utils/Options.h 2011-02-21 13:31:17.000000000 +0000
136
- +++ minisat-2.2.1.patched/minisat/utils/Options.h 2016-03-05 16:21:17.000000000 +0000
137
- @@ -60,7 +60,7 @@
150
+ diff --git a/minisat/utils/Options.h b/minisat/utils/Options.h
151
+ index 2dba10f..7d2e83a 100644
152
+ --- a/minisat/utils/Options.h
153
+ +++ b/minisat/utils/Options.h
154
+ @@ -60,7 +60,7 @@ class Option
138
155
struct OptionLt {
139
156
bool operator()(const Option* x, const Option* y) {
140
157
int test1 = strcmp(x->category, y->category);
@@ -143,7 +160,7 @@ diff -urN minisat-2.2.1/minisat/utils/Options.h minisat-2.2.1.patched/minisat/ut
143
160
}
144
161
};
145
162
146
- @@ -282,15 +282,15 @@
163
+ @@ -282,15 +282,15 @@ class Int64Option : public Option
147
164
if (range.begin == INT64_MIN)
148
165
fprintf(stderr, "imin");
149
166
else
@@ -162,10 +179,11 @@ diff -urN minisat-2.2.1/minisat/utils/Options.h minisat-2.2.1.patched/minisat/ut
162
179
if (verbose){
163
180
fprintf(stderr, "\n %s\n", description);
164
181
fprintf(stderr, "\n");
165
- diff -urN minisat-2.2.1/minisat/utils/ParseUtils.h minisat-2.2.1.patched/minisat/utils/ParseUtils.h
166
- --- minisat-2.2.1/minisat/utils/ParseUtils.h 2011-02-21 13:31:17.000000000 +0000
167
- +++ minisat-2.2.1.patched/minisat/utils/ParseUtils.h 2016-03-05 16:21:17.000000000 +0000
168
- @@ -24,7 +24,7 @@
182
+ diff --git a/minisat/utils/ParseUtils.h b/minisat/utils/ParseUtils.h
183
+ index d307164..7b46f09 100644
184
+ --- a/minisat/utils/ParseUtils.h
185
+ +++ b/minisat/utils/ParseUtils.h
186
+ @@ -24,7 +24,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
169
187
#include <stdlib.h>
170
188
#include <stdio.h>
171
189
@@ -174,7 +192,7 @@ diff -urN minisat-2.2.1/minisat/utils/ParseUtils.h minisat-2.2.1.patched/minisat
174
192
175
193
namespace Minisat {
176
194
177
- @@ -35,7 +35,7 @@
195
+ @@ -35,7 +35,7 @@ static const int buffer_size = 1048576;
178
196
179
197
180
198
class StreamBuffer {
@@ -183,7 +201,7 @@ diff -urN minisat-2.2.1/minisat/utils/ParseUtils.h minisat-2.2.1.patched/minisat
183
201
unsigned char buf[buffer_size];
184
202
int pos;
185
203
int size;
186
- @@ -43,10 +43,10 @@
204
+ @@ -43,10 +43,10 @@ class StreamBuffer {
187
205
void assureLookahead() {
188
206
if (pos >= size) {
189
207
pos = 0;
@@ -196,10 +214,11 @@ diff -urN minisat-2.2.1/minisat/utils/ParseUtils.h minisat-2.2.1.patched/minisat
196
214
197
215
int operator * () const { return (pos >= size) ? EOF : buf[pos]; }
198
216
void operator ++ () { pos++; assureLookahead(); }
199
- diff -urN minisat-2.2.1/minisat/utils/System.h minisat-2.2.1.patched/minisat/utils/System.h
200
- --- minisat-2.2.1/minisat/utils/System.h 2017-02-21 18:23:22.727464369 +0000
201
- +++ minisat-2.2.1.patched/minisat/utils/System.h 2017-02-21 18:23:14.451343361 +0000
202
- @@ -21,7 +21,7 @@
217
+ diff --git a/minisat/utils/System.h b/minisat/utils/System.h
218
+ index 9cbbc51..27b9700 100644
219
+ --- a/minisat/utils/System.h
220
+ +++ b/minisat/utils/System.h
221
+ @@ -21,7 +21,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
203
222
#ifndef Minisat_System_h
204
223
#define Minisat_System_h
205
224
0 commit comments