optim.cpp
来自「将exe等可执行文件转化成c程序的反编译程序,先到汇编再到c」· C++ 代码 · 共 34 行
CPP
34 行
// Copyright(C) 1999-2005 LiuTaoTao,bookaa@rorsoft.com
#include "stdafx.h"
// optim.cpp
#include "cisc.h"
bool CFunc::expr_only_use_in_this(VAR* pvar, PINSTR phead)
{
assert( phead->type == i_Begin || phead->type == i_CplxBegin);
INSTR_LIST* list = this->m_instr_list;
POSITION pos = list->GetHeadPosition();
while (pos)
{
PINSTR p = list->GetNext(pos);
if (p == phead)
{
p = p->begin.m_end;
pos = list->Find(p);
continue;
}
if (VAR::IsSame(pvar, &p->var_w))
return false;
if (VAR::IsSame(pvar, &p->var_r1))
return false;
if (VAR::IsSame(pvar, &p->var_r2))
return false;
}
return true;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?