int main(void) {
  int month = 0;
  int day = 0;
  printf("Aug 05, 1966, is day %03d of the year\n", day_of_year(1966, 8, 5));
  printf("Jan 01, 2000, is day %03d of the year\n", day_of_year(2000, 1, 1));
  printf("Dec 31, 1999, is day %03d of the year\n", day_of_year(1999, 12, 31));
  printf("Dec 31, 2000, is day %03d of the year\n", day_of_year(2000, 12, 31));
  printf("Dec 31, 3000, is day %03d of the year\n", day_of_year(3000, 12, 31));
  printf("Dec 31, 2004, is day %03d of the year\n", day_of_year(2004, 12, 31));
  (void)putchar('\n');
  printf(
      "Attempting a negative year returns                             : %d\n",
      day_of_year(-1, 8, 5));
  printf(
      "Attempting a month number less than one returns                : %d\n",
      day_of_year(1966, 0, 5));
  printf(
      "Attempting a month number greater than 12 returns              : %d\n",
      day_of_year(1966, 13, 5));
  printf(
      "Attempting a day number less than one returns                  : %d\n",
      day_of_year(1966, 8, 0));
  printf(
      "Attempting a day greater than 31 returns                       : %d\n",
      day_of_year(1966, 8, 32));
  printf(
      "Attempting a day greater than 30 in April returns              : %d\n",
      day_of_year(1966, 4, 31));
  printf(
      "Attempting a day greater than 29 in February returns           : %d\n",
      day_of_year(1966, 2, 30));
  printf(
      "Attempting a day greater than 28 in a non-leap February returns: %d\n",
      day_of_year(1999, 2, 29));
  (void)putchar('\n');
  month_day(1966, 217, &month, &day);
  printf("Day %03d occurs %s %02d of year %04d\n", 217, month_name(month), day,
         1966);
  month_day(2000, 1, &month, &day);
  printf("Day %03d occurs %s %02d of year %04d\n", 1, month_name(month), day,
         2000);
  month_day(1999, 365, &month, &day);
  printf("Day %03d occurs %s %02d of year %04d\n", 365, month_name(month), day,
         1999);
  month_day(2000, 366, &month, &day);
  printf("Day %03d occurs %s %02d of year %04d\n", 366, month_name(month), day,
         2000);
  month_day(3000, 365, &month, &day);
  printf("Day %03d occurs %s %02d of year %04d\n", 365, month_name(month), day,
         3000);
  month_day(2004, 366, &month, &day);
  printf("Day %03d occurs %s %02d of year %04d\n", 366, month_name(month), day,
         2004);
  (void)putchar('\n');
  month_day(-1, 365, &month, &day);
  printf("Attempting a negative year returns                                 : "
         "month %d, day %d\n",
         month, day);
  month_day(2004, 0, &month, &day);
  printf("Attempting a day number less than one returns                      : "
         "month %d, day %d\n",
         month, day);
  month_day(2004, 367, &month, &day);
  printf("Attempting a day number greater than 366 returns                   : "
         "month %d, day %d\n",
         month, day);
  month_day(2003, 366, &month, &day);
  printf("Attempting a day number greater than 365 in a non-leap year returns: "
         "month %d, day %d\n",
         month, day);
  (void)putchar('\n');
  printf("The month name of a month less than '1' is '%s'\n", month_name(0));
  printf("The month name of a month greater than '12' is '%s'\n",
         month_name(13));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    $0x7ae,%edi
mov    $0x8,%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0x1,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7cf,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xbb8,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d4,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
mov    $0xffffffff,%edi
mov    $0x8,%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7ae,%edi
xor    %esi,%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0xd,%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x8,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x8,%esi
mov    $0x20,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x4,%esi
mov    $0x1f,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xf12(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x2,%esi
mov    $0x1e,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xf31(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7cf,%edi
mov    $0x2,%esi
mov    $0x1d,%edx
mov    $0x0,%al
call   1060 <day_of_year@plt>
mov    %eax,%esi
lea    0xf50(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
mov    $0x7ae,%edi
mov    $0xd9,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%ecx
lea    0xf53(%rip),%rdi
mov    $0xd9,%esi
mov    $0x7ae,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0x1,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%ecx
lea    0xf12(%rip),%rdi
mov    $0x1,%esi
mov    $0x7d0,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7cf,%edi
mov    $0x16d,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%ecx
lea    0xed1(%rip),%rdi
mov    $0x16d,%esi
mov    $0x7cf,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0x16e,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%ecx
lea    0xe90(%rip),%rdi
mov    $0x16e,%esi
mov    $0x7d0,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xbb8,%edi
mov    $0x16d,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%ecx
lea    0xe4f(%rip),%rdi
mov    $0x16d,%esi
mov    $0xbb8,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d4,%edi
mov    $0x16e,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%edx
mov    -0xc(%rbp),%ecx
lea    0xe0e(%rip),%rdi
mov    $0x16e,%esi
mov    $0x7d4,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
mov    $0xffffffff,%edi
mov    $0x16d,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d4,%edi
xor    %esi,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d4,%edi
mov    $0x16f,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x7d3,%edi
mov    $0x16e,%esi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
mov    $0x0,%al
call   1040 <month_day@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%esi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xd,%edi
mov    $0x0,%al
call   1070 <month_name@plt>
mov    %eax,%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x7ae,%edi
mov    $0x8,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe7a(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe7b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7cf,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe7c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe7d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xbb8,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe7e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d4,%edi
mov    $0xc,%esi
mov    $0x1f,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe7f(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
mov    $0xffffffff,%edi
mov    $0x8,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe74(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7ae,%edi
xor    %esi,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xe96(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0xd,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xeb5(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x8,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xed7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x8,%esi
mov    $0x20,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xef6(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x4,%esi
mov    $0x1f,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xf15(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7ae,%edi
mov    $0x2,%esi
mov    $0x1e,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xf34(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7cf,%edi
mov    $0x2,%esi
mov    $0x1d,%edx
xor    %eax,%eax
call   1060 <day_of_year@plt>
lea    0xf53(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
lea    0xc(%rsp),%r15
lea    0x8(%rsp),%r14
mov    $0x7ae,%edi
mov    $0xd9,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%edi
xor    %eax,%eax
call   1070 <month_name@plt>
mov    0x8(%rsp),%ecx
lea    0xf4c(%rip),%rbx
mov    %rbx,%rdi
mov    $0xd9,%esi
mov    %eax,%edx
mov    $0x7ae,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0x1,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%edi
xor    %eax,%eax
call   1070 <month_name@plt>
mov    0x8(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    $0x7d0,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7cf,%edi
mov    $0x16d,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%edi
xor    %eax,%eax
call   1070 <month_name@plt>
mov    0x8(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x16d,%esi
mov    %eax,%edx
mov    $0x7cf,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d0,%edi
mov    $0x16e,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%edi
xor    %eax,%eax
call   1070 <month_name@plt>
mov    0x8(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x16e,%esi
mov    %eax,%edx
mov    $0x7d0,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xbb8,%edi
mov    $0x16d,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%edi
xor    %eax,%eax
call   1070 <month_name@plt>
mov    0x8(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x16d,%esi
mov    %eax,%edx
mov    $0xbb8,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d4,%edi
mov    $0x16e,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%edi
xor    %eax,%eax
call   1070 <month_name@plt>
mov    0x8(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x16e,%esi
mov    %eax,%edx
mov    $0x7d4,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
mov    $0xffffffff,%edi
mov    $0x16d,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
lea    0xdf8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d4,%edi
xor    %esi,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
lea    0xe25(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d4,%edi
mov    $0x16f,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
lea    0xe4f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7d3,%edi
mov    $0x16e,%esi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <month_day@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1070 <month_name@plt>
lea    0xead(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xd,%edi
xor    %eax,%eax
call   1070 <month_name@plt>
lea    0xec2(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [39 x i8] c"Aug 05, 1966, is day %03d of the year\0A\00"
@.str.1 = [39 x i8] c"Jan 01, 2000, is day %03d of the year\0A\00"
@.str.2 = [39 x i8] c"Dec 31, 1999, is day %03d of the year\0A\00"
@.str.3 = [39 x i8] c"Dec 31, 2000, is day %03d of the year\0A\00"
@.str.4 = [39 x i8] c"Dec 31, 3000, is day %03d of the year\0A\00"
@.str.5 = [39 x i8] c"Dec 31, 2004, is day %03d of the year\0A\00"
@.str.6 = [69 x i8] c"Attempting a negative year returns : %d\0A\00"
@.str.7 = [69 x i8] c"Attempting a month number less than one returns : %d\0A\00"
@.str.8 = [69 x i8] c"Attempting a month number greater than 12 returns : %d\0A\00"
@.str.9 = [69 x i8] c"Attempting a day number less than one returns : %d\0A\00"
@.str.10 = [69 x i8] c"Attempting a day greater than 31 returns : %d\0A\00"
@.str.11 = [69 x i8] c"Attempting a day greater than 30 in April returns : %d\0A\00"
@.str.12 = [69 x i8] c"Attempting a day greater than 29 in February returns : %d\0A\00"
@.str.13 = [69 x i8] c"Attempting a day greater than 28 in a non-leap February returns: %d\0A\00"
@.str.14 = [38 x i8] c"Day %03d occurs %s %02d of year %04d\0A\00"
@.str.15 = [87 x i8] c"Attempting a negative year returns : month %d, day %d\0A\00"
@.str.16 = [87 x i8] c"Attempting a day number less than one returns : month %d, day %d\0A\00"
@.str.17 = [87 x i8] c"Attempting a day number greater than 366 returns : month %d, day %d\0A\00"
@.str.18 = [87 x i8] c"Attempting a day number greater than 365 in a non-leap year returns: month %d, day %d\0A\00"
@.str.19 = [49 x i8] c"The month name of a month less than '1' is '%s'\0A\00"
@.str.20 = [53 x i8] c"The month name of a month greater than '12' is '%s'\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
%4 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 8, i32 5)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 2000, i32 1, i32 1)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1999, i32 12, i32 31)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i32 %8)
%10 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 2000, i32 12, i32 31)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 3000, i32 12, i32 31)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 2004, i32 12, i32 31)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 %14)
%16 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%17 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 -1, i32 8, i32 5)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0), i32 %17)
%19 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 0, i32 5)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0), i32 %19)
%21 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 13, i32 5)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 8, i32 0)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0), i32 %23)
%25 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 8, i32 32)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0), i32 %25)
%27 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 4, i32 31)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0), i32 %27)
%29 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 2, i32 30)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0), i32 %29)
%31 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1999, i32 2, i32 29)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0), i32 %31)
%33 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%34 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 1966, i32 217, i32* %2, i32* %3)
%35 = load i32, i32* %2
%36 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %35)
%37 = load i32, i32* %3
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 217, i32 %36, i32 %37, i32 1966)
%39 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2000, i32 1, i32* %2, i32* %3)
%40 = load i32, i32* %2
%41 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %40)
%42 = load i32, i32* %3
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 %41, i32 %42, i32 2000)
%44 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 1999, i32 365, i32* %2, i32* %3)
%45 = load i32, i32* %2
%46 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %45)
%47 = load i32, i32* %3
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 365, i32 %46, i32 %47, i32 1999)
%49 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2000, i32 366, i32* %2, i32* %3)
%50 = load i32, i32* %2
%51 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %50)
%52 = load i32, i32* %3
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 366, i32 %51, i32 %52, i32 2000)
%54 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 3000, i32 365, i32* %2, i32* %3)
%55 = load i32, i32* %2
%56 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %55)
%57 = load i32, i32* %3
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 365, i32 %56, i32 %57, i32 3000)
%59 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2004, i32 366, i32* %2, i32* %3)
%60 = load i32, i32* %2
%61 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %60)
%62 = load i32, i32* %3
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 366, i32 %61, i32 %62, i32 2004)
%64 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%65 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 -1, i32 365, i32* %2, i32* %3)
%66 = load i32, i32* %2
%67 = load i32, i32* %3
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.15, i64 0, i64 0), i32 %66, i32 %67)
%69 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2004, i32 0, i32* %2, i32* %3)
%70 = load i32, i32* %2
%71 = load i32, i32* %3
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.16, i64 0, i64 0), i32 %70, i32 %71)
%73 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2004, i32 367, i32* %2, i32* %3)
%74 = load i32, i32* %2
%75 = load i32, i32* %3
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.17, i64 0, i64 0), i32 %74, i32 %75)
%77 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2003, i32 366, i32* %2, i32* %3)
%78 = load i32, i32* %2
%79 = load i32, i32* %3
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.18, i64 0, i64 0), i32 %78, i32 %79)
%81 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%82 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 0)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.19, i64 0, i64 0), i32 %82)
%84 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 13)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.20, i64 0, i64 0), i32 %84)
ret i32 0
}

LLVM IR (-O2):
@.str = [39 x i8] c"Aug 05, 1966, is day %03d of the year\0A\00"
@.str.1 = [39 x i8] c"Jan 01, 2000, is day %03d of the year\0A\00"
@.str.2 = [39 x i8] c"Dec 31, 1999, is day %03d of the year\0A\00"
@.str.3 = [39 x i8] c"Dec 31, 2000, is day %03d of the year\0A\00"
@.str.4 = [39 x i8] c"Dec 31, 3000, is day %03d of the year\0A\00"
@.str.5 = [39 x i8] c"Dec 31, 2004, is day %03d of the year\0A\00"
@.str.6 = [69 x i8] c"Attempting a negative year returns : %d\0A\00"
@.str.7 = [69 x i8] c"Attempting a month number less than one returns : %d\0A\00"
@.str.8 = [69 x i8] c"Attempting a month number greater than 12 returns : %d\0A\00"
@.str.9 = [69 x i8] c"Attempting a day number less than one returns : %d\0A\00"
@.str.10 = [69 x i8] c"Attempting a day greater than 31 returns : %d\0A\00"
@.str.11 = [69 x i8] c"Attempting a day greater than 30 in April returns : %d\0A\00"
@.str.12 = [69 x i8] c"Attempting a day greater than 29 in February returns : %d\0A\00"
@.str.13 = [69 x i8] c"Attempting a day greater than 28 in a non-leap February returns: %d\0A\00"
@.str.14 = [38 x i8] c"Day %03d occurs %s %02d of year %04d\0A\00"
@.str.15 = [87 x i8] c"Attempting a negative year returns : month %d, day %d\0A\00"
@.str.16 = [87 x i8] c"Attempting a day number less than one returns : month %d, day %d\0A\00"
@.str.17 = [87 x i8] c"Attempting a day number greater than 366 returns : month %d, day %d\0A\00"
@.str.18 = [87 x i8] c"Attempting a day number greater than 365 in a non-leap year returns: month %d, day %d\0A\00"
@.str.19 = [49 x i8] c"The month name of a month less than '1' is '%s'\0A\00"
@.str.20 = [53 x i8] c"The month name of a month greater than '12' is '%s'\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 8, i32 5)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 2000, i32 1, i32 1)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1999, i32 12, i32 31)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%11 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 2000, i32 12, i32 31)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %11)
%13 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 3000, i32 12, i32 31)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 2004, i32 12, i32 31)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%18 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 -1, i32 8, i32 5)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0), i32 %18)
%20 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 0, i32 5)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0), i32 %20)
%22 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 13, i32 5)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.8, i64 0, i64 0), i32 %22)
%24 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 8, i32 0)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0), i32 %24)
%26 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 8, i32 32)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0), i32 %26)
%28 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 4, i32 31)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0), i32 %28)
%30 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1966, i32 2, i32 30)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0), i32 %30)
%32 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @day_of_year to i32 (i32, i32, i32, ...)*)(i32 1999, i32 2, i32 29)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0), i32 %32)
%34 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%35 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 1966, i32 217, i32* %1, i32* %2)
%36 = load i32, i32* %1
%37 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %36)
%38 = load i32, i32* %2
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 217, i32 %37, i32 %38, i32 1966)
%40 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2000, i32 1, i32* %1, i32* %2)
%41 = load i32, i32* %1
%42 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %41)
%43 = load i32, i32* %2
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 %42, i32 %43, i32 2000)
%45 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 1999, i32 365, i32* %1, i32* %2)
%46 = load i32, i32* %1
%47 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %46)
%48 = load i32, i32* %2
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 365, i32 %47, i32 %48, i32 1999)
%50 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2000, i32 366, i32* %1, i32* %2)
%51 = load i32, i32* %1
%52 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %51)
%53 = load i32, i32* %2
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 366, i32 %52, i32 %53, i32 2000)
%55 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 3000, i32 365, i32* %1, i32* %2)
%56 = load i32, i32* %1
%57 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %56)
%58 = load i32, i32* %2
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 365, i32 %57, i32 %58, i32 3000)
%60 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2004, i32 366, i32* %1, i32* %2)
%61 = load i32, i32* %1
%62 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 %61)
%63 = load i32, i32* %2
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 366, i32 %62, i32 %63, i32 2004)
%65 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%66 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 -1, i32 365, i32* %1, i32* %2)
%67 = load i32, i32* %1
%68 = load i32, i32* %2
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.15, i64 0, i64 0), i32 %67, i32 %68)
%70 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2004, i32 0, i32* %1, i32* %2)
%71 = load i32, i32* %1
%72 = load i32, i32* %2
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.16, i64 0, i64 0), i32 %71, i32 %72)
%74 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2004, i32 367, i32* %1, i32* %2)
%75 = load i32, i32* %1
%76 = load i32, i32* %2
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.17, i64 0, i64 0), i32 %75, i32 %76)
%78 = call i32 (i32, i32, i32*, i32*, ...) bitcast (i32 (...)* @month_day to i32 (i32, i32, i32*, i32*, ...)*)(i32 2003, i32 366, i32* %1, i32* %2)
%79 = load i32, i32* %1
%80 = load i32, i32* %2
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.18, i64 0, i64 0), i32 %79, i32 %80)
%82 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%83 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 0)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.19, i64 0, i64 0), i32 %83)
%85 = call i32 (i32, ...) bitcast (i32 (...)* @month_name to i32 (i32, ...)*)(i32 13)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.20, i64 0, i64 0), i32 %85)
ret i32 0
}