#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 > 127)
    printf("if-1-win ");
  else
    printf("if-1-lose ");
  if (c == 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,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
cmp    $0x7f,%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    $0x3f,%eax
jne    117b <main+0x6b>
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
jmp    1187 <main+0x77>
lea    0xe9d(%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
test   %bl,%bl
js     1145 <main+0x25>
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
cmp    $0x3f,%bl
jne    1151 <main+0x31>
lea    0xedc(%rip),%rdi
jmp    1158 <main+0x38>
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, 127
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 eq i32 %21, 63
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 slt i8 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %12
9: ; preds = %2
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i8 %5, 63
br i1 %11, label %13, label %12
12: ; preds = %7, %9
br label %13
13: ; preds = %9, %12
%14 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0), %12 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.4, i64 0, i64 0), %9 ]
%15 = tail call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}