A modified version of Z3 for my purpose