#include "minimize.h"
#include "inline.h"
Go to the source code of this file.
◆ kissat_minimize_clause()
| void kissat_minimize_clause |
( |
kissat * | solver | ) |
|
Definition at line 157 of file minimize.c.
157 {
159
164
167
169#ifndef KISSAT_NDEBUG
171 const unsigned not_uip = lits[0];
173#endif
174 for (
const unsigned *
p = lits;
p != end;
p++)
176
179 return;
180 }
181
182 unsigned minimized = 0;
183
184 for (
unsigned *
p = end; --
p > lits;) {
185 const unsigned lit = *
p;
190 minimized++;
191 } else
193 }
194
195 unsigned *q = lits;
196 for (
const unsigned *
p = lits;
p != end;
p++) {
197 const unsigned lit = *
p;
200 }
203 LOG (
"clause minimization removed %u literals", minimized);
204
206 ADD (literals_minimized, minimized);
207
208 LOGTMP (
"minimized learned");
209
211
213}
#define SET_END_OF_STACK(S, P)
#define KISSAT_assert(ignore)
void kissat_reset_poisoned(kissat *solver)
◆ kissat_minimize_literal()
| bool kissat_minimize_literal |
( |
kissat * | solver, |
|
|
unsigned | lit, |
|
|
bool | lit_in_clause ) |
Definition at line 138 of file minimize.c.
139 {
142 !lit_in_clause);
143}
◆ kissat_reset_poisoned()
| void kissat_reset_poisoned |
( |
kissat * | solver | ) |
|
Definition at line 145 of file minimize.c.
145 {
153 }
155}
#define all_stack(T, E, S)