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

/* Variables and functions */
int /*<<< orphan*/ OPENSSL_gmtime(scalar_t__ *, struct tm *);
int /*<<< orphan*/ OPENSSL_gmtime_adj(struct tm *, int /*<<< orphan*/, long);
int /*<<< orphan*/ OPENSSL_gmtime_diff(int *, int *, struct tm *, struct tm *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ time(scalar_t__ *);
int check_time(long offset) {
  struct tm tm1, tm2, o1;
  int off_day, off_sec;
  long toffset;
  time_t t1, t2;
  time(&t1);
  t2 = t1 + offset;
  OPENSSL_gmtime(&t2, &tm2);
  OPENSSL_gmtime(&t1, &tm1);
  o1 = tm1;
  OPENSSL_gmtime_adj(&tm1, 0, offset);
  if ((tm1.tm_year != tm2.tm_year) || (tm1.tm_mon != tm2.tm_mon) ||
      (tm1.tm_mday != tm2.tm_mday) || (tm1.tm_hour != tm2.tm_hour) ||
      (tm1.tm_min != tm2.tm_min) || (tm1.tm_sec != tm2.tm_sec)) {
    fprintf(stderr, "TIME ERROR!!\n");
    fprintf(stderr, "Time1: %d/%d/%d, %d:%02d:%02d\n", tm2.tm_mday,
            tm2.tm_mon + 1, tm2.tm_year + 1900, tm2.tm_hour, tm2.tm_min,
            tm2.tm_sec);
    fprintf(stderr, "Time2: %d/%d/%d, %d:%02d:%02d\n", tm1.tm_mday,
            tm1.tm_mon + 1, tm1.tm_year + 1900, tm1.tm_hour, tm1.tm_min,
            tm1.tm_sec);
    return 0;
  }
  if (!OPENSSL_gmtime_diff(&off_day, &off_sec, &o1, &tm1))
    return 0;
  toffset = (long)off_day * (24 * 60 * 60) + off_sec;
  if (offset != toffset) {
    fprintf(stderr, "TIME OFFSET ERROR!!\n");
    fprintf(stderr, "Expected %ld, Got %ld (%d:%d)\n", offset, toffset, off_day,
            off_sec);
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<check_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0xb8(%rbp),%rdi
call   1080 <time@plt>
mov    -0xb8(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0xc0(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1070 <OPENSSL_gmtime@plt>
lea    -0xb8(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1070 <OPENSSL_gmtime@plt>
lea    -0xa0(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x30,%edx
call   1060 <memcpy@plt>
mov    -0x10(%rbp),%rdx
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
call   1040 <OPENSSL_gmtime_adj@plt>
mov    -0x40(%rbp),%rax
cmp    -0x70(%rbp),%rax
jne    1225 <check_time+0xc5>
mov    -0x38(%rbp),%rax
cmp    -0x68(%rbp),%rax
jne    1225 <check_time+0xc5>
mov    -0x30(%rbp),%rax
cmp    -0x60(%rbp),%rax
jne    1225 <check_time+0xc5>
mov    -0x28(%rbp),%rax
cmp    -0x58(%rbp),%rax
jne    1225 <check_time+0xc5>
mov    -0x20(%rbp),%rax
cmp    -0x50(%rbp),%rax
jne    1225 <check_time+0xc5>
mov    -0x18(%rbp),%rax
cmp    -0x48(%rbp),%rax
je     12ce <check_time+0x16e>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0xdcb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edi
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rcx
add    $0x1,%rcx
mov    -0x70(%rbp),%r8
add    $0x76c,%r8
mov    -0x58(%rbp),%r9
mov    -0x50(%rbp),%r10
mov    -0x48(%rbp),%rax
lea    0xd9f(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
add    $0x1,%rcx
mov    -0x40(%rbp),%r8
add    $0x76c,%r8
mov    -0x28(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x18(%rbp),%rax
lea    0xd7b(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    138b <check_time+0x22b>
lea    -0xa4(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1030 <OPENSSL_gmtime_diff@plt>
cmp    $0x0,%eax
jne    1301 <check_time+0x1a1>
movl   $0x0,-0x4(%rbp)
jmp    138b <check_time+0x22b>
movslq -0xa4(%rbp),%rax
imul   $0x15180,%rax,%rax
movslq -0xa8(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0xb0(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0xb0(%rbp),%rax
je     1384 <check_time+0x224>
mov    0x2ca8(%rip),%rax
mov    (%rax),%edi
lea    0xd0b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
mov    -0xb0(%rbp),%rcx
mov    -0xa4(%rbp),%r8d
mov    -0xa8(%rbp),%r9d
lea    0xcf0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    138b <check_time+0x22b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_time>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xc0,%rsp
mov    %rdi,%r15
lea    0x58(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <time@plt>
mov    0x58(%rsp),%rax
add    %r15,%rax
mov    %rax,0x50(%rsp)
lea    0x50(%rsp),%rdi
lea    0x60(%rsp),%rsi
call   1060 <OPENSSL_gmtime@plt>
lea    0x20(%rsp),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <OPENSSL_gmtime@plt>
movups 0x20(%rsp),%xmm0
movups 0x30(%rsp),%xmm1
movups 0x40(%rsp),%xmm2
movaps %xmm0,0x90(%rsp)
movaps %xmm1,0xa0(%rsp)
movaps %xmm2,0xb0(%rsp)
xor    %r12d,%r12d
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15,%rdx
call   1040 <OPENSSL_gmtime_adj@plt>
mov    0x20(%rsp),%rax
cmp    0x60(%rsp),%rax
jne    12be <check_time+0x16e>
mov    0x28(%rsp),%rax
cmp    0x68(%rsp),%rax
jne    12be <check_time+0x16e>
mov    0x30(%rsp),%rax
cmp    0x70(%rsp),%rax
jne    12be <check_time+0x16e>
mov    0x38(%rsp),%rax
cmp    0x78(%rsp),%rax
jne    12be <check_time+0x16e>
mov    0x40(%rsp),%rax
cmp    0x80(%rsp),%rax
jne    12be <check_time+0x16e>
mov    0x48(%rsp),%rax
cmp    0x88(%rsp),%rax
jne    12be <check_time+0x16e>
lea    0x1c(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x90(%rsp),%rdx
lea    0x20(%rsp),%rcx
call   1030 <OPENSSL_gmtime_diff@plt>
test   %eax,%eax
je     1348 <check_time+0x1f8>
movslq 0x1c(%rsp),%rax
imul   $0x15180,%rax,%rax
movslq 0x18(%rsp),%r14
add    %rax,%r14
mov    $0x1,%r12d
cmp    %r15,%r14
je     1348 <check_time+0x1f8>
mov    0x2d5a(%rip),%rbx
mov    (%rbx),%edi
lea    0xdbd(%rip),%rsi
xor    %r12d,%r12d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx),%edi
mov    0x1c(%rsp),%r8d
mov    0x18(%rsp),%r9d
lea    0xdb5(%rip),%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1348 <check_time+0x1f8>
mov    0x2d1b(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xd31(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    0x68(%rsp),%rcx
mov    0x70(%rsp),%rdx
add    $0x1,%rcx
mov    $0x76c,%ebx
mov    0x60(%rsp),%r8
add    %rbx,%r8
mov    0x78(%rsp),%r9
movups 0x80(%rsp),%xmm0
movups %xmm0,(%rsp)
lea    0xd02(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    0x28(%rsp),%rcx
mov    0x30(%rsp),%rdx
add    $0x1,%rcx
add    0x20(%rsp),%rbx
mov    0x38(%rsp),%r9
movups 0x40(%rsp),%xmm0
movups %xmm0,(%rsp)
lea    0xcef(%rip),%rsi
mov    %rbx,%r8
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12d,%eax
add    $0xc0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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