#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*/ best_class();
int /*<<< orphan*/ class_win_stats(int);
int /*<<< orphan*/ myelo();
int /*<<< orphan*/ played_class();
int /*<<< orphan*/ print_all();
int /*<<< orphan*/ print_run(int);
int /*<<< orphan*/ recover_run();
int /*<<< orphan*/ win_stats();
int /*<<< orphan*/ worst_class();
void commandlist(int command) {
  switch (command) {
  case 1:
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  case 7:
  case 8:
  case 9:
    print_run(command);
    break;
  case 10:
    recover_run();
    break;
  case 11:
    print_all();
    break;
  case 12:
    win_stats();
    break;
  case 13:
    best_class();
    break;
  case 14:
    worst_class();
    break;
  case 15:
    played_class();
    break;
  case 16:
    myelo();
    break;
  case 21:
  case 22:
  case 23:
  case 24:
  case 25:
  case 26:
  case 27:
  case 28:
  case 29:
    class_win_stats(command);
    break;
  }
}


x86 assembly (clang, -O0):
<commandlist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x1c,%eax
ja     122d <commandlist+0x9d>
mov    -0x10(%rbp),%rax
lea    0xe45(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x4(%rbp),%edi
call   1080 <print_run@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   1030 <recover_run@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   10b0 <print_all@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   10a0 <win_stats@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   1070 <best_class@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   1060 <worst_class@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   1050 <played_class@plt>
jmp    122d <commandlist+0x9d>
mov    $0x0,%al
call   1040 <myelo@plt>
jmp    122d <commandlist+0x9d>
mov    -0x4(%rbp),%edi
call   1090 <class_win_stats@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<commandlist>:
lea    -0x1(%rdi),%eax
cmp    $0x1c,%eax
ja     11e3 <commandlist+0x53>
lea    0xe61(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1080 <print_run@plt>
jmp    1090 <class_win_stats@plt>
xor    %eax,%eax
jmp    1030 <recover_run@plt>
xor    %eax,%eax
jmp    10b0 <print_all@plt>
xor    %eax,%eax
jmp    10a0 <win_stats@plt>
xor    %eax,%eax
jmp    1070 <best_class@plt>
xor    %eax,%eax
jmp    1060 <worst_class@plt>
xor    %eax,%eax
jmp    1050 <played_class@plt>
xor    %eax,%eax
jmp    1040 <myelo@plt>
ret

LLVM IR (-O0):
define void @commandlist(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %24 [
i32 1, label %4
i32 2, label %4
i32 3, label %4
i32 4, label %4
i32 5, label %4
i32 6, label %4
i32 7, label %4
i32 8, label %4
i32 9, label %4
i32 10, label %7
i32 11, label %9
i32 12, label %11
i32 13, label %13
i32 14, label %15
i32 15, label %17
i32 16, label %19
i32 21, label %21
i32 22, label %21
i32 23, label %21
i32 24, label %21
i32 25, label %21
i32 26, label %21
i32 27, label %21
i32 28, label %21
i32 29, label %21
]
4: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1
%5 = load i32, i32* %2
%6 = call i32 @print_run(i32 %5)
br label %24
7: ; preds = %1
%8 = call i32 (...) @recover_run()
br label %24
9: ; preds = %1
%10 = call i32 (...) @print_all()
br label %24
11: ; preds = %1
%12 = call i32 (...) @win_stats()
br label %24
13: ; preds = %1
%14 = call i32 (...) @best_class()
br label %24
15: ; preds = %1
%16 = call i32 (...) @worst_class()
br label %24
17: ; preds = %1
%18 = call i32 (...) @played_class()
br label %24
19: ; preds = %1
%20 = call i32 (...) @myelo()
br label %24
21: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1
%22 = load i32, i32* %2
%23 = call i32 @class_win_stats(i32 %22)
br label %24
24: ; preds = %1, %21, %19, %17, %15, %13, %11, %9, %7, %4
ret void
}

LLVM IR (-O2):
define void @commandlist(i32 %0) {
switch i32 %0, label %20 [
i32 1, label %2
i32 2, label %2
i32 3, label %2
i32 4, label %2
i32 5, label %2
i32 6, label %2
i32 7, label %2
i32 8, label %2
i32 9, label %2
i32 10, label %4
i32 11, label %6
i32 12, label %8
i32 13, label %10
i32 14, label %12
i32 15, label %14
i32 16, label %16
i32 21, label %18
i32 22, label %18
i32 23, label %18
i32 24, label %18
i32 25, label %18
i32 26, label %18
i32 27, label %18
i32 28, label %18
i32 29, label %18
]
2: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1
%3 = tail call i32 @print_run(i32 %0)
br label %20
4: ; preds = %1
%5 = tail call i32 (...) @recover_run()
br label %20
6: ; preds = %1
%7 = tail call i32 (...) @print_all()
br label %20
8: ; preds = %1
%9 = tail call i32 (...) @win_stats()
br label %20
10: ; preds = %1
%11 = tail call i32 (...) @best_class()
br label %20
12: ; preds = %1
%13 = tail call i32 (...) @worst_class()
br label %20
14: ; preds = %1
%15 = tail call i32 (...) @played_class()
br label %20
16: ; preds = %1
%17 = tail call i32 (...) @myelo()
br label %20
18: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1
%19 = tail call i32 @class_win_stats(i32 %0)
br label %20
20: ; preds = %1, %18, %16, %14, %12, %10, %8, %6, %4, %2
ret void
}