Use function specs in Z3