#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 c = argv[1][0];
  if (c > 85)
    printf("if-1-win ");
  else
    printf("if-1-lose ");
  if (c < 170)
    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,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
cmp    $0x55,%eax
jle    1151 <main+0x41>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
jmp    115d <main+0x4d>
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
movzbl -0x11(%rbp),%eax
cmp    $0xaa,%eax
jge    117d <main+0x6d>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    1189 <main+0x79>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x8(%rsi),%rax
mov    (%rax),%bl
cmp    $0x55,%bl
jbe    114f <main+0x2f>
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
cmp    $0xaa,%bl
lea    0xedd(%rip),%rax
lea    0xecc(%rip),%rdi
cmovb  %rax,%rdi
jmp    1162 <main+0x42>
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
lea    0xebd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"if-1-win \00"
@.str.1 = [11 x i8] c"if-1-lose \00"
@.str.2 = [10 x i8] c"if-2-win\0A\00"
@.str.3 = [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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i64 1
%9 = load i8*, i8** %8
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = load i8, i8* %10
store i8 %11, i8* %6
%12 = load i8, i8* %6
%13 = zext i8 %12 to i32
%14 = icmp sgt i32 %13, 85
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %19
17: ; preds = %2
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %15
%20 = load i8, i8* %6
%21 = zext i8 %20 to i32
%22 = icmp slt i32 %21, 170
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %27
25: ; preds = %19
%26 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %23
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"if-1-win \00"
@.str.1 = [11 x i8] c"if-1-lose \00"
@str = [10 x i8] c"if-2-lose\00"
@str.4 = [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 = icmp ugt i8 %5, 85
br i1 %6, label %9, label %7
7: ; preds = %2
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %13
9: ; preds = %2
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%11 = icmp ult i8 %5, -86
%12 = select i1 %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0)
br label %13
13: ; preds = %9, %7
%14 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.4, i64 0, i64 0), %7 ], [ %12, %9 ]
%15 = tail call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}