mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	debugging opt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									7fc1b75cb8
								
							
						
					
					
						commit
						b129ee764f
					
				
					 3 changed files with 7 additions and 3 deletions
				
			
		|  | @ -866,6 +866,7 @@ psort * pdecl_manager::mk_psort_cnst(sort * s) { | |||
| } | ||||
| 
 | ||||
| psort * pdecl_manager::register_psort(psort * n) { | ||||
|     enable_trace("register_psort"); | ||||
|     TRACE("register_psort", tout << "registering psort...\n"; n->display(tout); tout << "\n";); | ||||
|     psort * r = m_table.insert_if_not_there(n); | ||||
|     if (r != n) { | ||||
|  | @ -946,6 +947,8 @@ void pdecl_manager::del_decl_core(pdecl * p) { | |||
| } | ||||
| 
 | ||||
| void pdecl_manager::del_decl(pdecl * p) { | ||||
| enable_trace("register_psort"); | ||||
|     TRACE("register_psort", tout << "del psort "; p->display(tout); tout << "\n";);    | ||||
|     if (p->is_psort()) { | ||||
|         psort * _p = static_cast<psort*>(p); | ||||
|         if (_p->is_sort_wrapper()) | ||||
|  |  | |||
|  | @ -830,7 +830,7 @@ private: | |||
| 
 | ||||
|         // IF_VERBOSE(0, m_sat_mc->display(verbose_stream() << "after\n"););
 | ||||
| 
 | ||||
| #if 0 | ||||
| #if 1 | ||||
|         IF_VERBOSE(0, verbose_stream() << "Verifying solution\n";); | ||||
|         model_evaluator eval(*m_model); | ||||
|         for (expr * f : m_fmls) { | ||||
|  | @ -842,6 +842,9 @@ private: | |||
|             if (!m.is_true(tmp)) { | ||||
|                 IF_VERBOSE(0, verbose_stream() << "failed to verify: " << mk_pp(f, m) << "\n";); | ||||
|                 IF_VERBOSE(0, verbose_stream() << m_params << "\n";); | ||||
|                 IF_VERBOSE(0, m_sat_mc->display(verbose_stream() << "sat mc\n");); | ||||
|                 IF_VERBOSE(0, if (m_mc0) m_mc0->display(verbose_stream() << "mc0\n");); | ||||
|                 break; | ||||
|             } | ||||
|             VERIFY(m.is_true(tmp));                                 | ||||
|         } | ||||
|  |  | |||
|  | @ -89,9 +89,7 @@ void generic_model_converter::operator()(model_ref & md) { | |||
| } | ||||
| 
 | ||||
| void generic_model_converter::display(std::ostream & out) { | ||||
|     unsigned i = 0; | ||||
|     for (entry const& e : m_entries) { | ||||
|         ++i; | ||||
|         switch (e.m_instruction) { | ||||
|         case instruction::HIDE: | ||||
|             display_del(out, e.m_f); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue