1
- diff -rupN minisat-2.2.0/ core/Solver.cc minisat-2.2.0 .patched/core/Solver.cc
2
- --- minisat-2.2.0/ core/Solver.cc 2010-07-10 17:07:36 .000000000 +0100
3
- +++ minisat-2.2.0 .patched/core/Solver.cc 2015-05-22 19:06:39 .000000000 +0100
4
- @@ -209 ,7 +209 ,7 @@ void Solver::cancelUntil(int level) {
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 @@
5
5
for (int c = trail.size()-1; c >= trail_lim[level]; c--){
6
6
Var x = var(trail[c]);
7
7
assigns [x] = l_Undef;
@@ -10,7 +10,7 @@ diff -rupN minisat-2.2.0/core/Solver.cc minisat-2.2.0.patched/core/Solver.cc
10
10
polarity[x] = sign(trail[c]);
11
11
insertVarOrder(x); }
12
12
qhead = trail_lim[level];
13
- @@ -657 ,7 +657 ,7 @@ lbool Solver::search(int nof_conflicts)
13
+ @@ -666 ,7 +666 ,7 @@
14
14
15
15
}else{
16
16
// NO CONFLICT
@@ -19,10 +19,10 @@ diff -rupN minisat-2.2.0/core/Solver.cc minisat-2.2.0.patched/core/Solver.cc
19
19
// Reached bound on number of conflicts:
20
20
progress_estimate = progressEstimate();
21
21
cancelUntil(0);
22
- diff -rupN minisat-2.2.0/ core/SolverTypes.h minisat-2.2.0 .patched/core/SolverTypes.h
23
- --- minisat-2.2.0/ core/SolverTypes.h 2010-07-10 17:07:36 .000000000 +0100
24
- +++ minisat-2.2.0 .patched/core/SolverTypes.h 2015-05-22 19:06:39 .000000000 +0100
25
- @@ -47,7 +47,7 @@ struct Lit {
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 @@
26
26
int x;
27
27
28
28
// Use this as a constructor:
@@ -31,7 +31,7 @@ diff -rupN minisat-2.2.0/core/SolverTypes.h minisat-2.2.0.patched/core/SolverTyp
31
31
32
32
bool operator == (Lit p) const { return x == p.x; }
33
33
bool operator != (Lit p) const { return x != p.x; }
34
- @@ -55,7 +55,7 @@ struct Lit {
34
+ @@ -55,7 +55,7 @@
35
35
};
36
36
37
37
@@ -40,10 +40,38 @@ diff -rupN minisat-2.2.0/core/SolverTypes.h minisat-2.2.0.patched/core/SolverTyp
40
40
inline Lit operator ~(Lit p) { Lit q; q.x = p.x ^ 1; return q; }
41
41
inline Lit operator ^(Lit p, bool b) { Lit q; q.x = p.x ^ (unsigned int)b; return q; }
42
42
inline bool sign (Lit p) { return p.x & 1; }
43
- diff -rupN minisat-2.2.0/mtl/IntTypes.h minisat-2.2.0.patched/mtl/IntTypes.h
44
- --- minisat-2.2.0/mtl/IntTypes.h 2010-07-10 17:07:36.000000000 +0100
45
- +++ minisat-2.2.0.patched/mtl/IntTypes.h 2015-05-22 19:06:39.000000000 +0100
46
- @@ -31,7 +31,9 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR
43
+ @@ -142,11 +142,12 @@
44
+ for (int i = 0; i < ps.size(); i++)
45
+ data[i].lit = ps[i];
46
+
47
+ - if (header.has_extra)
48
+ + if (header.has_extra) {
49
+ if (header.learnt)
50
+ data[header.size].act = 0;
51
+ else
52
+ calcAbstraction();
53
+ + }
54
+ }
55
+
56
+ // NOTE: This constructor cannot be used directly (doesn't allocate enough memory).
57
+ @@ -157,11 +158,12 @@
58
+ for (int i = 0; i < from.size(); i++)
59
+ data[i].lit = from[i];
60
+
61
+ - if (header.has_extra)
62
+ + if (header.has_extra) {
63
+ if (header.learnt)
64
+ data[header.size].act = from.data[header.size].act;
65
+ else
66
+ data[header.size].abs = from.data[header.size].abs;
67
+ + }
68
+ }
69
+
70
+ 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 @@
47
75
#else
48
76
49
77
# include <stdint.h>
@@ -53,10 +81,10 @@ diff -rupN minisat-2.2.0/mtl/IntTypes.h minisat-2.2.0.patched/mtl/IntTypes.h
53
81
54
82
#endif
55
83
56
- diff -rupN minisat-2.2.0/ mtl/Vec.h minisat-2.2.0 .patched/mtl/Vec.h
57
- --- minisat-2.2.0/ mtl/Vec.h 2010-07-10 17:07:36 .000000000 +0100
58
- +++ minisat-2.2.0 .patched/mtl/Vec.h 2015-05-22 19:06:39 .000000000 +0100
59
- @@ -96,7 +96,7 @@ template<class T>
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 @@
60
88
void vec<T>::capacity(int min_cap) {
61
89
if (cap >= min_cap) return;
62
90
int add = imax((min_cap - cap + 1) & ~1, ((cap >> 1) + 2) & ~1); // NOTE: grow by approximately 3/2
@@ -65,10 +93,10 @@ diff -rupN minisat-2.2.0/mtl/Vec.h minisat-2.2.0.patched/mtl/Vec.h
65
93
throw OutOfMemoryException();
66
94
}
67
95
68
- diff -rupN minisat-2.2.0/ simp/SimpSolver.cc minisat-2.2.0 .patched/simp/SimpSolver.cc
69
- --- minisat-2.2.0/ simp/SimpSolver.cc 2010-07-10 17:07:36 .000000000 +0100
70
- +++ minisat-2.2.0 .patched/simp/SimpSolver.cc 2015-06-14 22:37:51 .000000000 +0100
71
- @@ -130,8 +130,6 @@ lbool SimpSolver::solve_(bool do_simp, b
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 @@
72
100
return result;
73
101
}
74
102
@@ -77,7 +105,7 @@ diff -rupN minisat-2.2.0/simp/SimpSolver.cc minisat-2.2.0.patched/simp/SimpSolve
77
105
bool SimpSolver::addClause_(vec<Lit>& ps)
78
106
{
79
107
#ifndef NDEBUG
80
- @@ -227,10 +225,12 @@ bool SimpSolver::merge(const Clause& _ps
108
+ @@ -227,10 +225,12 @@
81
109
if (var(qs[i]) != v){
82
110
for (int j = 0; j < ps.size(); j++)
83
111
if (var(ps[j]) == var(qs[i]))
@@ -90,7 +118,7 @@ diff -rupN minisat-2.2.0/simp/SimpSolver.cc minisat-2.2.0.patched/simp/SimpSolve
90
118
out_clause.push(qs[i]);
91
119
}
92
120
next:;
93
- @@ -261,10 +261,12 @@ bool SimpSolver::merge(const Clause& _ps
121
+ @@ -261,10 +261,12 @@
94
122
if (var(__qs[i]) != v){
95
123
for (int j = 0; j < ps.size(); j++)
96
124
if (var(__ps[j]) == var(__qs[i]))
@@ -103,10 +131,10 @@ diff -rupN minisat-2.2.0/simp/SimpSolver.cc minisat-2.2.0.patched/simp/SimpSolve
103
131
size++;
104
132
}
105
133
next:;
106
- diff -rupN minisat-2.2.0/ utils/Options.h minisat-2.2.0 .patched/utils/Options.h
107
- --- minisat-2.2.0/ utils/Options.h 2010-07-10 17:07:36 .000000000 +0100
108
- +++ minisat-2.2.0 .patched/utils/Options.h 2015-06-14 22:33:24 .000000000 +0100
109
- @@ -60,7 +60,7 @@ class Option
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 @@
110
138
struct OptionLt {
111
139
bool operator()(const Option* x, const Option* y) {
112
140
int test1 = strcmp(x->category, y->category);
@@ -115,7 +143,7 @@ diff -rupN minisat-2.2.0/utils/Options.h minisat-2.2.0.patched/utils/Options.h
115
143
}
116
144
};
117
145
118
- @@ -282,15 +282,15 @@ class Int64Option : public Option
146
+ @@ -282,15 +282,15 @@
119
147
if (range.begin == INT64_MIN)
120
148
fprintf(stderr, "imin");
121
149
else
@@ -134,10 +162,10 @@ diff -rupN minisat-2.2.0/utils/Options.h minisat-2.2.0.patched/utils/Options.h
134
162
if (verbose){
135
163
fprintf(stderr, "\n %s\n", description);
136
164
fprintf(stderr, "\n");
137
- diff -rupN minisat-2.2.0/ utils/ParseUtils.h minisat-2.2.0 .patched/utils/ParseUtils.h
138
- --- minisat-2.2.0/ utils/ParseUtils.h 2010-07-10 17:07:36 .000000000 +0100
139
- +++ minisat-2.2.0 .patched/utils/ParseUtils.h 2015-05-22 19:06:39 .000000000 +0100
140
- @@ -24,7 +24,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR
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 @@
141
169
#include <stdlib.h>
142
170
#include <stdio.h>
143
171
@@ -146,7 +174,7 @@ diff -rupN minisat-2.2.0/utils/ParseUtils.h minisat-2.2.0.patched/utils/ParseUti
146
174
147
175
namespace Minisat {
148
176
149
- @@ -35,7 +35,7 @@ static const int buffer_size = 1048576;
177
+ @@ -35,7 +35,7 @@
150
178
151
179
152
180
class StreamBuffer {
@@ -155,7 +183,7 @@ diff -rupN minisat-2.2.0/utils/ParseUtils.h minisat-2.2.0.patched/utils/ParseUti
155
183
unsigned char buf[buffer_size];
156
184
int pos;
157
185
int size;
158
- @@ -43,10 +43,10 @@ class StreamBuffer {
186
+ @@ -43,10 +43,10 @@
159
187
void assureLookahead() {
160
188
if (pos >= size) {
161
189
pos = 0;
0 commit comments