#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*/ looser();
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ winner();
int main(int argn, char **argv) {
  char user[10];
  if (argn != 2) {
    printf("Usage: %s \"YOUR NAME\"\n", argv[0]);
    return 1;
  }
  strcpy(user, argv[1]);
  if ((!strcmp("user", user)) && (strlen(user) > 8))
    winner();
  else
    looser();
  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)
cmpl   $0x2,-0x8(%rbp)
je     119f <main+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe72(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    11f5 <main+0x95>
lea    -0x1a(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x1a(%rbp),%rsi
lea    0xe5c(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    11e7 <main+0x87>
lea    -0x1a(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x8,%eax
jle    11e7 <main+0x87>
mov    $0x0,%al
call   1070 <winner@plt>
jmp    11ee <main+0x8e>
mov    $0x0,%al
call   1080 <looser@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
cmp    $0x2,%edi
jne    1194 <main+0x44>
mov    0x8(%rsi),%rsi
lea    0x6(%rsp),%rdi
call   1030 <strcpy@plt>
mov    $0x72657375,%eax
xor    0x6(%rsp),%eax
movzbl 0xa(%rsp),%ecx
or     %eax,%ecx
jne    11aa <main+0x5a>
lea    0x6(%rsp),%rdi
call   1040 <strlen@plt>
cmp    $0x9,%eax
jl     11aa <main+0x5a>
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <winner@plt>
jmp    11b3 <main+0x63>
mov    (%rsi),%rsi
lea    0xe62(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%ebx
jmp    11b3 <main+0x63>
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <looser@plt>
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Usage: %s \22YOUR NAME\22\0A\00"
@.str.1 = [5 x i8] c"user\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %12)
store i32 1, i32* %3
br label %32
14: ; preds = %2
%15 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i32 @strcpy(i8* %15, i8* %18)
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%21 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %29, label %23
23: ; preds = %14
%24 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%25 = call i32 @strlen(i8* %24)
%26 = icmp sgt i32 %25, 8
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 (...) @winner()
br label %31
29: ; preds = %23, %14
%30 = call i32 (...) @looser()
br label %31
31: ; preds = %29, %27
store i32 0, i32* %3
br label %32
32: ; preds = %31, %9
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
@.str = [23 x i8] c"Usage: %s \22YOUR NAME\22\0A\00"
@.str.1 = [5 x i8] c"user\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [10 x i8]
%4 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%5 = icmp eq i32 %0, 2
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %22
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @strcpy(i8* %4, i8* %11)
%13 = call i32 @bcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* dereferenceable(5) %4, i64 5)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %9
%16 = call i32 @strlen(i8* %4)
%17 = icmp sgt i32 %16, 8
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 (...) @winner()
br label %22
20: ; preds = %15, %9
%21 = call i32 (...) @looser()
br label %22
22: ; preds = %18, %20, %6
%23 = phi i32 [ 1, %6 ], [ 0, %20 ], [ 0, %18 ]
ret i32 %23
}