mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	fix #4107
This commit is contained in:
		
							parent
							
								
									16d34b9fcc
								
							
						
					
					
						commit
						d3094291d3
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -923,8 +923,11 @@ template<typename Ext> | |||
| model_value_proc * theory_diff_logic<Ext>::mk_value(enode * n, model_generator & mg) { | ||||
|     theory_var v = n->get_th_var(get_id()); | ||||
|     SASSERT(v != null_theory_var); | ||||
|     numeral val = m_graph.get_assignment(v); | ||||
|     rational num = val.get_rational().to_rational() + m_delta * val.get_infinitesimal().to_rational(); | ||||
|     rational num; | ||||
|     if (!m_util.is_numeral(n->get_owner(), num)) { | ||||
|         numeral val = m_graph.get_assignment(v); | ||||
|         num = val.get_rational().to_rational() + m_delta * val.get_infinitesimal().to_rational(); | ||||
|     } | ||||
|     TRACE("arith", tout << mk_pp(n->get_owner(), get_manager()) << " |-> " << num << "\n";); | ||||
|     return alloc(expr_wrapper_proc, m_factory->mk_num_value(num, m_util.is_int(n->get_owner()))); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue