mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 18:15:32 +00:00
minor fixes after feedback from regression tests...
This commit is contained in:
parent
b629dd7fdd
commit
cb8a6db51b
2 changed files with 6 additions and 1 deletions
|
@ -1893,6 +1893,8 @@ namespace smt2 {
|
|||
if (!curr_is_rparen()) {
|
||||
check_int("invalid push command, integer expected");
|
||||
rational n = curr_numeral();
|
||||
if (n.is_neg())
|
||||
throw parser_exception("invalid push command, value is negative.");
|
||||
if (!n.is_unsigned())
|
||||
throw parser_exception("invalid push command, value is too big to fit in an unsigned machine integer");
|
||||
num = n.get_unsigned();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue