mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 22:05:36 +00:00
parent
737cf63132
commit
fcc40310c7
src/parsers/smt2
|
@ -379,7 +379,7 @@ namespace smt2 {
|
|||
|
||||
char const * scanner::cached_str(unsigned begin, unsigned end) {
|
||||
m_cache_result.reset();
|
||||
while (isspace(m_cache[begin]) && begin < end)
|
||||
while (begin < end && isspace(m_cache[begin]))
|
||||
begin++;
|
||||
while (begin < end && isspace(m_cache[end-1]))
|
||||
end--;
|
||||
|
|
|
@ -102,6 +102,7 @@ namespace smt2 {
|
|||
void stop_caching() { m_cache_input = false; }
|
||||
unsigned cache_size() const { return m_cache.size(); }
|
||||
void reset_cache() { m_cache.reset(); }
|
||||
|
||||
char const * cached_str(unsigned begin, unsigned end);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue