#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*/ checkGetDayOfWeek(int, int, int, int);
void testGetDayOfWeek() {
  checkGetDayOfWeek(1, 1, 2000, 6);
  checkGetDayOfWeek(1, 1, 2001, 1);
  checkGetDayOfWeek(14, 3, 2015, 6);
  checkGetDayOfWeek(2, 4, 2015, 4);
  checkGetDayOfWeek(3, 4, 2015, 5);
  checkGetDayOfWeek(5, 10, 1996, 6);
  checkGetDayOfWeek(5, 4, 2015, 0);
}


x86 assembly (clang, -O0):
<testGetDayOfWeek>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%esi
mov    $0x7d0,%edx
mov    $0x6,%ecx
mov    %esi,%edi
call   1030 <checkGetDayOfWeek@plt>
mov    $0x1,%ecx
mov    $0x7d1,%edx
mov    %ecx,%edi
mov    %ecx,%esi
call   1030 <checkGetDayOfWeek@plt>
mov    $0xe,%edi
mov    $0x3,%esi
mov    $0x7df,%edx
mov    $0x6,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x2,%edi
mov    $0x4,%ecx
mov    $0x7df,%edx
mov    %ecx,%esi
call   1030 <checkGetDayOfWeek@plt>
mov    $0x3,%edi
mov    $0x4,%esi
mov    $0x7df,%edx
mov    $0x5,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x5,%edi
mov    $0xa,%esi
mov    $0x7cc,%edx
mov    $0x6,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x5,%edi
mov    $0x4,%esi
mov    $0x7df,%edx
xor    %ecx,%ecx
call   1030 <checkGetDayOfWeek@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testGetDayOfWeek>:
push   %rax
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x7d0,%edx
mov    $0x6,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x7d1,%edx
mov    $0x1,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0xe,%edi
mov    $0x3,%esi
mov    $0x7df,%edx
mov    $0x6,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x2,%edi
mov    $0x4,%esi
mov    $0x7df,%edx
mov    $0x4,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x3,%edi
mov    $0x4,%esi
mov    $0x7df,%edx
mov    $0x5,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x5,%edi
mov    $0xa,%esi
mov    $0x7cc,%edx
mov    $0x6,%ecx
call   1030 <checkGetDayOfWeek@plt>
mov    $0x5,%edi
mov    $0x4,%esi
mov    $0x7df,%edx
xor    %ecx,%ecx
pop    %rax
jmp    1030 <checkGetDayOfWeek@plt>

LLVM IR (-O0):
define void @testGetDayOfWeek() {
%1 = call i32 @checkGetDayOfWeek(i32 1, i32 1, i32 2000, i32 6)
%2 = call i32 @checkGetDayOfWeek(i32 1, i32 1, i32 2001, i32 1)
%3 = call i32 @checkGetDayOfWeek(i32 14, i32 3, i32 2015, i32 6)
%4 = call i32 @checkGetDayOfWeek(i32 2, i32 4, i32 2015, i32 4)
%5 = call i32 @checkGetDayOfWeek(i32 3, i32 4, i32 2015, i32 5)
%6 = call i32 @checkGetDayOfWeek(i32 5, i32 10, i32 1996, i32 6)
%7 = call i32 @checkGetDayOfWeek(i32 5, i32 4, i32 2015, i32 0)
ret void
}

LLVM IR (-O2):
define void @testGetDayOfWeek() {
%1 = tail call i32 @checkGetDayOfWeek(i32 1, i32 1, i32 2000, i32 6)
%2 = tail call i32 @checkGetDayOfWeek(i32 1, i32 1, i32 2001, i32 1)
%3 = tail call i32 @checkGetDayOfWeek(i32 14, i32 3, i32 2015, i32 6)
%4 = tail call i32 @checkGetDayOfWeek(i32 2, i32 4, i32 2015, i32 4)
%5 = tail call i32 @checkGetDayOfWeek(i32 3, i32 4, i32 2015, i32 5)
%6 = tail call i32 @checkGetDayOfWeek(i32 5, i32 10, i32 1996, i32 6)
%7 = tail call i32 @checkGetDayOfWeek(i32 5, i32 4, i32 2015, i32 0)
ret void
}