mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 12:17:37 +02:00
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user