mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	parameter eval order
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
		
							parent
							
								
									5a3d33a615
								
							
						
					
					
						commit
						4f93fc7b2a
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -2404,7 +2404,8 @@ br_status seq_rewriter::mk_str_stoi(expr* a, expr_ref& result) { | |||
|     } | ||||
|     expr* b; | ||||
|     if (str().is_itos(a, b)) { | ||||
|         result = m().mk_ite(m_autil.mk_ge(b, zero()), b, minus_one()); | ||||
|         auto a = m_autil.mk_ge(b, zero()); | ||||
|         result = m().mk_ite(a, b, minus_one()); | ||||
|         return BR_DONE; | ||||
|     } | ||||
|     if (str().is_ubv2s(a, b)) { | ||||
|  | @ -2415,7 +2416,8 @@ br_status seq_rewriter::mk_str_stoi(expr* a, expr_ref& result) { | |||
|      | ||||
|     expr* c = nullptr, *t = nullptr, *e = nullptr; | ||||
|     if (m().is_ite(a, c, t, e)) { | ||||
|         result = m().mk_ite(c, str().mk_stoi(t), str().mk_stoi(e)); | ||||
|         auto a = str().mk_stoi(t); | ||||
|         result = m().mk_ite(c, a, str().mk_stoi(e)); | ||||
|         return BR_REWRITE_FULL; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue