mirror of
https://github.com/Z3Prover/z3
synced 2025-06-05 21:53:23 +00:00
removing failed literal macro
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4adf4d4ac2
commit
a658e46b1f
1 changed files with 0 additions and 15 deletions
|
@ -1576,7 +1576,6 @@ namespace sat {
|
||||||
TRACE("sat_verbose", display(tout << scope_lvl() << " " << (inconsistent()?"unsat":"sat") << "\n"););
|
TRACE("sat_verbose", display(tout << scope_lvl() << " " << (inconsistent()?"unsat":"sat") << "\n"););
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CHECK_FAILED_LITERAL 0
|
|
||||||
|
|
||||||
void lookahead::compute_lookahead_reward() {
|
void lookahead::compute_lookahead_reward() {
|
||||||
init_lookahead_reward();
|
init_lookahead_reward();
|
||||||
|
@ -1585,10 +1584,6 @@ namespace sat {
|
||||||
unsigned base = 2;
|
unsigned base = 2;
|
||||||
bool change = true;
|
bool change = true;
|
||||||
literal last_changed = null_literal;
|
literal last_changed = null_literal;
|
||||||
#if CHECK_FAILED_LITERAL
|
|
||||||
unsigned_vector assigns;
|
|
||||||
literal_vector assigns_lits;
|
|
||||||
#endif
|
|
||||||
while (change && !inconsistent()) {
|
while (change && !inconsistent()) {
|
||||||
change = false;
|
change = false;
|
||||||
for (unsigned i = 0; !inconsistent() && i < m_lookahead.size(); ++i) {
|
for (unsigned i = 0; !inconsistent() && i < m_lookahead.size(); ++i) {
|
||||||
|
@ -1616,10 +1611,6 @@ namespace sat {
|
||||||
if (unsat) {
|
if (unsat) {
|
||||||
TRACE("sat", tout << "backtracking and settting " << ~lit << "\n";);
|
TRACE("sat", tout << "backtracking and settting " << ~lit << "\n";);
|
||||||
reset_lookahead_reward();
|
reset_lookahead_reward();
|
||||||
#if CHECK_FAILED_LITERAL
|
|
||||||
assigns.push_back(m_trail.size());
|
|
||||||
assigns_lits.push_back(~lit);
|
|
||||||
#endif
|
|
||||||
assign(~lit);
|
assign(~lit);
|
||||||
propagate();
|
propagate();
|
||||||
init_lookahead_reward();
|
init_lookahead_reward();
|
||||||
|
@ -1639,12 +1630,6 @@ namespace sat {
|
||||||
base += 2 * m_lookahead.size();
|
base += 2 * m_lookahead.size();
|
||||||
}
|
}
|
||||||
reset_lookahead_reward();
|
reset_lookahead_reward();
|
||||||
#if CHECK_FAILED_LITERAL
|
|
||||||
for (unsigned i = 0; i < assigns.size(); ++i) {
|
|
||||||
std::cout << "check trail: " << m_trail[assigns[i]] << " " << assigns_lits[i] << "\n";
|
|
||||||
VERIFY(m_trail[assigns[i]] == assigns_lits[i]);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
TRACE("sat", display_lookahead(tout); );
|
TRACE("sat", display_lookahead(tout); );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue