add f_remainder_var in transform_template.c