I'm using Z3 with Java API. In my SMT-LIB2 file, there are several variables:
(declare-fun x0 () Int)
(declare-fun x1 () Bool)
; alot more
I want to get all these variables, and store them in an array of Expr
. From the example distributed with z3, I find the API SMTLIBDecls
that get declarations parsed from an SMT-LIB1 file, but there is no similar API for SMT-LIB2. How can I get the declarations?
Thanks.