#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 (argc >= 2) {
    switch (argc - 2 & 0x7) {
    case 0:
      printf("Two!\n");
      break;
    case 1:
      printf("Three!\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)
cmpl   $0x2,-0x8(%rbp)
jl     117e <main+0x6e>
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
and    $0x7,%eax
mov    %eax,-0x1c(%rbp)
je     115c <main+0x4c>
jmp    114b <main+0x3b>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
je     116d <main+0x5d>
jmp    1179 <main+0x69>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
jmp    1179 <main+0x69>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
jmp    118a <main+0x7a>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x2,%edi
jl     112b <main+0x1b>
add    $0x6,%edi
and    $0x7,%edi
je     1134 <main+0x24>
cmp    $0x1,%edi
jne    1145 <main+0x35>
lea    0xede(%rip),%rdi
jmp    113b <main+0x2b>
lea    0xece(%rip),%rdi
jmp    113b <main+0x2b>
lea    0xed3(%rip),%rdi
push   %rax
call   1030 <puts@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Two!\0A\00"
@.str.1 = [8 x i8] c"Three!\0A\00"
@.str.2 = [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 = icmp sge i32 %8, 2
br i1 %9, label %10, label %19
10: ; preds = %3
%11 = load i32, i32* %5
%12 = sub nsw i32 %11, 2
%13 = and i32 %12, 7
switch i32 %13, label %18 [
i32 0, label %14
i32 1, label %16
]
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %18
16: ; preds = %10
%17 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %18
18: ; preds = %10, %16, %14
br label %21
19: ; preds = %3
%20 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %18
ret i32 0
}

LLVM IR (-O2):
@str = [7 x i8] c"Other!\00"
@str.3 = [7 x i8] c"Three!\00"
@str.4 = [5 x i8] c"Two!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = icmp sgt i32 %0, 1
br i1 %4, label %5, label %9
5: ; preds = %3
%6 = add nuw i32 %0, 6
%7 = and i32 %6, 7
switch i32 %7, label %12 [
i32 0, label %9
i32 1, label %8
]
8: ; preds = %5
br label %9
9: ; preds = %3, %5, %8
%10 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.3, i64 0, i64 0), %8 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0), %3 ]
%11 = tail call i32 @puts(i8* dereferenceable(1) %10)
br label %12
12: ; preds = %9, %5
ret i32 0
}