mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	add macros to model #4679
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									629e981e01
								
							
						
					
					
						commit
						f976b16e3f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -260,9 +260,8 @@ extern "C" {
 | 
			
		|||
        bool initialized = to_solver(s)->m_solver.get() != nullptr;
 | 
			
		||||
        if (!initialized)
 | 
			
		||||
            init_solver(c, s);
 | 
			
		||||
        for (expr* e : ctx->tracked_assertions()) {
 | 
			
		||||
        for (expr* e : ctx->tracked_assertions()) 
 | 
			
		||||
            to_solver(s)->assert_expr(e);
 | 
			
		||||
        }
 | 
			
		||||
        to_solver_ref(s)->set_model_converter(ctx->get_model_converter());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -306,6 +306,7 @@ void cmd_context::insert_macro(symbol const& s, unsigned arity, sort*const* doma
 | 
			
		|||
    else {
 | 
			
		||||
        VERIFY(decls.insert(m(), arity, domain, t));
 | 
			
		||||
    }
 | 
			
		||||
    model_add(s, arity, domain, t);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void cmd_context::erase_macro(symbol const& s) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue