mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Add proper error message for btor recursion_guard
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									67a4850e35
								
							
						
					
					
						commit
						b7dd7c2dcd
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -129,7 +129,13 @@ struct BtorWorker
 | 
			
		|||
 | 
			
		||||
	void export_cell(Cell *cell)
 | 
			
		||||
	{
 | 
			
		||||
		log_assert(cell_recursion_guard.count(cell) == 0);
 | 
			
		||||
		if (cell_recursion_guard.count(cell)) {
 | 
			
		||||
			string cell_list;
 | 
			
		||||
			for (auto c : cell_recursion_guard)
 | 
			
		||||
				cell_list += stringf("\n    %s", log_id(c));
 | 
			
		||||
			log_error("Found topological loop while processing cell %s. Active cells:%s\n", log_id(cell), cell_list.c_str());
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		cell_recursion_guard.insert(cell);
 | 
			
		||||
		btorf_push(log_id(cell));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue