mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 11:42:28 +00:00 
			
		
		
		
	fix is_string_term()
This commit is contained in:
		
							parent
							
								
									46ac718790
								
							
						
					
					
						commit
						7811a91bad
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -273,6 +273,15 @@ public: | |||
|         bool is_in_re(expr const* n)    const { return is_app_of(n, m_fid, OP_SEQ_IN_RE); } | ||||
|         bool is_unit(expr const* n)     const { return is_app_of(n, m_fid, OP_SEQ_UNIT); } | ||||
| 
 | ||||
|         bool is_string_term(expr const * n) const { | ||||
|             sort * s = get_sort(n); | ||||
|             return (u.is_seq(s) && u.is_string(s)); | ||||
|         } | ||||
| 
 | ||||
|         bool is_non_string_sequence(expr const * n) const { | ||||
|             sort * s = get_sort(n); | ||||
|             return (u.is_seq(s) && !u.is_string(s)); | ||||
|         } | ||||
| 
 | ||||
|         MATCH_BINARY(is_concat); | ||||
|         MATCH_UNARY(is_length); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue