Definition at line 35 of file cadical_compact.cpp.
◆ Mapper()
Definition at line 53 of file cadical_compact.cpp.
58
60
62 const Flags &f =
internal->flags (src);
63 if (f.active ())
67 }
68
71 }
#define CADICAL_assert(ignore)
void clear_n(T *base, size_t n)
signed char first_fixed_val
◆ ~Mapper()
| CaDiCaL::Mapper::~Mapper |
( |
| ) |
|
|
inline |
◆ map2_vector()
template<class T>
| void CaDiCaL::Mapper::map2_vector |
( |
vector< T > & | v | ) |
|
|
inline |
Definition at line 126 of file cadical_compact.cpp.
126 {
129 if (!dst)
130 continue;
133 v[2 * dst] = v[2 * src];
134 v[2 * dst + 1] = v[2 * src + 1];
135 }
138 }
void shrink_vector(std::vector< T > &v)
◆ map_flush_and_shrink_lits()
| void CaDiCaL::Mapper::map_flush_and_shrink_lits |
( |
vector< int > & | v | ) |
|
|
inline |
Definition at line 144 of file cadical_compact.cpp.
144 {
145 const auto end = v.end ();
146 auto j = v.begin (), i = j;
147 for (; i != end; i++) {
148 const int src = *i;
151 if (!dst)
152 continue;
153 if (src < 0)
154 dst = -dst;
155 *j++ = dst;
156 }
157 v.resize (j - v.begin ());
159 }
◆ map_idx()
| int CaDiCaL::Mapper::map_idx |
( |
int | src | ) |
|
|
inline |
◆ map_lit()
| int CaDiCaL::Mapper::map_lit |
( |
int | src | ) |
|
|
inline |
Definition at line 91 of file cadical_compact.cpp.
91 {
93 if (!res) {
94 const signed char tmp =
internal->val (src);
95 if (tmp) {
99 res = -res;
100 }
101 } else if ((src) < 0)
102 res = -res;
104 return res;
105 }
◆ map_vector()
template<class T>
| void CaDiCaL::Mapper::map_vector |
( |
vector< T > & | v | ) |
|
|
inline |
Definition at line 110 of file cadical_compact.cpp.
110 {
113 if (!dst)
114 continue;
117 v[dst] = v[src];
118 }
121 }
◆ first_fixed
| int CaDiCaL::Mapper::first_fixed |
◆ first_fixed_val
| signed char CaDiCaL::Mapper::first_fixed_val |
◆ internal
◆ map_first_fixed
| int CaDiCaL::Mapper::map_first_fixed |
◆ new_max_var
| int CaDiCaL::Mapper::new_max_var |
◆ new_vsize
| size_t CaDiCaL::Mapper::new_vsize |
◆ table
| int* CaDiCaL::Mapper::table |
The documentation for this struct was generated from the following file: