parse_smtlib(s) parses the text of an SMT-LIB script, as
sympy.parsing.smtlib.parse_smtlib(), and returns the declared symbols
and the assertions. Declaring a constant of sort Int or Real adds the
assumption Q$integer() or Q$real() to the assertions. Terms built
from the core, integer and real theories become expressions (ite gives
a Piecewise, div and mod are Euclidean), define-fun macros are
expanded and push, pop, reset and reset-assertions act on the
state. Invalid syntax signals an SMTLibSyntaxError, an unknown command
an UnknownSMTLibCommandError, an unknown operator an
UnknownSMTLibOperatorError, and quantifiers, datatypes, recursive or
parametric definitions and the bitvector, string and array operators a
NotImplementedError.