So here's what I am trying to do.
Let's say that I want to find the value of op using Z3 (and its Java binding) in an expression similar to this:
((exists (op Int)) (= (foo op) 2)
So I want to call a function foo on the op variable and check for which values of op will the function return 2. I want to define a function foo in Java and thought that there exists a way for Z3 to access these function definitions. I want to do it like this because the functions are actually look-ups in a HashMap which was easy to implement in Java.
Since I am a beginner to SMT solvers in general it might be possible that I want to do something which cannot be done. So I am open to all suggestions regarding the topic.
Thanks in advance for your time and answers!