From f4644fafc3d13db9f4c0bbbd0180fa2600894584 Mon Sep 17 00:00:00 2001 From: Egor Mayorov Date: Thu, 12 Dec 2024 01:37:33 +0300 Subject: [PATCH] drop redundant prints --- .../ProjectParameters/projectParameters.cpp | 76 ------------------- 1 file changed, 76 deletions(-) diff --git a/sapfor/experts/Sapfor_2017/_src/ProjectParameters/projectParameters.cpp b/sapfor/experts/Sapfor_2017/_src/ProjectParameters/projectParameters.cpp index fd295ce..4cf0b11 100644 --- a/sapfor/experts/Sapfor_2017/_src/ProjectParameters/projectParameters.cpp +++ b/sapfor/experts/Sapfor_2017/_src/ProjectParameters/projectParameters.cpp @@ -120,72 +120,6 @@ map>> const map> &fullIR, const map>& loopGraph) { - /* - // print and look part (Yes, I am stupid) - printf("\n\n\n\nPRINT EXAMPLE\n\n\n\n\n"); - cout << "DEF USE INFO" << endl; - for(pair> p: defUseByFunctions) { - cout << "function name = " << p.first << endl; - for(auto& v: p.second) { - cout << "VARIABLE = "; - v.print(); - } - } - cout << "\n\nALL FUNC INFO" << endl; - for(pair> p: allFuncInfo) { - cout << "file name = " << p.first << endl; - for(auto& v: p.second) { - cout << "func name = " << v->funcName << endl; - for(auto& v1: v->funcParams.identificators) { - cout << "identifier: " << v1 << endl; - } - } - } - cout << "\n\n FULL IR" << endl; - for(const pair>& p: fullIR) { - cout << "func name = " << p.first->funcName << endl; - for(auto v: p.second) { - cout << "block num = " << v->getNumber() << endl; - cout << "prev: {"; - for(auto pr: v->getPrev()){ - cout << pr->getNumber() << ","; - } - cout << "}\nnext: {"; - for(auto n: v->getNext()){ - cout << n->getNumber() << ","; - } - cout << "}" << endl; - for(auto inst: v->getInstructions()){ - cout << "instruction: " << inst->getInstruction()->dump() << endl; - cout << "operator: " << inst->getInstruction()->getOperator()->sunparse() << endl; - } - } - } - cout << "\n\nLoopGraph" << endl; - for(const pair>& p: loopGraph){ - cout << "file name = " << p.first << endl; - for(auto v: p.second) { - cout << v->loop->sunparse() << endl; - cout << v->countOfIters << endl; - cout << v->loopSymbol << endl; - vector fi = FindFuncInfoVec(p.first, allFuncInfo); - SAPFOR::BasicBlock* head = nullptr; - for(auto funcs: fi){ - vector blocks = FindBlocksVec(funcs, fullIR); - head = GetBasicBlocksForLoop(v, blocks); - if(head != nullptr){ - break; - } - } - if(head != nullptr){ - cout << "loop head block num = " << head->getNumber() << endl; - }else{ - cout << "no such block for loop (fail)" << endl; - } - } - } - */ - /*find blocks with loops start for each function*/ map> mapFuncLoops; @@ -201,16 +135,6 @@ map>> } } - /*print found blocks with loops for each function*/ - // cout << "ALL LOOPS" << endl; - // for(auto m: mapFuncLoops){ - // cout << "func: " << m.first->funcName << endl; - // for(auto v: m.second){ - // cout << "block num: " << v->getNumber() << endl; - // cout << v->getInstructions().front()->getInstruction()->getOperator()->sunparse() << endl; - // } - // } - /*find instructions with read operaton which affects on number iterations for loops*/ map>> finalInstructions; /*for each function*/