#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 > 63) {
    printf("if-1-win ");
    if (c > 127)
      printf("if-2-win\n");
    else
      printf("if-2-lose\n");
  } else {
    printf("if-1-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    $0x3f,%eax
jle    117b <main+0x6b>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
movzbl -0x11(%rbp),%eax
cmp    $0x7f,%eax
jle    116a <main+0x5a>
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
jmp    1176 <main+0x66>
lea    0xea3(%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
cmp    $0x40,%bl
jb     114e <main+0x2e>
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
test   %bl,%bl
lea    0xedd(%rip),%rax
lea    0xecc(%rip),%rdi
cmovs  %rax,%rdi
jmp    1155 <main+0x35>
lea    0xeb5(%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 = [10 x i8] c"if-2-win\0A\00"
@.str.2 = [11 x i8] c"if-2-lose\0A\00"
@.str.3 = [11 x i8] c"if-1-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, 63
br i1 %14, label %15, label %25
15: ; preds = %2
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%17 = load i8, i8* %6
%18 = zext i8 %17 to i32
%19 = icmp sgt i32 %18, 127
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %24
22: ; preds = %15
%23 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %24
24: ; preds = %22, %20
br label %27
25: ; preds = %2
%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, %24
ret i32 0
}

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