#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*/ f_empty_goto_loop();
int /*<<< orphan*/ f_empty_goto_loop_multiple();
int /*<<< orphan*/ f_empty_goto_loop_multiple_semicolon_both();
int /*<<< orphan*/ f_empty_goto_loop_multiple_semicolon_first();
int /*<<< orphan*/ f_empty_goto_loop_multiple_semicolon_second();
int /*<<< orphan*/ f_empty_goto_loop_prefix();
int /*<<< orphan*/ f_empty_goto_loop_semicolon();
int /*<<< orphan*/ f_empty_goto_loop_suffix();
int /*<<< orphan*/ f_empty_while_loop();
int /*<<< orphan*/ f_empty_while_loop_prefix();
int /*<<< orphan*/ f_empty_while_loop_semicolon();
int /*<<< orphan*/ f_empty_while_loop_suffix();
int /*<<< orphan*/ f_nonempty_goto_loop();
int /*<<< orphan*/ f_nonempty_while_loop();
int main() {
  int r;
  switch (r) {
  case 0:
    f_empty_goto_loop();
    break;
  case 1:
    f_empty_while_loop();
    break;
  case 2:
    f_empty_goto_loop_suffix();
    break;
  case 3:
    f_empty_while_loop_suffix();
    break;
  case 4:
    f_nonempty_goto_loop();
    break;
  case 5:
    f_nonempty_while_loop();
    break;
  case 6:
    f_empty_goto_loop_prefix();
    break;
  case 7:
    f_empty_while_loop_prefix();
    break;
  case 8:
    f_empty_goto_loop_semicolon();
    break;
  case 9:
    f_empty_while_loop_semicolon();
    break;
  case 10:
    f_empty_goto_loop_multiple();
    break;
  case 11:
    f_empty_goto_loop_multiple_semicolon_first();
    break;
  case 12:
    f_empty_goto_loop_multiple_semicolon_second();
    break;
  case 13:
    f_empty_goto_loop_multiple_semicolon_both();
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0xd,%rax
ja     12b7 <main+0xd7>
mov    -0x10(%rbp),%rax
lea    0xdf5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   10c0 <f_empty_goto_loop@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   10f0 <f_empty_while_loop@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1070 <f_empty_goto_loop_suffix@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1050 <f_empty_while_loop_suffix@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   10e0 <f_nonempty_goto_loop@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   10b0 <f_nonempty_while_loop@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1060 <f_empty_goto_loop_prefix@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1030 <f_empty_while_loop_prefix@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1040 <f_empty_goto_loop_semicolon@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1100 <f_empty_while_loop_semicolon@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1080 <f_empty_goto_loop_multiple@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   1090 <f_empty_goto_loop_multiple_semicolon_first@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   10d0 <f_empty_goto_loop_multiple_semicolon_second@plt>
jmp    12b7 <main+0xd7>
mov    $0x0,%al
call   10a0 <f_empty_goto_loop_multiple_semicolon_both@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <f_empty_goto_loop@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* %2
switch i32 %3, label %32 [
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
i32 11, label %26
i32 12, label %28
i32 13, label %30
]
4: ; preds = %0
%5 = call i32 (...) @f_empty_goto_loop()
br label %32
6: ; preds = %0
%7 = call i32 (...) @f_empty_while_loop()
br label %32
8: ; preds = %0
%9 = call i32 (...) @f_empty_goto_loop_suffix()
br label %32
10: ; preds = %0
%11 = call i32 (...) @f_empty_while_loop_suffix()
br label %32
12: ; preds = %0
%13 = call i32 (...) @f_nonempty_goto_loop()
br label %32
14: ; preds = %0
%15 = call i32 (...) @f_nonempty_while_loop()
br label %32
16: ; preds = %0
%17 = call i32 (...) @f_empty_goto_loop_prefix()
br label %32
18: ; preds = %0
%19 = call i32 (...) @f_empty_while_loop_prefix()
br label %32
20: ; preds = %0
%21 = call i32 (...) @f_empty_goto_loop_semicolon()
br label %32
22: ; preds = %0
%23 = call i32 (...) @f_empty_while_loop_semicolon()
br label %32
24: ; preds = %0
%25 = call i32 (...) @f_empty_goto_loop_multiple()
br label %32
26: ; preds = %0
%27 = call i32 (...) @f_empty_goto_loop_multiple_semicolon_first()
br label %32
28: ; preds = %0
%29 = call i32 (...) @f_empty_goto_loop_multiple_semicolon_second()
br label %32
30: ; preds = %0
%31 = call i32 (...) @f_empty_goto_loop_multiple_semicolon_both()
br label %32
32: ; preds = %0, %30, %28, %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 (...) @f_empty_goto_loop()
ret i32 0
}