mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
parent
737cf63132
commit
fcc40310c7
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue