File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ namespace sat {
164
164
unsigned m_rephase_inc;
165
165
backoff m_rephase;
166
166
backoff m_reorder;
167
- var_queue m_case_split_queue;
167
+ var_queue<unsigned_vector> m_case_split_queue;
168
168
unsigned m_qhead;
169
169
unsigned m_scope_lvl;
170
170
unsigned m_search_lvl;
Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ Revision History:
21
21
#include " util/heap.h"
22
22
23
23
24
-
24
+ template < class ActivityVector >
25
25
class var_queue {
26
26
typedef unsigned var;
27
27
28
28
struct lt {
29
- svector< unsigned > & m_activity;
30
- lt (svector< unsigned > & act):m_activity(act) {}
29
+ ActivityVector & m_activity;
30
+ lt (ActivityVector & act):m_activity(act) {}
31
31
bool operator ()(var v1, var v2) const { return m_activity[v1] > m_activity[v2]; }
32
32
};
33
33
heap<lt> m_queue;
34
- public:
35
34
35
+ public:
36
36
37
- var_queue (svector< unsigned > & act):m_queue(128 , lt(act)) {}
37
+ var_queue (ActivityVector & act):m_queue(128 , lt(act)) {}
38
38
39
39
void activity_increased_eh (var v) {
40
40
if (m_queue.contains (v))
@@ -90,11 +90,12 @@ class var_queue {
90
90
return out;
91
91
}
92
92
93
- using const_iterator = decltype(m_queue)::const_iterator ;
93
+ using const_iterator = const int * ;
94
94
const_iterator begin () const { return m_queue.begin (); }
95
95
const_iterator end () const { return m_queue.end (); }
96
96
};
97
97
98
- inline std::ostream& operator <<(std::ostream& out, var_queue const & queue) {
98
+ template <typename T>
99
+ inline std::ostream& operator <<(std::ostream& out, var_queue<T> const & queue) {
99
100
return queue.display (out);
100
101
}
You can’t perform that action at this time.
0 commit comments