void tdd_switchfixer_switchdffixer(void) {
  int level = 10U;
  int a;
  int b;
  switch (level) {
  case 10U: {
    level++;
    level--;
    break;
  }
  case 20U: {
    level = 10000U;
    break;
  }
  case 30U: {
    level++;
    break;
  }
  case 40U: {
    level++;
    break;
  }
  case 50U: {
    level++;
    break;
  }
  case 60U: {
    level = 1000U;
    break;
  }
  case 70U: {
    level++;
    break;
  }
  case 80U: {
    level++;
    break;
  }
  case 90U: {
    level++;
    break;
  }
  default: {
    level++;
    break;
  }
  }
  switch (level) {
  case 1: {
    level++;
    break;
  }
  case 2:
    level = 10;
    level--;
    {
    case 3:
      level = 10U;
      level++;
      break;
    }
  }
  switch (level) {
  case 1:
    level++;
  case 2:
    level = 1;
  case 3:
    level = 2;
  default:
    level++;
  }
  switch (level) {}
}


x86 assembly (clang, -O0):
<tdd_switchfixer_switchdffixer>:
push   %rbp
mov    %rsp,%rbp
movl   $0xa,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xfffffff6,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x50,%eax
ja     11b7 <tdd_switchfixer_switchdffixer+0xb7>
mov    -0x18(%rbp),%rax
lea    0xed5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
movl   $0x2710,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
movl   $0x3e8,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c0 <tdd_switchfixer_switchdffixer+0xc0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0x1,%eax
je     11f6 <tdd_switchfixer_switchdffixer+0xf6>
jmp    11d4 <tdd_switchfixer_switchdffixer+0xd4>
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
je     1204 <tdd_switchfixer_switchdffixer+0x104>
jmp    11e5 <tdd_switchfixer_switchdffixer+0xe5>
mov    -0x1c(%rbp),%eax
sub    $0x3,%eax
je     1214 <tdd_switchfixer_switchdffixer+0x114>
jmp    1224 <tdd_switchfixer_switchdffixer+0x124>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1224 <tdd_switchfixer_switchdffixer+0x124>
movl   $0xa,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
movl   $0xa,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x20(%rbp)
sub    $0x1,%eax
je     125a <tdd_switchfixer_switchdffixer+0x15a>
jmp    1238 <tdd_switchfixer_switchdffixer+0x138>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
je     1263 <tdd_switchfixer_switchdffixer+0x163>
jmp    1249 <tdd_switchfixer_switchdffixer+0x149>
mov    -0x20(%rbp),%eax
sub    $0x3,%eax
je     126a <tdd_switchfixer_switchdffixer+0x16a>
jmp    1271 <tdd_switchfixer_switchdffixer+0x171>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0x4(%rbp)
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<tdd_switchfixer_switchdffixer>:
ret

LLVM IR (-O0):
define void @tdd_switchfixer_switchdffixer() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 10, i32* %1
%4 = load i32, i32* %1
switch i32 %4, label %30 [
i32 10, label %5
i32 20, label %10
i32 30, label %11
i32 40, label %14
i32 50, label %17
i32 60, label %20
i32 70, label %21
i32 80, label %24
i32 90, label %27
]
5: ; preds = %0
%6 = load i32, i32* %1
%7 = add nsw i32 %6, 1
store i32 %7, i32* %1
%8 = load i32, i32* %1
%9 = add nsw i32 %8, -1
store i32 %9, i32* %1
br label %33
10: ; preds = %0
store i32 10000, i32* %1
br label %33
11: ; preds = %0
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
br label %33
14: ; preds = %0
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
store i32 %16, i32* %1
br label %33
17: ; preds = %0
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 1
store i32 %19, i32* %1
br label %33
20: ; preds = %0
store i32 1000, i32* %1
br label %33
21: ; preds = %0
%22 = load i32, i32* %1
%23 = add nsw i32 %22, 1
store i32 %23, i32* %1
br label %33
24: ; preds = %0
%25 = load i32, i32* %1
%26 = add nsw i32 %25, 1
store i32 %26, i32* %1
br label %33
27: ; preds = %0
%28 = load i32, i32* %1
%29 = add nsw i32 %28, 1
store i32 %29, i32* %1
br label %33
30: ; preds = %0
%31 = load i32, i32* %1
%32 = add nsw i32 %31, 1
store i32 %32, i32* %1
br label %33
33: ; preds = %30, %27, %24, %21, %20, %17, %14, %11, %10, %5
%34 = load i32, i32* %1
switch i32 %34, label %44 [
i32 1, label %35
i32 2, label %38
i32 3, label %41
]
35: ; preds = %33
%36 = load i32, i32* %1
%37 = add nsw i32 %36, 1
store i32 %37, i32* %1
br label %44
38: ; preds = %33
store i32 10, i32* %1
%39 = load i32, i32* %1
%40 = add nsw i32 %39, -1
store i32 %40, i32* %1
br label %41
41: ; preds = %33, %38
store i32 10, i32* %1
%42 = load i32, i32* %1
%43 = add nsw i32 %42, 1
store i32 %43, i32* %1
br label %44
44: ; preds = %33, %41, %35
%45 = load i32, i32* %1
switch i32 %45, label %51 [
i32 1, label %46
i32 2, label %49
i32 3, label %50
]
46: ; preds = %44
%47 = load i32, i32* %1
%48 = add nsw i32 %47, 1
store i32 %48, i32* %1
br label %49
49: ; preds = %44, %46
store i32 1, i32* %1
br label %50
50: ; preds = %44, %49
store i32 2, i32* %1
br label %51
51: ; preds = %44, %50
%52 = load i32, i32* %1
%53 = add nsw i32 %52, 1
store i32 %53, i32* %1
br label %54
54: ; preds = %51
%55 = load i32, i32* %1
switch i32 %55, label %56 [
]
56: ; preds = %54
ret void
}

LLVM IR (-O2):
define void @tdd_switchfixer_switchdffixer() {
ret void
}