mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	fix bug for bit-vector optimization. Issue #919
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									899843b7cd
								
							
						
					
					
						commit
						41e6fafc58
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1002,7 +1002,8 @@ namespace opt {
 | 
			
		|||
            TRACE("opt", tout << "Term does not evaluate " << term << "\n";);
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
        if (!m_arith.is_numeral(val, r)) {
 | 
			
		||||
        unsigned bv_size;
 | 
			
		||||
        if (!m_arith.is_numeral(val, r) && !m_bv.is_numeral(val, r, bv_size)) {
 | 
			
		||||
            TRACE("opt", tout << "model does not evaluate objective to a value\n";);
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue