#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 max(int, int);
int main() {
  if (max(1337, 42) != 1337)
    goto error;
  if (max(69, 666) != 666)
    goto error;
  if (max(1099511627776, 0xFFFFFFFFFFFFFFFF) != 0xFFFFFFFFFFFFFFFF)
    goto error;
  if (max(4294967296, 327576) != 4294967296)
    goto error;
  if (max(0, 6543) != 6543)
    goto error;
  if (max(1125900252520278, 0) != 1125900252520278)
    goto error;
  if (max(1125900252520278, 1125900252520278) != 1125900252520278)
    goto error;
  return 0;
error:
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x539,%edi
mov    $0x2a,%esi
call   1030 <max@plt>
cmp    $0x539,%eax
je     113e <main+0x2e>
jmp    1214 <main+0x104>
mov    $0x45,%edi
mov    $0x29a,%esi
call   1030 <max@plt>
cmp    $0x29a,%eax
je     115d <main+0x4d>
jmp    1214 <main+0x104>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1030 <max@plt>
cltq
cmp    $0xffffffffffffffff,%rax
je     117a <main+0x6a>
jmp    1214 <main+0x104>
xor    %edi,%edi
mov    $0x4ff98,%esi
call   1030 <max@plt>
cltq
movabs $0x100000000,%rcx
cmp    %rcx,%rax
je     11a0 <main+0x90>
jmp    1214 <main+0x104>
xor    %edi,%edi
mov    $0x198f,%esi
call   1030 <max@plt>
cmp    $0x198f,%eax
je     11bc <main+0xac>
jmp    1214 <main+0x104>
mov    $0x149a9f56,%edi
xor    %esi,%esi
call   1030 <max@plt>
cltq
movabs $0x40000149a9f56,%rcx
cmp    %rcx,%rax
je     11e2 <main+0xd2>
jmp    1214 <main+0x104>
mov    $0x149a9f56,%esi
mov    %esi,%edi
call   1030 <max@plt>
cltq
movabs $0x40000149a9f56,%rcx
cmp    %rcx,%rax
je     1208 <main+0xf8>
jmp    1214 <main+0x104>
movl   $0x0,-0x4(%rbp)
jmp    121b <main+0x10b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x539,%edi
mov    $0x2a,%esi
call   1030 <max@plt>
cmp    $0x539,%eax
jne    115a <main+0x4a>
mov    $0x45,%edi
mov    $0x29a,%esi
call   1030 <max@plt>
cmp    $0x29a,%eax
jne    115a <main+0x4a>
xor    %edi,%edi
mov    $0xffffffff,%esi
call   1030 <max@plt>
cmp    $0xffffffff,%eax
jne    115a <main+0x4a>
xor    %edi,%edi
mov    $0x4ff98,%esi
call   1030 <max@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @max(i32 1337, i32 42)
%3 = icmp ne i32 %2, 1337
br i1 %3, label %4, label %5
4: ; preds = %0
br label %34
5: ; preds = %0
%6 = call i32 @max(i32 69, i32 666)
%7 = icmp ne i32 %6, 666
br i1 %7, label %8, label %9
8: ; preds = %5
br label %34
9: ; preds = %5
%10 = call i32 @max(i32 0, i32 -1)
%11 = sext i32 %10 to i64
%12 = icmp ne i64 %11, -1
br i1 %12, label %13, label %14
13: ; preds = %9
br label %34
14: ; preds = %9
%15 = call i32 @max(i32 0, i32 327576)
%16 = sext i32 %15 to i64
%17 = icmp ne i64 %16, 4294967296
br i1 %17, label %18, label %19
18: ; preds = %14
br label %34
19: ; preds = %14
%20 = call i32 @max(i32 0, i32 6543)
%21 = icmp ne i32 %20, 6543
br i1 %21, label %22, label %23
22: ; preds = %19
br label %34
23: ; preds = %19
%24 = call i32 @max(i32 345677654, i32 0)
%25 = sext i32 %24 to i64
%26 = icmp ne i64 %25, 1125900252520278
br i1 %26, label %27, label %28
27: ; preds = %23
br label %34
28: ; preds = %23
%29 = call i32 @max(i32 345677654, i32 345677654)
%30 = sext i32 %29 to i64
%31 = icmp ne i64 %30, 1125900252520278
br i1 %31, label %32, label %33
32: ; preds = %28
br label %34
33: ; preds = %28
store i32 0, i32* %1
br label %35
34: ; preds = %32, %27, %22, %18, %13, %8, %4
store i32 1, i32* %1
br label %35
35: ; preds = %34, %33
%36 = load i32, i32* %1
ret i32 %36
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @max(i32 1337, i32 42)
%2 = icmp eq i32 %1, 1337
br i1 %2, label %3, label %11
3: ; preds = %0
%4 = tail call i32 @max(i32 69, i32 666)
%5 = icmp eq i32 %4, 666
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = tail call i32 @max(i32 0, i32 -1)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @max(i32 0, i32 327576)
br label %11
11: ; preds = %0, %3, %6, %9
ret i32 1
}