From d8e0585fa88423bf097450dcff70e3ca0b559f52 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 26 Feb 2017 12:02:55 +0330 Subject: now the option vector is being populated and updated correctly based on the input args --- mutator-lvl0.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mutator-lvl0.cpp') diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index 8435203..08e3ddf 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -72,7 +72,7 @@ using namespace clang::tooling; /**********************************************************************************************************************/ /*macros and defs*/ #define _MUT0_TEST -#if 0 +#if 1 #undef _MUT0_TEST #endif /**********************************************************************************************************************/ @@ -243,14 +243,14 @@ public: { for (auto &iter : RuleList) { - std::cerr << "RLKey: " << iter.first << " " << "RLValue: " << iter.second << std::endl; + std::cout<< "Debug: " << "RLKey: " << iter.first << " " << "RLValue: " << iter.second << std::endl; } - std::cerr << std::endl; + std::cout << std::endl; for (auto &iter : ParsedString) { - std::cerr << "PSKey: " << iter.first << " " << "PSValue: " << iter.second << std::endl; + std::cout << "Debug: " << "PSKey: " << iter.first << " " << "PSValue: " << iter.second << std::endl; } } } @@ -328,7 +328,7 @@ private: if (WhiteSpacePos != std::string::npos) { - ParsedString.push_back(std::make_pair(TempString.substr(WhiteSpacePos, WhiteSpacePos - OldPosition), Disenable)); + ParsedString.push_back(std::make_pair(TempString.substr(OldPosition + 1U, WhiteSpacePos - OldPosition - 1U), Disenable)); } } } @@ -7718,7 +7718,7 @@ int main(int argc, const char **argv) SOPProto.MC2Parser(); #if defined(_MUT0_TEST) - SOPProto.Dump(false); + SOPProto.Dump(true); #endif #if defined(_MUT0_TEST) -- cgit v1.2.3