#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[]) {
  unsigned char x;
  unsigned char c = argv[1][0];
  if (c > 127)
    x = c / 3;
  else
    x = c * 2;
  if (x == 63)
    printf("if-2-win\n");
  else
    printf("if-2-lose\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    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    (%rax),%al
mov    %al,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x7f,%eax
jle    1154 <main+0x44>
movzbl -0x12(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %al,-0x11(%rbp)
jmp    115e <main+0x4e>
movzbl -0x12(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
cmp    $0x3f,%eax
jne    117c <main+0x6c>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
jmp    1188 <main+0x78>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x8(%rsi),%rax
mov    (%rax),%al
add    $0x43,%al
cmp    $0x3,%al
lea    0xee8(%rip),%rax
lea    0xed7(%rip),%rdi
cmovb  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"if-2-win\0A\00"
@.str.1 = [11 x i8] c"if-2-lose\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i8**, i8*** %5
%9 = getelementptr inbounds i8*, i8** %8, i64 1
%10 = load i8*, i8** %9
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
store i8 %12, i8* %7
%13 = load i8, i8* %7
%14 = zext i8 %13 to i32
%15 = icmp sgt i32 %14, 127
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i8, i8* %7
%18 = zext i8 %17 to i32
%19 = sdiv i32 %18, 3
%20 = trunc i32 %19 to i8
store i8 %20, i8* %6
br label %26
21: ; preds = %2
%22 = load i8, i8* %7
%23 = zext i8 %22 to i32
%24 = mul nsw i32 %23, 2
%25 = trunc i32 %24 to i8
store i8 %25, i8* %6
br label %26
26: ; preds = %21, %16
%27 = load i8, i8* %6
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 63
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %34
32: ; preds = %26
%33 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %34
34: ; preds = %32, %30
ret i32 0
}

LLVM IR (-O2):
@str = [10 x i8] c"if-2-lose\00"
@str.2 = [9 x i8] c"if-2-win\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = add i8 %5, 67
%7 = icmp ult i8 %6, 3
%8 = select i1 %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0)
%9 = tail call i32 @puts(i8* dereferenceable(1) %8)
ret i32 0
}