3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

add tracing, fix #2214, remove unused variables

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-04-02 12:20:55 -07:00
parent 5fdf5b67a4
commit ff6d703c05
3 changed files with 14 additions and 12 deletions

View file

@ -417,7 +417,7 @@ private:
if (is_num(c)) {
rational n(0);
unsigned div = 1;
rational div(1);
while (is_num(c) && !in.eof()) {
n = n*rational(10) + rational(c - '0');
in.next();
@ -429,11 +429,11 @@ private:
while (is_num(c) && !in.eof()) {
n = n*rational(10) + rational(c - '0');
in.next();
div *= 10;
div *= rational(10);
c = in.ch();
}
}
if (div > 1) n = n / rational(div);
if (div > rational(1)) n = n / div;
if (neg) n.neg();
m_tokens.push_back(asymbol(n, in.line()));
IF_VERBOSE(10, verbose_stream() << "num: " << m_tokens.back() << "\n");