#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;
typedef int /*<<< orphan*/ text;
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[256];
  int result;
  setlocale(LC_TIME, "");
  strftime(text, sizeof(text), nl_langinfo(D_T_FMT), local_t);
  printf("STRING IS:   %s\n\n", text);
  result = strftime(text, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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, sizeof(text), "%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    $0x120,%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    -0x110(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
call   1070 <nl_langinfo@plt>
mov    -0x120(%rbp),%rdi
mov    %rax,%rdx
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
call   1090 <strftime@plt>
lea    -0x110(%rbp),%rsi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xe02(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     125b <main+0xeb>
lea    0xde8(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xdfa(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xde3(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x3,-0x114(%rbp)
jg     12c9 <main+0x159>
lea    0xdc9(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xd8c(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xdbf(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x4,-0x114(%rbp)
je     1337 <main+0x1c7>
lea    0xda5(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xd1e(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xda1(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     13a5 <main+0x235>
lea    0xd87(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xcb0(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd83(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     1413 <main+0x2a3>
lea    0xd69(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xc42(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd65(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     1481 <main+0x311>
lea    0xd4b(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xbd4(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd47(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     14ef <main+0x37f>
lea    0xd2d(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xb66(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd29(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xd0e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     155d <main+0x3ed>
lea    0xd0f(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xaf8(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xd0b(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     15cb <main+0x45b>
lea    0xcf1(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xa8a(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xced(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xcd2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     1639 <main+0x4c9>
lea    0xcd3(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0xa1c(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xccf(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1,-0x114(%rbp)
je     16a7 <main+0x537>
lea    0xcb5(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0x9ae(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xcb1(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     1715 <main+0x5a5>
lea    0xc97(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0x940(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xc93(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     1783 <main+0x613>
lea    0xc79(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0x8d2(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xc75(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1,-0x114(%rbp)
je     17f1 <main+0x681>
lea    0xc5b(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0x864(%rip),%rdi
call   1040 <puts@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x100,%esi
lea    0xc57(%rip),%rdx
call   1090 <strftime@plt>
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xc3c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x2,-0x114(%rbp)
je     185f <main+0x6ef>
lea    0xc3d(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1880 <main+0x710>
lea    0x7f6(%rip),%rdi
call   1040 <puts@plt>
lea    0x79e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x118,%rsp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1040 <localtime@plt>
mov    %rax,%r14
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
lea    0xe7c(%rip),%rsi
call   1090 <setlocale@plt>
mov    0x2e17(%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    0xe19(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe1a(%rip),%rdx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe05(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    126d <main+0xed>
lea    0xe33(%rip),%rdi
call   1050 <puts@plt>
lea    0xe2c(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe12(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x3,%ebp
jg     128e <main+0x10e>
lea    0xe16(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xdbe(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdc7(%rip),%rdi
call   1050 <puts@plt>
lea    0xe0a(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xdf0(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x4,%ebp
jne    1639 <main+0x4b9>
lea    0xd81(%rip),%rdi
call   1050 <puts@plt>
lea    0xe14(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xdfa(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1645 <main+0x4c5>
lea    0xd3b(%rip),%rdi
call   1050 <puts@plt>
lea    0xe1e(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe04(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1651 <main+0x4d1>
lea    0xcf5(%rip),%rdi
call   1050 <puts@plt>
lea    0xe28(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe0e(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    165d <main+0x4dd>
lea    0xcaf(%rip),%rdi
call   1050 <puts@plt>
lea    0xe32(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe18(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1669 <main+0x4e9>
lea    0xc69(%rip),%rdi
call   1050 <puts@plt>
lea    0xe3c(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe22(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1675 <main+0x4f5>
lea    0xc23(%rip),%rdi
call   1050 <puts@plt>
lea    0xe46(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe2c(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    1681 <main+0x501>
lea    0xbdd(%rip),%rdi
call   1050 <puts@plt>
lea    0xe50(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe36(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    168d <main+0x50d>
lea    0xb97(%rip),%rdi
call   1050 <puts@plt>
lea    0xe5a(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe40(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1,%ebp
jne    1699 <main+0x519>
lea    0xb51(%rip),%rdi
call   1050 <puts@plt>
lea    0xe64(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe4a(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    16a5 <main+0x525>
lea    0xb0b(%rip),%rdi
call   1050 <puts@plt>
lea    0xe6e(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe54(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    16b1 <main+0x531>
lea    0xac5(%rip),%rdi
call   1050 <puts@plt>
lea    0xe78(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe5e(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1,%ebp
jne    16bd <main+0x53d>
lea    0xa7f(%rip),%rdi
call   1050 <puts@plt>
lea    0xe82(%rip),%rdx
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    $0x100,%esi
mov    %r14,%rcx
call   10a0 <strftime@plt>
mov    %eax,%ebp
lea    0xe68(%rip),%rdi
xor    %ebx,%ebx
mov    %eax,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x2,%ebp
jne    16c9 <main+0x549>
lea    0xa37(%rip),%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    127e <main+0xfe>
lea    0xa8b(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xacf(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xb13(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xb57(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xb9b(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xbdf(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xc23(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xc67(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xcab(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xcef(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xd33(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xd77(%rip),%rdi
jmp    1274 <main+0xf4>
lea    0xdbb(%rip),%rdi
jmp    1274 <main+0xf4>

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 [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 x i8], [256 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 [256 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 [256 x i8], [256 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
}