After analyzing a method, change any "Unknown" registers to "Uninit"

git-svn-id: https://smali.googlecode.com/svn/trunk@627 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com
2010-02-14 21:57:38 +00:00
parent eac512ae67
commit 20cfe7aa0f

View File

@ -158,6 +158,15 @@ public class MethodAnalyzer {
}
}
for (int i=0; i<instructions.size(); i++) {
AnalyzedInstruction instruction = instructions.valueAt(i);
for (int j=0; j<instruction.postRegisterMap.length; j++) {
if (instruction.postRegisterMap[j].category == RegisterType.Category.Unknown) {
instruction.postRegisterMap[j] = uninit;
}
}
}
analyzed = true;
return makeInstructionArray();
}