#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 Dayinmonth(int, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
char getch();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdin;
void inputdate(int *y, int *m, int *d) {
  int c = 1;
  char b;
  (*y) = 2000;
  (*m) = 1;
  (*d) = 1;
  puts("\nUse 'W', 'S' to change, 'A', 'D' to select, 'Enter' accept");
  printf("\e7");
  printf("Date: \e[31m> %04d <\e[39m %02d %02d", *y, *m, *d);
choosedate:
  fflush(stdin);
  while ((b = getch()) != 13) {
    if (b == 3) {
      exit(0);
    }
    switch (c) {
    case 1:
      switch (b) {
      case 115:
        if (*y > 1970) {
          (*y)--;
          printf("\e8");
          printf("Date: \e[31m> %04d <\e[39m %02d %02d", *y, *m, *d);
        }
        break;
      case 119:
        if (*y < 2100) {
          (*y)++;
          printf("\e8");
          printf("Date: \e[31m> %04d <\e[39m %02d %02d", *y, *m, *d);
        }
        break;
      case 97:
        c = 3;
        printf("\e8");
        printf("Date: %04d %02d \e[31m> %02d <\e[39m", *y, *m, *d);
        break;
      case 100:
        c = 2;
        printf("\e8");
        printf("Date: %04d \e[31m> %02d <\e[39m %02d", *y, *m, *d);
        break;
      default:
        goto choosedate;
      }
      break;
    case 2:
      switch (b) {
      case 115:
        if (*m > 1) {
          (*m)--;
          switch (*m) {
          case 4:
          case 6:
          case 9:
          case 11:
            if (*d > 30) {
              *d = 30;
            }
            break;
          case 2:
            if (*d > Dayinmonth(2, *y)) {
              *d = Dayinmonth(2, *y);
            }
            break;
          }
        }
        printf("\e8");
        printf("Date: %04d \e[31m> %02d <\e[39m %02d", *y, *m, *d);
        break;
      case 119:
        if (*m < 12) {
          (*m)++;
          switch (*m) {
          case 4:
          case 6:
          case 9:
          case 11:
            if (*d > 30) {
              *d = 30;
            }
            break;
          case 2:
            if (*d > Dayinmonth(2, *y)) {
              *d = Dayinmonth(2, *y);
            }
            break;
          }
        }
        printf("\e8");
        printf("Date: %04d \e[31m> %02d <\e[39m %02d", *y, *m, *d);
        break;
      case 97:
        c = 1;
        printf("\e8");
        printf("Date: \e[31m> %04d <\e[39m %02d %02d", *y, *m, *d);
        break;
      case 100:
        c = 3;
        printf("\e8");
        printf("Date: %04d %02d \e[31m> %02d <\e[39m", *y, *m, *d);
        break;
      default:
        goto choosedate;
      }
      break;
    case 3:
      switch (b) {
      case 115:
        if (*d > 1) {
          (*d)--;
          printf("\e8");
          printf("Date: %04d %02d \e[31m> %02d <\e[39m", *y, *m, *d);
        }
        break;
      case 119:
        if (*d < Dayinmonth(*m, *y)) {
          (*d)++;
          printf("\e8");
          printf("Date: %04d %02d \e[31m> %02d <\e[39m", *y, *m, *d);
        }
        break;
      case 97:
        c = 2;
        printf("\e8");
        printf("Date: %04d \e[31m> %02d <\e[39m %02d", *y, *m, *d);
        break;
      case 100:
        c = 1;
        printf("\e8");
        printf("Date: \e[31m> %04d <\e[39m %02d %02d", *y, *m, *d);
        break;
      default:
        goto choosedate;
      }
      break;
    default:
      c = 1;
      break;
    }
  }
  putchar('\n');
}


x86 assembly (clang, -O0):
<inputdate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x7d0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
lea    0xf64(%rip),%rdi
call   1040 <puts@plt>
lea    0xf94(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xf77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    $0x0,%al
call   1080 <getch@plt>
mov    %al,-0x1d(%rbp)
movsbl %al,%eax
cmp    $0xd,%eax
je     17b5 <inputdate+0x645>
movsbl -0x1d(%rbp),%eax
cmp    $0x3,%eax
jne    121b <inputdate+0xab>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
sub    $0x1,%eax
je     1251 <inputdate+0xe1>
jmp    122f <inputdate+0xbf>
mov    -0x24(%rbp),%eax
sub    $0x2,%eax
je     1395 <inputdate+0x225>
jmp    1240 <inputdate+0xd0>
mov    -0x24(%rbp),%eax
sub    $0x3,%eax
je     1651 <inputdate+0x4e1>
jmp    17a9 <inputdate+0x639>
movsbl -0x1d(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x16,%eax
ja     138b <inputdate+0x21b>
mov    -0x30(%rbp),%rax
lea    0xe46(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rax
cmpl   $0x7b2,(%rax)
jle    12c4 <inputdate+0x154>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
add    $0xffffffff,%ecx
mov    %ecx,(%rax)
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1390 <inputdate+0x220>
mov    -0x8(%rbp),%rax
cmpl   $0x834,(%rax)
jge    1312 <inputdate+0x1a2>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1390 <inputdate+0x220>
movl   $0x3,-0x1c(%rbp)
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1390 <inputdate+0x220>
movl   $0x2,-0x1c(%rbp)
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1390 <inputdate+0x220>
jmp    11e3 <inputdate+0x73>
jmp    17b0 <inputdate+0x640>
movsbl -0x1d(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x16,%eax
ja     1647 <inputdate+0x4d7>
mov    -0x38(%rbp),%rax
lea    0xca6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
jle    1496 <inputdate+0x326>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0xffffffff,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x2,%eax
je     144e <inputdate+0x2de>
jmp    13ee <inputdate+0x27e>
mov    -0x3c(%rbp),%eax
sub    $0x4,%eax
je     1432 <inputdate+0x2c2>
jmp    13ff <inputdate+0x28f>
mov    -0x3c(%rbp),%eax
sub    $0x6,%eax
je     1432 <inputdate+0x2c2>
jmp    1410 <inputdate+0x2a0>
mov    -0x3c(%rbp),%eax
sub    $0x9,%eax
je     1432 <inputdate+0x2c2>
jmp    1421 <inputdate+0x2b1>
mov    -0x3c(%rbp),%eax
sub    $0xb,%eax
jne    1491 <inputdate+0x321>
jmp    1432 <inputdate+0x2c2>
mov    -0x18(%rbp),%rax
cmpl   $0x1e,(%rax)
jle    1449 <inputdate+0x2d9>
mov    -0x18(%rbp),%rax
movl   $0x1e,(%rax)
jmp    1491 <inputdate+0x321>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    $0x2,%edi
call   1060 <Dayinmonth@plt>
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
cmp    %ecx,%eax
jle    148c <inputdate+0x31c>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    $0x2,%edi
call   1060 <Dayinmonth@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    1491 <inputdate+0x321>
jmp    1496 <inputdate+0x326>
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    164c <inputdate+0x4dc>
mov    -0x10(%rbp),%rax
cmpl   $0xc,(%rax)
jge    15a0 <inputdate+0x430>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
sub    $0x2,%eax
je     1558 <inputdate+0x3e8>
jmp    14f8 <inputdate+0x388>
mov    -0x44(%rbp),%eax
sub    $0x4,%eax
je     153c <inputdate+0x3cc>
jmp    1509 <inputdate+0x399>
mov    -0x44(%rbp),%eax
sub    $0x6,%eax
je     153c <inputdate+0x3cc>
jmp    151a <inputdate+0x3aa>
mov    -0x44(%rbp),%eax
sub    $0x9,%eax
je     153c <inputdate+0x3cc>
jmp    152b <inputdate+0x3bb>
mov    -0x44(%rbp),%eax
sub    $0xb,%eax
jne    159b <inputdate+0x42b>
jmp    153c <inputdate+0x3cc>
mov    -0x18(%rbp),%rax
cmpl   $0x1e,(%rax)
jle    1553 <inputdate+0x3e3>
mov    -0x18(%rbp),%rax
movl   $0x1e,(%rax)
jmp    159b <inputdate+0x42b>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    $0x2,%edi
call   1060 <Dayinmonth@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
cmp    %ecx,%eax
jle    1596 <inputdate+0x426>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    $0x2,%edi
call   1060 <Dayinmonth@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    159b <inputdate+0x42b>
jmp    15a0 <inputdate+0x430>
lea    0xbcf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xbd5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    164c <inputdate+0x4dc>
movl   $0x1,-0x1c(%rbp)
lea    0xb95(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xb52(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    164c <inputdate+0x4dc>
movl   $0x3,-0x1c(%rbp)
lea    0xb5b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xb3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    164c <inputdate+0x4dc>
jmp    11e3 <inputdate+0x73>
jmp    17b0 <inputdate+0x640>
movsbl -0x1d(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x16,%eax
ja     179f <inputdate+0x62f>
mov    -0x50(%rbp),%rax
lea    0x98e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x18(%rbp),%rax
cmpl   $0x1,(%rax)
jle    16c1 <inputdate+0x551>
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
add    $0xffffffff,%ecx
mov    %ecx,(%rax)
lea    0xadc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xabf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    17a4 <inputdate+0x634>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
call   1060 <Dayinmonth@plt>
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
cmp    %ecx,%eax
jge    1726 <inputdate+0x5b6>
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
lea    0xa77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xa5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    17a4 <inputdate+0x634>
movl   $0x2,-0x1c(%rbp)
lea    0xa3d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xa43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    17a4 <inputdate+0x634>
movl   $0x1,-0x1c(%rbp)
lea    0xa03(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0x9c0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    17a4 <inputdate+0x634>
jmp    11e3 <inputdate+0x73>
jmp    17b0 <inputdate+0x640>
movl   $0x1,-0x1c(%rbp)
jmp    11f1 <inputdate+0x81>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inputdate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%rbx
movl   $0x7d0,(%rdi)
movl   $0x1,(%rsi)
movl   $0x1,(%rdx)
lea    0xf77(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%esi
mov    (%r14),%edx
mov    (%r15),%ecx
lea    0xf94(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%r12d
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    %r12d,%r13d
jmp    1210 <inputdate+0xa0>
addl   $0x1,(%r15)
mov    $0x3,%r13d
lea    0xf89(%rip),%rbp
lea    0xf7f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%esi
mov    (%r14),%edx
mov    (%r15),%ecx
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getch@plt>
cmp    $0xd,%al
je     1433 <inputdate+0x2c3>
cmp    $0x3,%al
je     144b <inputdate+0x2db>
movsbl %al,%eax
cmp    $0x3,%r13d
je     1290 <inputdate+0x120>
cmp    $0x2,%r13d
je     12e0 <inputdate+0x170>
cmp    $0x1,%r13d
mov    $0x1,%r13d
jne    1210 <inputdate+0xa0>
mov    $0x3,%r13d
mov    $0x1,%r12d
add    $0xffffff9f,%eax
cmp    $0x16,%eax
ja     11cc <inputdate+0x5c>
lea    0xe53(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
lea    0xf06(%rip),%rbp
jmp    *%rax
mov    $0x2,%r13d
lea    0xf1a(%rip),%rbp
jmp    11f0 <inputdate+0x80>
nopw   0x0(%rax,%rax,1)
mov    $0x2,%r13d
mov    $0x3,%r12d
add    $0xffffff9f,%eax
cmp    $0x16,%eax
ja     11cc <inputdate+0x5c>
lea    0xd51(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
lea    0xedf(%rip),%rbp
jmp    *%rax
mov    (%r15),%eax
mov    $0x3,%r13d
cmp    $0x2,%eax
jl     1210 <inputdate+0xa0>
add    $0xffffffff,%eax
mov    %eax,(%r15)
jmp    11e3 <inputdate+0x73>
nopl   0x0(%rax)
mov    $0x1,%r13d
mov    $0x2,%r12d
add    $0xffffff9f,%eax
cmp    $0x16,%eax
ja     11cc <inputdate+0x5c>
lea    0xd5d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
lea    0xe46(%rip),%rbp
jmp    *%rax
mov    (%r14),%eax
mov    $0x2,%r13d
cmp    $0x2,%eax
jl     13dc <inputdate+0x26c>
lea    -0x1(%rax),%ecx
mov    %ecx,(%r14)
cmp    $0xc,%eax
ja     13dc <inputdate+0x26c>
mov    $0x14a0,%ecx
bt     %eax,%ecx
jb     13d1 <inputdate+0x261>
cmp    $0x3,%eax
je     13ed <inputdate+0x27d>
jmp    13dc <inputdate+0x26c>
mov    (%rbx),%eax
mov    $0x1,%r13d
cmp    $0x7b3,%eax
jl     1210 <inputdate+0xa0>
add    $0xffffffff,%eax
jmp    137a <inputdate+0x20a>
mov    (%rbx),%eax
mov    $0x1,%r13d
cmp    $0x833,%eax
jg     1210 <inputdate+0xa0>
add    $0x1,%eax
mov    %eax,(%rbx)
mov    $0x1,%r13d
lea    0xdca(%rip),%rbp
jmp    11f0 <inputdate+0x80>
mov    (%r15),%ebp
mov    (%r14),%edi
mov    (%rbx),%esi
call   1060 <Dayinmonth@plt>
mov    $0x3,%r13d
cmp    %eax,%ebp
jge    1210 <inputdate+0xa0>
jmp    11df <inputdate+0x6f>
mov    (%r14),%eax
mov    $0x2,%r13d
cmp    $0xb,%eax
jg     13dc <inputdate+0x26c>
lea    0x1(%rax),%ecx
mov    %ecx,(%r14)
cmp    $0xa,%eax
ja     13dc <inputdate+0x26c>
mov    $0x528,%ecx
bt     %eax,%ecx
jae    13e8 <inputdate+0x278>
mov    $0x1e,%eax
cmpl   $0x1e,(%r15)
jg     141e <inputdate+0x2ae>
lea    0xdb9(%rip),%rbp
jmp    11f0 <inputdate+0x80>
cmp    $0x1,%eax
jne    13dc <inputdate+0x26c>
mov    (%r15),%r12d
mov    (%rbx),%esi
mov    $0x2,%r13d
mov    $0x2,%edi
call   1060 <Dayinmonth@plt>
lea    0xd93(%rip),%rbp
cmp    %eax,%r12d
jle    11f0 <inputdate+0x80>
mov    (%rbx),%esi
mov    $0x2,%edi
call   1060 <Dayinmonth@plt>
mov    %eax,(%r15)
lea    0xd74(%rip),%rbp
mov    $0x2,%r13d
jmp    11f0 <inputdate+0x80>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [60 x i8] c"\0AUse 'W', 'S' to change, 'A', 'D' to select, 'Enter' accept\00"
@.str.1 = [3 x i8] c"\1B7\00"
@.str.2 = [35 x i8] c"Date: \1B[31m> %04d <\1B[39m %02d %02d\00"
@stdin = global i32 0
@.str.3 = [3 x i8] c"\1B8\00"
@.str.4 = [35 x i8] c"Date: %04d %02d \1B[31m> %02d <\1B[39m\00"
@.str.5 = [35 x i8] c"Date: %04d \1B[31m> %02d <\1B[39m %02d\00"
define void @inputdate(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i8
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
store i32 1, i32* %7
%9 = load i32*, i32** %4
store i32 2000, i32* %9
%10 = load i32*, i32** %5
store i32 1, i32* %10
%11 = load i32*, i32** %6
store i32 1, i32* %11
%12 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32*, i32** %4
%15 = load i32, i32* %14
%16 = load i32*, i32** %5
%17 = load i32, i32* %16
%18 = load i32*, i32** %6
%19 = load i32, i32* %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %17, i32 %19)
br label %21
21: ; preds = %256, %194, %91, %3
%22 = load i32, i32* @stdin
%23 = call i32 @fflush(i32 %22)
br label %24
24: ; preds = %259, %21
%25 = call signext i8 (...) @getch()
store i8 %25, i8* %8
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 13
br i1 %27, label %28, label %260
28: ; preds = %24
%29 = load i8, i8* %8
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 3
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @exit(i32 0)
unreachable
34: ; preds = %28
%35 = load i32, i32* %7
switch i32 %35, label %258 [
i32 1, label %36
i32 2, label %93
i32 3, label %196
]
36: ; preds = %34
%37 = load i8, i8* %8
%38 = sext i8 %37 to i32
switch i32 %38, label %91 [
i32 115, label %39
i32 119, label %56
i32 97, label %73
i32 100, label %82
]
39: ; preds = %36
%40 = load i32*, i32** %4
%41 = load i32, i32* %40
%42 = icmp sgt i32 %41, 1970
br i1 %42, label %43, label %55
43: ; preds = %39
%44 = load i32*, i32** %4
%45 = load i32, i32* %44
%46 = add nsw i32 %45, -1
store i32 %46, i32* %44
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%48 = load i32*, i32** %4
%49 = load i32, i32* %48
%50 = load i32*, i32** %5
%51 = load i32, i32* %50
%52 = load i32*, i32** %6
%53 = load i32, i32* %52
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %49, i32 %51, i32 %53)
br label %55
55: ; preds = %43, %39
br label %92
56: ; preds = %36
%57 = load i32*, i32** %4
%58 = load i32, i32* %57
%59 = icmp slt i32 %58, 2100
br i1 %59, label %60, label %72
60: ; preds = %56
%61 = load i32*, i32** %4
%62 = load i32, i32* %61
%63 = add nsw i32 %62, 1
store i32 %63, i32* %61
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%65 = load i32*, i32** %4
%66 = load i32, i32* %65
%67 = load i32*, i32** %5
%68 = load i32, i32* %67
%69 = load i32*, i32** %6
%70 = load i32, i32* %69
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %66, i32 %68, i32 %70)
br label %72
72: ; preds = %60, %56
br label %92
73: ; preds = %36
store i32 3, i32* %7
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%75 = load i32*, i32** %4
%76 = load i32, i32* %75
%77 = load i32*, i32** %5
%78 = load i32, i32* %77
%79 = load i32*, i32** %6
%80 = load i32, i32* %79
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i32 %76, i32 %78, i32 %80)
br label %92
82: ; preds = %36
store i32 2, i32* %7
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%84 = load i32*, i32** %4
%85 = load i32, i32* %84
%86 = load i32*, i32** %5
%87 = load i32, i32* %86
%88 = load i32*, i32** %6
%89 = load i32, i32* %88
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %85, i32 %87, i32 %89)
br label %92
91: ; preds = %36
br label %21
92: ; preds = %82, %73, %72, %55
br label %259
93: ; preds = %34
%94 = load i8, i8* %8
%95 = sext i8 %94 to i32
switch i32 %95, label %194 [
i32 115, label %96
i32 119, label %136
i32 97, label %176
i32 100, label %185
]
96: ; preds = %93
%97 = load i32*, i32** %5
%98 = load i32, i32* %97
%99 = icmp sgt i32 %98, 1
br i1 %99, label %100, label %127
100: ; preds = %96
%101 = load i32*, i32** %5
%102 = load i32, i32* %101
%103 = add nsw i32 %102, -1
store i32 %103, i32* %101
%104 = load i32*, i32** %5
%105 = load i32, i32* %104
switch i32 %105, label %126 [
i32 4, label %106
i32 6, label %106
i32 9, label %106
i32 11, label %106
i32 2, label %113
]
106: ; preds = %100, %100, %100, %100
%107 = load i32*, i32** %6
%108 = load i32, i32* %107
%109 = icmp sgt i32 %108, 30
br i1 %109, label %110, label %112
110: ; preds = %106
%111 = load i32*, i32** %6
store i32 30, i32* %111
br label %112
112: ; preds = %110, %106
br label %126
113: ; preds = %100
%114 = load i32*, i32** %6
%115 = load i32, i32* %114
%116 = load i32*, i32** %4
%117 = load i32, i32* %116
%118 = call i32 @Dayinmonth(i32 2, i32 %117)
%119 = icmp sgt i32 %115, %118
br i1 %119, label %120, label %125
120: ; preds = %113
%121 = load i32*, i32** %4
%122 = load i32, i32* %121
%123 = call i32 @Dayinmonth(i32 2, i32 %122)
%124 = load i32*, i32** %6
store i32 %123, i32* %124
br label %125
125: ; preds = %120, %113
br label %126
126: ; preds = %100, %125, %112
br label %127
127: ; preds = %126, %96
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%129 = load i32*, i32** %4
%130 = load i32, i32* %129
%131 = load i32*, i32** %5
%132 = load i32, i32* %131
%133 = load i32*, i32** %6
%134 = load i32, i32* %133
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %130, i32 %132, i32 %134)
br label %195
136: ; preds = %93
%137 = load i32*, i32** %5
%138 = load i32, i32* %137
%139 = icmp slt i32 %138, 12
br i1 %139, label %140, label %167
140: ; preds = %136
%141 = load i32*, i32** %5
%142 = load i32, i32* %141
%143 = add nsw i32 %142, 1
store i32 %143, i32* %141
%144 = load i32*, i32** %5
%145 = load i32, i32* %144
switch i32 %145, label %166 [
i32 4, label %146
i32 6, label %146
i32 9, label %146
i32 11, label %146
i32 2, label %153
]
146: ; preds = %140, %140, %140, %140
%147 = load i32*, i32** %6
%148 = load i32, i32* %147
%149 = icmp sgt i32 %148, 30
br i1 %149, label %150, label %152
150: ; preds = %146
%151 = load i32*, i32** %6
store i32 30, i32* %151
br label %152
152: ; preds = %150, %146
br label %166
153: ; preds = %140
%154 = load i32*, i32** %6
%155 = load i32, i32* %154
%156 = load i32*, i32** %4
%157 = load i32, i32* %156
%158 = call i32 @Dayinmonth(i32 2, i32 %157)
%159 = icmp sgt i32 %155, %158
br i1 %159, label %160, label %165
160: ; preds = %153
%161 = load i32*, i32** %4
%162 = load i32, i32* %161
%163 = call i32 @Dayinmonth(i32 2, i32 %162)
%164 = load i32*, i32** %6
store i32 %163, i32* %164
br label %165
165: ; preds = %160, %153
br label %166
166: ; preds = %140, %165, %152
br label %167
167: ; preds = %166, %136
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%169 = load i32*, i32** %4
%170 = load i32, i32* %169
%171 = load i32*, i32** %5
%172 = load i32, i32* %171
%173 = load i32*, i32** %6
%174 = load i32, i32* %173
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %170, i32 %172, i32 %174)
br label %195
176: ; preds = %93
store i32 1, i32* %7
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%178 = load i32*, i32** %4
%179 = load i32, i32* %178
%180 = load i32*, i32** %5
%181 = load i32, i32* %180
%182 = load i32*, i32** %6
%183 = load i32, i32* %182
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %179, i32 %181, i32 %183)
br label %195
185: ; preds = %93
store i32 3, i32* %7
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%187 = load i32*, i32** %4
%188 = load i32, i32* %187
%189 = load i32*, i32** %5
%190 = load i32, i32* %189
%191 = load i32*, i32** %6
%192 = load i32, i32* %191
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i32 %188, i32 %190, i32 %192)
br label %195
194: ; preds = %93
br label %21
195: ; preds = %185, %176, %167, %127
br label %259
196: ; preds = %34
%197 = load i8, i8* %8
%198 = sext i8 %197 to i32
switch i32 %198, label %256 [
i32 115, label %199
i32 119, label %216
i32 97, label %238
i32 100, label %247
]
199: ; preds = %196
%200 = load i32*, i32** %6
%201 = load i32, i32* %200
%202 = icmp sgt i32 %201, 1
br i1 %202, label %203, label %215
203: ; preds = %199
%204 = load i32*, i32** %6
%205 = load i32, i32* %204
%206 = add nsw i32 %205, -1
store i32 %206, i32* %204
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%208 = load i32*, i32** %4
%209 = load i32, i32* %208
%210 = load i32*, i32** %5
%211 = load i32, i32* %210
%212 = load i32*, i32** %6
%213 = load i32, i32* %212
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i32 %209, i32 %211, i32 %213)
br label %215
215: ; preds = %203, %199
br label %257
216: ; preds = %196
%217 = load i32*, i32** %6
%218 = load i32, i32* %217
%219 = load i32*, i32** %5
%220 = load i32, i32* %219
%221 = load i32*, i32** %4
%222 = load i32, i32* %221
%223 = call i32 @Dayinmonth(i32 %220, i32 %222)
%224 = icmp slt i32 %218, %223
br i1 %224, label %225, label %237
225: ; preds = %216
%226 = load i32*, i32** %6
%227 = load i32, i32* %226
%228 = add nsw i32 %227, 1
store i32 %228, i32* %226
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%230 = load i32*, i32** %4
%231 = load i32, i32* %230
%232 = load i32*, i32** %5
%233 = load i32, i32* %232
%234 = load i32*, i32** %6
%235 = load i32, i32* %234
%236 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i32 %231, i32 %233, i32 %235)
br label %237
237: ; preds = %225, %216
br label %257
238: ; preds = %196
store i32 2, i32* %7
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%240 = load i32*, i32** %4
%241 = load i32, i32* %240
%242 = load i32*, i32** %5
%243 = load i32, i32* %242
%244 = load i32*, i32** %6
%245 = load i32, i32* %244
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %241, i32 %243, i32 %245)
br label %257
247: ; preds = %196
store i32 1, i32* %7
%248 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%249 = load i32*, i32** %4
%250 = load i32, i32* %249
%251 = load i32*, i32** %5
%252 = load i32, i32* %251
%253 = load i32*, i32** %6
%254 = load i32, i32* %253
%255 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %250, i32 %252, i32 %254)
br label %257
256: ; preds = %196
br label %21
257: ; preds = %247, %238, %237, %215
br label %259
258: ; preds = %34
store i32 1, i32* %7
br label %259
259: ; preds = %258, %257, %195, %92
br label %24
260: ; preds = %24
%261 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [60 x i8] c"\0AUse 'W', 'S' to change, 'A', 'D' to select, 'Enter' accept\00"
@.str.1 = [3 x i8] c"\1B7\00"
@.str.2 = [35 x i8] c"Date: \1B[31m> %04d <\1B[39m %02d %02d\00"
@stdin = global i32 0
@.str.3 = [3 x i8] c"\1B8\00"
@.str.4 = [35 x i8] c"Date: %04d %02d \1B[31m> %02d <\1B[39m\00"
@.str.5 = [35 x i8] c"Date: %04d \1B[31m> %02d <\1B[39m %02d\00"
define void @inputdate(i32* %0, i32* nocapture %1, i32* %2) {
store i32 2000, i32* %0
store i32 1, i32* %1
store i32 1, i32* %2
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* %0
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %7, i32 %8)
br label %12
10: ; preds = %23, %35, %73
%11 = phi i32 [ 3, %73 ], [ 2, %35 ], [ 1, %23 ]
br label %12
12: ; preds = %10, %3
%13 = phi i32 [ 1, %3 ], [ %11, %10 ]
%14 = load i32, i32* @stdin
%15 = tail call i32 @fflush(i32 %14)
br label %16
16: ; preds = %97, %12
%17 = phi i32 [ %13, %12 ], [ %98, %97 ]
%18 = tail call signext i8 (...) @getch()
%19 = sext i8 %18 to i32
switch i8 %18, label %22 [
i8 13, label %99
i8 3, label %20
]
20: ; preds = %16
%21 = tail call i32 @exit(i32 0)
unreachable
22: ; preds = %16
switch i32 %17, label %97 [
i32 1, label %23
i32 2, label %35
i32 3, label %73
]
23: ; preds = %22
switch i32 %19, label %10 [
i32 115, label %24
i32 119, label %29
i32 97, label %89
i32 100, label %34
]
24: ; preds = %23
%25 = load i32, i32* %0
%26 = icmp sgt i32 %25, 1970
br i1 %26, label %27, label %97
27: ; preds = %24
%28 = add nsw i32 %25, -1
store i32 %28, i32* %0
br label %89
29: ; preds = %23
%30 = load i32, i32* %0
%31 = icmp slt i32 %30, 2100
br i1 %31, label %32, label %97
32: ; preds = %29
%33 = add nsw i32 %30, 1
store i32 %33, i32* %0
br label %89
34: ; preds = %23
br label %89
35: ; preds = %22
switch i32 %19, label %10 [
i32 115, label %36
i32 119, label %54
i32 97, label %89
i32 100, label %72
]
36: ; preds = %35
%37 = load i32, i32* %1
%38 = icmp sgt i32 %37, 1
br i1 %38, label %39, label %89
39: ; preds = %36
%40 = add nsw i32 %37, -1
store i32 %40, i32* %1
switch i32 %37, label %89 [
i32 5, label %41
i32 7, label %41
i32 10, label %41
i32 12, label %41
i32 3, label %44
]
41: ; preds = %39, %39, %39, %39
%42 = load i32, i32* %2
%43 = icmp sgt i32 %42, 30
br i1 %43, label %52, label %89
44: ; preds = %39
%45 = load i32, i32* %2
%46 = load i32, i32* %0
%47 = tail call i32 @Dayinmonth(i32 2, i32 %46)
%48 = icmp sgt i32 %45, %47
br i1 %48, label %49, label %89
49: ; preds = %44
%50 = load i32, i32* %0
%51 = tail call i32 @Dayinmonth(i32 2, i32 %50)
br label %52
52: ; preds = %41, %49
%53 = phi i32 [ %51, %49 ], [ 30, %41 ]
store i32 %53, i32* %2
br label %89
54: ; preds = %35
%55 = load i32, i32* %1
%56 = icmp slt i32 %55, 12
br i1 %56, label %57, label %89
57: ; preds = %54
%58 = add nsw i32 %55, 1
store i32 %58, i32* %1
switch i32 %55, label %89 [
i32 3, label %59
i32 5, label %59
i32 8, label %59
i32 10, label %59
i32 1, label %62
]
59: ; preds = %57, %57, %57, %57
%60 = load i32, i32* %2
%61 = icmp sgt i32 %60, 30
br i1 %61, label %70, label %89
62: ; preds = %57
%63 = load i32, i32* %2
%64 = load i32, i32* %0
%65 = tail call i32 @Dayinmonth(i32 2, i32 %64)
%66 = icmp sgt i32 %63, %65
br i1 %66, label %67, label %89
67: ; preds = %62
%68 = load i32, i32* %0
%69 = tail call i32 @Dayinmonth(i32 2, i32 %68)
br label %70
70: ; preds = %59, %67
%71 = phi i32 [ %69, %67 ], [ 30, %59 ]
store i32 %71, i32* %2
br label %89
72: ; preds = %35
br label %89
73: ; preds = %22
switch i32 %19, label %10 [
i32 115, label %74
i32 119, label %79
i32 97, label %89
i32 100, label %88
]
74: ; preds = %73
%75 = load i32, i32* %2
%76 = icmp sgt i32 %75, 1
br i1 %76, label %77, label %97
77: ; preds = %74
%78 = add nsw i32 %75, -1
store i32 %78, i32* %2
br label %89
79: ; preds = %73
%80 = load i32, i32* %2
%81 = load i32, i32* %1
%82 = load i32, i32* %0
%83 = tail call i32 @Dayinmonth(i32 %81, i32 %82)
%84 = icmp slt i32 %80, %83
br i1 %84, label %85, label %97
85: ; preds = %79
%86 = load i32, i32* %2
%87 = add nsw i32 %86, 1
store i32 %87, i32* %2
br label %89
88: ; preds = %73
br label %89
89: ; preds = %73, %35, %54, %62, %59, %57, %70, %36, %44, %41, %39, %52, %23, %32, %27, %34, %72, %85, %77, %88
%90 = phi i8* [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), %88 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), %77 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), %85 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), %72 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %34 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), %27 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), %32 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), %23 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %52 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %39 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %41 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %44 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %36 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %70 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %57 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %59 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %62 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %54 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), %35 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), %73 ]
%91 = phi i32 [ 1, %88 ], [ 3, %77 ], [ 3, %85 ], [ 3, %72 ], [ 2, %34 ], [ 1, %27 ], [ 1, %32 ], [ 3, %23 ], [ 2, %52 ], [ 2, %39 ], [ 2, %41 ], [ 2, %44 ], [ 2, %36 ], [ 2, %70 ], [ 2, %57 ], [ 2, %59 ], [ 2, %62 ], [ 2, %54 ], [ 1, %35 ], [ 2, %73 ]
%92 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%93 = load i32, i32* %0
%94 = load i32, i32* %1
%95 = load i32, i32* %2
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %90, i32 %93, i32 %94, i32 %95)
br label %97
97: ; preds = %89, %22, %74, %79, %24, %29
%98 = phi i32 [ 3, %79 ], [ 3, %74 ], [ 1, %29 ], [ 1, %24 ], [ 1, %22 ], [ %91, %89 ]
br label %16
99: ; preds = %16
%100 = tail call i32 @putchar(i8 signext 10)
ret void
}