#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*/ printf(char *);
int main(int argc, char *argv[]) {
  int n = 10 - argc;
  switch (argc) {
  case 2:
    printf("Two!\n");
    break;
  case 3:
    printf("Three!\n");
    break;
  case 4:
    switch (n) {
    case 10 - 2:
      printf("Two!\n");
      break;
    case 10 - 3:
      printf("Three!\n");
      break;
    case 10 - 4:
      printf("Four!\n");
      break;
    case 10 - 5:
      printf("Five!\n");
      break;
    case 10 - 6:
      printf("Six!\n");
      break;
    case 10 - 7:
      printf("Seven!\n");
      break;
    default:
      printf("Other!\n");
      break;
    }
    break;
  case 5:
    printf("Five!\n");
    break;
  case 6:
    printf("Six!\n");
    break;
  case 7:
    printf("Seven!\n");
    break;
  default:
    printf("Other!\n");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0xa,%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x5,%eax
ja     1251 <main+0x141>
mov    -0x20(%rbp),%rax
lea    0xead(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x14d>
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x14d>
mov    -0x14(%rbp),%eax
add    $0xfffffffd,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x5,%eax
ja     120d <main+0xfd>
mov    -0x28(%rbp),%rax
lea    0xe7a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0x109>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0x109>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0x109>
lea    0xe64(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0x109>
lea    0xe5a(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0x109>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0x109>
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x14d>
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x14d>
lea    0xe16(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x14d>
lea    0xe0b(%rip),%rdi
call   1030 <printf@plt>
jmp    125d <main+0x14d>
lea    0xe02(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
add    $0xfffffffe,%edi
cmp    $0x5,%edi
ja     112c <main+0x1c>
movslq %edi,%rax
lea    0xf09(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1133 <main+0x23>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Two!\0A\00"
@.str.1 = [8 x i8] c"Three!\0A\00"
@.str.2 = [7 x i8] c"Four!\0A\00"
@.str.3 = [7 x i8] c"Five!\0A\00"
@.str.4 = [6 x i8] c"Six!\0A\00"
@.str.5 = [8 x i8] c"Seven!\0A\00"
@.str.6 = [8 x i8] c"Other!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = sub nsw i32 10, %7
store i32 %8, i32* %6
%9 = load i32, i32* %4
switch i32 %9, label %37 [
i32 2, label %10
i32 3, label %12
i32 4, label %14
i32 5, label %31
i32 6, label %33
i32 7, label %35
]
10: ; preds = %2
%11 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %39
12: ; preds = %2
%13 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %39
14: ; preds = %2
%15 = load i32, i32* %6
switch i32 %15, label %28 [
i32 8, label %16
i32 7, label %18
i32 6, label %20
i32 5, label %22
i32 4, label %24
i32 3, label %26
]
16: ; preds = %14
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %30
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %30
20: ; preds = %14
%21 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %30
22: ; preds = %14
%23 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %30
24: ; preds = %14
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %30
26: ; preds = %14
%27 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %30
28: ; preds = %14
%29 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %30
30: ; preds = %28, %26, %24, %22, %20, %18, %16
br label %39
31: ; preds = %2
%32 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %39
33: ; preds = %2
%34 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %39
35: ; preds = %2
%36 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %39
37: ; preds = %2
%38 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %39
39: ; preds = %37, %35, %33, %31, %30, %12, %10
ret i32 0
}

LLVM IR (-O2):
@str = [7 x i8] c"Seven!\00"
@str.7 = [5 x i8] c"Six!\00"
@str.8 = [6 x i8] c"Five!\00"
@str.12 = [6 x i8] c"Four!\00"
@str.16 = [7 x i8] c"Three!\00"
@str.17 = [5 x i8] c"Two!\00"
@str.18 = [7 x i8] c"Other!\00"
@reltable.main = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.17 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.16 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.12 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.8 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.7 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32)]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = add i32 %0, -2
%4 = icmp ult i32 %3, 6
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = sext i32 %3 to i64
%7 = shl i64 %6, 2
%8 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.main to i8*), i64 %7)
br label %9
9: ; preds = %2, %5
%10 = phi i8* [ %8, %5 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.18, i64 0, i64 0), %2 ]
%11 = tail call i32 @puts(i8* dereferenceable(1) %10)
ret i32 0
}