mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	fix bug in encoding of axioms for indexof. Issue #806
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									0ab2067b69
								
							
						
					
					
						commit
						acba529bce
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2916,7 +2916,7 @@ void theory_seq::add_indexof_axiom(expr* i) { | |||
| 
 | ||||
|         expr_ref len_t(m_util.str.mk_length(t), m); | ||||
|         literal offset_ge_len = mk_literal(m_autil.mk_ge(mk_sub(offset, len_t), zero)); | ||||
|         add_axiom(offset_ge_len, mk_eq(i, minus_one, false)); | ||||
|         add_axiom(~offset_ge_len, mk_eq(i, minus_one, false)); | ||||
| 
 | ||||
|         expr_ref x = mk_skolem(m_indexof_left, t, s, offset); | ||||
|         expr_ref y = mk_skolem(m_indexof_right, t, s, offset); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue