mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	fix non-termination
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									69a5634e7e
								
							
						
					
					
						commit
						ff69ee049b
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -187,6 +187,17 @@ namespace opt {
 | 
			
		|||
              tout << "\n";
 | 
			
		||||
              model_pp(tout, *m_model);
 | 
			
		||||
              );
 | 
			
		||||
        IF_VERBOSE(2, verbose_stream() << "(optsmt.lower ";
 | 
			
		||||
                   for (unsigned i = 0; i < m_lower.size(); ++i) {
 | 
			
		||||
                       verbose_stream() << m_lower[i] << " ";
 | 
			
		||||
                   }
 | 
			
		||||
                   verbose_stream() << ")\n";);
 | 
			
		||||
        for (unsigned i = 0; i < m_lower.size(); ++i) {
 | 
			
		||||
            if (m_lower[i].is_pos() && !m_lower[i].is_finite()) {
 | 
			
		||||
                disj[i] = m.mk_false();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        expr_ref constraint(m);        
 | 
			
		||||
        constraint = m.mk_or(disj.size(), disj.c_ptr());
 | 
			
		||||
        m_s->assert_expr(constraint);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue