Ported to z3-java (unstable branch)