#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ test0();
int /*<<< orphan*/ test1();
int /*<<< orphan*/ test10();
int /*<<< orphan*/ test2();
int /*<<< orphan*/ test3();
int /*<<< orphan*/ test4();
int /*<<< orphan*/ test5();
int /*<<< orphan*/ test6();
int /*<<< orphan*/ test7();
int /*<<< orphan*/ test8();
int /*<<< orphan*/ test9();
int main(void) {
  int test = -1;
  switch (test) {
  case 0:
    test0();
    break;
  case 1:
    test1();
    break;
  case 2:
    test2();
    break;
  case 3:
    test3();
    break;
  case 4:
    test4();
    break;
  case 5:
    test5();
    break;
  case 6:
    test6();
    break;
  case 7:
    test7();
    break;
  case 8:
    test8();
    break;
  case 9:
    test9();
    break;
  case 10:
    test10();
    break;
  default:
    test0();
    test1();
    test2();
    test3();
    test4();
    test5();
    test6();
    test7();
    test8();
    test9();
    test10();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0xa,%rax
ja     126f <main+0xbf>
mov    -0x10(%rbp),%rax
lea    0xe1e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   10a0 <test0@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1070 <test1@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   10c0 <test2@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1050 <test3@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   10b0 <test4@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1040 <test5@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1090 <test6@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1030 <test7@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   10d0 <test8@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1080 <test9@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   1060 <test10@plt>
jmp    12bc <main+0x10c>
mov    $0x0,%al
call   10a0 <test0@plt>
mov    $0x0,%al
call   1070 <test1@plt>
mov    $0x0,%al
call   10c0 <test2@plt>
mov    $0x0,%al
call   1050 <test3@plt>
mov    $0x0,%al
call   10b0 <test4@plt>
mov    $0x0,%al
call   1040 <test5@plt>
mov    $0x0,%al
call   1090 <test6@plt>
mov    $0x0,%al
call   1030 <test7@plt>
mov    $0x0,%al
call   10d0 <test8@plt>
mov    $0x0,%al
call   1080 <test9@plt>
mov    $0x0,%al
call   1060 <test10@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10a0 <test0@plt>
xor    %eax,%eax
call   1070 <test1@plt>
xor    %eax,%eax
call   10c0 <test2@plt>
xor    %eax,%eax
call   1050 <test3@plt>
xor    %eax,%eax
call   10b0 <test4@plt>
xor    %eax,%eax
call   1040 <test5@plt>
xor    %eax,%eax
call   1090 <test6@plt>
xor    %eax,%eax
call   1030 <test7@plt>
xor    %eax,%eax
call   10d0 <test8@plt>
xor    %eax,%eax
call   1080 <test9@plt>
xor    %eax,%eax
call   1060 <test10@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %26 [
i32 0, label %4
i32 1, label %6
i32 2, label %8
i32 3, label %10
i32 4, label %12
i32 5, label %14
i32 6, label %16
i32 7, label %18
i32 8, label %20
i32 9, label %22
i32 10, label %24
]
4: ; preds = %0
%5 = call i32 (...) @test0()
br label %38
6: ; preds = %0
%7 = call i32 (...) @test1()
br label %38
8: ; preds = %0
%9 = call i32 (...) @test2()
br label %38
10: ; preds = %0
%11 = call i32 (...) @test3()
br label %38
12: ; preds = %0
%13 = call i32 (...) @test4()
br label %38
14: ; preds = %0
%15 = call i32 (...) @test5()
br label %38
16: ; preds = %0
%17 = call i32 (...) @test6()
br label %38
18: ; preds = %0
%19 = call i32 (...) @test7()
br label %38
20: ; preds = %0
%21 = call i32 (...) @test8()
br label %38
22: ; preds = %0
%23 = call i32 (...) @test9()
br label %38
24: ; preds = %0
%25 = call i32 (...) @test10()
br label %38
26: ; preds = %0
%27 = call i32 (...) @test0()
%28 = call i32 (...) @test1()
%29 = call i32 (...) @test2()
%30 = call i32 (...) @test3()
%31 = call i32 (...) @test4()
%32 = call i32 (...) @test5()
%33 = call i32 (...) @test6()
%34 = call i32 (...) @test7()
%35 = call i32 (...) @test8()
%36 = call i32 (...) @test9()
%37 = call i32 (...) @test10()
br label %38
38: ; preds = %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test0()
%2 = tail call i32 (...) @test1()
%3 = tail call i32 (...) @test2()
%4 = tail call i32 (...) @test3()
%5 = tail call i32 (...) @test4()
%6 = tail call i32 (...) @test5()
%7 = tail call i32 (...) @test6()
%8 = tail call i32 (...) @test7()
%9 = tail call i32 (...) @test8()
%10 = tail call i32 (...) @test9()
%11 = tail call i32 (...) @test10()
ret i32 0
}