mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	pass algebraic manager to arith-plugin mk-numeral because rational check may overwrite the argument using the current manager deals with crash as part of #4532
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									ac39ddb43f
								
							
						
					
					
						commit
						c7704ef9af
					
				
					 11 changed files with 43 additions and 45 deletions
				
			
		|  | @ -105,13 +105,13 @@ class nlsat_tactic : public tactic { | |||
|                     continue; | ||||
|                 expr * v; | ||||
|                 try { | ||||
|                     v = util.mk_numeral(m_solver.value(x), util.is_int(t)); | ||||
|                     v = util.mk_numeral(m_solver.am(), m_solver.value(x), util.is_int(t)); | ||||
|                 } | ||||
|                 catch (z3_error & ex) { | ||||
|                     throw ex; | ||||
|                 } | ||||
|                 catch (z3_exception &) { | ||||
|                     v = util.mk_to_int(util.mk_numeral(m_solver.value(x), false)); | ||||
|                     v = util.mk_to_int(util.mk_numeral(m_solver.am(), m_solver.value(x), false)); | ||||
|                     ok = false; | ||||
|                 } | ||||
|                 md->register_decl(to_app(t)->get_decl(), v); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue