#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) {
    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;
    }
  } else {
    printf("Other!\n");
  }
  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
ja     11c8 <main+0xb8>
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x5,%eax
ja     11c3 <main+0xb3>
mov    -0x20(%rbp),%rax
lea    0xea7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xb3>
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xb3>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xb3>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xb3>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xb3>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xc4>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
add    $0xfffffffe,%edi
cmp    $0x5,%edi
ja     112e <main+0x1e>
ja     113a <main+0x2a>
movslq %edi,%rax
lea    0xf07(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1135 <main+0x25>
lea    0xecb(%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, 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 ule i32 %9, 5
br i1 %10, label %11, label %26
11: ; preds = %3
%12 = load i32, i32* %5
switch i32 %12, label %25 [
i32 2, label %13
i32 3, label %15
i32 4, label %17
i32 5, label %19
i32 6, label %21
i32 7, label %23
]
13: ; preds = %11
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %25
15: ; preds = %11
%16 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %25
17: ; preds = %11
%18 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %25
19: ; preds = %11
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %25
21: ; preds = %11
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %25
23: ; preds = %11
%24 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %25
25: ; preds = %11, %23, %21, %19, %17, %15, %13
br label %28
26: ; preds = %3
%27 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %28
28: ; preds = %26, %25
ret i32 0
}

LLVM IR (-O2):
@str = [7 x i8] c"Other!\00"
@str.7 = [7 x i8] c"Seven!\00"
@str.8 = [5 x i8] c"Six!\00"
@str.9 = [6 x i8] c"Five!\00"
@str.10 = [6 x i8] c"Four!\00"
@str.11 = [7 x i8] c"Three!\00"
@str.12 = [5 x i8] c"Two!\00"
@reltable.main = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.12 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.11 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 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 ([5 x i8]* @str.8 to i64), i64 ptrtoint ([6 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.7 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 nsw i32 %0, -2
%5 = icmp ult i32 %4, 6
br i1 %5, label %6, label %13
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, 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
}