src/report.cc
/*
     * initialization of program.unique_name that is used by file name generation for reporting and printing
     * it is the program's name with a suffix appended that represents the number of the run of the program
     *
     * objective of this all is that of a later run of the same program, the output files don't overwrite the earlier ones
     *
     * do this only if unique_output option is set; if not, just use the program's name and let files overwrite
     * when set, maintain a seed with the run number; the first run is version 1; the first run uses the program's name;
     * the second and later use the version (2 or larger) as suffix to the program's name
     */
initialization of program.unique_name that is used by file name generation for reporting and printing
it is the program's name with a suffix appended that represents the number of the run of the program

objective of this all is that of a later run of the same program, the output files don't overwrite the earlier ones

do this only if unique_output option is set; if not, just use the program's name and let files overwrite
when set, maintain a seed with the run number; the first run is version 1; the first run uses the program's name;
the second and later use the version (2 or larger) as suffix to the program's name
initialization of program . unique_name that is used by file name generation for reporting and printing it is the program ' s name with a suffix appended that represents the number of the run of the program objective of this all is that of a later run of the same program the output files don ' t overwrite the earlier ones do this only if unique_output option is set ; if not just use the program ' s name and let files overwrite when set maintain a seed with the run number ; the first run is version 1 ; the first run uses the program ' s name ; the second and later use the version ( 2 or larger ) as suffix to the program ' s name
void report_init(ql::quantum_program*      programp,
                const ql::quantum_platform&    platform
               )
    {
	    programp->unique_name = programp->name;
	    if (ql::options::get("unique_output") == "yes")
	    {
	        int vers;
	        vers = report_bump_unique_file_version(programp);
	        if (vers > 1)
	        {
	            programp->unique_name = ( programp->name + std::to_string(vers) );
	            DOUT("Unique program name after bump_unique_file_version: " << programp->unique_name << " based on version: " << vers);
	        }
	    }
    }
void report_init ( ql :: quantum_program * programp , const ql :: quantum_platform & platform ) { programp -> unique_name = programp -> name ; if ( ql :: options :: get ( " " ) == " " ) { int vers ; vers = report_bump_unique_file_version ( programp ) ; if ( vers > 1 ) { programp -> unique_name = ( programp -> name + std :: to_string ( vers ) ) ; DOUT ( " " << programp -> unique_name << " " << vers ) ; } } }
initialization of program.unique_name that is used by file name generation for reporting and printing
 it is the program's name with a suffix appended that represents the number of the run of the program
initialization of program . unique_name that is used by file name generation for reporting and printing it is the program ' s name with a suffix appended that represents the number of the run of the program