#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_isdst;
  scalar_t__ tm_year;
  scalar_t__ tm_sec;
  scalar_t__ tm_min;
  scalar_t__ tm_hour;
  scalar_t__ tm_mday;
  scalar_t__ tm_mon;
  int /*<<< orphan*/ member_0;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ memcpy(struct tm *, struct tm *, int);
int mktime(struct tm *);
int strlen(char const *);
char const *strptime(char const *, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
bool validate_posix_time(const char *str) {
  struct tm out = {0}, cpy = {0}, *tmp;
  time_t curr_time = time(NULL);
  out.tm_isdst = -1;
  switch (strlen(str)) {
  case 8:
    if (str + 8 == strptime(str, "%m%d%H%M", &out)) {
      tmp = localtime(&curr_time);
      out.tm_year = tmp->tm_year;
      goto validate;
    }
    return false;
  case 10:
    if (str + 10 == strptime(str, "%y%m%d%H%M", &out)) {
      goto validate;
    }
    return false;
  case 11:
    if (str + 11 == strptime(str, "%m%d%H%M.%S", &out)) {
      tmp = localtime(&curr_time);
      out.tm_year = tmp->tm_year;
      goto validate;
    }
    return false;
  case 12:
    if (str + 12 == strptime(str, "%C%y%m%d%H%M", &out)) {
      goto validate;
    }
    return false;
  case 13:
    if (str + 13 == strptime(str, "%y%m%d%H%M.%S", &out)) {
      goto validate;
    }
    return false;
  case 15:
    if (str + 15 == strptime(str, "%C%y%m%d%H%M.%S", &out)) {
      goto validate;
    }
    return false;
  default:
    return false;
  }
validate:
  (void)memcpy(&cpy, &out, sizeof(struct tm));
  if (-1 == mktime(&out) || out.tm_sec != cpy.tm_sec ||
      out.tm_min != cpy.tm_min || out.tm_hour != cpy.tm_hour ||
      out.tm_mday != cpy.tm_mday || out.tm_mon != cpy.tm_mon ||
      out.tm_year != cpy.tm_year) {
    return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<validate_posix_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movaps %xmm0,-0xc0(%rbp)
movaps %xmm0,-0x20(%rbp)
movaps %xmm0,-0x30(%rbp)
movaps %xmm0,-0x40(%rbp)
movaps %xmm0,-0x50(%rbp)
movaps %xmm0,-0x60(%rbp)
movaps %xmm0,-0x70(%rbp)
movaps %xmm0,-0x80(%rbp)
movaps %xmm0,-0x90(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,-0x9c(%rbp)
movl   $0xffffffff,-0x50(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
add    $0xfffffff8,%eax
mov    %eax,%ecx
mov    %rcx,-0xa8(%rbp)
sub    $0x7,%eax
ja     13d5 <validate_posix_time+0x275>
mov    -0xa8(%rbp),%rax
lea    0xe22(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xc8(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe23(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1080 <strptime@plt>
mov    %rax,%rcx
mov    -0xc8(%rbp),%rax
cmp    %rcx,%rax
jne    1244 <validate_posix_time+0xe4>
lea    -0x9c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x48(%rbp)
jmp    13e1 <validate_posix_time+0x281>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
mov    -0x10(%rbp),%rax
add    $0xa,%rax
mov    %rax,-0xd0(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdb8(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1080 <strptime@plt>
mov    %rax,%rcx
mov    -0xd0(%rbp),%rax
cmp    %rcx,%rax
jne    128b <validate_posix_time+0x12b>
jmp    13e1 <validate_posix_time+0x281>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
mov    -0x10(%rbp),%rax
add    $0xb,%rax
mov    %rax,-0xd8(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd80(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1080 <strptime@plt>
mov    %rax,%rcx
mov    -0xd8(%rbp),%rax
cmp    %rcx,%rax
jne    12f4 <validate_posix_time+0x194>
lea    -0x9c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x48(%rbp)
jmp    13e1 <validate_posix_time+0x281>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
mov    -0x10(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0xe0(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd06(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1080 <strptime@plt>
mov    %rax,%rcx
mov    -0xe0(%rbp),%rax
cmp    %rcx,%rax
jne    133b <validate_posix_time+0x1db>
jmp    13e1 <validate_posix_time+0x281>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
mov    -0x10(%rbp),%rax
add    $0xd,%rax
mov    %rax,-0xe8(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xcce(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1080 <strptime@plt>
mov    %rax,%rcx
mov    -0xe8(%rbp),%rax
cmp    %rcx,%rax
jne    1382 <validate_posix_time+0x222>
jmp    13e1 <validate_posix_time+0x281>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
mov    -0x10(%rbp),%rax
add    $0xf,%rax
mov    %rax,-0xf0(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xc85(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1080 <strptime@plt>
mov    %rax,%rcx
mov    -0xf0(%rbp),%rax
cmp    %rcx,%rax
jne    13c9 <validate_posix_time+0x269>
jmp    13e1 <validate_posix_time+0x281>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
lea    -0x90(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x40,%edx
call   1050 <memcpy@plt>
lea    -0x50(%rbp),%rdi
call   1070 <mktime@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
je     1465 <validate_posix_time+0x305>
mov    -0x40(%rbp),%rax
cmp    -0x80(%rbp),%rax
jne    1465 <validate_posix_time+0x305>
mov    -0x38(%rbp),%rax
cmp    -0x78(%rbp),%rax
jne    1465 <validate_posix_time+0x305>
mov    -0x30(%rbp),%rax
cmp    -0x70(%rbp),%rax
jne    1465 <validate_posix_time+0x305>
mov    -0x28(%rbp),%rax
cmp    -0x68(%rbp),%rax
jne    1465 <validate_posix_time+0x305>
mov    -0x20(%rbp),%rax
cmp    -0x60(%rbp),%rax
jne    1465 <validate_posix_time+0x305>
mov    -0x48(%rbp),%rax
cmp    -0x88(%rbp),%rax
je     1471 <validate_posix_time+0x311>
movl   $0x0,-0x4(%rbp)
jmp    1478 <validate_posix_time+0x318>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<validate_posix_time>:
push   %r15
push   %r14
push   %rbx
sub    $0x90,%rsp
mov    %rdi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
xor    %r14d,%r14d
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,0xc(%rsp)
movl   $0xffffffff,0x10(%rsp)
ff
mov    %rbx,%rdi
call   1040 <strlen@plt>
add    $0xfffffff8,%eax
cmp    $0x7,%eax
ja     12d2 <validate_posix_time+0x172>
lea    0xe32(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x8(%rbx),%r15
lea    0xe42(%rip),%rsi
jmp    11fc <validate_posix_time+0x9c>
lea    0xa(%rbx),%r15
lea    0xe33(%rip),%rsi
jmp    124c <validate_posix_time+0xec>
lea    0xb(%rbx),%r15
lea    0xe35(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
call   1080 <strptime@plt>
cmp    %rax,%r15
jne    12d2 <validate_posix_time+0x172>
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
mov    0x8(%rax),%rax
mov    %rax,0x18(%rsp)
jmp    125e <validate_posix_time+0xfe>
lea    0xc(%rbx),%r15
lea    0xdee(%rip),%rsi
jmp    124c <validate_posix_time+0xec>
lea    0xd(%rbx),%r15
lea    0xdf0(%rip),%rsi
jmp    124c <validate_posix_time+0xec>
lea    0xf(%rbx),%r15
lea    0xde1(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
call   1080 <strptime@plt>
cmp    %rax,%r15
jne    12d2 <validate_posix_time+0x172>
lea    0x50(%rsp),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x40,%edx
call   1050 <memcpy@plt>
mov    %rbx,%rdi
call   1070 <mktime@plt>
cmp    $0xffffffff,%eax
je     12d2 <validate_posix_time+0x172>
mov    0x20(%rsp),%rax
cmp    0x60(%rsp),%rax
jne    12d2 <validate_posix_time+0x172>
mov    0x28(%rsp),%rax
cmp    0x68(%rsp),%rax
jne    12d2 <validate_posix_time+0x172>
mov    0x30(%rsp),%rax
cmp    0x70(%rsp),%rax
jne    12d2 <validate_posix_time+0x172>
mov    0x38(%rsp),%rax
cmp    0x78(%rsp),%rax
jne    12d2 <validate_posix_time+0x172>
mov    0x40(%rsp),%rax
cmp    0x80(%rsp),%rax
jne    12d2 <validate_posix_time+0x172>
mov    0x18(%rsp),%rax
xor    %r14d,%r14d
cmp    0x58(%rsp),%rax
sete   %r14b
mov    %r14d,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
%struct.tm = type { i32, i64, i64, i64, i64, i64, i64, i32 }
@.str = [9 x i8] c"%m%d%H%M\00"
@.str.1 = [11 x i8] c"%y%m%d%H%M\00"
@.str.2 = [12 x i8] c"%m%d%H%M.%S\00"
@.str.3 = [13 x i8] c"%C%y%m%d%H%M\00"
@.str.4 = [14 x i8] c"%y%m%d%H%M.%S\00"
@.str.5 = [16 x i8] c"%C%y%m%d%H%M.%S\00"
define i32 @validate_posix_time(i8* %0) {
%2 = alloca %struct.tm
%3 = alloca %struct.tm
%4 = alloca i32
%5 = bitcast %struct.tm* %2 to i8*
%6 = bitcast %struct.tm* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = tail call i32 @time(i32* null)
store i32 %8, i32* %4
%9 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 0
store i32 -1, i32* %9
%10 = tail call i32 @strlen(i8* %0)
switch i32 %10, label %81 [
i32 8, label %11
i32 10, label %15
i32 11, label %19
i32 12, label %23
i32 13, label %27
i32 15, label %31
]
11: ; preds = %1
%12 = getelementptr inbounds i8, i8* %0, i64 8
%13 = call i8* @strptime(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), %struct.tm* %2)
%14 = icmp eq i8* %12, %13
br i1 %14, label %35, label %81
15: ; preds = %1
%16 = getelementptr inbounds i8, i8* %0, i64 10
%17 = call i8* @strptime(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %2)
%18 = icmp eq i8* %16, %17
br i1 %18, label %40, label %81
19: ; preds = %1
%20 = getelementptr inbounds i8, i8* %0, i64 11
%21 = call i8* @strptime(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %2)
%22 = icmp eq i8* %20, %21
br i1 %22, label %35, label %81
23: ; preds = %1
%24 = getelementptr inbounds i8, i8* %0, i64 12
%25 = call i8* @strptime(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %2)
%26 = icmp eq i8* %24, %25
br i1 %26, label %40, label %81
27: ; preds = %1
%28 = getelementptr inbounds i8, i8* %0, i64 13
%29 = call i8* @strptime(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %2)
%30 = icmp eq i8* %28, %29
br i1 %30, label %40, label %81
31: ; preds = %1
%32 = getelementptr inbounds i8, i8* %0, i64 15
%33 = call i8* @strptime(i8* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %2)
%34 = icmp eq i8* %32, %33
br i1 %34, label %40, label %81
35: ; preds = %19, %11
%36 = call %struct.tm* @localtime(i32* %4)
%37 = getelementptr inbounds %struct.tm, %struct.tm* %36, i64 0, i32 1
%38 = load i64, i64* %37
%39 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 1
store i64 %38, i64* %39
br label %40
40: ; preds = %35, %31, %27, %23, %15
%41 = call i32 @memcpy(%struct.tm* %3, %struct.tm* %2, i32 64)
%42 = call i32 @mktime(%struct.tm* %2)
%43 = icmp eq i32 %42, -1
br i1 %43, label %81, label %44
44: ; preds = %40
%45 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 2
%46 = load i64, i64* %45
%47 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 2
%48 = load i64, i64* %47
%49 = icmp eq i64 %46, %48
br i1 %49, label %50, label %81
50: ; preds = %44
%51 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 3
%52 = load i64, i64* %51
%53 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 3
%54 = load i64, i64* %53
%55 = icmp eq i64 %52, %54
br i1 %55, label %56, label %81
56: ; preds = %50
%57 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 4
%58 = load i64, i64* %57
%59 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 4
%60 = load i64, i64* %59
%61 = icmp eq i64 %58, %60
br i1 %61, label %62, label %81
62: ; preds = %56
%63 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 5
%64 = load i64, i64* %63
%65 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 5
%66 = load i64, i64* %65
%67 = icmp eq i64 %64, %66
br i1 %67, label %68, label %81
68: ; preds = %62
%69 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 6
%70 = load i64, i64* %69
%71 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 6
%72 = load i64, i64* %71
%73 = icmp eq i64 %70, %72
br i1 %73, label %74, label %81
74: ; preds = %68
%75 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 1
%76 = load i64, i64* %75
%77 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 1
%78 = load i64, i64* %77
%79 = icmp eq i64 %76, %78
%80 = zext i1 %79 to i32
br label %81
81: ; preds = %74, %40, %44, %50, %56, %62, %68, %1, %31, %27, %23, %19, %15, %11
%82 = phi i32 [ 0, %11 ], [ 0, %15 ], [ 0, %19 ], [ 0, %23 ], [ 0, %27 ], [ 0, %31 ], [ 0, %1 ], [ 0, %68 ], [ 0, %62 ], [ 0, %56 ], [ 0, %50 ], [ 0, %44 ], [ 0, %40 ], [ %80, %74 ]
ret i32 %82
}