asking queries in smtlib2 format and parsing resultant models #5160
-
In OCaml, it is possible to export Z3 expressions into files in smtlib2 format (using api in https://z3prover.github.io/api/html/ml/Z3.SMT.html). I wonder, whether Z3 provides OCaml apis for parsing resulting models (i.e., getting values for some variables or expressions) when queries in smtlib2 format are asked to Z3 (and the satisfying models are found by Z3). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Models are printed as SMTLIB2 declarations. The provides a way to round-trip models.
|
Beta Was this translation helpful? Give feedback.
-
maybe you are using an old version of Z3 that didn't properly populate the model with the input declarations?
|
Beta Was this translation helpful? Give feedback.
maybe you are using an old version of Z3 that didn't properly populate the model with the input declarations?