void _main(){FILE * data;data=freopen("BadSource_freopen.txt","w+",stdin);fclose(data);{FILE * data_copy=data;FILE * data=data_copy;fclose(data);}}
static void main(){FILE * data;data=fopen("GoodSource_fopen.txt", "w+");{FILE * data_copy=data;FILE * data=data_copy;fclose(data);}}