class CilSwitchInstruction extends AbstractCilnstruction {
  public CilSwitchInstruction(ProtoIlInstructions.IlInstructionMsg instruction, DotnetBody dotnetBody, CilBlock cilBlock) {
    super(instruction, dotnetBody, cilBlock);
  }

  @Override
  public void jimplify(Body jb) {<FILL_FUNCTION_BODY>}

  @Override
  public Value jimplifyExpr(Body jb) {
    throw new NoExpressionInstructionException(instruction);
  }
}

    CilInstruction cilExpr = CilInstructionFactory.fromInstructionMsg(instruction.getKeyInstr(), dotnetBody, cilBlock);
    Value key = cilExpr.jimplifyExpr(jb);
    int lowIndex = (int) instruction.getSwitchSections(0).getLabel();
    int highIndex = (int) instruction.getSwitchSections(instruction.getSwitchSectionsCount() - 1).getLabel();

    // default target
    Unit defaultInstruct = Jimple.v().newNopStmt(); // dummy
    switch (instruction.getDefaultInst().getOpCode()) {
      case BRANCH:
        cilBlock.getDeclaredBlockContainer().blockEntryPointsManager.gotoTargetsInBody.put(defaultInstruct,
            instruction.getDefaultInst().getTargetLabel());
        break;
      case LEAVE:
        if (cilBlock.getDeclaredBlockContainer().isChildBlockContainer()
            && !instruction.getDefaultInst().getTargetLabel().equals("IL_0000")) {
          defaultInstruct = cilBlock.getDeclaredBlockContainer().getSkipBlockContainerStmt(); // if child blockcontainer,
                                                                                              // jump to end of it
        } else {
          dotnetBody.blockEntryPointsManager.gotoTargetsInBody.put(defaultInstruct, "RETURNLEAVE");
        }
        break;
      default:
        throw new RuntimeException(
            "CilSwitchInstruction: Opcode " + instruction.getDefaultInst().getOpCode().name() + " not implemented!");
    }

    List<Unit> targets = new ArrayList<>();
    for (ProtoIlInstructions.IlSwitchSectionMsg section : instruction.getSwitchSectionsList()) {
      NopStmt nopStmt = Jimple.v().newNopStmt(); // dummy target
      switch (section.getTargetInstr().getOpCode()) {
        case BRANCH:
          targets.add(nopStmt);
          // dotnetBody.blockEntryPointsManager.gotoTargetsInBody.put(nopStmt, section.getTargetInstr().getTargetLabel());
          cilBlock.getDeclaredBlockContainer().blockEntryPointsManager.gotoTargetsInBody.put(nopStmt,
              section.getTargetInstr().getTargetLabel());
          break;
        case LEAVE:
          if (cilBlock.getDeclaredBlockContainer().isChildBlockContainer()
              && !section.getTargetInstr().getTargetLabel().equals("IL_0000")) {
            targets.add(cilBlock.getDeclaredBlockContainer().getSkipBlockContainerStmt());
          } else {
            targets.add(nopStmt);
            // dotnetBody.blockEntryPointsManager.gotoTargetsInBody.put(nopStmt, "END_" +
            // section.getTargetInstr().getTargetLabel());
            dotnetBody.blockEntryPointsManager.gotoTargetsInBody.put(nopStmt, "RETURNLEAVE");
          }
          break;
        default:
          throw new RuntimeException(
              "CilSwitchInstruction: Opcode " + section.getTargetInstr().getOpCode().name() + " not implemented!");
      }
    }

    TableSwitchStmt tableSwitchStmt = Jimple.v().newTableSwitchStmt(key, lowIndex, highIndex, targets, defaultInstruct);
    jb.getUnits().add(tableSwitchStmt);
  
<methods>public void <init>(ProtoIlInstructions.IlInstructionMsg, soot.dotnet.members.method.DotnetBody, soot.dotnet.instructions.CilBlock) <variables>protected final non-sealed soot.dotnet.instructions.CilBlock cilBlock,protected final non-sealed soot.dotnet.members.method.DotnetBody dotnetBody,protected final non-sealed ProtoIlInstructions.IlInstructionMsg instruction