mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	improve error message in theory_str when an invalid term in str.to.re is encountered
addresses #871
This commit is contained in:
		
							parent
							
								
									b2388464e4
								
							
						
					
					
						commit
						1e445a62d4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -6223,7 +6223,8 @@ namespace smt {
 | 
			
		|||
                    TRACE("str", tout << "string transition " << last << "--" << str[(str.length() - 1)] << "--> " << end << "\n";);
 | 
			
		||||
                }
 | 
			
		||||
            } else { // ! u.str.is_string(arg_str, str)
 | 
			
		||||
                TRACE("str", tout << "invalid string constant in Str2Reg" << std::endl;);
 | 
			
		||||
                TRACE("str", tout << "WARNING: invalid string constant in str.to.re! Cancelling." << std::endl;);
 | 
			
		||||
                u.get_manager().raise_exception("invalid term in str.to.re, argument must be a string constant");
 | 
			
		||||
                m_valid = false;
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue