#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*/ atoi(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void lose(char *m, int n, char *s) {
  (void)fprintf(stderr, "ICL%c%c%cI\t", m[0], m[1], m[2]);
  if (s)
    (void)fprintf(stderr, m + 4, s, n);
  else
    (void)fprintf(stderr, m + 4, n);
  (void)fprintf(stderr, "        CORRECT SOURCE AND RESUBMIT\n");
  exit(atoi(m));
}


x86 assembly (clang, -O0):
<lose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
movsbl (%rax),%edx
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%ecx
mov    -0x8(%rbp),%rax
movsbl 0x2(%rax),%r8d
lea    0xe95(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
cmpq   $0x0,-0x18(%rbp)
je     11a1 <lose+0x71>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
add    $0x4,%rsi
mov    -0x18(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11bc <lose+0x8c>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
add    $0x4,%rsi
mov    -0xc(%rbp),%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xe40(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<lose>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%rbp
mov    %esi,%r14d
mov    %rdi,%rbx
mov    0x2e99(%rip),%r15
mov    (%r15),%edi
movsbl (%rbx),%edx
movsbl 0x1(%rbx),%ecx
movsbl 0x2(%rbx),%r8d
lea    0xea3(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x4(%rbx),%rsi
mov    (%r15),%edi
test   %rbp,%rbp
jne    117c <lose+0x4c>
mov    %r14d,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    1189 <lose+0x59>
mov    %rbp,%rdx
mov    %r14d,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xe79(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    %rbx,%rdi
call   1040 <atoi@plt>
mov    %eax,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [12 x i8] c"ICL%c%c%cI\09\00"
@.str.1 = [37 x i8] c" CORRECT SOURCE AND RESUBMIT\0A\00"
define void @lose(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %4
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = load i8*, i8** %4
%13 = getelementptr inbounds i8, i8* %12, i64 1
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = load i8*, i8** %4
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %15, i32 %19)
%21 = load i8*, i8** %6
%22 = icmp ne i8* %21, null
br i1 %22, label %23, label %30
23: ; preds = %3
%24 = load i32, i32* @stderr
%25 = load i8*, i8** %4
%26 = getelementptr inbounds i8, i8* %25, i64 4
%27 = load i8*, i8** %6
%28 = load i32, i32* %5
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* %26, i8* %27, i32 %28)
br label %36
30: ; preds = %3
%31 = load i32, i32* @stderr
%32 = load i8*, i8** %4
%33 = getelementptr inbounds i8, i8* %32, i64 4
%34 = load i32, i32* %5
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* %33, i32 %34)
br label %36
36: ; preds = %30, %23
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%39 = load i8*, i8** %4
%40 = call i32 @atoi(i8* %39)
%41 = call i32 @exit(i32 %40)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [12 x i8] c"ICL%c%c%cI\09\00"
@.str.1 = [37 x i8] c" CORRECT SOURCE AND RESUBMIT\0A\00"
define void @lose(i8* %0, i32 %1, i8* %2) {
%4 = load i32, i32* @stderr
%5 = load i8, i8* %0
%6 = sext i8 %5 to i32
%7 = getelementptr inbounds i8, i8* %0, i64 1
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = getelementptr inbounds i8, i8* %0, i64 2
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %9, i32 %12)
%14 = icmp eq i8* %2, null
%15 = load i32, i32* @stderr
%16 = getelementptr inbounds i8, i8* %0, i64 4
br i1 %14, label %19, label %17
17: ; preds = %3
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* %16, i8* %2, i32 %1)
br label %21
19: ; preds = %3
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* %16, i32 %1)
br label %21
21: ; preds = %19, %17
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%24 = tail call i32 @atoi(i8* %0)
%25 = tail call i32 @exit(i32 %24)
unreachable
}