mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									2589f2bad4
								
							
						
					
					
						commit
						848a8ebb98
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -177,6 +177,8 @@ namespace array {
 | 
			
		|||
        auto set_index = [&](euf::enode* arg) { if (arg->get_root() == r) is_index = true; };
 | 
			
		||||
        auto set_value = [&](euf::enode* arg) { if (arg->get_root() == r) is_value = true; };
 | 
			
		||||
 | 
			
		||||
        if (a.is_ext(n->get_expr()))
 | 
			
		||||
            return true;
 | 
			
		||||
        for (euf::enode* parent : euf::enode_parents(r)) {
 | 
			
		||||
            app* p = parent->get_app();
 | 
			
		||||
            unsigned num_args = parent->num_args();
 | 
			
		||||
| 
						 | 
				
			
			@ -193,7 +195,7 @@ namespace array {
 | 
			
		|||
            }
 | 
			
		||||
            else if (a.is_const(p)) {
 | 
			
		||||
                set_value(parent->get_arg(0));
 | 
			
		||||
            }
 | 
			
		||||
            }            
 | 
			
		||||
            if (is_array + is_index + is_value > 1)
 | 
			
		||||
                return true;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,7 +44,6 @@ namespace q {
 | 
			
		|||
            unsigned lim = m_indirect_nodes.size();
 | 
			
		||||
            lit l = c[i];
 | 
			
		||||
            lbool cmp = compare(n, binding, l.lhs, l.rhs, evidence);
 | 
			
		||||
            std::cout << l.sign << ": " << l.lhs << " ~~ " << l.rhs << " " << cmp << "\n";
 | 
			
		||||
            switch (cmp) {
 | 
			
		||||
            case l_false:
 | 
			
		||||
                m_indirect_nodes.shrink(lim);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue