Skip to content

Commit 2bff0a6

Browse files
regression on quantifier weight computation when weights are 0 vs non-0. It modifies a change made for the fix of #2667. That fix caused a regression in F*. Reported @mtzguido
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 68f43ac commit 2bff0a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/smt/qi_queue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ namespace smt {
131131
// max_top_generation and min_top_generation are not available for computing inc_gen
132132
set_values(q, nullptr, generation, 0, 0, cost);
133133
float r = m_evaluator(m_new_gen_function, m_vals.size(), m_vals.data());
134+
if (q->get_weight() > 0 || r > 0)
135+
return static_cast<unsigned>(r);
134136
return std::max(generation + 1, static_cast<unsigned>(r));
135137
}
136138

0 commit comments

Comments
 (0)