src/report.cc
/*
     * write the qasm
     * in a file with a name that contains the program unique name and an extension defined by the pass_name
     */
write the qasm
in a file with a name that contains the program unique name and an extension defined by the pass_name
write the qasm in a file with a name that contains the program unique name and an extension defined by the pass_name
void write_qasm(ql::quantum_program*          programp,
                const ql::quantum_platform&     platform,
                const std::string               pass_name
               )
    {
        std::string       extension;
        if (pass_name == "initialqasmwriter" || pass_name == "outputIR") extension = ".qasm";
        else if (pass_name == "scheduledqasmwriter" || pass_name == "outputIRscheduled") extension = "_scheduled.qasm";
        else FATAL("write_qasm: pass_name " << pass_name << " unknown; don't know which extension to generate");
        write_qasm_extension(programp, platform, extension);
    }
void write_qasm ( ql :: quantum_program * programp , const ql :: quantum_platform & platform , const std :: string pass_name ) { std :: string extension ; if ( pass_name == " " || pass_name == " " ) extension = " " ; else if ( pass_name == " " || pass_name == " " ) extension = " " ; else FATAL ( " " << pass_name << " " ) ; write_qasm_extension ( programp , platform , extension ) ; }
write the qasm
 in a file with a name that contains the program unique name and an extension defined by the pass_name
write the qasm in a file with a name that contains the program unique name and an extension defined by the pass_name
// next is ugly; must be done by built-in pass class option with different value for each concrete pass