mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-30 19:22:28 +00:00 
			
		
		
		
	minor fixes to rel_context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									312e052788
								
							
						
					
					
						commit
						cdb90968e3
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -40,7 +40,9 @@ namespace datalog { | |||
|         rule_set  m_rules; | ||||
|         decl_set  m_preds; | ||||
|         bool      m_was_closed;                         | ||||
| 
 | ||||
|     public: | ||||
| 
 | ||||
|         scoped_query(context& ctx): | ||||
|             m_ctx(ctx), | ||||
|             m_rules(ctx.get_rules()), | ||||
|  | @ -51,6 +53,7 @@ namespace datalog { | |||
|                 ctx.reopen(); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         ~scoped_query() { | ||||
|             m_ctx.reopen();                                 | ||||
|             m_ctx.restrict_predicates(m_preds); | ||||
|  | @ -235,7 +238,6 @@ namespace datalog { | |||
|             query_pred = rm.mk_query(query, m_context.get_rules()); | ||||
|         } | ||||
|         catch (default_exception& exn) { | ||||
|             m_context.close(); | ||||
|             m_context.set_status(INPUT_ERROR); | ||||
|             throw exn; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue