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

/* Variables and functions */
int /*<<< orphan*/ OPENSSL_gmtime(scalar_t__ *, struct tm *);
int /*<<< orphan*/ OPENSSL_gmtime_adj(struct tm *, int /*<<< orphan*/, long);
scalar_t__ OPENSSL_gmtime_diff(int *, int *, struct tm *, struct tm *);
int /*<<< orphan*/ test_int_eq(char *, int, char *, char *, int /*<<< orphan*/,
                               int /*<<< orphan*/);
int /*<<< orphan*/ test_long_eq(char *, int, char *, char *, long, long);
int /*<<< orphan*/ test_true(char *, int, char *, int);
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 (!test_int_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          36, "tm1.tm_year", "tm2.tm_year", tm1.tm_year, tm2.tm_year) ||
      !test_int_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          37, "tm1.tm_mon", "tm2.tm_mon", tm1.tm_mon, tm2.tm_mon) ||
      !test_int_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          38, "tm1.tm_mday", "tm2.tm_mday", tm1.tm_mday, tm2.tm_mday) ||
      !test_int_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          39, "tm1.tm_hour", "tm2.tm_hour", tm1.tm_hour, tm2.tm_hour) ||
      !test_int_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          40, "tm1.tm_min", "tm2.tm_min", tm1.tm_min, tm2.tm_min) ||
      !test_int_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          41, "tm1.tm_sec", "tm2.tm_sec", tm1.tm_sec, tm2.tm_sec) ||
      !test_true(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          42, "OPENSSL_gmtime_diff(&off_day, &off_sec, &o1, &tm1)",
          (OPENSSL_gmtime_diff(&off_day, &off_sec, &o1, &tm1)) != 0))
    return 0;
  toffset = (long)off_day * (24 * 60 * 60) + off_sec;
  if (!test_long_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c",
          45, "offset", "toffset", offset, toffset))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<check_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x70(%rbp),%rdi
call   1090 <time@plt>
mov    -0x70(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x78(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1080 <OPENSSL_gmtime@plt>
lea    -0x70(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1080 <OPENSSL_gmtime@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rdx
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
call   1070 <OPENSSL_gmtime_adj@plt>
mov    -0x14(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
lea    0xe1c(%rip),%rdi
mov    $0x24,%esi
lea    0xed4(%rip),%rdx
lea    0xed9(%rip),%rcx
call   1060 <test_int_eq@plt>
cmp    $0x0,%eax
je     1337 <check_time+0x1c7>
mov    -0x18(%rbp),%r8d
mov    -0x30(%rbp),%r9d
lea    0xdec(%rip),%rdi
mov    $0x25,%esi
lea    0xebc(%rip),%rdx
lea    0xec0(%rip),%rcx
call   1060 <test_int_eq@plt>
cmp    $0x0,%eax
je     1337 <check_time+0x1c7>
mov    -0x1c(%rbp),%r8d
mov    -0x34(%rbp),%r9d
lea    0xdbc(%rip),%rdi
mov    $0x26,%esi
lea    0xea2(%rip),%rdx
lea    0xea7(%rip),%rcx
call   1060 <test_int_eq@plt>
cmp    $0x0,%eax
je     1337 <check_time+0x1c7>
mov    -0x20(%rbp),%r8d
mov    -0x38(%rbp),%r9d
lea    0xd8c(%rip),%rdi
mov    $0x27,%esi
lea    0xe8a(%rip),%rdx
lea    0xe8f(%rip),%rcx
call   1060 <test_int_eq@plt>
cmp    $0x0,%eax
je     1337 <check_time+0x1c7>
mov    -0x24(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
lea    0xd5c(%rip),%rdi
mov    $0x28,%esi
lea    0xe72(%rip),%rdx
lea    0xe76(%rip),%rcx
call   1060 <test_int_eq@plt>
cmp    $0x0,%eax
je     1337 <check_time+0x1c7>
mov    -0x28(%rbp),%r8d
mov    -0x40(%rbp),%r9d
lea    0xd2c(%rip),%rdi
mov    $0x29,%esi
lea    0xe58(%rip),%rdx
lea    0xe5c(%rip),%rcx
call   1060 <test_int_eq@plt>
cmp    $0x0,%eax
je     1337 <check_time+0x1c7>
lea    -0x5c(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x58(%rbp),%rdx
lea    -0x28(%rbp),%rcx
call   1030 <OPENSSL_gmtime_diff@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xce3(%rip),%rdi
mov    $0x2a,%esi
lea    0xe25(%rip),%rdx
call   1040 <test_true@plt>
cmp    $0x0,%eax
jne    1343 <check_time+0x1d3>
movl   $0x0,-0x4(%rbp)
jmp    139c <check_time+0x22c>
movslq -0x5c(%rbp),%rax
imul   $0x15180,%rax,%rax
movslq -0x60(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%r8
mov    -0x68(%rbp),%r9
lea    0xc98(%rip),%rdi
mov    $0x2d,%esi
lea    0xe0e(%rip),%rdx
lea    0xe06(%rip),%rcx
call   1050 <test_long_eq@plt>
cmp    $0x0,%eax
jne    1395 <check_time+0x225>
movl   $0x0,-0x4(%rbp)
jmp    139c <check_time+0x22c>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_time>:
push   %rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %rdi,%r14
lea    0x48(%rsp),%rbp
mov    %rbp,%rdi
call   1090 <time@plt>
mov    0x48(%rsp),%rax
add    %r14,%rax
mov    %rax,0x40(%rsp)
lea    0x40(%rsp),%rdi
lea    0x28(%rsp),%rsi
call   1080 <OPENSSL_gmtime@plt>
lea    0x10(%rsp),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1080 <OPENSSL_gmtime@plt>
movups 0x10(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
mov    0x20(%rsp),%rax
mov    %rax,0x60(%rsp)
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1070 <OPENSSL_gmtime_adj@plt>
mov    0x24(%rsp),%r8d
mov    0x3c(%rsp),%r9d
lea    0xe18(%rip),%rdi
lea    0xed5(%rip),%rdx
lea    0xeda(%rip),%rcx
mov    $0x24,%esi
call   1060 <test_int_eq@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
mov    0x20(%rsp),%r8d
mov    0x38(%rsp),%r9d
lea    0xde7(%rip),%rdi
lea    0xebc(%rip),%rdx
lea    0xec0(%rip),%rcx
mov    $0x25,%esi
call   1060 <test_int_eq@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
mov    0x1c(%rsp),%r8d
mov    0x34(%rsp),%r9d
lea    0xdb6(%rip),%rdi
lea    0xea1(%rip),%rdx
lea    0xea6(%rip),%rcx
mov    $0x26,%esi
call   1060 <test_int_eq@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
mov    0x18(%rsp),%r8d
mov    0x30(%rsp),%r9d
lea    0xd85(%rip),%rdi
lea    0xe88(%rip),%rdx
lea    0xe8d(%rip),%rcx
mov    $0x27,%esi
call   1060 <test_int_eq@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
mov    0x14(%rsp),%r8d
mov    0x2c(%rsp),%r9d
lea    0xd54(%rip),%rdi
lea    0xe6f(%rip),%rdx
lea    0xe73(%rip),%rcx
mov    $0x28,%esi
call   1060 <test_int_eq@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
mov    0x10(%rsp),%r8d
mov    0x28(%rsp),%r9d
lea    0xd23(%rip),%rdi
lea    0xe54(%rip),%rdx
lea    0xe58(%rip),%rcx
mov    $0x29,%esi
call   1060 <test_int_eq@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x50(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1030 <OPENSSL_gmtime_diff@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    0xcdf(%rip),%rdi
lea    0xe26(%rip),%rdx
mov    $0x2a,%esi
call   1040 <test_true@plt>
test   %eax,%eax
je     1374 <check_time+0x204>
movslq 0xc(%rsp),%rax
imul   $0x15180,%rax,%rax
movslq 0x8(%rsp),%r9
add    %rax,%r9
lea    0xcaf(%rip),%rdi
lea    0xe2a(%rip),%rdx
lea    0xe22(%rip),%rcx
mov    $0x2d,%esi
mov    %r14,%r8
call   1050 <test_long_eq@plt>
xor    %ebp,%ebp
test   %eax,%eax
setne  %bpl
mov    %ebp,%eax
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@.str = [196 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c\00"
@.str.1 = [12 x i8] c"tm1.tm_year\00"
@.str.2 = [12 x i8] c"tm2.tm_year\00"
@.str.3 = [11 x i8] c"tm1.tm_mon\00"
@.str.4 = [11 x i8] c"tm2.tm_mon\00"
@.str.5 = [12 x i8] c"tm1.tm_mday\00"
@.str.6 = [12 x i8] c"tm2.tm_mday\00"
@.str.7 = [12 x i8] c"tm1.tm_hour\00"
@.str.8 = [12 x i8] c"tm2.tm_hour\00"
@.str.9 = [11 x i8] c"tm1.tm_min\00"
@.str.10 = [11 x i8] c"tm2.tm_min\00"
@.str.11 = [11 x i8] c"tm1.tm_sec\00"
@.str.12 = [11 x i8] c"tm2.tm_sec\00"
@.str.13 = [51 x i8] c"OPENSSL_gmtime_diff(&off_day, &off_sec, &o1, &tm1)\00"
@.str.14 = [7 x i8] c"offset\00"
@.str.15 = [8 x i8] c"toffset\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 5
%23 = load i32, i32* %22
%24 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 5
%25 = load i32, i32* %24
%26 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %23, i32 %25)
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %69
28: ; preds = %1
%29 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
%30 = load i32, i32* %29
%31 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 4
%32 = load i32, i32* %31
%33 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %30, i32 %32)
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %69
35: ; preds = %28
%36 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
%37 = load i32, i32* %36
%38 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 3
%39 = load i32, i32* %38
%40 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %37, i32 %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %69
42: ; preds = %35
%43 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%44 = load i32, i32* %43
%45 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 2
%46 = load i32, i32* %45
%47 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %44, i32 %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %69
49: ; preds = %42
%50 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
%51 = load i32, i32* %50
%52 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 1
%53 = load i32, i32* %52
%54 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %51, i32 %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %69
56: ; preds = %49
%57 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
%58 = load i32, i32* %57
%59 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 0
%60 = load i32, i32* %59
%61 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %58, i32 %60)
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %69
63: ; preds = %56
%64 = call i64 @OPENSSL_gmtime_diff(i32* %7, i32* %8, %struct.tm* %6, %struct.tm* %4)
%65 = icmp ne i64 %64, 0
%66 = zext i1 %65 to i32
%67 = call i32 @test_true(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.13, i64 0, i64 0), i32 %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %70, label %69
69: ; preds = %63, %56, %49, %42, %35, %28, %1
store i32 0, i32* %2
br label %83
70: ; preds = %63
%71 = load i32, i32* %7
%72 = sext i32 %71 to i64
%73 = mul nsw i64 %72, 86400
%74 = load i32, i32* %8
%75 = sext i32 %74 to i64
%76 = add nsw i64 %73, %75
store i64 %76, i64* %9
%77 = load i64, i64* %3
%78 = load i64, i64* %9
%79 = call i32 @test_long_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i64 %77, i64 %78)
%80 = icmp ne i32 %79, 0
br i1 %80, label %82, label %81
81: ; preds = %70
store i32 0, i32* %2
br label %83
82: ; preds = %70
store i32 1, i32* %2
br label %83
83: ; preds = %82, %81, %69
%84 = load i32, i32* %2
ret i32 %84
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@.str = [196 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/gmdifftest.c\00"
@.str.1 = [12 x i8] c"tm1.tm_year\00"
@.str.2 = [12 x i8] c"tm2.tm_year\00"
@.str.3 = [11 x i8] c"tm1.tm_mon\00"
@.str.4 = [11 x i8] c"tm2.tm_mon\00"
@.str.5 = [12 x i8] c"tm1.tm_mday\00"
@.str.6 = [12 x i8] c"tm2.tm_mday\00"
@.str.7 = [12 x i8] c"tm1.tm_hour\00"
@.str.8 = [12 x i8] c"tm2.tm_hour\00"
@.str.9 = [11 x i8] c"tm1.tm_min\00"
@.str.10 = [11 x i8] c"tm2.tm_min\00"
@.str.11 = [11 x i8] c"tm1.tm_sec\00"
@.str.12 = [11 x i8] c"tm2.tm_sec\00"
@.str.13 = [51 x i8] c"OPENSSL_gmtime_diff(&off_day, &off_sec, &o1, &tm1)\00"
@.str.14 = [7 x i8] c"offset\00"
@.str.15 = [8 x i8] c"toffset\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 5
%23 = load i32, i32* %22
%24 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 5
%25 = load i32, i32* %24
%26 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %23, i32 %25)
%27 = icmp eq i32 %26, 0
br i1 %27, label %79, label %28
28: ; preds = %1
%29 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 4
%30 = load i32, i32* %29
%31 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 4
%32 = load i32, i32* %31
%33 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %30, i32 %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %79, label %35
35: ; preds = %28
%36 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 3
%37 = load i32, i32* %36
%38 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 3
%39 = load i32, i32* %38
%40 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %37, i32 %39)
%41 = icmp eq i32 %40, 0
br i1 %41, label %79, label %42
42: ; preds = %35
%43 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 2
%44 = load i32, i32* %43
%45 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 2
%46 = load i32, i32* %45
%47 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %44, i32 %46)
%48 = icmp eq i32 %47, 0
br i1 %48, label %79, label %49
49: ; preds = %42
%50 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 1
%51 = load i32, i32* %50
%52 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 1
%53 = load i32, i32* %52
%54 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %51, i32 %53)
%55 = icmp eq i32 %54, 0
br i1 %55, label %79, label %56
56: ; preds = %49
%57 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 0
%58 = load i32, i32* %57
%59 = getelementptr inbounds %struct.tm, %struct.tm* %3, i64 0, i32 0
%60 = load i32, i32* %59
%61 = call i32 @test_int_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %58, i32 %60)
%62 = icmp eq i32 %61, 0
br i1 %62, label %79, label %63
63: ; preds = %56
%64 = call i64 @OPENSSL_gmtime_diff(i32* %5, i32* %6, %struct.tm* %4, %struct.tm* %2)
%65 = icmp ne i64 %64, 0
%66 = zext i1 %65 to i32
%67 = call i32 @test_true(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.13, i64 0, i64 0), i32 %66)
%68 = icmp eq i32 %67, 0
br i1 %68, label %79, label %69
69: ; preds = %63
%70 = load i32, i32* %5
%71 = sext i32 %70 to i64
%72 = mul nsw i64 %71, 86400
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = add nsw i64 %72, %74
%76 = call i32 @test_long_eq(i8* getelementptr inbounds ([196 x i8], [196 x i8]* @.str, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i64 %0, i64 %75)
%77 = icmp ne i32 %76, 0
%78 = zext i1 %77 to i32
br label %79
79: ; preds = %69, %1, %28, %35, %42, %49, %56, %63
%80 = phi i32 [ 0, %63 ], [ 0, %56 ], [ 0, %49 ], [ 0, %42 ], [ 0, %35 ], [ 0, %28 ], [ 0, %1 ], [ %78, %69 ]
ret i32 %80
}