Specify that gen_diff and apply_diff don't modify the args