You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the generic solver, we use a define-fun for every make_term. According to this diagram, define-fun cannot be used right after check-sat when using the textual smtlib interface. Since other APIs don't fail for this, the generic solver should support this too. This can be fixed by, for example, calling define-fun lazily, only before assertions that use the created terms, but there could be other solutions.
I wasn't accurate -- it is ok to do a define-fun right after check-sat, but it moves you to Assert mode, in which you are not allowed to do get-value. BTW z3's smtlib interface does not complain.
This can be reproduced by changing https://github.com/makaimann/smt-switch/blob/3ba9442aef2def27faeb79185065ac1d481d26f7/tests/test-sorting-network.cpp#L104 to include generic solvers. Then configuring, building and running with:
The text was updated successfully, but these errors were encountered: