mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Merge pull request #1768 from boqwxp/smt2_cleanup
Clean up pseudo-private member usage in `backends/smt2/smt2.cc`.
This commit is contained in:
		
						commit
						020f6d167a
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -1508,11 +1508,11 @@ struct Smt2Backend : public Backend { | |||
| 
 | ||||
| 		// extract module dependencies
 | ||||
| 		std::map<RTLIL::Module*, std::set<RTLIL::Module*>> module_deps; | ||||
| 		for (auto &mod_it : design->modules_) { | ||||
| 			module_deps[mod_it.second] = std::set<RTLIL::Module*>(); | ||||
| 			for (auto &cell_it : mod_it.second->cells_) | ||||
| 				if (design->modules_.count(cell_it.second->type) > 0) | ||||
| 					module_deps[mod_it.second].insert(design->modules_.at(cell_it.second->type)); | ||||
| 		for (auto mod : design->modules()) { | ||||
| 			module_deps[mod] = std::set<RTLIL::Module*>(); | ||||
| 			for (auto cell : mod->cells()) | ||||
| 				if (design->has(cell->type)) | ||||
| 					module_deps[mod].insert(design->module(cell->type)); | ||||
| 		} | ||||
| 
 | ||||
| 		// simple good-enough topological sort
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue