mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	fix po model
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									175008a6c6
								
							
						
					
					
						commit
						e4eca577f6
					
				
					 2 changed files with 5 additions and 7 deletions
				
			
		|  | @ -4453,7 +4453,6 @@ namespace smt { | |||
|         } | ||||
|         recfun::util u(m); | ||||
|         func_decl_ref_vector recfuns = u.get_rec_funs(); | ||||
|         std::cout << recfuns << "\n"; | ||||
|         for (func_decl* f : recfuns) { | ||||
|             auto& def = u.get_def(f); | ||||
|             expr* rhs = def.get_rhs(); | ||||
|  | @ -4475,6 +4474,7 @@ namespace smt { | |||
|             fi->set_else(bodyr); | ||||
|             m_model->register_decl(f, fi); | ||||
|         } | ||||
|         TRACE("model", tout << *m_model << "\n";); | ||||
|     } | ||||
| 
 | ||||
| }; | ||||
|  |  | |||
|  | @ -727,16 +727,14 @@ namespace smt { | |||
|         var* vars3[3] = { xV, yV, SV }; | ||||
|         p.set_definition(rep, c2, 3, vars3, connected_rec_body);  | ||||
| 
 | ||||
| #if 0 | ||||
|         // TBD: doesn't terminate with model_evaluator/rewriter 
 | ||||
| 
 | ||||
|         // r.m_decl(x,y) -> snd(connected2(x,y,nil))
 | ||||
|         xV = m.mk_var(0, s); | ||||
|         yV = m.mk_var(1, s); | ||||
|         x = xV, y = yV; | ||||
| 
 | ||||
|         func_interp* fi = alloc(func_interp, m, 2); | ||||
|         fi->set_else(m.mk_app(snd, m.mk_app(conn2, x, y, m.mk_const(nil)))); | ||||
|         fi->set_else(m.mk_app(snd, m.mk_app(conn2, x, y, m.mk_app(cons, x, m.mk_const(nil))))); | ||||
|         mg.get_model().register_decl(r.decl(), fi); | ||||
| #endif | ||||
| 
 | ||||
|          | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue