Errors in generating Z3 expression corrected