mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #10734 from ethereum/smt_fix_bfs_agaon
Fix BFS visit
This commit is contained in:
		
						commit
						e6d3fcbdc7
					
				| @ -106,11 +106,11 @@ struct BreadthFirstSearch | |||||||
| 			V v = std::move(verticesToTraverse.front()); | 			V v = std::move(verticesToTraverse.front()); | ||||||
| 			verticesToTraverse.pop_front(); | 			verticesToTraverse.pop_front(); | ||||||
| 
 | 
 | ||||||
| 			visited.insert(v); | 			if (!visited.insert(v).second) | ||||||
|  | 				continue; | ||||||
| 
 | 
 | ||||||
| 			_forEachChild(v, [this](V _vertex) { | 			_forEachChild(v, [this](V _vertex) { | ||||||
| 				if (!visited.count(_vertex)) | 				verticesToTraverse.emplace_back(std::move(_vertex)); | ||||||
| 					verticesToTraverse.emplace_back(std::move(_vertex)); |  | ||||||
| 			}); | 			}); | ||||||
| 		} | 		} | ||||||
| 		return *this; | 		return *this; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user