var_name_to_ptr should have const names