mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	smtbmc: noincr: keep solver running for post check-sat unrolling
This commit is contained in:
		
							parent
							
								
									6db2948938
								
							
						
					
					
						commit
						0c5f62f6ff
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -411,6 +411,13 @@ class SmtIo: | ||||||
| 
 | 
 | ||||||
|         recheck = None |         recheck = None | ||||||
| 
 | 
 | ||||||
|  |         if self.solver != "dummy": | ||||||
|  |             if self.noincr: | ||||||
|  |                 # Don't close the solver yet, if we're just unrolling definitions | ||||||
|  |                 # required for a (get-...) statement | ||||||
|  |                 if self.p is not None and not stmt.startswith("(get-") and unroll: | ||||||
|  |                     self.p_close() | ||||||
|  | 
 | ||||||
|         if unroll and self.unroll: |         if unroll and self.unroll: | ||||||
|             stmt = self.unroll_buffer + stmt |             stmt = self.unroll_buffer + stmt | ||||||
|             self.unroll_buffer = "" |             self.unroll_buffer = "" | ||||||
|  | @ -473,8 +480,6 @@ class SmtIo: | ||||||
| 
 | 
 | ||||||
|         if self.solver != "dummy": |         if self.solver != "dummy": | ||||||
|             if self.noincr: |             if self.noincr: | ||||||
|                 if self.p is not None and not stmt.startswith("(get-"): |  | ||||||
|                     self.p_close() |  | ||||||
|                 if stmt == "(push 1)": |                 if stmt == "(push 1)": | ||||||
|                     self.smt2cache.append(list()) |                     self.smt2cache.append(list()) | ||||||
|                 elif stmt == "(pop 1)": |                 elif stmt == "(pop 1)": | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue