#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 scalar_t__ time_t;
struct tm {
  int tm_year;
  int tm_mon;
  int tm_mday;
  scalar_t__ tm_sec;
  scalar_t__ tm_min;
  scalar_t__ tm_hour;
};

/* Variables and functions */
int /*<<< orphan*/ fileExists(char *);
struct tm *localtime(scalar_t__ *);
scalar_t__ mktime(struct tm *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, int, int, int, ...);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ time(scalar_t__ *);
int /*<<< orphan*/ unlink(char *);
int main(int argc, char *argv[]) {
  struct tm thetime;
  struct tm *ptm;
  time_t rawtime, rawtime_today;
  char filename[1024];
  char execute_string[2048];
  time(&rawtime_today);
  thetime.tm_year = 2003 - 1900;
  thetime.tm_mon = 0;
  thetime.tm_mday = 1;
  thetime.tm_hour = 0;
  thetime.tm_min = 0;
  thetime.tm_sec = 0;
  rawtime = mktime(&thetime);
  ptm = localtime(&rawtime_today);
  strftime(filename, 20, "%Y_bochum.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y-%m_bochum.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y-%m-%d_bochum.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y_oe.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y-%m_oe.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y-%m-%d_oe.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y_out.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y-%m_out.png", ptm);
  unlink(filename);
  strftime(filename, 20, "%Y-%m-%d_out.png", ptm);
  unlink(filename);
  while (rawtime < rawtime_today) {
    ptm = localtime(&rawtime);
    strftime(filename, 30, "%Y_bochum.png", ptm);
    sprintf(execute_string, "%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d -z %s",
            "../hagraph", 1800, 800, ptm->tm_year + 1900, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
      system(execute_string);
    }
    strftime(filename, 30, "%Y-%m_bochum.png", ptm);
    sprintf(execute_string,
            "%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d-%02d -z %s", "../hagraph",
            1800, 800, ptm->tm_year + 1900, ptm->tm_mon + 1, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
      system(execute_string);
    }
    strftime(filename, 30, "%Y-%m-%d_bochum.png", ptm);
    sprintf(execute_string,
            "%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d-%02d-%02d -z %s",
            "../hagraph", 1800, 800, ptm->tm_year + 1900, ptm->tm_mon + 1,
            ptm->tm_mday, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
    }
    strftime(filename, 30, "%Y_oe.png", ptm);
    sprintf(
        execute_string,
        "%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d -z %s",
        "../hagraph", 1800, 800, ptm->tm_year + 1900, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
      system(execute_string);
    }
    strftime(filename, 30, "%Y-%m_oe.png", ptm);
    sprintf(execute_string,
            "%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d-%02d "
            "-z %s",
            "../hagraph", 1800, 800, ptm->tm_year + 1900, ptm->tm_mon + 1,
            filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
      system(execute_string);
    }
    strftime(filename, 30, "%Y-%m-%d_oe.png", ptm);
    sprintf(execute_string,
            "%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f "
            "%d-%02d-%02d -z %s",
            "../hagraph", 1800, 800, ptm->tm_year + 1900, ptm->tm_mon + 1,
            ptm->tm_mday, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
    }
    strftime(filename, 30, "%Y_out.png", ptm);
    sprintf(execute_string, "%s -x %d -y %d -g 3 -h 1 -i 4 -j 0 -f %d -z %s",
            "../hagraph", 1800, 800, ptm->tm_year + 1900, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
      system(execute_string);
    }
    strftime(filename, 30, "%Y-%m_out.png", ptm);
    sprintf(execute_string,
            "%s -x %d -y %d -g 3 -h 1 -i 4 -j 0 -f %d-%02d -z %s", "../hagraph",
            1800, 800, ptm->tm_year + 1900, ptm->tm_mon + 1, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
      system(execute_string);
    }
    strftime(filename, 30, "%Y-%m-%d_out.png", ptm);
    sprintf(execute_string,
            "%s -x %d -y %d -g 3 -h 0 -i 4 -j 0 -f %d-%02d-%02d -z %s",
            "../hagraph", 1800, 800, ptm->tm_year + 1900, ptm->tm_mon + 1,
            ptm->tm_mday, filename);
    if (!fileExists(filename)) {
      printf("creating %s\n", filename);
    }
    rawtime += 60 * 60 * 24;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rdi
call   1080 <time@plt>
movl   $0x67,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x30(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
lea    -0x38(%rbp),%rdi
call   1090 <mktime@plt>
mov    %rax,-0x48(%rbp)
lea    -0x50(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x40(%rbp)
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xdf0(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xdd6(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xdbf(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xdab(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xd8d(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xd72(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xd5a(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xd3d(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x14,%esi
lea    0xd23(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0x450(%rbp),%rdi
call   1040 <unlink@plt>
mov    -0x48(%rbp),%rax
cmp    -0x50(%rbp),%rax
jge    1908 <main+0x778>
lea    -0x48(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x40(%rbp)
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0xc6d(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
lea    -0x450(%rbp),%rax
lea    0xcc9(%rip),%rsi
lea    0xcf1(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %rax,(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    140c <main+0x27c>
lea    -0x450(%rbp),%rsi
lea    0xcc3(%rip),%rdi
call   1070 <printf@plt>
lea    -0xc50(%rbp),%rdi
call   1060 <system@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0xbeb(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%r10d
add    $0x1,%r10d
lea    -0x450(%rbp),%rax
lea    0xc74(%rip),%rsi
lea    0xc55(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    14ad <main+0x31d>
lea    -0x450(%rbp),%rsi
lea    0xc22(%rip),%rdi
call   1070 <printf@plt>
lea    -0xc50(%rbp),%rdi
call   1060 <system@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0xb5b(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%r11d
add    $0x1,%r11d
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%r10d
lea    -0x450(%rbp),%rax
lea    0xbff(%rip),%rsi
lea    0xbac(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    154f <main+0x3bf>
lea    -0x450(%rbp),%rsi
lea    0xb74(%rip),%rdi
call   1070 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0xacd(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
lea    -0x450(%rbp),%rax
lea    0xbaa(%rip),%rsi
lea    0xb1e(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %rax,(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    15df <main+0x44f>
lea    -0x450(%rbp),%rsi
lea    0xaf0(%rip),%rdi
call   1070 <printf@plt>
lea    -0xc50(%rbp),%rdi
call   1060 <system@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0xa47(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%r10d
add    $0x1,%r10d
lea    -0x450(%rbp),%rax
lea    0xb51(%rip),%rsi
lea    0xa82(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    1680 <main+0x4f0>
lea    -0x450(%rbp),%rsi
lea    0xa4f(%rip),%rdi
call   1070 <printf@plt>
lea    -0xc50(%rbp),%rdi
call   1060 <system@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0x9b3(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%r11d
add    $0x1,%r11d
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%r10d
lea    -0x450(%rbp),%rax
lea    0xaf0(%rip),%rsi
lea    0x9d9(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    1722 <main+0x592>
lea    -0x450(%rbp),%rsi
lea    0x9a1(%rip),%rdi
call   1070 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0x921(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
lea    -0x450(%rbp),%rax
lea    0xaaf(%rip),%rsi
lea    0x94b(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %rax,(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    17b2 <main+0x622>
lea    -0x450(%rbp),%rsi
lea    0x91d(%rip),%rdi
call   1070 <printf@plt>
lea    -0xc50(%rbp),%rdi
call   1060 <system@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0x89c(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%r10d
add    $0x1,%r10d
lea    -0x450(%rbp),%rax
lea    0xa42(%rip),%rsi
lea    0x8af(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    1853 <main+0x6c3>
lea    -0x450(%rbp),%rsi
lea    0x87c(%rip),%rdi
call   1070 <printf@plt>
lea    -0xc50(%rbp),%rdi
call   1060 <system@plt>
lea    -0x450(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x1e,%esi
lea    0x809(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xc50(%rbp),%rdi
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
add    $0x76c,%r9d
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%r11d
add    $0x1,%r11d
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%r10d
lea    -0x450(%rbp),%rax
lea    0x9cd(%rip),%rsi
lea    0x806(%rip),%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x450(%rbp),%rdi
call   1050 <fileExists@plt>
cmp    $0x0,%eax
jne    18f5 <main+0x765>
lea    -0x450(%rbp),%rsi
lea    0x7ce(%rip),%rdi
call   1070 <printf@plt>
mov    -0x48(%rbp),%rax
add    $0x15180,%rax
mov    %rax,-0x48(%rbp)
jmp    1361 <main+0x1d1>
xor    %eax,%eax
add    $0xc70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc48,%rsp
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1080 <time@plt>
movq   $0x67,0x18(%rsp)
movl   $0x1,0x20(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x28(%rsp)
movq   $0x0,0x38(%rsp)
lea    0x18(%rsp),%rdi
call   1090 <mktime@plt>
mov    %rax,%r14
mov    %rax,0x8(%rsp)
mov    %rbx,%rdi
call   1030 <localtime@plt>
mov    %rax,%rbp
lea    0xe0c(%rip),%rdx
lea    0x40(%rsp),%r12
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rax,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xdf6(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xde8(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xddd(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xdc8(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xdb6(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xda7(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xd93(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
lea    0xd82(%rip),%rdx
mov    %r12,%rdi
mov    $0x14,%esi
mov    %rbp,%rcx
call   10a0 <strftime@plt>
mov    %r12,%rdi
call   1040 <unlink@plt>
cmp    0x10(%rsp),%r14
jge    1754 <main+0x5c4>
mov    $0x76c,%ebx
lea    0xd93(%rip),%r13
lea    0x440(%rsp),%r14
jmp    1352 <main+0x1c2>
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rax
mov    $0x15180,%ecx
add    %rcx,%rax
mov    %rax,0x8(%rsp)
cmp    0x10(%rsp),%rax
mov    $0x76c,%ebx
jge    1754 <main+0x5c4>
lea    0x8(%rsp),%rdi
call   1030 <localtime@plt>
mov    %rax,%r15
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xc92(%rip),%rdx
mov    %rax,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %ebx,%r9d
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xcfa(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
call   10b0 <sprintf@plt>
add    $0x10,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    13c8 <main+0x238>
lea    0xd06(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %r14,%rdi
call   1060 <system@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xc37(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %ebx,%r9d
mov    0x4(%r15),%ebp
add    $0x1,%ebp
mov    %r14,%rdi
lea    0xcd5(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
push   %rbp
call   10b0 <sprintf@plt>
add    $0x10,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    1435 <main+0x2a5>
lea    0xc99(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %r14,%rdi
call   1060 <system@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xbdb(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %ebx,%r9d
mov    0x4(%r15),%ebp
mov    0x8(%r15),%ebx
add    $0x1,%ebp
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xc94(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
push   %rbx
push   %rbp
call   10b0 <sprintf@plt>
add    $0x20,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    14a3 <main+0x313>
lea    0xc23(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xb81(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
mov    $0x76c,%eax
add    %eax,%r9d
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xc65(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
call   10b0 <sprintf@plt>
add    $0x10,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
mov    $0x76c,%ebp
mov    %r14,%rbx
jne    1519 <main+0x389>
lea    0xbb5(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xb15(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %ebp,%r9d
mov    $0x76c,%r14d
mov    0x4(%r15),%ebp
add    $0x1,%ebp
mov    %rbx,%rdi
lea    0xc2e(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
push   %rbp
call   10b0 <sprintf@plt>
add    $0x10,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    158c <main+0x3fc>
lea    0xb42(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xaaf(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %r14d,%r9d
mov    0x4(%r15),%ebp
mov    %rbx,%r14
mov    0x8(%r15),%ebx
add    $0x1,%ebp
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xbfe(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
push   %rbx
push   %rbp
call   10b0 <sprintf@plt>
add    $0x20,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    15fd <main+0x46d>
lea    0xac9(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0xa4e(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
mov    $0x76c,%eax
add    %eax,%r9d
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xbe3(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
call   10b0 <sprintf@plt>
add    $0x10,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
mov    $0x76c,%ebx
jne    1670 <main+0x4e0>
lea    0xa5e(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %r14,%rdi
call   1060 <system@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0x9e6(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %ebx,%r9d
mov    0x4(%r15),%ebp
add    $0x1,%ebp
mov    %r14,%rdi
lea    0xba1(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
push   %rbp
call   10b0 <sprintf@plt>
add    $0x10,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    16dd <main+0x54d>
lea    0x9f1(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
mov    %r14,%rdi
call   1060 <system@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
lea    0x987(%rip),%rdx
mov    %r15,%rcx
call   10a0 <strftime@plt>
mov    (%r15),%r9d
add    %ebx,%r9d
mov    0x4(%r15),%ebp
mov    0x8(%r15),%ebx
add    $0x1,%ebp
sub    $0x8,%rsp
mov    %r14,%rdi
lea    0xb60(%rip),%rsi
mov    %r13,%rdx
mov    $0x708,%ecx
mov    $0x320,%r8d
xor    %eax,%eax
push   %r12
push   %rbx
push   %rbp
call   10b0 <sprintf@plt>
add    $0x20,%rsp
mov    %r12,%rdi
call   1050 <fileExists@plt>
test   %eax,%eax
jne    1330 <main+0x1a0>
lea    0x977(%rip),%rdi
mov    %r12,%rsi
call   1070 <printf@plt>
jmp    1330 <main+0x1a0>
xor    %eax,%eax
add    $0xc48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i64, i64, i64 }
@.str = [14 x i8] c"%Y_bochum.png\00"
@.str.1 = [17 x i8] c"%Y-%m_bochum.png\00"
@.str.2 = [20 x i8] c"%Y-%m-%d_bochum.png\00"
@.str.3 = [10 x i8] c"%Y_oe.png\00"
@.str.4 = [13 x i8] c"%Y-%m_oe.png\00"
@.str.5 = [16 x i8] c"%Y-%m-%d_oe.png\00"
@.str.6 = [11 x i8] c"%Y_out.png\00"
@.str.7 = [14 x i8] c"%Y-%m_out.png\00"
@.str.8 = [17 x i8] c"%Y-%m-%d_out.png\00"
@.str.9 = [47 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d -z %s\00"
@.str.10 = [11 x i8] c"../hagraph\00"
@.str.11 = [13 x i8] c"creating %s\0A\00"
@.str.12 = [52 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d-%02d -z %s\00"
@.str.13 = [57 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d-%02d-%02d -z %s\00"
@.str.14 = [67 x i8] c"%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d -z %s\00"
@.str.15 = [72 x i8] c"%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d-%02d -z %s\00"
@.str.16 = [77 x i8] c"%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d-%02d-%02d -z %s\00"
@.str.17 = [47 x i8] c"%s -x %d -y %d -g 3 -h 1 -i 4 -j 0 -f %d -z %s\00"
@.str.18 = [52 x i8] c"%s -x %d -y %d -g 3 -h 1 -i 4 -j 0 -f %d-%02d -z %s\00"
@.str.19 = [57 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 4 -j 0 -f %d-%02d-%02d -z %s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.tm
%7 = alloca %struct.tm*
%8 = alloca i64
%9 = alloca i64
%10 = alloca [1024 x i8]
%11 = alloca [2048 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = call i32 @time(i64* %9)
%13 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 0
store i32 103, i32* %13
%14 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 1
store i32 0, i32* %14
%15 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 2
store i32 1, i32* %15
%16 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 5
store i64 0, i64* %16
%17 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 4
store i64 0, i64* %17
%18 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 3
store i64 0, i64* %18
%19 = call i64 @mktime(%struct.tm* %6)
store i64 %19, i64* %8
%20 = call %struct.tm* @localtime(i64* %9)
store %struct.tm* %20, %struct.tm** %7
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%22 = load %struct.tm*, %struct.tm** %7
%23 = call i32 @strftime(i8* %21, i32 20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %struct.tm* %22)
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%25 = call i32 @unlink(i8* %24)
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%27 = load %struct.tm*, %struct.tm** %7
%28 = call i32 @strftime(i8* %26, i32 20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %27)
%29 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%30 = call i32 @unlink(i8* %29)
%31 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%32 = load %struct.tm*, %struct.tm** %7
%33 = call i32 @strftime(i8* %31, i32 20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %32)
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%35 = call i32 @unlink(i8* %34)
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%37 = load %struct.tm*, %struct.tm** %7
%38 = call i32 @strftime(i8* %36, i32 20, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %37)
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%40 = call i32 @unlink(i8* %39)
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%42 = load %struct.tm*, %struct.tm** %7
%43 = call i32 @strftime(i8* %41, i32 20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %42)
%44 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%45 = call i32 @unlink(i8* %44)
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%47 = load %struct.tm*, %struct.tm** %7
%48 = call i32 @strftime(i8* %46, i32 20, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %47)
%49 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%50 = call i32 @unlink(i8* %49)
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%52 = load %struct.tm*, %struct.tm** %7
%53 = call i32 @strftime(i8* %51, i32 20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %52)
%54 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%55 = call i32 @unlink(i8* %54)
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%57 = load %struct.tm*, %struct.tm** %7
%58 = call i32 @strftime(i8* %56, i32 20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %57)
%59 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%60 = call i32 @unlink(i8* %59)
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%62 = load %struct.tm*, %struct.tm** %7
%63 = call i32 @strftime(i8* %61, i32 20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %62)
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%65 = call i32 @unlink(i8* %64)
br label %66
66: ; preds = %269, %2
%67 = load i64, i64* %8
%68 = load i64, i64* %9
%69 = icmp slt i64 %67, %68
br i1 %69, label %70, label %272
70: ; preds = %66
%71 = call %struct.tm* @localtime(i64* %8)
store %struct.tm* %71, %struct.tm** %7
%72 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%73 = load %struct.tm*, %struct.tm** %7
%74 = call i32 @strftime(i8* %72, i32 30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %struct.tm* %73)
%75 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%76 = load %struct.tm*, %struct.tm** %7
%77 = getelementptr inbounds %struct.tm, %struct.tm* %76, i32 0, i32 0
%78 = load i32, i32* %77
%79 = add nsw i32 %78, 1900
%80 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%81 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %75, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %79, i8* %80)
%82 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%83 = call i32 @fileExists(i8* %82)
%84 = icmp ne i32 %83, 0
br i1 %84, label %90, label %85
85: ; preds = %70
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%87 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %86)
%88 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%89 = call i32 @system(i8* %88)
br label %90
90: ; preds = %85, %70
%91 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%92 = load %struct.tm*, %struct.tm** %7
%93 = call i32 @strftime(i8* %91, i32 30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %92)
%94 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%95 = load %struct.tm*, %struct.tm** %7
%96 = getelementptr inbounds %struct.tm, %struct.tm* %95, i32 0, i32 0
%97 = load i32, i32* %96
%98 = add nsw i32 %97, 1900
%99 = load %struct.tm*, %struct.tm** %7
%100 = getelementptr inbounds %struct.tm, %struct.tm* %99, i32 0, i32 1
%101 = load i32, i32* %100
%102 = add nsw i32 %101, 1
%103 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%104 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %94, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %98, i32 %102, i8* %103)
%105 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%106 = call i32 @fileExists(i8* %105)
%107 = icmp ne i32 %106, 0
br i1 %107, label %113, label %108
108: ; preds = %90
%109 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%110 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %109)
%111 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%112 = call i32 @system(i8* %111)
br label %113
113: ; preds = %108, %90
%114 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%115 = load %struct.tm*, %struct.tm** %7
%116 = call i32 @strftime(i8* %114, i32 30, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %115)
%117 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%118 = load %struct.tm*, %struct.tm** %7
%119 = getelementptr inbounds %struct.tm, %struct.tm* %118, i32 0, i32 0
%120 = load i32, i32* %119
%121 = add nsw i32 %120, 1900
%122 = load %struct.tm*, %struct.tm** %7
%123 = getelementptr inbounds %struct.tm, %struct.tm* %122, i32 0, i32 1
%124 = load i32, i32* %123
%125 = add nsw i32 %124, 1
%126 = load %struct.tm*, %struct.tm** %7
%127 = getelementptr inbounds %struct.tm, %struct.tm* %126, i32 0, i32 2
%128 = load i32, i32* %127
%129 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%130 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %117, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %121, i32 %125, i32 %128, i8* %129)
%131 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%132 = call i32 @fileExists(i8* %131)
%133 = icmp ne i32 %132, 0
br i1 %133, label %137, label %134
134: ; preds = %113
%135 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%136 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %135)
br label %137
137: ; preds = %134, %113
%138 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%139 = load %struct.tm*, %struct.tm** %7
%140 = call i32 @strftime(i8* %138, i32 30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %139)
%141 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%142 = load %struct.tm*, %struct.tm** %7
%143 = getelementptr inbounds %struct.tm, %struct.tm* %142, i32 0, i32 0
%144 = load i32, i32* %143
%145 = add nsw i32 %144, 1900
%146 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%147 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %141, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %145, i8* %146)
%148 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%149 = call i32 @fileExists(i8* %148)
%150 = icmp ne i32 %149, 0
br i1 %150, label %156, label %151
151: ; preds = %137
%152 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%153 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %152)
%154 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%155 = call i32 @system(i8* %154)
br label %156
156: ; preds = %151, %137
%157 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%158 = load %struct.tm*, %struct.tm** %7
%159 = call i32 @strftime(i8* %157, i32 30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %158)
%160 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%161 = load %struct.tm*, %struct.tm** %7
%162 = getelementptr inbounds %struct.tm, %struct.tm* %161, i32 0, i32 0
%163 = load i32, i32* %162
%164 = add nsw i32 %163, 1900
%165 = load %struct.tm*, %struct.tm** %7
%166 = getelementptr inbounds %struct.tm, %struct.tm* %165, i32 0, i32 1
%167 = load i32, i32* %166
%168 = add nsw i32 %167, 1
%169 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%170 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %160, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %164, i32 %168, i8* %169)
%171 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%172 = call i32 @fileExists(i8* %171)
%173 = icmp ne i32 %172, 0
br i1 %173, label %179, label %174
174: ; preds = %156
%175 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%176 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %175)
%177 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%178 = call i32 @system(i8* %177)
br label %179
179: ; preds = %174, %156
%180 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%181 = load %struct.tm*, %struct.tm** %7
%182 = call i32 @strftime(i8* %180, i32 30, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %181)
%183 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%184 = load %struct.tm*, %struct.tm** %7
%185 = getelementptr inbounds %struct.tm, %struct.tm* %184, i32 0, i32 0
%186 = load i32, i32* %185
%187 = add nsw i32 %186, 1900
%188 = load %struct.tm*, %struct.tm** %7
%189 = getelementptr inbounds %struct.tm, %struct.tm* %188, i32 0, i32 1
%190 = load i32, i32* %189
%191 = add nsw i32 %190, 1
%192 = load %struct.tm*, %struct.tm** %7
%193 = getelementptr inbounds %struct.tm, %struct.tm* %192, i32 0, i32 2
%194 = load i32, i32* %193
%195 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%196 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %183, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %187, i32 %191, i32 %194, i8* %195)
%197 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%198 = call i32 @fileExists(i8* %197)
%199 = icmp ne i32 %198, 0
br i1 %199, label %203, label %200
200: ; preds = %179
%201 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%202 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %201)
br label %203
203: ; preds = %200, %179
%204 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%205 = load %struct.tm*, %struct.tm** %7
%206 = call i32 @strftime(i8* %204, i32 30, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %205)
%207 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%208 = load %struct.tm*, %struct.tm** %7
%209 = getelementptr inbounds %struct.tm, %struct.tm* %208, i32 0, i32 0
%210 = load i32, i32* %209
%211 = add nsw i32 %210, 1900
%212 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%213 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %207, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %211, i8* %212)
%214 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%215 = call i32 @fileExists(i8* %214)
%216 = icmp ne i32 %215, 0
br i1 %216, label %222, label %217
217: ; preds = %203
%218 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%219 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %218)
%220 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%221 = call i32 @system(i8* %220)
br label %222
222: ; preds = %217, %203
%223 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%224 = load %struct.tm*, %struct.tm** %7
%225 = call i32 @strftime(i8* %223, i32 30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %224)
%226 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%227 = load %struct.tm*, %struct.tm** %7
%228 = getelementptr inbounds %struct.tm, %struct.tm* %227, i32 0, i32 0
%229 = load i32, i32* %228
%230 = add nsw i32 %229, 1900
%231 = load %struct.tm*, %struct.tm** %7
%232 = getelementptr inbounds %struct.tm, %struct.tm* %231, i32 0, i32 1
%233 = load i32, i32* %232
%234 = add nsw i32 %233, 1
%235 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%236 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %226, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %230, i32 %234, i8* %235)
%237 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%238 = call i32 @fileExists(i8* %237)
%239 = icmp ne i32 %238, 0
br i1 %239, label %245, label %240
240: ; preds = %222
%241 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%242 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %241)
%243 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%244 = call i32 @system(i8* %243)
br label %245
245: ; preds = %240, %222
%246 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%247 = load %struct.tm*, %struct.tm** %7
%248 = call i32 @strftime(i8* %246, i32 30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %247)
%249 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%250 = load %struct.tm*, %struct.tm** %7
%251 = getelementptr inbounds %struct.tm, %struct.tm* %250, i32 0, i32 0
%252 = load i32, i32* %251
%253 = add nsw i32 %252, 1900
%254 = load %struct.tm*, %struct.tm** %7
%255 = getelementptr inbounds %struct.tm, %struct.tm* %254, i32 0, i32 1
%256 = load i32, i32* %255
%257 = add nsw i32 %256, 1
%258 = load %struct.tm*, %struct.tm** %7
%259 = getelementptr inbounds %struct.tm, %struct.tm* %258, i32 0, i32 2
%260 = load i32, i32* %259
%261 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%262 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %249, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %253, i32 %257, i32 %260, i8* %261)
%263 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%264 = call i32 @fileExists(i8* %263)
%265 = icmp ne i32 %264, 0
br i1 %265, label %269, label %266
266: ; preds = %245
%267 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%268 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %267)
br label %269
269: ; preds = %266, %245
%270 = load i64, i64* %8
%271 = add nsw i64 %270, 86400
store i64 %271, i64* %8
br label %66
272: ; preds = %66
ret i32 0
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i64, i64, i64 }
@.str = [14 x i8] c"%Y_bochum.png\00"
@.str.1 = [17 x i8] c"%Y-%m_bochum.png\00"
@.str.2 = [20 x i8] c"%Y-%m-%d_bochum.png\00"
@.str.3 = [10 x i8] c"%Y_oe.png\00"
@.str.4 = [13 x i8] c"%Y-%m_oe.png\00"
@.str.5 = [16 x i8] c"%Y-%m-%d_oe.png\00"
@.str.6 = [11 x i8] c"%Y_out.png\00"
@.str.7 = [14 x i8] c"%Y-%m_out.png\00"
@.str.8 = [17 x i8] c"%Y-%m-%d_out.png\00"
@.str.9 = [47 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d -z %s\00"
@.str.10 = [11 x i8] c"../hagraph\00"
@.str.11 = [13 x i8] c"creating %s\0A\00"
@.str.12 = [52 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d-%02d -z %s\00"
@.str.13 = [57 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 3 -j 1 -f %d-%02d-%02d -z %s\00"
@.str.14 = [67 x i8] c"%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d -z %s\00"
@.str.15 = [72 x i8] c"%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d-%02d -z %s\00"
@.str.16 = [77 x i8] c"%s -x %d -y %d -g 2 -h 0 -i 2 -j 1 -k 4 -l 0 -m 4 -n 1 -f %d-%02d-%02d -z %s\00"
@.str.17 = [47 x i8] c"%s -x %d -y %d -g 3 -h 1 -i 4 -j 0 -f %d -z %s\00"
@.str.18 = [52 x i8] c"%s -x %d -y %d -g 3 -h 1 -i 4 -j 0 -f %d-%02d -z %s\00"
@.str.19 = [57 x i8] c"%s -x %d -y %d -g 3 -h 0 -i 4 -j 0 -f %d-%02d-%02d -z %s\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.tm
%4 = alloca i64
%5 = alloca i64
%6 = alloca [1024 x i8]
%7 = alloca [2048 x i8]
%8 = bitcast %struct.tm* %3 to i8*
%9 = bitcast i64* %4 to i8*
%10 = bitcast i64* %5 to i8*
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [2048 x i8], [2048 x i8]* %7, i64 0, i64 0
%13 = call i32 @time(i64* %5)
%14 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 0
store i32 103, i32* %14
%15 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 1
store i32 0, i32* %15
%16 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 2
store i32 1, i32* %16
%17 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 3
%18 = bitcast i64* %17 to i8*
%19 = call i64 @mktime(%struct.tm* %3)
store i64 %19, i64* %4
%20 = call %struct.tm* @localtime(i64* %5)
%21 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %struct.tm* %20)
%22 = call i32 @unlink(i8* %11)
%23 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %20)
%24 = call i32 @unlink(i8* %11)
%25 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %20)
%26 = call i32 @unlink(i8* %11)
%27 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %20)
%28 = call i32 @unlink(i8* %11)
%29 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %20)
%30 = call i32 @unlink(i8* %11)
%31 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %20)
%32 = call i32 @unlink(i8* %11)
%33 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %20)
%34 = call i32 @unlink(i8* %11)
%35 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %20)
%36 = call i32 @unlink(i8* %11)
%37 = call i32 @strftime(i8* %11, i32 20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %20)
%38 = call i32 @unlink(i8* %11)
%39 = load i64, i64* %5
%40 = icmp slt i64 %19, %39
br i1 %40, label %41, label %152
41: ; preds = %2, %147
%42 = call %struct.tm* @localtime(i64* %4)
%43 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %struct.tm* %42)
%44 = getelementptr inbounds %struct.tm, %struct.tm* %42, i64 0, i32 0
%45 = load i32, i32* %44
%46 = add nsw i32 %45, 1900
%47 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %46, i8* %11)
%48 = call i32 @fileExists(i8* %11)
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %41
%51 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%52 = call i32 @system(i8* %12)
br label %53
53: ; preds = %50, %41
%54 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %42)
%55 = load i32, i32* %44
%56 = add nsw i32 %55, 1900
%57 = getelementptr inbounds %struct.tm, %struct.tm* %42, i64 0, i32 1
%58 = load i32, i32* %57
%59 = add nsw i32 %58, 1
%60 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %56, i32 %59, i8* %11)
%61 = call i32 @fileExists(i8* %11)
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %53
%64 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%65 = call i32 @system(i8* %12)
br label %66
66: ; preds = %63, %53
%67 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %42)
%68 = load i32, i32* %44
%69 = add nsw i32 %68, 1900
%70 = load i32, i32* %57
%71 = add nsw i32 %70, 1
%72 = getelementptr inbounds %struct.tm, %struct.tm* %42, i64 0, i32 2
%73 = load i32, i32* %72
%74 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %69, i32 %71, i32 %73, i8* %11)
%75 = call i32 @fileExists(i8* %11)
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %66
%78 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
br label %79
79: ; preds = %77, %66
%80 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %42)
%81 = load i32, i32* %44
%82 = add nsw i32 %81, 1900
%83 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %82, i8* %11)
%84 = call i32 @fileExists(i8* %11)
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %79
%87 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%88 = call i32 @system(i8* %12)
br label %89
89: ; preds = %86, %79
%90 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %42)
%91 = load i32, i32* %44
%92 = add nsw i32 %91, 1900
%93 = load i32, i32* %57
%94 = add nsw i32 %93, 1
%95 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %92, i32 %94, i8* %11)
%96 = call i32 @fileExists(i8* %11)
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %89
%99 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%100 = call i32 @system(i8* %12)
br label %101
101: ; preds = %98, %89
%102 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %42)
%103 = load i32, i32* %44
%104 = add nsw i32 %103, 1900
%105 = load i32, i32* %57
%106 = add nsw i32 %105, 1
%107 = load i32, i32* %72
%108 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %104, i32 %106, i32 %107, i8* %11)
%109 = call i32 @fileExists(i8* %11)
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %101
%112 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
br label %113
113: ; preds = %111, %101
%114 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %42)
%115 = load i32, i32* %44
%116 = add nsw i32 %115, 1900
%117 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %116, i8* %11)
%118 = call i32 @fileExists(i8* %11)
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %113
%121 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%122 = call i32 @system(i8* %12)
br label %123
123: ; preds = %120, %113
%124 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %42)
%125 = load i32, i32* %44
%126 = add nsw i32 %125, 1900
%127 = load i32, i32* %57
%128 = add nsw i32 %127, 1
%129 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %126, i32 %128, i8* %11)
%130 = call i32 @fileExists(i8* %11)
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %135
132: ; preds = %123
%133 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
%134 = call i32 @system(i8* %12)
br label %135
135: ; preds = %132, %123
%136 = call i32 @strftime(i8* %11, i32 30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %42)
%137 = load i32, i32* %44
%138 = add nsw i32 %137, 1900
%139 = load i32, i32* %57
%140 = add nsw i32 %139, 1
%141 = load i32, i32* %72
%142 = call i32 (i8*, i8*, i8*, i32, i32, i32, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 1800, i32 800, i32 %138, i32 %140, i32 %141, i8* %11)
%143 = call i32 @fileExists(i8* %11)
%144 = icmp eq i32 %143, 0
br i1 %144, label %145, label %147
145: ; preds = %135
%146 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %11)
br label %147
147: ; preds = %145, %135
%148 = load i64, i64* %4
%149 = add nsw i64 %148, 86400
store i64 %149, i64* %4
%150 = load i64, i64* %5
%151 = icmp slt i64 %149, %150
br i1 %151, label %41, label %152
152: ; preds = %147, %2
ret i32 0
}