#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  int i;
  if (argc == 1)
    fprintf(stdout, "< qwin >\n");
  for (i = 1; i < argc; i++)
    if (i == 1)
      fprintf(stdout, "/ %s \\\n", argv[i]);
    else if (i == argc - 1)
      fprintf(stdout, "\\ %s /\n", argv[i]);
    else
      fprintf(stdout, "| %s |\n", argv[i]);
  fprintf(stdout, "  \\ ^__^\n");
  fprintf(stdout, "    (oo)\\_______\n");
  fprintf(stdout, "    (__)\\       )\\/\\\n");
  fprintf(stdout, "        ||----w |\n");
  fprintf(stdout, "        ||     ||\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)
cmpl   $0x1,-0x8(%rbp)
jne    1147 <main+0x37>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1200 <main+0xf0>
cmpl   $0x1,-0x14(%rbp)
jne    118c <main+0x7c>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe8a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11ed <main+0xdd>
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    11c5 <main+0xb5>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11e8 <main+0xd8>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe39(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11ed <main+0xdd>
jmp    11f2 <main+0xe2>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114e <main+0x3e>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc2(%rip),%rax
mov    (%rax),%edi
lea    0xe05(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
lea    0xe00(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d94(%rip),%rax
mov    (%rax),%edi
lea    0xdff(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x1,%edi
jne    1139 <main+0x29>
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
lea    0xed0(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    11a7 <main+0x97>
jle    11a7 <main+0x97>
mov    %rsi,%r12
mov    %edi,%r14d
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rsi),%rdx
lea    0xeb5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
cmp    $0x2,%r14d
je     11a7 <main+0x97>
lea    -0x1(%r14),%r13d
mov    %r14d,%r14d
mov    $0x2,%ebx
lea    0xe9d(%rip),%rbp
lea    0xe9e(%rip),%r15
nopl   0x0(%rax)
cmp    %rbx,%r13
mov    0x2e56(%rip),%rax
mov    (%rax),%edi
mov    %r15,%rsi
cmove  %rbp,%rsi
mov    (%r12,%rbx,8),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1180 <main+0x70>
mov    0x2e32(%rip),%rbx
mov    (%rbx),%edi
lea    0xe6b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe65(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe67(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe6d(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe70(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [10 x i8] c"< qwin >\0A\00"
@.str.1 = [8 x i8] c"/ %s \\\0A\00"
@.str.2 = [8 x i8] c"\\ %s /\0A\00"
@.str.3 = [8 x i8] c"| %s |\0A\00"
@.str.4 = [10 x i8] c" \\ ^__^\0A\00"
@.str.5 = [18 x i8] c" (oo)\\_______\0A\00"
@.str.6 = [22 x i8] c" (__)\\ )\\/\\\0A\00"
@.str.7 = [19 x i8] c" ||----w |\0A\00"
@.str.8 = [19 x i8] c" || ||\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, i32* @stdout
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %9, %2
store i32 1, i32* %6
br label %13
13: ; preds = %51, %12
%14 = load i32, i32* %6
%15 = load i32, i32* %4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %54
17: ; preds = %13
%18 = load i32, i32* %6
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = load i32, i32* @stdout
%22 = load i8**, i8*** %5
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8*, i8** %22, i64 %24
%26 = load i8*, i8** %25
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %26)
br label %50
28: ; preds = %17
%29 = load i32, i32* %6
%30 = load i32, i32* %4
%31 = sub nsw i32 %30, 1
%32 = icmp eq i32 %29, %31
br i1 %32, label %33, label %41
33: ; preds = %28
%34 = load i32, i32* @stdout
%35 = load i8**, i8*** %5
%36 = load i32, i32* %6
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8*, i8** %35, i64 %37
%39 = load i8*, i8** %38
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %39)
br label %49
41: ; preds = %28
%42 = load i32, i32* @stdout
%43 = load i8**, i8*** %5
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8*, i8** %43, i64 %45
%47 = load i8*, i8** %46
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %47)
br label %49
49: ; preds = %41, %33
br label %50
50: ; preds = %49, %20
br label %51
51: ; preds = %50
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
br label %13
54: ; preds = %13
%55 = load i32, i32* @stdout
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* @stdout
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%59 = load i32, i32* @stdout
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%61 = load i32, i32* @stdout
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%63 = load i32, i32* @stdout
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [10 x i8] c"< qwin >\0A\00"
@.str.1 = [8 x i8] c"/ %s \\\0A\00"
@.str.2 = [8 x i8] c"\\ %s /\0A\00"
@.str.3 = [8 x i8] c"| %s |\0A\00"
@.str.4 = [10 x i8] c" \\ ^__^\0A\00"
@.str.5 = [18 x i8] c" (oo)\\_______\0A\00"
@.str.6 = [22 x i8] c" (__)\\ )\\/\\\0A\00"
@.str.7 = [19 x i8] c" ||----w |\0A\00"
@.str.8 = [19 x i8] c" || ||\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i32, i32* @stdout
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %28
7: ; preds = %2
%8 = icmp sgt i32 %0, 1
br i1 %8, label %9, label %28
9: ; preds = %7
%10 = add nsw i32 %0, -1
%11 = zext i32 %10 to i64
%12 = zext i32 %0 to i64
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i32, i32* @stdout
%15 = load i8*, i8** %13
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = icmp eq i32 %0, 2
br i1 %17, label %28, label %18
18: ; preds = %9, %18
%19 = phi i64 [ %26, %18 ], [ 2, %9 ]
%20 = icmp eq i64 %19, %11
%21 = load i32, i32* @stdout
%22 = getelementptr inbounds i8*, i8** %1, i64 %19
%23 = select i1 %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%24 = load i8*, i8** %22
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* %23, i8* %24)
%26 = add nuw nsw i64 %19, 1
%27 = icmp eq i64 %26, %12
br i1 %27, label %28, label %18
28: ; preds = %18, %9, %4, %7
%29 = load i32, i32* @stdout
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%31 = load i32, i32* @stdout
%32 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%33 = load i32, i32* @stdout
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%35 = load i32, i32* @stdout
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%37 = load i32, i32* @stdout
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}