File indexing completed on 2026-04-09 07:49:16
0001 #include "OPTICKS_LOG.hh"
0002 #include "SPath.hh"
0003 #include "SSys.hh"
0004 #include "SCF.h"
0005
0006 int main(int argc, char** argv)
0007 {
0008 OPTICKS_LOG(argc, argv);
0009
0010 SCF* cf = SCF::Create();
0011
0012 LOG(info) << " cf " << cf << " cf.desc " << ( cf ? cf->desc() : "-" ) ;
0013
0014 if(cf == nullptr)
0015 {
0016 LOG(fatal) << " No CFBASE envvar presumably : nothing to do here " ;
0017 return 0 ;
0018 }
0019
0020 std::vector<int>* instv = SSys::getenvintvec("INST") ;
0021 if(instv == nullptr) return 1 ;
0022
0023 for(unsigned i=0 ; i < instv->size() ; i++)
0024 {
0025 int instIdx = (*instv)[i] ;
0026 const qat4* q = cf->getInst( instIdx );
0027 if(q == nullptr) continue ;
0028 std::cout << std::setw(5) << instIdx << " " << q->desc() << " " << q->descId() << std::endl ;
0029 }
0030
0031 return 0 ;
0032 }