mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	fix index into reversed contains semantics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									267a1e962c
								
							
						
					
					
						commit
						32be23fdaa
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -214,7 +214,7 @@ br_status seq_rewriter::mk_seq_contains(expr* a, expr* b, expr_ref& result) {
 | 
			
		|||
    for (unsigned i = 0; !found && i < as.size(); ++i) {
 | 
			
		||||
        if (bs.size() > as.size() - i) break;
 | 
			
		||||
        unsigned j = 0;
 | 
			
		||||
        for (; j < bs.size() && as[j] == bs[i+j]; ++j) {};
 | 
			
		||||
        for (; j < bs.size() && as[j+i] == bs[j]; ++j) {};
 | 
			
		||||
        found = j == bs.size();
 | 
			
		||||
    }
 | 
			
		||||
    if (found) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue