mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	fix bug in contains check
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									22808a039d
								
							
						
					
					
						commit
						816119e8ae
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -480,7 +480,7 @@ bool doc_manager::contains(doc const& a, doc const& b) const {
 | 
			
		|||
    for (unsigned i = 0; i < a.neg().size(); ++i) {
 | 
			
		||||
        bool found = false;
 | 
			
		||||
        for (unsigned j = 0; !found && j < b.neg().size(); ++j) {
 | 
			
		||||
            found = m.contains(b.neg()[i],a.neg()[j]);
 | 
			
		||||
            found = m.contains(b.neg()[j],a.neg()[i]);
 | 
			
		||||
        }
 | 
			
		||||
        if (!found) return false;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -887,6 +887,7 @@ namespace datalog {
 | 
			
		|||
            u.intersect(dm, m_udoc);
 | 
			
		||||
            SASSERT(u.well_formed(dm));
 | 
			
		||||
            if (m_condition && !u.is_empty()) {
 | 
			
		||||
                std::cout << "Apply: " << m_condition << "\n";
 | 
			
		||||
                t.apply_guard(m_condition, u, m_equalities, m_empty_bv);
 | 
			
		||||
                SASSERT(u.well_formed(dm));
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue