mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
							parent
							
								
									73eb7cbf5c
								
							
						
					
					
						commit
						53b479e1c3
					
				
					 2 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -959,13 +959,13 @@ void fpa2bv_converter::mk_rem(func_decl * f, unsigned num, expr * const * args,
 | 
			
		|||
    c3 = y_is_inf;
 | 
			
		||||
    v3 = x;
 | 
			
		||||
 | 
			
		||||
    // (x is 0) -> x
 | 
			
		||||
    c4 = x_is_zero;
 | 
			
		||||
    v4 = pzero;
 | 
			
		||||
    
 | 
			
		||||
    // (y is 0) -> NaN.
 | 
			
		||||
    c5 = y_is_zero;
 | 
			
		||||
    v5 = nan;
 | 
			
		||||
    c4 = y_is_zero;
 | 
			
		||||
    v4 = nan;
 | 
			
		||||
 | 
			
		||||
    // (x is 0) -> x
 | 
			
		||||
    c5 = x_is_zero;
 | 
			
		||||
    v5 = pzero;
 | 
			
		||||
        
 | 
			
		||||
    // else the actual remainder.
 | 
			
		||||
    unsigned ebits = m_util.get_ebits(f->get_range());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1161,10 +1161,10 @@ void mpf_manager::rem(mpf const & x, mpf const & y, mpf & o) {
 | 
			
		|||
        mk_nan(x.ebits, x.sbits, o);
 | 
			
		||||
    else if (is_inf(y))
 | 
			
		||||
        set(o, x);
 | 
			
		||||
    else if (is_zero(x))        
 | 
			
		||||
        set(o, x);
 | 
			
		||||
    else if (is_zero(y))
 | 
			
		||||
        mk_nan(x.ebits, x.sbits, o);
 | 
			
		||||
    else if (is_zero(x))        
 | 
			
		||||
        set(o, x);    
 | 
			
		||||
    else {        
 | 
			
		||||
        o.ebits = x.ebits;
 | 
			
		||||
        o.sbits = x.sbits;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue