mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									ff34d84b35
								
							
						
					
					
						commit
						d26ef08c69
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -2001,15 +2001,13 @@ expr_ref seq_rewriter::is_nullable(expr* r) {
 | 
			
		|||
    SASSERT(m_util.is_re(r));
 | 
			
		||||
    expr* r1 = nullptr, *r2 = nullptr;
 | 
			
		||||
    unsigned lo = 0, hi = 0;
 | 
			
		||||
    if (m_util.re.is_concat(r, r1, r2)) {
 | 
			
		||||
    if (m_util.re.is_concat(r, r1, r2) ||
 | 
			
		||||
        m_util.re.is_intersection(r, r1, r2)) {
 | 
			
		||||
        return expr_ref(mk_and(m(), is_nullable(r1), is_nullable(r2)), m());
 | 
			
		||||
    }
 | 
			
		||||
    if (m_util.re.is_union(r, r1, r2)) {
 | 
			
		||||
        return expr_ref(mk_or(m(), is_nullable(r1), is_nullable(r2)), m());
 | 
			
		||||
    }
 | 
			
		||||
    if (m_util.re.is_intersection(r, r1, r2)) {
 | 
			
		||||
        return expr_ref(mk_and(m(), is_nullable(r1), is_nullable(r2)), m());
 | 
			
		||||
    }
 | 
			
		||||
    if (m_util.re.is_star(r) || 
 | 
			
		||||
        m_util.re.is_opt(r) ||
 | 
			
		||||
        m_util.re.is_full_seq(r)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue