mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-30 19:22:28 +00:00 
			
		
		
		
	fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									d50fc6976b
								
							
						
					
					
						commit
						f986ae97bd
					
				
					 5 changed files with 12 additions and 12 deletions
				
			
		|  | @ -128,7 +128,8 @@ namespace datalog { | |||
|             func_decl * pred = r->get_decl(); | ||||
|             if (engine.get_fact(pred).is_reachable()) { | ||||
|                 res->add_rule(r); | ||||
|             } else if (m_context.get_model_converter()) { | ||||
|             }  | ||||
|             else if (m_context.get_model_converter()) { | ||||
|                 pruned_preds.insert(pred); | ||||
|             } | ||||
|         } | ||||
|  |  | |||
|  | @ -608,7 +608,8 @@ namespace datalog { | |||
|             TRACE("dl", | ||||
|                   source.display(tout); | ||||
|                   res->display(tout);); | ||||
|         } else { | ||||
|         }  | ||||
|         else { | ||||
|             res = nullptr; | ||||
|         } | ||||
|         return res.detach(); | ||||
|  |  | |||
|  | @ -335,7 +335,7 @@ namespace datalog { | |||
|     rule_set * mk_subsumption_checker::operator()(rule_set const & source) { | ||||
|         // TODO mc
 | ||||
|         if (!m_context.get_params ().xform_subsumption_checker()) | ||||
|           return nullptr; | ||||
|             return nullptr; | ||||
| 
 | ||||
|         m_have_new_total_rule = false; | ||||
|         collect_ground_unconditional_rule_heads(source); | ||||
|  | @ -356,8 +356,7 @@ namespace datalog { | |||
|         SASSERT(m_new_total_relation_discovery_during_transformation || !m_have_new_total_rule); | ||||
|         while (m_have_new_total_rule) { | ||||
|             m_have_new_total_rule = false; | ||||
| 
 | ||||
|             scoped_ptr<rule_set> old = res; | ||||
|             scoped_ptr<rule_set> old = res.detach(); | ||||
|             res = alloc(rule_set, m_context); | ||||
|             transform_rules(*old, *res); | ||||
|         } | ||||
|  |  | |||
|  | @ -387,7 +387,7 @@ namespace datalog { | |||
|             } | ||||
|         } | ||||
| 
 | ||||
|         rule_set * result = static_cast<rule_set *>(nullptr); | ||||
|         scoped_ptr<rule_set> result; | ||||
|         if (m_modified) { | ||||
|             result = alloc(rule_set, m_context); | ||||
|             unsigned fin_rule_cnt = m_rules.size(); | ||||
|  | @ -397,7 +397,7 @@ namespace datalog { | |||
|             result->inherit_predicates(source); | ||||
|         } | ||||
|         reset(); | ||||
|         return result; | ||||
|         return result.detach(); | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -51,13 +51,12 @@ namespace datalog { | |||
|     } | ||||
|          | ||||
|     rule_set * mk_unfold::operator()(rule_set const & source) { | ||||
|         rule_set* rules = alloc(rule_set, m_ctx); | ||||
|         rule_set::iterator it = source.begin(), end = source.end(); | ||||
|         for (; it != end; ++it) { | ||||
|             expand_tail(**it, 0, source, *rules); | ||||
|         scoped_ptr<rule_set> rules = alloc(rule_set, m_ctx); | ||||
|         for (rule* r : source) { | ||||
|             expand_tail(*r, 0, source, *rules); | ||||
|         } | ||||
|         rules->inherit_predicates(source); | ||||
|         return rules; | ||||
|         return rules.detach(); | ||||
|     } | ||||
| 
 | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue