mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	rewrite equality too
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									aa7e9b09f3
								
							
						
					
					
						commit
						3eb849ad9e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1950,7 +1950,7 @@ br_status seq_rewriter::mk_seq_replace_all(expr* a, expr* b, expr* c, expr_ref&
 | 
			
		|||
    } 
 | 
			
		||||
    if (a == b) {
 | 
			
		||||
        result = m().mk_ite(str().mk_is_empty(b), str().mk_empty(a->get_sort()), c);
 | 
			
		||||
        return BR_REWRITE1;
 | 
			
		||||
        return BR_REWRITE2;
 | 
			
		||||
    }
 | 
			
		||||
    zstring s1, s2;
 | 
			
		||||
    expr_ref_vector strs(m());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1070,7 +1070,7 @@ std::ostream& seq_util::rex::pp::compact_helper_seq(std::ostream& out, expr* s)
 | 
			
		|||
            compact_helper_seq(out, e);
 | 
			
		||||
    }
 | 
			
		||||
    else if (re.u.str.is_string(s, z)) {
 | 
			
		||||
        for (int i = 0; i < z.length(); i++)
 | 
			
		||||
        for (unsigned i = 0; i < z.length(); i++)
 | 
			
		||||
            out << (char)z[i];
 | 
			
		||||
    }
 | 
			
		||||
    //using braces to indicate 'full' output
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue