mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	DoC: fix bug in insertion when inserting an element equal to on on the disjunction already
Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
		
							parent
							
								
									7d599fa047
								
							
						
					
					
						commit
						e778f3e65b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -175,17 +175,17 @@ public:
 | 
			
		|||
            if (m.contains(*m_elems[i], *t)) {
 | 
			
		||||
                found = true;
 | 
			
		||||
            }
 | 
			
		||||
            if (m.contains(*t, *m_elems[i])) {
 | 
			
		||||
            else if (m.contains(*t, *m_elems[i])) {
 | 
			
		||||
                m.deallocate(m_elems[i]);
 | 
			
		||||
                --j;
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
            else if (i != j) {                
 | 
			
		||||
            if (i != j) {
 | 
			
		||||
                m_elems[j] = m_elems[i];
 | 
			
		||||
            } 
 | 
			
		||||
        }
 | 
			
		||||
        if (j != sz) m_elems.resize(j);
 | 
			
		||||
        if (found) {
 | 
			
		||||
            SASSERT(j == i);
 | 
			
		||||
            m.deallocate(t);
 | 
			
		||||
        }
 | 
			
		||||
        else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue