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

/* Variables and functions */
int /*<<< orphan*/ memset(struct tm *, int /*<<< orphan*/, int);
scalar_t__ mktime(struct tm *);
int sscanf(char const *, char *, int *, int *, int *, int *, int *, int *);
int str2time2(const char *str, time_t *start, time_t *stop) {
  struct tm tmb;
  int y1, m1, d1, y2, m2, d2;
  y1 = m1 = d1 = y2 = m2 = d2 = 0;
  *start = *stop = (time_t)-1;
  switch (sscanf(str, "%u-%u-%u - %u-%u-%u", &y1, &m1, &d1, &y2, &m2, &d2)) {
  case 4:
  case 5:
  case 6:
    memset(&tmb, 0, sizeof(tmb));
    tmb.tm_year = y2 - 1900;
    tmb.tm_mon = m2 ? m2 - 1 : 0;
    tmb.tm_mday = d2 ? d2 : 1;
    tmb.tm_hour = 0;
    tmb.tm_min = 0;
    tmb.tm_sec = 0;
    tmb.tm_isdst = -1;
    *stop = mktime(&tmb);
  case 1:
  case 2:
  case 3:
    memset(&tmb, 0, sizeof(tmb));
    tmb.tm_year = y1 - 1900;
    tmb.tm_mon = m1 ? m1 - 1 : 0;
    tmb.tm_mday = d1 ? d1 : 1;
    tmb.tm_hour = 0;
    tmb.tm_min = 0;
    tmb.tm_sec = 0;
    tmb.tm_isdst = -1;
    *start = mktime(&tmb);
    if (*stop == (time_t)-1) {
      memset(&tmb, 0, sizeof(tmb));
      tmb.tm_year = y1 - 1900;
      tmb.tm_mon = m1 ? m1 - 1 : 0;
      tmb.tm_mday = d1 ? d1 : 1;
      tmb.tm_hour = 23;
      tmb.tm_min = 59;
      tmb.tm_sec = 59;
      tmb.tm_isdst = -1;
      *stop = mktime(&tmb);
    }
    break;
  default:
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<str2time2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x20(%rbp),%rax
movq   $0xffffffffffffffff,(%rax)
mov    -0x18(%rbp),%rax
movq   $0xffffffffffffffff,(%rax)
mov    -0x10(%rbp),%rdi
mov    %rsp,%rax
lea    -0x58(%rbp),%rcx
mov    %rcx,0x8(%rax)
lea    -0x54(%rbp),%rcx
mov    %rcx,(%rax)
lea    0xe5c(%rip),%rsi
lea    -0x44(%rbp),%rdx
lea    -0x48(%rbp),%rcx
lea    -0x4c(%rbp),%r8
lea    -0x50(%rbp),%r9
call   1040 <sscanf@plt>
mov    %eax,%ecx
mov    %ecx,%eax
add    $0xffffffff,%eax
mov    %ecx,-0x5c(%rbp)
sub    $0x3,%eax
jb     127f <str2time2+0x14f>
jmp    11d1 <str2time2+0xa1>
mov    -0x5c(%rbp),%eax
add    $0xfffffffc,%eax
sub    $0x2,%eax
ja     13c6 <str2time2+0x296>
jmp    11e5 <str2time2+0xb5>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1030 <memset@plt>
mov    -0x50(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x54(%rbp)
je     1218 <str2time2+0xe8>
mov    -0x54(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1222 <str2time2+0xf2>
xor    %eax,%eax
mov    %eax,-0x60(%rbp)
jmp    1222 <str2time2+0xf2>
mov    -0x60(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x58(%rbp)
je     123d <str2time2+0x10d>
mov    -0x58(%rbp),%eax
mov    %eax,-0x64(%rbp)
jmp    124a <str2time2+0x11a>
mov    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    124a <str2time2+0x11a>
mov    -0x64(%rbp),%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0xffffffff,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
call   1050 <mktime@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1030 <memset@plt>
mov    -0x44(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x48(%rbp)
je     12b2 <str2time2+0x182>
mov    -0x48(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12bc <str2time2+0x18c>
xor    %eax,%eax
mov    %eax,-0x68(%rbp)
jmp    12bc <str2time2+0x18c>
mov    -0x68(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
je     12d7 <str2time2+0x1a7>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x6c(%rbp)
jmp    12e4 <str2time2+0x1b4>
mov    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    12e4 <str2time2+0x1b4>
mov    -0x6c(%rbp),%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0xffffffff,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
call   1050 <mktime@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
cmpq   $0xffffffffffffffff,(%rax)
jne    13c1 <str2time2+0x291>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1030 <memset@plt>
mov    -0x44(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x48(%rbp)
je     135a <str2time2+0x22a>
mov    -0x48(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    1364 <str2time2+0x234>
xor    %eax,%eax
mov    %eax,-0x70(%rbp)
jmp    1364 <str2time2+0x234>
mov    -0x70(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
je     137f <str2time2+0x24f>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x74(%rbp)
jmp    138c <str2time2+0x25c>
mov    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    138c <str2time2+0x25c>
mov    -0x74(%rbp),%eax
mov    %eax,-0x38(%rbp)
movl   $0x17,-0x34(%rbp)
movl   $0x3b,-0x30(%rbp)
movl   $0x3b,-0x2c(%rbp)
movl   $0xffffffff,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
call   1050 <mktime@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
jmp    13d2 <str2time2+0x2a2>
movl   $0xffffffff,-0x4(%rbp)
jmp    13d9 <str2time2+0x2a9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str2time2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movq   $0xffffffffffffffff,(%rdx)
movq   $0xffffffffffffffff,(%rsi)
lea    0xc(%rsp),%rax
lea    0x10(%rsp),%rbp
lea    0xe8e(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
mov    %rsp,%r8
lea    0x14(%rsp),%r9
push   %rax
push   %rbp
call   1040 <sscanf@plt>
add    $0x10,%rsp
lea    -0x1(%rax),%ecx
cmp    $0x3,%ecx
jb     121d <str2time2+0xed>
add    $0xfffffffc,%eax
cmp    $0x2,%eax
ja     12d3 <str2time2+0x1a3>
lea    0x18(%rsp),%rbp
xor    %ebx,%ebx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1030 <memset@plt>
mov    $0xfffff894,%eax
add    0x14(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x10(%rsp),%eax
sub    $0x1,%eax
cmovb  %ebx,%eax
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
mov    $0x1,%edx
cmovne %ecx,%edx
mov    %eax,0x1c(%rsp)
mov    %edx,0x20(%rsp)
movaps 0xdf3(%rip),%xmm0
movups %xmm0,0x24(%rsp)
mov    %rbp,%rdi
call   1050 <mktime@plt>
mov    %rax,(%r14)
lea    0x18(%rsp),%r12
xor    %r13d,%r13d
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1030 <memset@plt>
mov    $0xfffff894,%ebx
mov    0x8(%rsp),%eax
add    %ebx,%eax
mov    %eax,0x18(%rsp)
mov    0x4(%rsp),%eax
sub    $0x1,%eax
cmovb  %r13d,%eax
mov    (%rsp),%ecx
test   %ecx,%ecx
mov    $0x1,%ebp
cmove  %ebp,%ecx
mov    %eax,0x1c(%rsp)
mov    %ecx,0x20(%rsp)
movaps 0xd96(%rip),%xmm0
movups %xmm0,0x24(%rsp)
mov    %r12,%rdi
call   1050 <mktime@plt>
mov    %rax,(%r15)
cmpq   $0xffffffffffffffff,(%r14)
jne    12d9 <str2time2+0x1a9>
lea    0x18(%rsp),%r15
xor    %r13d,%r13d
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1030 <memset@plt>
add    0x8(%rsp),%ebx
mov    %ebx,0x18(%rsp)
mov    0x4(%rsp),%eax
sub    $0x1,%eax
cmovb  %r13d,%eax
mov    (%rsp),%ecx
test   %ecx,%ecx
cmovne %ecx,%ebp
mov    %eax,0x1c(%rsp)
mov    %ebp,0x20(%rsp)
movaps 0xd4f(%rip),%xmm0
movups %xmm0,0x24(%rsp)
mov    %r15,%rdi
call   1050 <mktime@plt>
mov    %rax,(%r14)
jmp    12d9 <str2time2+0x1a9>
mov    $0xffffffff,%r13d
mov    %r13d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32 }
@.str = [20 x i8] c"%u-%u-%u - %u-%u-%u\00"
define i32 @str2time2(i8* %0, i64* %1, i64* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64*
%7 = alloca i64*
%8 = alloca %struct.tm
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %5
store i64* %1, i64** %6
store i64* %2, i64** %7
store i32 0, i32* %14
store i32 0, i32* %13
store i32 0, i32* %12
store i32 0, i32* %11
store i32 0, i32* %10
store i32 0, i32* %9
%15 = load i64*, i64** %7
store i64 -1, i64* %15
%16 = load i64*, i64** %6
store i64 -1, i64* %16
%17 = load i8*, i8** %5
%18 = call i32 @sscanf(i8* %17, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14)
switch i32 %18, label %107 [
i32 4, label %19
i32 5, label %19
i32 6, label %19
i32 1, label %47
i32 2, label %47
i32 3, label %47
]
19: ; preds = %3, %3, %3
%20 = call i32 @memset(%struct.tm* %8, i32 0, i32 28)
%21 = load i32, i32* %12
%22 = sub nsw i32 %21, 1900
%23 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
store i32 %22, i32* %23
%24 = load i32, i32* %13
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %19
%27 = load i32, i32* %13
%28 = sub nsw i32 %27, 1
br label %30
29: ; preds = %19
br label %30
30: ; preds = %29, %26
%31 = phi i32 [ %28, %26 ], [ 0, %29 ]
%32 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
store i32 %31, i32* %32
%33 = load i32, i32* %14
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load i32, i32* %14
br label %38
37: ; preds = %30
br label %38
38: ; preds = %37, %35
%39 = phi i32 [ %36, %35 ], [ 1, %37 ]
%40 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
store i32 %39, i32* %40
%41 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 3
store i32 0, i32* %41
%42 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 4
store i32 0, i32* %42
%43 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 5
store i32 0, i32* %43
%44 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 6
store i32 -1, i32* %44
%45 = call i64 @mktime(%struct.tm* %8)
%46 = load i64*, i64** %7
store i64 %45, i64* %46
br label %47
47: ; preds = %3, %3, %3, %38
%48 = call i32 @memset(%struct.tm* %8, i32 0, i32 28)
%49 = load i32, i32* %9
%50 = sub nsw i32 %49, 1900
%51 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
store i32 %50, i32* %51
%52 = load i32, i32* %10
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %47
%55 = load i32, i32* %10
%56 = sub nsw i32 %55, 1
br label %58
57: ; preds = %47
br label %58
58: ; preds = %57, %54
%59 = phi i32 [ %56, %54 ], [ 0, %57 ]
%60 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
store i32 %59, i32* %60
%61 = load i32, i32* %11
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = load i32, i32* %11
br label %66
65: ; preds = %58
br label %66
66: ; preds = %65, %63
%67 = phi i32 [ %64, %63 ], [ 1, %65 ]
%68 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
store i32 %67, i32* %68
%69 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 3
store i32 0, i32* %69
%70 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 4
store i32 0, i32* %70
%71 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 5
store i32 0, i32* %71
%72 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 6
store i32 -1, i32* %72
%73 = call i64 @mktime(%struct.tm* %8)
%74 = load i64*, i64** %6
store i64 %73, i64* %74
%75 = load i64*, i64** %7
%76 = load i64, i64* %75
%77 = icmp eq i64 %76, -1
br i1 %77, label %78, label %106
78: ; preds = %66
%79 = call i32 @memset(%struct.tm* %8, i32 0, i32 28)
%80 = load i32, i32* %9
%81 = sub nsw i32 %80, 1900
%82 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
store i32 %81, i32* %82
%83 = load i32, i32* %10
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %78
%86 = load i32, i32* %10
%87 = sub nsw i32 %86, 1
br label %89
88: ; preds = %78
br label %89
89: ; preds = %88, %85
%90 = phi i32 [ %87, %85 ], [ 0, %88 ]
%91 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
store i32 %90, i32* %91
%92 = load i32, i32* %11
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %89
%95 = load i32, i32* %11
br label %97
96: ; preds = %89
br label %97
97: ; preds = %96, %94
%98 = phi i32 [ %95, %94 ], [ 1, %96 ]
%99 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
store i32 %98, i32* %99
%100 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 3
store i32 23, i32* %100
%101 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 4
store i32 59, i32* %101
%102 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 5
store i32 59, i32* %102
%103 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 6
store i32 -1, i32* %103
%104 = call i64 @mktime(%struct.tm* %8)
%105 = load i64*, i64** %7
store i64 %104, i64* %105
br label %106
106: ; preds = %97, %66
br label %108
107: ; preds = %3
store i32 -1, i32* %4
br label %109
108: ; preds = %106
store i32 0, i32* %4
br label %109
109: ; preds = %108, %107
%110 = load i32, i32* %4
ret i32 %110
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32 }
@.str = [20 x i8] c"%u-%u-%u - %u-%u-%u\00"
define i32 @str2time2(i8* nocapture %0, i64* nocapture writeonly %1, i64* nocapture %2) {
%4 = alloca %struct.tm
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = bitcast %struct.tm* %4 to i8*
%12 = bitcast i32* %5 to i8*
%13 = bitcast i32* %6 to i8*
%14 = bitcast i32* %7 to i8*
%15 = bitcast i32* %8 to i8*
%16 = bitcast i32* %9 to i8*
%17 = bitcast i32* %10 to i8*
store i32 0, i32* %10
store i32 0, i32* %9
store i32 0, i32* %8
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %5
store i64 -1, i64* %2
store i64 -1, i64* %1
%18 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10)
switch i32 %18, label %68 [
i32 4, label %19
i32 5, label %19
i32 6, label %19
i32 1, label %36
i32 2, label %36
i32 3, label %36
]
19: ; preds = %3, %3, %3
%20 = call i32 @memset(%struct.tm* %4, i32 0, i32 28)
%21 = load i32, i32* %8
%22 = add nsw i32 %21, -1900
%23 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 0
store i32 %22, i32* %23
%24 = load i32, i32* %9
%25 = icmp eq i32 %24, 0
%26 = add nsw i32 %24, -1
%27 = select i1 %25, i32 0, i32 %26
%28 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 1
store i32 %27, i32* %28
%29 = load i32, i32* %10
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i32 1, i32 %29
%32 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 2
store i32 %31, i32* %32
%33 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 3
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 0, i32 0, i32 0, i32 -1>, <4 x i32>* %34
%35 = call i64 @mktime(%struct.tm* %4)
store i64 %35, i64* %2
br label %36
36: ; preds = %3, %3, %3, %19
%37 = call i32 @memset(%struct.tm* %4, i32 0, i32 28)
%38 = load i32, i32* %5
%39 = add nsw i32 %38, -1900
%40 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 0
store i32 %39, i32* %40
%41 = load i32, i32* %6
%42 = icmp eq i32 %41, 0
%43 = add nsw i32 %41, -1
%44 = select i1 %42, i32 0, i32 %43
%45 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 1
store i32 %44, i32* %45
%46 = load i32, i32* %7
%47 = icmp eq i32 %46, 0
%48 = select i1 %47, i32 1, i32 %46
%49 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 2
store i32 %48, i32* %49
%50 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 3
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 0, i32 0, i32 0, i32 -1>, <4 x i32>* %51
%52 = call i64 @mktime(%struct.tm* %4)
store i64 %52, i64* %1
%53 = load i64, i64* %2
%54 = icmp eq i64 %53, -1
br i1 %54, label %55, label %68
55: ; preds = %36
%56 = call i32 @memset(%struct.tm* %4, i32 0, i32 28)
%57 = load i32, i32* %5
%58 = add nsw i32 %57, -1900
store i32 %58, i32* %40
%59 = load i32, i32* %6
%60 = icmp eq i32 %59, 0
%61 = add nsw i32 %59, -1
%62 = select i1 %60, i32 0, i32 %61
store i32 %62, i32* %45
%63 = load i32, i32* %7
%64 = icmp eq i32 %63, 0
%65 = select i1 %64, i32 1, i32 %63
store i32 %65, i32* %49
%66 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 23, i32 59, i32 59, i32 -1>, <4 x i32>* %66
%67 = call i64 @mktime(%struct.tm* %4)
store i64 %67, i64* %2
br label %68
68: ; preds = %55, %36, %3
%69 = phi i32 [ -1, %3 ], [ 0, %36 ], [ 0, %55 ]
ret i32 %69
}