我有2个这样的函数,它对if循环进行模糊处理:
void funcA(string str)
{
size_t f = str.find("if");
if(f!=string::npos)
{
funcB(str); //obfuscate if-loop
}
}
void funcB(string str)
{
//obfuscate if loop
funcA(body_of_if_loop); //to check if there is a nested if-loop
}
Run Code Online (Sandbox Code Playgroud)
如果我放在前面,问题funcA就是无法看到funcB,反之亦然.funcBfuncA
非常感谢这里的任何帮助或建议.