mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	fix #5988
This commit is contained in:
		
							parent
							
								
									df981666fd
								
							
						
					
					
						commit
						09b0c4bc9d
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -181,7 +181,7 @@ public:
 | 
			
		|||
                    next.push_back(n);
 | 
			
		||||
            std::sort(next.begin(), next.end(), [&](unsigned a, unsigned b) { return conns[a].num_elems() < conns[b].num_elems(); });
 | 
			
		||||
            for (unsigned x : next) {
 | 
			
		||||
                bool all = true;
 | 
			
		||||
                bool all = heap.contains(x);
 | 
			
		||||
                for (unsigned y : am1) {
 | 
			
		||||
                    if (!conns[x].contains(y)) {
 | 
			
		||||
                        all = false;
 | 
			
		||||
| 
						 | 
				
			
			@ -190,15 +190,18 @@ public:
 | 
			
		|||
                }
 | 
			
		||||
                if (all)
 | 
			
		||||
                    am1.insert(x);
 | 
			
		||||
            }
 | 
			
		||||
            }            
 | 
			
		||||
            am1.insert(v);
 | 
			
		||||
 | 
			
		||||
            for (unsigned x : am1) {
 | 
			
		||||
                todo.remove(x);
 | 
			
		||||
                for (unsigned y : conns[x]) {
 | 
			
		||||
                    conns[y].remove(x);
 | 
			
		||||
                    heap.decreased(y);
 | 
			
		||||
                    if (heap.contains(y))
 | 
			
		||||
                        heap.decreased(y);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
            for (unsigned x : am1) 
 | 
			
		||||
                heap.erase(x);
 | 
			
		||||
                
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue