3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-02-15 21:16:34 -10:00
parent 737cf63132
commit fcc40310c7
2 changed files with 2 additions and 1 deletions

View file

@ -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--;

View file

@ -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);
};