src/arch/cc/eqasm_backend_cc.cc
// get label from kernel name: FIXME: the label is the program name
// FIXME: the kernel name has a structure (e.g. "sp1_for1_start" or "sp1_for1_start") which we use here. This should be made explicit
// FIXME: looks very inefficient
// extracted from get_epilogue
// FIXME: does not use class
get label from kernel name: FIXME: the label is the program name
FIXME: the kernel name has a structure  which we use here. This should be made explicit
FIXME: looks very inefficient
extracted from get_epilogue
FIXME: does not use class
get label from kernel name : FIXME : the label is the program name FIXME : the kernel name has a structure which we use here . This should be made explicit FIXME : looks very inefficient extracted from get_epilogue FIXME : does not use class
std::string eqasm_backend_cc::kernelLabel(ql::quantum_kernel &k)
{
    std::string kname(k.name);
    std::replace(kname.begin(), kname.end(), '_', ' ');
    std::istringstream iss(kname);
    std::vector<std::string> tokens{ std::istream_iterator<std::string>{iss},
                                     std::istream_iterator<std::string>{} };
    return tokens[0];
}
std :: string eqasm_backend_cc :: kernelLabel ( ql :: quantum_kernel & k ) { std :: string kname ( k . name ) ; std :: replace ( kname . begin ( ) , kname . end ( ) , ' ' , ' ' ) ; std :: istringstream iss ( kname ) ; std :: vector < std :: string > tokens { std :: istream_iterator < std :: string > { iss } , std :: istream_iterator < std :: string > { } } ; return tokens [ 0 ] ; }
get label from kernel name: FIXME: the label is the program name
FIXME: the kernel name has a structure (e.g.
get label from kernel name : FIXME : the label is the program name FIXME : the kernel name has a structure ( e . g .