Closed caballa closed 5 years ago
We do not have this feature for now, but I can add one.
Thanks, that would be very useful.
FYI, I've added ToPrefix(expression)
/ ToPrefix(formula)
in C++, and expression.ToPrefix()
and formula.ToPrefix()
in Python APIs.
I'll add a method to Context
class, e.g. Context::GetAssertions
, which will give you a list of asserted formulas.
Are you using dReal in C++ or Python? If it's the latter, I need to expose the Context
class to the Python side.
I use C++
Done. Please check https://github.com/dreal/dreal4/blob/master/dreal/solver/test/context_test.cc#L28-L46.
Note that bound constraints such as x <= 5
are not stored as assertions as shown in the test code.
Closed by 63df044be55122172e371fed5deba8b1c6349764
Is it possible to print the asserted formulas in some kind of SMT-LIB format?