mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	reduce invertible update
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									13883de389
								
							
						
					
					
						commit
						7bcd3452b8
					
				
					 2 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -311,9 +311,9 @@ namespace smt {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    void context::assign_core(literal l, b_justification j, bool decision) {
 | 
			
		||||
        CTRACE("assign_core", l.var() == 2816, tout << (decision?"decision: ":"propagating: ") << l << " ";
 | 
			
		||||
              display_literal_smt2(tout, l); tout << " level: " << m_scope_lvl << "\n";
 | 
			
		||||
              display(tout, j););
 | 
			
		||||
        CTRACE("assign_core", l.var() == 13, tout << (decision?"decision: ":"propagating: ") << l << " ";
 | 
			
		||||
               display_literal_smt2(tout, l) << " level: " << m_scope_lvl << "\n";
 | 
			
		||||
               display(tout << "relevant: " << is_relevant_core(l) << "\n", j););
 | 
			
		||||
        m_assigned_literals.push_back(l);
 | 
			
		||||
        m_assignment[l.index()]    = l_true;
 | 
			
		||||
        m_assignment[(~l).index()] = l_false;
 | 
			
		||||
| 
						 | 
				
			
			@ -330,7 +330,8 @@ namespace smt {
 | 
			
		|||
        TRACE("phase_selection", tout << "saving phase, is_pos: " << d.m_phase << " l: " << l << "\n";);
 | 
			
		||||
 | 
			
		||||
        TRACE("relevancy",
 | 
			
		||||
              tout << "is_atom: " << d.is_atom() << " is relevant: " << is_relevant_core(l) << " relevancy-lvl: " << relevancy_lvl() << "\n";);
 | 
			
		||||
              tout << "is_atom: " << d.is_atom() << " is relevant: " 
 | 
			
		||||
              << is_relevant_core(l) << " relevancy-lvl: " << relevancy_lvl() << "\n";);
 | 
			
		||||
        if (d.is_atom() && (relevancy_lvl() == 0 || (relevancy_lvl() == 1 && !d.is_quantifier()) || is_relevant_core(l)))
 | 
			
		||||
            m_atom_propagation_queue.push_back(l);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -91,9 +91,9 @@ public:
 | 
			
		|||
                g->update(idx, f_new, new_pr, g->dep(idx));
 | 
			
		||||
            }  
 | 
			
		||||
            if (mc) g->add(mc.get());
 | 
			
		||||
            result.push_back(g.get());
 | 
			
		||||
            g->inc_depth();
 | 
			
		||||
        }        
 | 
			
		||||
        result.push_back(g.get());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void cleanup() override {}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue