#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[], char *envp[]) {
  char *local0;
  if ((unsigned int)(argc - 2) > 5) {
    local0 = "Other!\n";
  } else {
    switch (argc) {
    case 2:
      local0 = "Two!\n";
      break;
    case 3:
      local0 = "Three!\n";
      break;
    case 4:
      local0 = "Four!\n";
      break;
    case 5:
      local0 = "Five!\n";
      break;
    case 6:
      local0 = "Six!\n";
      break;
    case 7:
      local0 = "Seven!\n";
      break;
    }
  }
  printf(local0);
  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    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
cmp    $0x5,%eax
jbe    1149 <main+0x39>
lea    0xed8(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11d2 <main+0xc2>
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x5,%eax
ja     11cd <main+0xbd>
mov    -0x28(%rbp),%rax
lea    0xe97(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xea7(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11cd <main+0xbd>
lea    0xe9d(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11cd <main+0xbd>
lea    0xe95(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11cd <main+0xbd>
lea    0xe8c(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11cd <main+0xbd>
lea    0xe83(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11cd <main+0xbd>
lea    0xe79(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11d2 <main+0xc2>
mov    -0x20(%rbp),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    -0x8(%rdi),%eax
cmp    $0xfffffffa,%eax
jae    1122 <main+0x12>
lea    0xee0(%rip),%rdi
jmp    1144 <main+0x34>
add    $0xfffffffd,%edi
cmp    $0x4,%edi
ja     113d <main+0x2d>
movslq %edi,%rax
lea    0xf00(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1144 <main+0x34>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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