mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	fix scanner bug at EOF
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									491b3b34aa
								
							
						
					
					
						commit
						f3ef59b095
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -92,7 +92,7 @@ namespace smt2 {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    scanner::token scanner::read_symbol_core() {
 | 
			
		||||
        while (true) {
 | 
			
		||||
        while (!m_at_eof) {
 | 
			
		||||
            char c = curr();
 | 
			
		||||
            signed char n = m_normalized[static_cast<unsigned char>(c)];
 | 
			
		||||
            if (n == 'a' || n == '0' || n == '-') {
 | 
			
		||||
| 
						 | 
				
			
			@ -106,6 +106,7 @@ namespace smt2 {
 | 
			
		|||
                return SYMBOL_TOKEN;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        return EOF_TOKEN;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    scanner::token scanner::read_symbol() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue