3
0
Fork 0
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:
Leonardo de Moura 2012-10-30 09:19:39 -07:00
parent b629dd7fdd
commit cb8a6db51b
2 changed files with 6 additions and 1 deletions

View file

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