How to get function interpretation as a single expression from the model? #6394
Unanswered
skmuduli92
asked this question in
Q&A
Replies: 1 comment
-
The model has methods that let you access the interpretation of functions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using HORN logic in Z3 to solve the following constraints using C++ API.
The above constraints are satisfiable and gives a model for the function (uninterpreted predicate) Inv. I want to get the interpretation from the model and translate it into another language say C/C++ function.
I could see in the func_interp class definition given in Z3++.h, where I could use the
entry()
andelse_value()
to traverse the function interpretation. But is there any way in Z3 where I could get the function interpretation as a single expression?If there is no such method then how do I use the
entry()
andelse_value()
functions construct a single expression using ITEs?Beta Was this translation helpful? Give feedback.
All reactions