dexInstruction= new Element(sanitizeInstructionName(instructionName), NS_DEX);
addRegistersAsAttributes(targetInsn.getRegisters(), dexInstruction);
if (instructionName.equals("packed-switch") || instructionName.equals("sparse-switch"))
{
SwitchData switchData= switchDataBlocks.get(targetInsn.getTargetAddress());
if (switchData == null)
{
Log.error(TAG, "DEXmlvmOutputProcess: Couldn't find SwitchData block.");
System.exit(-1);
}
IntList cases= switchData.getCases();
CodeAddress[] caseTargets= switchData.getTargets();
// Sanity check.
if (cases.size() != caseTargets.length)
{
Log.error(TAG, "DEXmlvmOutputProcess: SwitchData size mismatch: cases vs targets.");