mirror of
https://github.com/Z3Prover/z3
synced 2025-05-02 21:37:02 +00:00
enable parsing (_ char ..)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d41ecda03e
commit
c92a63690d
3 changed files with 12 additions and 1 deletions
|
@ -408,6 +408,7 @@ namespace smt2 {
|
|||
bool curr_is_rparen() const { return curr() == scanner::RIGHT_PAREN; }
|
||||
bool curr_is_int() const { return curr() == scanner::INT_TOKEN; }
|
||||
bool curr_is_float() const { return curr() == scanner::FLOAT_TOKEN; }
|
||||
bool curr_is_bv() const { return curr() == scanner::BV_TOKEN; }
|
||||
|
||||
bool curr_id_is_underscore() const { SASSERT(curr_is_identifier()); return curr_id() == m_underscore; }
|
||||
bool curr_id_is_as() const { SASSERT(curr_is_identifier()); return curr_id() == m_as; }
|
||||
|
@ -1551,7 +1552,7 @@ namespace smt2 {
|
|||
symbol r = curr_id();
|
||||
next();
|
||||
while (!curr_is_rparen()) {
|
||||
if (curr_is_int()) {
|
||||
if (curr_is_int() || curr_is_bv()) {
|
||||
if (!curr_numeral().is_unsigned()) {
|
||||
m_param_stack.push_back(parameter(curr_numeral()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue