#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[]) {
  if ((unsigned int)(argc - 2) > 5) {
    printf("Other!\n");
  } else {
    switch (argc) {
    case 2:
      printf("Two!\n");
      break;
    case 3:
      printf("Three!\n");
      break;
    case 4:
      printf("Four!\n");
      break;
    case 5:
      printf("Five!\n");
      break;
    case 6:
      printf("Six!\n");
      break;
    case 7:
      printf("Seven!\n");
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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    114a <main+0x3a>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
jmp    11d9 <main+0xc9>
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x5,%eax
ja     11d4 <main+0xc4>
mov    -0x20(%rbp),%rax
lea    0xe96(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xc4>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xc4>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xc4>
lea    0xe88(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xc4>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xc4>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
jmp    11d9 <main+0xc9>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    -0x8(%rdi),%eax
cmp    $0xfffffffa,%eax
jae    1122 <main+0x12>
lea    0xf04(%rip),%rdi
jmp    113b <main+0x2b>
add    $0xfffffffe,%edi
cmp    $0x5,%edi
ja     1140 <main+0x30>
movslq %edi,%rax
lea    0xef8(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1030 <puts@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**
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%8 = load i32, i32* %5
%9 = sub nsw i32 %8, 2
%10 = icmp ugt i32 %9, 5
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %28
13: ; preds = %3
%14 = load i32, i32* %5
switch i32 %14, label %27 [
i32 2, label %15
i32 3, label %17
i32 4, label %19
i32 5, label %21
i32 6, label %23
i32 7, label %25
]
15: ; preds = %13
%16 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %27
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %27
19: ; preds = %13
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %27
21: ; preds = %13
%22 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %27
23: ; preds = %13
%24 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %27
25: ; preds = %13
%26 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %27
27: ; preds = %13, %25, %23, %21, %19, %17, %15
br label %28
28: ; preds = %27, %11
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.9 = [6 x i8] c"Four!\00"
@str.10 = [7 x i8] c"Three!\00"
@str.11 = [5 x i8] c"Two!\00"
@str.12 = [7 x i8] c"Other!\00"
@reltable.main = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.11 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.10 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.9 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, 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, -2
%8 = icmp ult i32 %7, 6
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = sext i32 %7 to i64
%11 = shl i64 %10, 2
%12 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.main to i8*), i64 %11)
br label %13
13: ; preds = %9, %3
%14 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.12, i64 0, i64 0), %3 ], [ %12, %9 ]
%15 = tail call i32 @puts(i8* dereferenceable(1) %14)
br label %16
16: ; preds = %6, %13
ret i32 0
}