mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +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;
|
analyzed = true;
|
||||||
return makeInstructionArray();
|
return makeInstructionArray();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user