This bug results from (repr(formula.constant_value()) returning "mpz(value)" (with value being an integer constant) where we want "value". Using str instead of repr resolves this problem.
I submit no tests of this change as doing so would require building with GMP present and without.
I bug was reported to me by @cterrill26 when pySMT uses GMP to for integer constants that the converter fails (see https://github.com/pysmt/pysmt/blob/master/pysmt/constants.py).
This bug results from
(repr(formula.constant_value())
returning"mpz(value)"
(with value being an integer constant) where we want"value"
. Usingstr
instead ofrepr
resolves this problem.I submit no tests of this change as doing so would require building with GMP present and without.