mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Improved error handling in yosys-smtbmc
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									707ddb77bc
								
							
						
					
					
						commit
						ae4e204c76
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -135,7 +135,8 @@ class SmtIo: | ||||||
|     def __del__(self): |     def __del__(self): | ||||||
|         if self.p is not None: |         if self.p is not None: | ||||||
|             os.killpg(os.getpgid(self.p.pid), signal.SIGTERM) |             os.killpg(os.getpgid(self.p.pid), signal.SIGTERM) | ||||||
|             del running_solvers[self.p_index] |             if running_solvers is not None: | ||||||
|  |                 del running_solvers[self.p_index] | ||||||
| 
 | 
 | ||||||
|     def setup(self): |     def setup(self): | ||||||
|         assert not self.setup_done |         assert not self.setup_done | ||||||
|  | @ -264,6 +265,7 @@ class SmtIo: | ||||||
|             data = self.p.stdout.readline().decode("ascii") |             data = self.p.stdout.readline().decode("ascii") | ||||||
|             if data == "": break |             if data == "": break | ||||||
|             self.p_queue.put(data) |             self.p_queue.put(data) | ||||||
|  |         self.p_queue.put("") | ||||||
|         self.p_running = False |         self.p_running = False | ||||||
| 
 | 
 | ||||||
|     def p_open(self): |     def p_open(self): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue