mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Improved sat generator and sat_solve pass
This commit is contained in:
		
							parent
							
								
									46fbe9d262
								
							
						
					
					
						commit
						56b593b91c
					
				
					 6 changed files with 57 additions and 15 deletions
				
			
		|  | @ -55,7 +55,7 @@ private: | |||
| 	std::vector<std::pair<OpId, std::vector<int>>> expressions; | ||||
| 
 | ||||
| 	bool cnfConsumed; | ||||
| 	int cnfVariableCount; | ||||
| 	int cnfVariableCount, cnfClausesCount; | ||||
| 	std::vector<int> cnfLiteralVariables, cnfExpressionVariables; | ||||
| 	std::vector<std::vector<int>> cnfClauses; | ||||
| 	std::set<int> cnfAssumptions; | ||||
|  | @ -137,6 +137,7 @@ public: | |||
| 	int bound(int id) const; | ||||
| 
 | ||||
| 	int numCnfVariables() const { return cnfVariableCount; } | ||||
| 	int numCnfClauses() const { return cnfClausesCount; } | ||||
| 	const std::vector<std::vector<int>> &cnf() const { return cnfClauses; } | ||||
| 
 | ||||
| 	void consumeCnf(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue