mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 22:33:40 +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) {
|
char const * scanner::cached_str(unsigned begin, unsigned end) {
|
||||||
m_cache_result.reset();
|
m_cache_result.reset();
|
||||||
while (isspace(m_cache[begin]) && begin < end)
|
while (begin < end && isspace(m_cache[begin]))
|
||||||
begin++;
|
begin++;
|
||||||
while (begin < end && isspace(m_cache[end-1]))
|
while (begin < end && isspace(m_cache[end-1]))
|
||||||
end--;
|
end--;
|
||||||
|
|
|
@ -102,6 +102,7 @@ namespace smt2 {
|
||||||
void stop_caching() { m_cache_input = false; }
|
void stop_caching() { m_cache_input = false; }
|
||||||
unsigned cache_size() const { return m_cache.size(); }
|
unsigned cache_size() const { return m_cache.size(); }
|
||||||
void reset_cache() { m_cache.reset(); }
|
void reset_cache() { m_cache.reset(); }
|
||||||
|
|
||||||
char const * cached_str(unsigned begin, unsigned end);
|
char const * cached_str(unsigned begin, unsigned end);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue