Unfortunately, I cannot post the entire code here, because i am programming (modelling) in a DSL that is build on top of Java. The question does not necessary require that though:
I am trying to create a longer Or-Expression like: p == 1 Or p==2 Or p==3 and so on. I have a list of BoolExpr, which contains the list of those EQ-expressions (i.e. p==1, etc).
In python i could now just give this list of expressions to the mkOr method of the API and that was it. My code snippet below though complains that list is not a subtype of BoolExpr.
list<BoolExpr> eqExprList = new arraylist<BoolExpr>;
// populate this list with p==1, p==2 etc.
MyContext.mkOr(eqExrList); // this produces the error
So the question is basically, whether it should normally (in a real java) work like this or whether I am misunderstanding the API documentation: https://z3prover.github.io/api/html/classcom_1_1microsoft_1_1z3_1_1_context.html#aea714fc46f4c625ecc15397522099330