#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ D_T_FMT;
int /*<<< orphan*/ LC_TIME;
struct tm *localtime(int /*<<< orphan*/ *);
char *nl_langinfo(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  time_t t = time(NULL);
  struct tm *local_t = localtime(&t);
  char text[100];
  int result;
  setlocale(LC_TIME, "");
  strftime(text, 256, nl_langinfo(D_T_FMT), local_t);
  printf("STRING IS:   %s\n\n", text);
  result = strftime(text, 256, "%EC", local_t);
  printf("EC   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%EC doesn't equal to 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%EX", local_t);
  printf("EX   Bytes %i           %s	", result, text);
  if (result <= 3) {
    puts("Test Failed: \%EX doesn't equal to 3 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%EY", local_t);
  printf("EY   Bytes %i           %s	", result, text);
  if (result != 4) {
    puts("Test Failed: \%EY doesn't equal at least 4 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%Od", local_t);
  printf("Od   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%Od doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%Oe", local_t);
  printf("Oe   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%Oe doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OH", local_t);
  printf("OH   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OH doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OI", local_t);
  printf("OI   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OI doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%Om", local_t);
  printf("Om   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%Om doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OM", local_t);
  printf("OM   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OM doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OS", local_t);
  printf("OS   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OS doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%Ou", local_t);
  printf("Ou   Bytes %i           %s	", result, text);
  if (result != 1) {
    puts("Test Failed: \%Ou doesn't equal at least 1 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OU", local_t);
  printf("OU   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OU doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OV", local_t);
  printf("OV   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OV doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%Ow", local_t);
  printf("Ow   Bytes %i           %s	", result, text);
  if (result != 1) {
    puts("Test Failed: \%Ow doesn't equal at least 1 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  result = strftime(text, 256, "%OW", local_t);
  printf("OW   Bytes %i           %s	", result, text);
  if (result != 2) {
    puts("Test Failed: \%OW doesn't equal at least 2 bytes");
    return 1;
  } else {
    puts("PASS");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x10(%rbp)
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
lea    0xe86(%rip),%rsi
call   1080 <setlocale@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    0x2e16(%rip),%rax
mov    (%rax),%edi
call   1070 <nl_langinfo@plt>
mov    -0x90(%rbp),%rdi
mov    %rax,%rdx
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
call   1090 <strftime@plt>
lea    -0x80(%rbp),%rsi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xe0b(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     124f <main+0xdf>
lea    0xdf4(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xe06(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xdf2(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x3,-0x84(%rbp)
jg     12b7 <main+0x147>
lea    0xddb(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xd9e(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xdd4(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x4,-0x84(%rbp)
je     131f <main+0x1af>
lea    0xdbd(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xd36(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xdbc(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     1387 <main+0x217>
lea    0xda5(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xcce(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xda4(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     13ef <main+0x27f>
lea    0xd8d(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xc66(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd8c(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     1457 <main+0x2e7>
lea    0xd75(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xbfe(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd74(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xd5c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     14bf <main+0x34f>
lea    0xd5d(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xb96(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd5c(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xd44(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     1527 <main+0x3b7>
lea    0xd45(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xb2e(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd44(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     158f <main+0x41f>
lea    0xd2d(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xac6(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd2c(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     15f7 <main+0x487>
lea    0xd15(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0xa5e(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd14(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1,-0x84(%rbp)
je     165f <main+0x4ef>
lea    0xcfd(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0x9f6(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xcfc(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     16c7 <main+0x557>
lea    0xce5(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0x98e(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xce4(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xccc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     172f <main+0x5bf>
lea    0xccd(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0x926(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xccc(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1,-0x84(%rbp)
je     1797 <main+0x627>
lea    0xcb5(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0x8be(%rip),%rdi
call   1040 <puts@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xcb4(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%esi
lea    -0x80(%rbp),%rdx
lea    0xc9c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x84(%rbp)
je     17ff <main+0x68f>
lea    0xc9d(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1820 <main+0x6b0>
lea    0x856(%rip),%rdi
call   1040 <puts@plt>
lea    0x7fe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1040 <localtime@plt>
mov    %rax,%r14
mov    0x2e3f(%rip),%rax
mov    (%rax),%edi
lea    0xe7f(%rip),%rsi
call   1090 <setlocale@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
call   1080 <nl_langinfo@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %rax,%rdx
mov    %r14,%rcx
call   10a0 <strftime@plt>
lea    0xe1c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe1d(%rip),%rdx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe08(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    126a <main+0xea>
lea    0xe36(%rip),%rdi
call   1050 <puts@plt>
lea    0xe2f(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe15(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x3,%ebp
jg     1288 <main+0x108>
lea    0xe19(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xdc1(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdcd(%rip),%rdi
call   1050 <puts@plt>
lea    0xe10(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xdf6(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x4,%ebp
jne    1633 <main+0x4b3>
lea    0xd87(%rip),%rdi
call   1050 <puts@plt>
lea    0xe1a(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe00(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    163f <main+0x4bf>
lea    0xd41(%rip),%rdi
call   1050 <puts@plt>
lea    0xe24(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe0a(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    164b <main+0x4cb>
lea    0xcfb(%rip),%rdi
call   1050 <puts@plt>
lea    0xe2e(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe14(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1657 <main+0x4d7>
lea    0xcb5(%rip),%rdi
call   1050 <puts@plt>
lea    0xe38(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe1e(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1663 <main+0x4e3>
lea    0xc6f(%rip),%rdi
call   1050 <puts@plt>
lea    0xe42(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe28(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    166f <main+0x4ef>
lea    0xc29(%rip),%rdi
call   1050 <puts@plt>
lea    0xe4c(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe32(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    167b <main+0x4fb>
lea    0xbe3(%rip),%rdi
call   1050 <puts@plt>
lea    0xe56(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe3c(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1687 <main+0x507>
lea    0xb9d(%rip),%rdi
call   1050 <puts@plt>
lea    0xe60(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe46(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1,%ebp
jne    1693 <main+0x513>
lea    0xb57(%rip),%rdi
call   1050 <puts@plt>
lea    0xe6a(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe50(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    169f <main+0x51f>
lea    0xb11(%rip),%rdi
call   1050 <puts@plt>
lea    0xe74(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe5a(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    16ab <main+0x52b>
lea    0xacb(%rip),%rdi
call   1050 <puts@plt>
lea    0xe7e(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe64(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1,%ebp
jne    16b7 <main+0x537>
lea    0xa85(%rip),%rdi
call   1050 <puts@plt>
lea    0xe88(%rip),%rdx
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe6e(%rip),%rdi
xor    %ebx,%ebx
mov    %eax,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    16c3 <main+0x543>
lea    0xa3d(%rip),%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    127b <main+0xfb>
lea    0xa91(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xad5(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xb19(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xb5d(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xba1(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xbe5(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xc29(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xc6d(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xcb1(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xcf5(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xd39(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xd7d(%rip),%rdi
jmp    1271 <main+0xf1>
lea    0xdc1(%rip),%rdi
jmp    1271 <main+0xf1>

LLVM IR (-O0):
%struct.tm = type { i32 }
@LC_TIME = global i32 0
@.str = [1 x i8] zeroinitializer
@D_T_FMT = global i32 0
@.str.1 = [18 x i8] c"STRING IS: %s\0A\0A\00"
@.str.2 = [4 x i8] c"%EC\00"
@.str.3 = [28 x i8] c"EC Bytes %i %s\09\00"
@.str.4 = [42 x i8] c"Test Failed: %EC doesn't equal to 2 bytes\00"
@.str.5 = [5 x i8] c"PASS\00"
@.str.6 = [4 x i8] c"%EX\00"
@.str.7 = [28 x i8] c"EX Bytes %i %s\09\00"
@.str.8 = [42 x i8] c"Test Failed: %EX doesn't equal to 3 bytes\00"
@.str.9 = [4 x i8] c"%EY\00"
@.str.10 = [28 x i8] c"EY Bytes %i %s\09\00"
@.str.11 = [48 x i8] c"Test Failed: %EY doesn't equal at least 4 bytes\00"
@.str.12 = [4 x i8] c"%Od\00"
@.str.13 = [28 x i8] c"Od Bytes %i %s\09\00"
@.str.14 = [48 x i8] c"Test Failed: %Od doesn't equal at least 2 bytes\00"
@.str.15 = [4 x i8] c"%Oe\00"
@.str.16 = [28 x i8] c"Oe Bytes %i %s\09\00"
@.str.17 = [48 x i8] c"Test Failed: %Oe doesn't equal at least 2 bytes\00"
@.str.18 = [4 x i8] c"%OH\00"
@.str.19 = [28 x i8] c"OH Bytes %i %s\09\00"
@.str.20 = [48 x i8] c"Test Failed: %OH doesn't equal at least 2 bytes\00"
@.str.21 = [4 x i8] c"%OI\00"
@.str.22 = [28 x i8] c"OI Bytes %i %s\09\00"
@.str.23 = [48 x i8] c"Test Failed: %OI doesn't equal at least 2 bytes\00"
@.str.24 = [4 x i8] c"%Om\00"
@.str.25 = [28 x i8] c"Om Bytes %i %s\09\00"
@.str.26 = [48 x i8] c"Test Failed: %Om doesn't equal at least 2 bytes\00"
@.str.27 = [4 x i8] c"%OM\00"
@.str.28 = [28 x i8] c"OM Bytes %i %s\09\00"
@.str.29 = [48 x i8] c"Test Failed: %OM doesn't equal at least 2 bytes\00"
@.str.30 = [4 x i8] c"%OS\00"
@.str.31 = [28 x i8] c"OS Bytes %i %s\09\00"
@.str.32 = [48 x i8] c"Test Failed: %OS doesn't equal at least 2 bytes\00"
@.str.33 = [4 x i8] c"%Ou\00"
@.str.34 = [28 x i8] c"Ou Bytes %i %s\09\00"
@.str.35 = [48 x i8] c"Test Failed: %Ou doesn't equal at least 1 bytes\00"
@.str.36 = [4 x i8] c"%OU\00"
@.str.37 = [28 x i8] c"OU Bytes %i %s\09\00"
@.str.38 = [48 x i8] c"Test Failed: %OU doesn't equal at least 2 bytes\00"
@.str.39 = [4 x i8] c"%OV\00"
@.str.40 = [28 x i8] c"OV Bytes %i %s\09\00"
@.str.41 = [48 x i8] c"Test Failed: %OV doesn't equal at least 2 bytes\00"
@.str.42 = [4 x i8] c"%Ow\00"
@.str.43 = [28 x i8] c"Ow Bytes %i %s\09\00"
@.str.44 = [48 x i8] c"Test Failed: %Ow doesn't equal at least 1 bytes\00"
@.str.45 = [4 x i8] c"%OW\00"
@.str.46 = [28 x i8] c"OW Bytes %i %s\09\00"
@.str.47 = [48 x i8] c"Test Failed: %OW doesn't equal at least 2 bytes\00"
@.str.48 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.tm*
%4 = alloca [100 x i8]
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 @time(i32* null)
store i32 %6, i32* %2
%7 = call %struct.tm* @localtime(i32* %2)
store %struct.tm* %7, %struct.tm** %3
%8 = load i32, i32* @LC_TIME
%9 = call i32 @setlocale(i32 %8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%11 = load i32, i32* @D_T_FMT
%12 = call i8* @nl_langinfo(i32 %11)
%13 = load %struct.tm*, %struct.tm** %3
%14 = call i32 @strftime(i8* %10, i32 256, i8* %12, %struct.tm* %13)
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%18 = load %struct.tm*, %struct.tm** %3
%19 = call i32 @strftime(i8* %17, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %18)
store i32 %19, i32* %5
%20 = load i32, i32* %5
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %20, i8* %21)
%23 = load i32, i32* %5
%24 = icmp ne i32 %23, 2
br i1 %24, label %25, label %27
25: ; preds = %0
%26 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %1
br label %213
27: ; preds = %0
%28 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %29
29: ; preds = %27
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%31 = load %struct.tm*, %struct.tm** %3
%32 = call i32 @strftime(i8* %30, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %31)
store i32 %32, i32* %5
%33 = load i32, i32* %5
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i32 %33, i8* %34)
%36 = load i32, i32* %5
%37 = icmp sle i32 %36, 3
br i1 %37, label %38, label %40
38: ; preds = %29
%39 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %1
br label %213
40: ; preds = %29
%41 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %42
42: ; preds = %40
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%44 = load %struct.tm*, %struct.tm** %3
%45 = call i32 @strftime(i8* %43, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %struct.tm* %44)
store i32 %45, i32* %5
%46 = load i32, i32* %5
%47 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %46, i8* %47)
%49 = load i32, i32* %5
%50 = icmp ne i32 %49, 4
br i1 %50, label %51, label %53
51: ; preds = %42
%52 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
store i32 1, i32* %1
br label %213
53: ; preds = %42
%54 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %55
55: ; preds = %53
%56 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%57 = load %struct.tm*, %struct.tm** %3
%58 = call i32 @strftime(i8* %56, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), %struct.tm* %57)
store i32 %58, i32* %5
%59 = load i32, i32* %5
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i32 %59, i8* %60)
%62 = load i32, i32* %5
%63 = icmp ne i32 %62, 2
br i1 %63, label %64, label %66
64: ; preds = %55
%65 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0))
store i32 1, i32* %1
br label %213
66: ; preds = %55
%67 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %68
68: ; preds = %66
%69 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%70 = load %struct.tm*, %struct.tm** %3
%71 = call i32 @strftime(i8* %69, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), %struct.tm* %70)
store i32 %71, i32* %5
%72 = load i32, i32* %5
%73 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i32 %72, i8* %73)
%75 = load i32, i32* %5
%76 = icmp ne i32 %75, 2
br i1 %76, label %77, label %79
77: ; preds = %68
%78 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0))
store i32 1, i32* %1
br label %213
79: ; preds = %68
%80 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %81
81: ; preds = %79
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%83 = load %struct.tm*, %struct.tm** %3
%84 = call i32 @strftime(i8* %82, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), %struct.tm* %83)
store i32 %84, i32* %5
%85 = load i32, i32* %5
%86 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0), i32 %85, i8* %86)
%88 = load i32, i32* %5
%89 = icmp ne i32 %88, 2
br i1 %89, label %90, label %92
90: ; preds = %81
%91 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.20, i64 0, i64 0))
store i32 1, i32* %1
br label %213
92: ; preds = %81
%93 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%96 = load %struct.tm*, %struct.tm** %3
%97 = call i32 @strftime(i8* %95, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), %struct.tm* %96)
store i32 %97, i32* %5
%98 = load i32, i32* %5
%99 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.22, i64 0, i64 0), i32 %98, i8* %99)
%101 = load i32, i32* %5
%102 = icmp ne i32 %101, 2
br i1 %102, label %103, label %105
103: ; preds = %94
%104 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.23, i64 0, i64 0))
store i32 1, i32* %1
br label %213
105: ; preds = %94
%106 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %107
107: ; preds = %105
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%109 = load %struct.tm*, %struct.tm** %3
%110 = call i32 @strftime(i8* %108, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), %struct.tm* %109)
store i32 %110, i32* %5
%111 = load i32, i32* %5
%112 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.25, i64 0, i64 0), i32 %111, i8* %112)
%114 = load i32, i32* %5
%115 = icmp ne i32 %114, 2
br i1 %115, label %116, label %118
116: ; preds = %107
%117 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.26, i64 0, i64 0))
store i32 1, i32* %1
br label %213
118: ; preds = %107
%119 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %120
120: ; preds = %118
%121 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%122 = load %struct.tm*, %struct.tm** %3
%123 = call i32 @strftime(i8* %121, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), %struct.tm* %122)
store i32 %123, i32* %5
%124 = load i32, i32* %5
%125 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.28, i64 0, i64 0), i32 %124, i8* %125)
%127 = load i32, i32* %5
%128 = icmp ne i32 %127, 2
br i1 %128, label %129, label %131
129: ; preds = %120
%130 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.29, i64 0, i64 0))
store i32 1, i32* %1
br label %213
131: ; preds = %120
%132 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %133
133: ; preds = %131
%134 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%135 = load %struct.tm*, %struct.tm** %3
%136 = call i32 @strftime(i8* %134, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0), %struct.tm* %135)
store i32 %136, i32* %5
%137 = load i32, i32* %5
%138 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.31, i64 0, i64 0), i32 %137, i8* %138)
%140 = load i32, i32* %5
%141 = icmp ne i32 %140, 2
br i1 %141, label %142, label %144
142: ; preds = %133
%143 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.32, i64 0, i64 0))
store i32 1, i32* %1
br label %213
144: ; preds = %133
%145 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %146
146: ; preds = %144
%147 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%148 = load %struct.tm*, %struct.tm** %3
%149 = call i32 @strftime(i8* %147, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.33, i64 0, i64 0), %struct.tm* %148)
store i32 %149, i32* %5
%150 = load i32, i32* %5
%151 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.34, i64 0, i64 0), i32 %150, i8* %151)
%153 = load i32, i32* %5
%154 = icmp ne i32 %153, 1
br i1 %154, label %155, label %157
155: ; preds = %146
%156 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.35, i64 0, i64 0))
store i32 1, i32* %1
br label %213
157: ; preds = %146
%158 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %159
159: ; preds = %157
%160 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%161 = load %struct.tm*, %struct.tm** %3
%162 = call i32 @strftime(i8* %160, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.36, i64 0, i64 0), %struct.tm* %161)
store i32 %162, i32* %5
%163 = load i32, i32* %5
%164 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.37, i64 0, i64 0), i32 %163, i8* %164)
%166 = load i32, i32* %5
%167 = icmp ne i32 %166, 2
br i1 %167, label %168, label %170
168: ; preds = %159
%169 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.38, i64 0, i64 0))
store i32 1, i32* %1
br label %213
170: ; preds = %159
%171 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %172
172: ; preds = %170
%173 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%174 = load %struct.tm*, %struct.tm** %3
%175 = call i32 @strftime(i8* %173, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.39, i64 0, i64 0), %struct.tm* %174)
store i32 %175, i32* %5
%176 = load i32, i32* %5
%177 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.40, i64 0, i64 0), i32 %176, i8* %177)
%179 = load i32, i32* %5
%180 = icmp ne i32 %179, 2
br i1 %180, label %181, label %183
181: ; preds = %172
%182 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.41, i64 0, i64 0))
store i32 1, i32* %1
br label %213
183: ; preds = %172
%184 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %185
185: ; preds = %183
%186 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%187 = load %struct.tm*, %struct.tm** %3
%188 = call i32 @strftime(i8* %186, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.42, i64 0, i64 0), %struct.tm* %187)
store i32 %188, i32* %5
%189 = load i32, i32* %5
%190 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.43, i64 0, i64 0), i32 %189, i8* %190)
%192 = load i32, i32* %5
%193 = icmp ne i32 %192, 1
br i1 %193, label %194, label %196
194: ; preds = %185
%195 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.44, i64 0, i64 0))
store i32 1, i32* %1
br label %213
196: ; preds = %185
%197 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %198
198: ; preds = %196
%199 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%200 = load %struct.tm*, %struct.tm** %3
%201 = call i32 @strftime(i8* %199, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.45, i64 0, i64 0), %struct.tm* %200)
store i32 %201, i32* %5
%202 = load i32, i32* %5
%203 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.46, i64 0, i64 0), i32 %202, i8* %203)
%205 = load i32, i32* %5
%206 = icmp ne i32 %205, 2
br i1 %206, label %207, label %209
207: ; preds = %198
%208 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.47, i64 0, i64 0))
store i32 1, i32* %1
br label %213
209: ; preds = %198
%210 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %211
211: ; preds = %209
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.48, i64 0, i64 0))
store i32 0, i32* %1
br label %213
213: ; preds = %211, %207, %194, %181, %168, %155, %142, %129, %116, %103, %90, %77, %64, %51, %38, %25
%214 = load i32, i32* %1
ret i32 %214
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@LC_TIME = global i32 0
@.str = [1 x i8] zeroinitializer
@D_T_FMT = global i32 0
@.str.1 = [18 x i8] c"STRING IS: %s\0A\0A\00"
@.str.2 = [4 x i8] c"%EC\00"
@.str.3 = [28 x i8] c"EC Bytes %i %s\09\00"
@.str.4 = [42 x i8] c"Test Failed: %EC doesn't equal to 2 bytes\00"
@.str.5 = [5 x i8] c"PASS\00"
@.str.6 = [4 x i8] c"%EX\00"
@.str.7 = [28 x i8] c"EX Bytes %i %s\09\00"
@.str.8 = [42 x i8] c"Test Failed: %EX doesn't equal to 3 bytes\00"
@.str.9 = [4 x i8] c"%EY\00"
@.str.10 = [28 x i8] c"EY Bytes %i %s\09\00"
@.str.11 = [48 x i8] c"Test Failed: %EY doesn't equal at least 4 bytes\00"
@.str.12 = [4 x i8] c"%Od\00"
@.str.13 = [28 x i8] c"Od Bytes %i %s\09\00"
@.str.14 = [48 x i8] c"Test Failed: %Od doesn't equal at least 2 bytes\00"
@.str.15 = [4 x i8] c"%Oe\00"
@.str.16 = [28 x i8] c"Oe Bytes %i %s\09\00"
@.str.17 = [48 x i8] c"Test Failed: %Oe doesn't equal at least 2 bytes\00"
@.str.18 = [4 x i8] c"%OH\00"
@.str.19 = [28 x i8] c"OH Bytes %i %s\09\00"
@.str.20 = [48 x i8] c"Test Failed: %OH doesn't equal at least 2 bytes\00"
@.str.21 = [4 x i8] c"%OI\00"
@.str.22 = [28 x i8] c"OI Bytes %i %s\09\00"
@.str.23 = [48 x i8] c"Test Failed: %OI doesn't equal at least 2 bytes\00"
@.str.24 = [4 x i8] c"%Om\00"
@.str.25 = [28 x i8] c"Om Bytes %i %s\09\00"
@.str.26 = [48 x i8] c"Test Failed: %Om doesn't equal at least 2 bytes\00"
@.str.27 = [4 x i8] c"%OM\00"
@.str.28 = [28 x i8] c"OM Bytes %i %s\09\00"
@.str.29 = [48 x i8] c"Test Failed: %OM doesn't equal at least 2 bytes\00"
@.str.30 = [4 x i8] c"%OS\00"
@.str.31 = [28 x i8] c"OS Bytes %i %s\09\00"
@.str.32 = [48 x i8] c"Test Failed: %OS doesn't equal at least 2 bytes\00"
@.str.33 = [4 x i8] c"%Ou\00"
@.str.34 = [28 x i8] c"Ou Bytes %i %s\09\00"
@.str.35 = [48 x i8] c"Test Failed: %Ou doesn't equal at least 1 bytes\00"
@.str.36 = [4 x i8] c"%OU\00"
@.str.37 = [28 x i8] c"OU Bytes %i %s\09\00"
@.str.38 = [48 x i8] c"Test Failed: %OU doesn't equal at least 2 bytes\00"
@.str.39 = [4 x i8] c"%OV\00"
@.str.40 = [28 x i8] c"OV Bytes %i %s\09\00"
@.str.41 = [48 x i8] c"Test Failed: %OV doesn't equal at least 2 bytes\00"
@.str.42 = [4 x i8] c"%Ow\00"
@.str.43 = [28 x i8] c"Ow Bytes %i %s\09\00"
@.str.44 = [48 x i8] c"Test Failed: %Ow doesn't equal at least 1 bytes\00"
@.str.45 = [4 x i8] c"%OW\00"
@.str.46 = [28 x i8] c"OW Bytes %i %s\09\00"
@.str.47 = [48 x i8] c"Test Failed: %OW doesn't equal at least 2 bytes\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = bitcast i32* %1 to i8*
%4 = tail call i32 @time(i32* null)
store i32 %4, i32* %1
%5 = call %struct.tm* @localtime(i32* %1)
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%7 = load i32, i32* @LC_TIME
%8 = call i32 @setlocale(i32 %7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @D_T_FMT
%10 = call i8* @nl_langinfo(i32 %9)
%11 = call i32 @strftime(i8* %6, i32 256, i8* %10, %struct.tm* %5)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%13 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %5)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %13, i8* %6)
%15 = icmp eq i32 %13, 2
br i1 %15, label %18, label %16
16: ; preds = %0
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
br label %119
18: ; preds = %0
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %5)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i32 %20, i8* %6)
%22 = icmp slt i32 %20, 4
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
br label %119
25: ; preds = %18
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %struct.tm* %5)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %27, i8* %6)
%29 = icmp eq i32 %27, 4
br i1 %29, label %32, label %30
30: ; preds = %25
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
br label %119
32: ; preds = %25
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%34 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), %struct.tm* %5)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i32 %34, i8* %6)
%36 = icmp eq i32 %34, 2
br i1 %36, label %39, label %37
37: ; preds = %32
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0))
br label %119
39: ; preds = %32
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%41 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), %struct.tm* %5)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i32 %41, i8* %6)
%43 = icmp eq i32 %41, 2
br i1 %43, label %46, label %44
44: ; preds = %39
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0))
br label %119
46: ; preds = %39
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%48 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), %struct.tm* %5)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0), i32 %48, i8* %6)
%50 = icmp eq i32 %48, 2
br i1 %50, label %53, label %51
51: ; preds = %46
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.20, i64 0, i64 0))
br label %119
53: ; preds = %46
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%55 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), %struct.tm* %5)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.22, i64 0, i64 0), i32 %55, i8* %6)
%57 = icmp eq i32 %55, 2
br i1 %57, label %60, label %58
58: ; preds = %53
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.23, i64 0, i64 0))
br label %119
60: ; preds = %53
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%62 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), %struct.tm* %5)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.25, i64 0, i64 0), i32 %62, i8* %6)
%64 = icmp eq i32 %62, 2
br i1 %64, label %67, label %65
65: ; preds = %60
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.26, i64 0, i64 0))
br label %119
67: ; preds = %60
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%69 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), %struct.tm* %5)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.28, i64 0, i64 0), i32 %69, i8* %6)
%71 = icmp eq i32 %69, 2
br i1 %71, label %74, label %72
72: ; preds = %67
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.29, i64 0, i64 0))
br label %119
74: ; preds = %67
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%76 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0), %struct.tm* %5)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.31, i64 0, i64 0), i32 %76, i8* %6)
%78 = icmp eq i32 %76, 2
br i1 %78, label %81, label %79
79: ; preds = %74
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.32, i64 0, i64 0))
br label %119
81: ; preds = %74
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%83 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.33, i64 0, i64 0), %struct.tm* %5)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.34, i64 0, i64 0), i32 %83, i8* %6)
%85 = icmp eq i32 %83, 1
br i1 %85, label %88, label %86
86: ; preds = %81
%87 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.35, i64 0, i64 0))
br label %119
88: ; preds = %81
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%90 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.36, i64 0, i64 0), %struct.tm* %5)
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.37, i64 0, i64 0), i32 %90, i8* %6)
%92 = icmp eq i32 %90, 2
br i1 %92, label %95, label %93
93: ; preds = %88
%94 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.38, i64 0, i64 0))
br label %119
95: ; preds = %88
%96 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%97 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.39, i64 0, i64 0), %struct.tm* %5)
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.40, i64 0, i64 0), i32 %97, i8* %6)
%99 = icmp eq i32 %97, 2
br i1 %99, label %102, label %100
100: ; preds = %95
%101 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.41, i64 0, i64 0))
br label %119
102: ; preds = %95
%103 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%104 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.42, i64 0, i64 0), %struct.tm* %5)
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.43, i64 0, i64 0), i32 %104, i8* %6)
%106 = icmp eq i32 %104, 1
br i1 %106, label %109, label %107
107: ; preds = %102
%108 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.44, i64 0, i64 0))
br label %119
109: ; preds = %102
%110 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%111 = call i32 @strftime(i8* %6, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.45, i64 0, i64 0), %struct.tm* %5)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.46, i64 0, i64 0), i32 %111, i8* %6)
%113 = icmp eq i32 %111, 2
br i1 %113, label %116, label %114
114: ; preds = %109
%115 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.47, i64 0, i64 0))
br label %119
116: ; preds = %109
%117 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%118 = call i32 @putchar(i32 10)
br label %119
119: ; preds = %116, %114, %107, %100, %93, %86, %79, %72, %65, %58, %51, %44, %37, %30, %23, %16
%120 = phi i32 [ 1, %16 ], [ 1, %23 ], [ 1, %30 ], [ 1, %37 ], [ 1, %44 ], [ 1, %51 ], [ 1, %58 ], [ 1, %65 ], [ 1, %72 ], [ 1, %79 ], [ 1, %86 ], [ 1, %93 ], [ 1, %100 ], [ 1, %107 ], [ 1, %114 ], [ 0, %116 ]
ret i32 %120
}