mirror of
https://github.com/Z3Prover/z3
synced 2025-08-07 11:41:22 +00:00
create insert-fresh and insert for indexed_uint_set to make use cases with non-fresh inserts easier
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0478ab1498
commit
7b36563196
5 changed files with 13 additions and 8 deletions
|
@ -317,7 +317,7 @@ namespace sat {
|
|||
// cls becomes false: flip any variable in clause to receive reward w
|
||||
switch (ci.m_num_trues) {
|
||||
case 0: {
|
||||
m_unsat.insert(cls_idx);
|
||||
m_unsat.insert_fresh(cls_idx);
|
||||
clause const& c = get_clause(cls_idx);
|
||||
for (literal l : c) {
|
||||
inc_reward(l, w);
|
||||
|
@ -406,7 +406,7 @@ namespace sat {
|
|||
inc_reward(lit, ci.m_weight);
|
||||
inc_make(lit);
|
||||
}
|
||||
m_unsat.insert(i);
|
||||
m_unsat.insert_fresh(i);
|
||||
break;
|
||||
case 1:
|
||||
dec_reward(to_literal(ci.m_trues), ci.m_weight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue