translation to z3 working (barely)