mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 11:42:28 +00:00 
			
		
		
		
	fix crash in dl_interp_tail_simplifier when no transformation is performed
Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
		
							parent
							
								
									5cbba08762
								
							
						
					
					
						commit
						14172d3fae
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -583,11 +583,12 @@ namespace datalog { | |||
|         } | ||||
| 
 | ||||
|         rule_set * res = alloc(rule_set, m_context); | ||||
|         if (!transform_rules(source, *res)) { | ||||
|         if (transform_rules(source, *res)) { | ||||
|             res->inherit_predicates(source); | ||||
|         } else { | ||||
|             dealloc(res); | ||||
|             res = 0; | ||||
|         } | ||||
|         res->inherit_predicates(source); | ||||
|         return res; | ||||
|     } | ||||
|    | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue