#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_year;
  int tm_mon;
  int /*<<< orphan*/ tm_mday;
  scalar_t__ tm_sec;
  scalar_t__ tm_min;
};

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ memcpy(struct tm *, struct tm *, int);
int /*<<< orphan*/ mktime(struct tm *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ processFile(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  int i;
  time_t t = time(NULL);
  struct tm now = *localtime(&t);
  struct tm yesterday;
  struct tm daybefore;
  if (argc < 2) {
    printf("Bad args\n");
    return 99;
  }
  memcpy(&yesterday, &now, sizeof(struct tm));
  yesterday.tm_mday--;
  yesterday.tm_min = 0;
  yesterday.tm_sec = 0;
  mktime(&yesterday);
  memcpy(&daybefore, &yesterday, sizeof(struct tm));
  daybefore.tm_mday--;
  mktime(&daybefore);
  if (!strcmp(argv[1], "day")) {
    char daybeforeFile[13];
    char yesterdayFile[13];
    char todayFile[13];
    sprintf(daybeforeFile, "%04d%02d%02d.bin", daybefore.tm_year + 1900,
            daybefore.tm_mon + 1, daybefore.tm_mday);
    if (!processFile(daybeforeFile, 0)) {
      fprintf(stderr, "WARNING: ERROR PROCESSING %s\n", daybeforeFile);
    }
    sprintf(yesterdayFile, "%04d%02d%02d.bin", yesterday.tm_year + 1900,
            yesterday.tm_mon + 1, yesterday.tm_mday);
    if (!processFile(yesterdayFile, 0)) {
      fprintf(stderr, "WARNING: ERROR PROCESSING %s\n", yesterdayFile);
      return 99;
    }
    sprintf(todayFile, "%04d%02d%02d.bin", now.tm_year + 1900, now.tm_mon + 1,
            now.tm_mday);
    if (!processFile(todayFile, "now.txt")) {
      fprintf(stderr, "WARNING: ERROR PROCESSING %s\n", todayFile);
      return 99;
    }
  } else {
    for (i = 1; i < argc; i++) {
      if (!processFile(argv[i], 0)) {
        fprintf(stderr, "WARNING: ERROR PROCESSING %s\n", argv[i]);
        return 99;
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,-0x18(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <localtime@plt>
mov    (%rax),%rcx
mov    %rcx,-0x38(%rbp)
mov    0x8(%rax),%rcx
mov    %rcx,-0x30(%rbp)
mov    0x10(%rax),%rcx
mov    %rcx,-0x28(%rbp)
mov    0x18(%rax),%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11ff <main+0x6f>
lea    0xe12(%rip),%rdi
call   1040 <printf@plt>
movl   $0x63,-0x4(%rbp)
jmp    1422 <main+0x292>
lea    -0x58(%rbp),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
mov    -0x50(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x50(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
lea    -0x58(%rbp),%rdi
call   10a0 <mktime@plt>
lea    -0x78(%rbp),%rdi
lea    -0x58(%rbp),%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
mov    -0x70(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x70(%rbp)
lea    -0x78(%rbp),%rdi
call   10a0 <mktime@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xda4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13a5 <main+0x215>
lea    -0x85(%rbp),%rdi
mov    -0x78(%rbp),%edx
add    $0x76c,%edx
mov    -0x74(%rbp),%ecx
add    $0x1,%ecx
mov    -0x70(%rbp),%r8d
lea    0xd79(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x85(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <processFile@plt>
cmp    $0x0,%eax
jne    12cf <main+0x13f>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    -0x85(%rbp),%rdx
lea    0xd55(%rip),%rsi
call   1070 <fprintf@plt>
lea    -0x92(%rbp),%rdi
mov    -0x58(%rbp),%edx
add    $0x76c,%edx
mov    -0x54(%rbp),%ecx
add    $0x1,%ecx
mov    -0x50(%rbp),%r8d
lea    0xd1e(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x92(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <processFile@plt>
cmp    $0x0,%eax
jne    1336 <main+0x1a6>
mov    0x2ccb(%rip),%rax
mov    (%rax),%edi
lea    -0x92(%rbp),%rdx
lea    0xcfa(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x63,-0x4(%rbp)
jmp    1422 <main+0x292>
lea    -0x9f(%rbp),%rdi
mov    -0x38(%rbp),%edx
add    $0x76c,%edx
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
mov    -0x30(%rbp),%r8d
lea    0xcb7(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x9f(%rbp),%rdi
lea    0xcd3(%rip),%rsi
call   1050 <processFile@plt>
cmp    $0x0,%eax
jne    13a0 <main+0x210>
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
lea    -0x9f(%rbp),%rdx
lea    0xc90(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x63,-0x4(%rbp)
jmp    1422 <main+0x292>
jmp    141b <main+0x28b>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1416 <main+0x286>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <processFile@plt>
cmp    $0x0,%eax
jne    1403 <main+0x273>
mov    0x2c03(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc2d(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x63,-0x4(%rbp)
jmp    1422 <main+0x292>
jmp    1408 <main+0x278>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13ac <main+0x21c>
jmp    141b <main+0x28b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xa0,%rsp
mov    %rsi,%r12
mov    %edi,%r14d
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
movups (%rax),%xmm0
movups 0x10(%rax),%xmm1
movaps %xmm0,0x10(%rsp)
movaps %xmm1,0x20(%rsp)
cmp    $0x1,%r14d
jg     11e2 <main+0x52>
lea    0xe63(%rip),%rdi
call   1040 <puts@plt>
jmp    1398 <main+0x208>
lea    0x38(%rsp),%rbp
lea    0x10(%rsp),%rsi
mov    %rbp,%rdi
mov    $0x20,%edx
call   1080 <memcpy@plt>
addl   $0xffffffff,0x40(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x48(%rsp)
mov    %rbp,%rdi
call   10a0 <mktime@plt>
lea    0x58(%rsp),%r15
mov    %r15,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
addl   $0xffffffff,0x60(%rsp)
mov    %r15,%rdi
call   10a0 <mktime@plt>
mov    0x8(%r12),%rbp
lea    0xdc4(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1297 <main+0x107>
mov    %rbp,%rdi
xor    %esi,%esi
call   1050 <processFile@plt>
test   %eax,%eax
je     1365 <main+0x1d5>
mov    %r14d,%eax
mov    $0x2,%ebx
sub    %rax,%rbx
mov    $0x1,%ebp
xor    %r14d,%r14d
nopl   (%rax)
lea    (%rbx,%rbp,1),%rax
cmp    $0x1,%rax
je     139e <main+0x20e>
mov    0x8(%r12,%rbp,8),%rdi
xor    %esi,%esi
call   1050 <processFile@plt>
add    $0x1,%rbp
test   %eax,%eax
jne    1270 <main+0xe0>
jmp    136a <main+0x1da>
mov    $0x76c,%ebp
mov    0x58(%rsp),%edx
add    %ebp,%edx
mov    0x5c(%rsp),%ecx
mov    0x60(%rsp),%r8d
add    $0x1,%ecx
lea    0xd4f(%rip),%rsi
lea    0x79(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <processFile@plt>
test   %eax,%eax
jne    12ea <main+0x15a>
mov    0x2d09(%rip),%rax
mov    (%rax),%edi
lea    0xd35(%rip),%rsi
lea    0x79(%rsp),%rdx
call   1070 <fprintf@plt>
add    0x38(%rsp),%ebp
lea    0x93(%rsp),%rbx
mov    0x3c(%rsp),%ecx
mov    0x40(%rsp),%r8d
add    $0x1,%ecx
lea    0xcfb(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   10b0 <sprintf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <processFile@plt>
test   %eax,%eax
je     1380 <main+0x1f0>
mov    $0x76c,%edx
add    0x10(%rsp),%edx
lea    0x86(%rsp),%rbx
mov    0x14(%rsp),%ecx
mov    0x18(%rsp),%r8d
add    $0x1,%ecx
lea    0xcbf(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <sprintf@plt>
lea    0xcdf(%rip),%rsi
mov    %rbx,%rdi
call   1050 <processFile@plt>
test   %eax,%eax
je     1380 <main+0x1f0>
xor    %r14d,%r14d
jmp    139e <main+0x20e>
mov    $0x1,%ebp
mov    0x2c6f(%rip),%rax
mov    (%rax),%edi
mov    (%r12,%rbp,8),%rdx
lea    0xc97(%rip),%rsi
jmp    1393 <main+0x203>
mov    0x2c59(%rip),%rax
mov    (%rax),%edi
lea    0xc85(%rip),%rsi
mov    %rbx,%rdx
call   1070 <fprintf@plt>
mov    $0x63,%r14d
mov    %r14d,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i64, i64 }
@.str = [10 x i8] c"Bad args\0A\00"
@.str.1 = [4 x i8] c"day\00"
@.str.2 = [17 x i8] c"%04d%02d%02d.bin\00"
@stderr = global i32 0
@.str.3 = [30 x i8] c"WARNING: ERROR PROCESSING %s\0A\00"
@.str.4 = [8 x i8] c"now.txt\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.tm
%9 = alloca %struct.tm
%10 = alloca %struct.tm
%11 = alloca [13 x i8]
%12 = alloca [13 x i8]
%13 = alloca [13 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = call i32 @time(i32* null)
store i32 %14, i32* %7
%15 = call %struct.tm* @localtime(i32* %7)
%16 = bitcast %struct.tm* %8 to i8*
%17 = bitcast %struct.tm* %15 to i8*
%18 = load i32, i32* %4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i32 99, i32* %3
br label %122
22: ; preds = %2
%23 = call i32 @memcpy(%struct.tm* %9, %struct.tm* %8, i32 32)
%24 = getelementptr inbounds %struct.tm, %struct.tm* %9, i32 0, i32 2
%25 = load i32, i32* %24
%26 = add nsw i32 %25, -1
store i32 %26, i32* %24
%27 = getelementptr inbounds %struct.tm, %struct.tm* %9, i32 0, i32 4
store i64 0, i64* %27
%28 = getelementptr inbounds %struct.tm, %struct.tm* %9, i32 0, i32 3
store i64 0, i64* %28
%29 = call i32 @mktime(%struct.tm* %9)
%30 = call i32 @memcpy(%struct.tm* %10, %struct.tm* %9, i32 32)
%31 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 2
%32 = load i32, i32* %31
%33 = add nsw i32 %32, -1
store i32 %33, i32* %31
%34 = call i32 @mktime(%struct.tm* %10)
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = call i32 @strcmp(i8* %37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%39 = icmp ne i32 %38, 0
br i1 %39, label %95, label %40
40: ; preds = %22
%41 = getelementptr inbounds [13 x i8], [13 x i8]* %11, i64 0, i64 0
%42 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 0
%43 = load i32, i32* %42
%44 = add nsw i32 %43, 1900
%45 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 1
%46 = load i32, i32* %45
%47 = add nsw i32 %46, 1
%48 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 2
%49 = load i32, i32* %48
%50 = call i32 @sprintf(i8* %41, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %44, i32 %47, i32 %49)
%51 = getelementptr inbounds [13 x i8], [13 x i8]* %11, i64 0, i64 0
%52 = call i32 @processFile(i8* %51, i8* null)
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %40
%55 = load i32, i32* @stderr
%56 = getelementptr inbounds [13 x i8], [13 x i8]* %11, i64 0, i64 0
%57 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %56)
br label %58
58: ; preds = %54, %40
%59 = getelementptr inbounds [13 x i8], [13 x i8]* %12, i64 0, i64 0
%60 = getelementptr inbounds %struct.tm, %struct.tm* %9, i32 0, i32 0
%61 = load i32, i32* %60
%62 = add nsw i32 %61, 1900
%63 = getelementptr inbounds %struct.tm, %struct.tm* %9, i32 0, i32 1
%64 = load i32, i32* %63
%65 = add nsw i32 %64, 1
%66 = getelementptr inbounds %struct.tm, %struct.tm* %9, i32 0, i32 2
%67 = load i32, i32* %66
%68 = call i32 @sprintf(i8* %59, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %62, i32 %65, i32 %67)
%69 = getelementptr inbounds [13 x i8], [13 x i8]* %12, i64 0, i64 0
%70 = call i32 @processFile(i8* %69, i8* null)
%71 = icmp ne i32 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %58
%73 = load i32, i32* @stderr
%74 = getelementptr inbounds [13 x i8], [13 x i8]* %12, i64 0, i64 0
%75 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %74)
store i32 99, i32* %3
br label %122
76: ; preds = %58
%77 = getelementptr inbounds [13 x i8], [13 x i8]* %13, i64 0, i64 0
%78 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
%79 = load i32, i32* %78
%80 = add nsw i32 %79, 1900
%81 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
%82 = load i32, i32* %81
%83 = add nsw i32 %82, 1
%84 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
%85 = load i32, i32* %84
%86 = call i32 @sprintf(i8* %77, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %80, i32 %83, i32 %85)
%87 = getelementptr inbounds [13 x i8], [13 x i8]* %13, i64 0, i64 0
%88 = call i32 @processFile(i8* %87, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%89 = icmp ne i32 %88, 0
br i1 %89, label %94, label %90
90: ; preds = %76
%91 = load i32, i32* @stderr
%92 = getelementptr inbounds [13 x i8], [13 x i8]* %13, i64 0, i64 0
%93 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %92)
store i32 99, i32* %3
br label %122
94: ; preds = %76
br label %121
95: ; preds = %22
store i32 1, i32* %6
br label %96
96: ; preds = %117, %95
%97 = load i32, i32* %6
%98 = load i32, i32* %4
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %120
100: ; preds = %96
%101 = load i8**, i8*** %5
%102 = load i32, i32* %6
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8*, i8** %101, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 @processFile(i8* %105, i8* null)
%107 = icmp ne i32 %106, 0
br i1 %107, label %116, label %108
108: ; preds = %100
%109 = load i32, i32* @stderr
%110 = load i8**, i8*** %5
%111 = load i32, i32* %6
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8*, i8** %110, i64 %112
%114 = load i8*, i8** %113
%115 = call i32 @fprintf(i32 %109, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %114)
store i32 99, i32* %3
br label %122
116: ; preds = %100
br label %117
117: ; preds = %116
%118 = load i32, i32* %6
%119 = add nsw i32 %118, 1
store i32 %119, i32* %6
br label %96
120: ; preds = %96
br label %121
121: ; preds = %120, %94
store i32 0, i32* %3
br label %122
122: ; preds = %121, %108, %90, %72, %20
%123 = load i32, i32* %3
ret i32 %123
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i64, i64 }
@.str.1 = [4 x i8] c"day\00"
@.str.2 = [17 x i8] c"%04d%02d%02d.bin\00"
@stderr = global i32 0
@.str.3 = [30 x i8] c"WARNING: ERROR PROCESSING %s\0A\00"
@.str.4 = [8 x i8] c"now.txt\00"
@str = [9 x i8] c"Bad args\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca %struct.tm
%5 = alloca %struct.tm
%6 = alloca %struct.tm
%7 = alloca [13 x i8]
%8 = alloca [13 x i8]
%9 = alloca [13 x i8]
%10 = bitcast i32* %3 to i8*
%11 = tail call i32 @time(i32* null)
store i32 %11, i32* %3
%12 = bitcast %struct.tm* %4 to i8*
%13 = call %struct.tm* @localtime(i32* %3)
%14 = bitcast %struct.tm* %13 to i8*
%15 = bitcast %struct.tm* %5 to i8*
%16 = bitcast %struct.tm* %6 to i8*
%17 = icmp slt i32 %0, 2
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %103
20: ; preds = %2
%21 = call i32 @memcpy(%struct.tm* %5, %struct.tm* %4, i32 32)
%22 = getelementptr inbounds %struct.tm, %struct.tm* %5, i64 0, i32 2
%23 = load i32, i32* %22
%24 = add nsw i32 %23, -1
store i32 %24, i32* %22
%25 = getelementptr inbounds %struct.tm, %struct.tm* %5, i64 0, i32 3
%26 = bitcast i64* %25 to i8*
%27 = call i32 @mktime(%struct.tm* %5)
%28 = call i32 @memcpy(%struct.tm* %6, %struct.tm* %5, i32 32)
%29 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 2
%30 = load i32, i32* %29
%31 = add nsw i32 %30, -1
store i32 %31, i32* %29
%32 = call i32 @mktime(%struct.tm* %6)
%33 = getelementptr inbounds i8*, i8** %1, i64 1
%34 = load i8*, i8** %33
%35 = call i32 @strcmp(i8* dereferenceable(1) %34, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %20
%38 = zext i32 %0 to i64
%39 = call i32 @processFile(i8* %34, i8* null)
%40 = icmp eq i32 %39, 0
br i1 %40, label %88, label %94
41: ; preds = %20
%42 = getelementptr inbounds [13 x i8], [13 x i8]* %7, i64 0, i64 0
%43 = getelementptr inbounds [13 x i8], [13 x i8]* %8, i64 0, i64 0
%44 = getelementptr inbounds [13 x i8], [13 x i8]* %9, i64 0, i64 0
%45 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 0
%46 = load i32, i32* %45
%47 = add nsw i32 %46, 1900
%48 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 1
%49 = load i32, i32* %48
%50 = add nsw i32 %49, 1
%51 = load i32, i32* %29
%52 = call i32 @sprintf(i8* %42, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %47, i32 %50, i32 %51)
%53 = call i32 @processFile(i8* %42, i8* null)
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %41
%56 = load i32, i32* @stderr
%57 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %42)
br label %58
58: ; preds = %55, %41
%59 = getelementptr inbounds %struct.tm, %struct.tm* %5, i64 0, i32 0
%60 = load i32, i32* %59
%61 = add nsw i32 %60, 1900
%62 = getelementptr inbounds %struct.tm, %struct.tm* %5, i64 0, i32 1
%63 = load i32, i32* %62
%64 = add nsw i32 %63, 1
%65 = load i32, i32* %22
%66 = call i32 @sprintf(i8* %43, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %61, i32 %64, i32 %65)
%67 = call i32 @processFile(i8* %43, i8* null)
%68 = icmp eq i32 %67, 0
br i1 %68, label %81, label %69
69: ; preds = %58
%70 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 0
%71 = load i32, i32* %70
%72 = add nsw i32 %71, 1900
%73 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 1
%74 = load i32, i32* %73
%75 = add nsw i32 %74, 1
%76 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 2
%77 = load i32, i32* %76
%78 = call i32 @sprintf(i8* %44, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %72, i32 %75, i32 %77)
%79 = call i32 @processFile(i8* %44, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %69, %58
%82 = phi i8* [ %43, %58 ], [ %44, %69 ]
%83 = load i32, i32* @stderr
%84 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %82)
br label %103
85: ; preds = %69
br label %103
86: ; preds = %98
%87 = and i64 %96, 4294967295
br label %88
88: ; preds = %86, %37
%89 = phi i64 [ %87, %86 ], [ 1, %37 ]
%90 = getelementptr inbounds i8*, i8** %1, i64 %89
%91 = load i32, i32* @stderr
%92 = load i8*, i8** %90
%93 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %92)
br label %103
94: ; preds = %37, %98
%95 = phi i64 [ %96, %98 ], [ 1, %37 ]
%96 = add nuw nsw i64 %95, 1
%97 = icmp eq i64 %96, %38
br i1 %97, label %103, label %98
98: ; preds = %94
%99 = getelementptr inbounds i8*, i8** %1, i64 %96
%100 = load i8*, i8** %99
%101 = call i32 @processFile(i8* %100, i8* null)
%102 = icmp eq i32 %101, 0
br i1 %102, label %86, label %94
103: ; preds = %94, %85, %81, %88, %18
%104 = phi i32 [ 99, %18 ], [ 99, %88 ], [ 99, %81 ], [ 0, %85 ], [ 0, %94 ]
ret i32 %104
}