#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*/ testDayOfYear(int, int, int);
int main(void) {
  testDayOfYear(1, 1, 2008);
  testDayOfYear(29, 2, 2008);
  testDayOfYear(29, 2, 2009);
  testDayOfYear(26, 9, 2008);
  testDayOfYear(31, 12, 2008);
  testDayOfYear(31, 12, 2009);
  testDayOfYear(100, 1, 2008);
  testDayOfYear(1, 100, 2008);
  testDayOfYear(1, 1, 100);
  testDayOfYear(-1, 1, 2000);
  testDayOfYear(1, 0, 2000);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%esi
mov    $0x7d8,%edx
mov    %esi,%edi
call   1030 <testDayOfYear@plt>
mov    $0x1d,%edi
mov    $0x2,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1d,%edi
mov    $0x2,%esi
mov    $0x7d9,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1a,%edi
mov    $0x9,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1f,%edi
mov    $0xc,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1f,%edi
mov    $0xc,%esi
mov    $0x7d9,%edx
call   1030 <testDayOfYear@plt>
mov    $0x64,%edi
mov    $0x1,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1,%edi
mov    $0x64,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1,%esi
mov    $0x64,%edx
mov    %esi,%edi
call   1030 <testDayOfYear@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x7d0,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x7d0,%edx
call   1030 <testDayOfYear@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1d,%edi
mov    $0x2,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1d,%edi
mov    $0x2,%esi
mov    $0x7d9,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1a,%edi
mov    $0x9,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1f,%edi
mov    $0xc,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1f,%edi
mov    $0xc,%esi
mov    $0x7d9,%edx
call   1030 <testDayOfYear@plt>
mov    $0x64,%edi
mov    $0x1,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1,%edi
mov    $0x64,%esi
mov    $0x7d8,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x64,%edx
call   1030 <testDayOfYear@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x7d0,%edx
call   1030 <testDayOfYear@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x7d0,%edx
call   1030 <testDayOfYear@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @testDayOfYear(i32 1, i32 1, i32 2008)
%2 = call i32 @testDayOfYear(i32 29, i32 2, i32 2008)
%3 = call i32 @testDayOfYear(i32 29, i32 2, i32 2009)
%4 = call i32 @testDayOfYear(i32 26, i32 9, i32 2008)
%5 = call i32 @testDayOfYear(i32 31, i32 12, i32 2008)
%6 = call i32 @testDayOfYear(i32 31, i32 12, i32 2009)
%7 = call i32 @testDayOfYear(i32 100, i32 1, i32 2008)
%8 = call i32 @testDayOfYear(i32 1, i32 100, i32 2008)
%9 = call i32 @testDayOfYear(i32 1, i32 1, i32 100)
%10 = call i32 @testDayOfYear(i32 -1, i32 1, i32 2000)
%11 = call i32 @testDayOfYear(i32 1, i32 0, i32 2000)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @testDayOfYear(i32 1, i32 1, i32 2008)
%2 = tail call i32 @testDayOfYear(i32 29, i32 2, i32 2008)
%3 = tail call i32 @testDayOfYear(i32 29, i32 2, i32 2009)
%4 = tail call i32 @testDayOfYear(i32 26, i32 9, i32 2008)
%5 = tail call i32 @testDayOfYear(i32 31, i32 12, i32 2008)
%6 = tail call i32 @testDayOfYear(i32 31, i32 12, i32 2009)
%7 = tail call i32 @testDayOfYear(i32 100, i32 1, i32 2008)
%8 = tail call i32 @testDayOfYear(i32 1, i32 100, i32 2008)
%9 = tail call i32 @testDayOfYear(i32 1, i32 1, i32 100)
%10 = tail call i32 @testDayOfYear(i32 -1, i32 1, i32 2000)
%11 = tail call i32 @testDayOfYear(i32 1, i32 0, i32 2000)
ret i32 0
}