refactoring to use Z3 Java bindings rather than ScalaZ3