mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Assert that box_unique_id is indeed unique
This commit is contained in:
		
							parent
							
								
									295bd8d0bf
								
							
						
					
					
						commit
						d018cd9fe3
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -198,11 +198,12 @@ void AigerReader::parse_xaiger() | |||
| 
 | ||||
|     dict<int,IdString> box_lookup; | ||||
|     for (auto m : design->modules()) { | ||||
|         if (m->name[0] == '$') continue; | ||||
|         auto it = m->attributes.find("\\abc_box_id"); | ||||
|         if (it == m->attributes.end()) | ||||
|             continue; | ||||
|         box_lookup[it->second.as_int()] = m->name; | ||||
|         if (m->name[0] == '$') continue; | ||||
|         auto r = box_lookup.insert(std::make_pair(it->second.as_int(), m->name)); | ||||
|         log_assert(r.second); | ||||
|     } | ||||
| 
 | ||||
|     // Parse footer (symbol table, comments, etc.)
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue