#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;
typedef int /*<<< orphan*/ ASN1_TIME;

/* Variables and functions */
int /*<<< orphan*/ ASN1_STRING_free(int /*<<< orphan*/ *);
scalar_t__ ASN1_TIME_compare(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ *ASN1_TIME_set(int /*<<< orphan*/ *,
                                  int /*<<< orphan*/ const);
int /*<<< orphan*/ print_time(int /*<<< orphan*/ *);
int /*<<< orphan*/ test_fail_message(int /*<<< orphan*/ *, char const *, int,
                                     char *, char const *, char const *, char *,
                                     char *, int /*<<< orphan*/,
                                     int /*<<< orphan*/);
int test_time_t_ne(const char *file, int line, const char *s1, const char *s2,
                   const time_t t1, const time_t t2) {
  ASN1_TIME *at1 = ASN1_TIME_set(NULL, t1);
  ASN1_TIME *at2 = ASN1_TIME_set(NULL, t2);
  int r = at1 != NULL && at2 != NULL && ASN1_TIME_compare(at1, at2) != 0;
  if (!r)
    test_fail_message(NULL, file, line, "time_t", s1, s2,
                      "!=", "[%s] compared to [%s]", print_time(at1),
                      print_time(at2));
  ASN1_STRING_free(at1);
  ASN1_STRING_free(at2);
  return r;
}


x86 assembly (clang, -O0):
<test_time_t_ne>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x88,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
mov    -0x2c(%rbp),%esi
xor    %eax,%eax
mov    %eax,%edi
call   1050 <ASN1_TIME_set@plt>
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%esi
xor    %eax,%eax
mov    %eax,%edi
call   1050 <ASN1_TIME_set@plt>
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x38(%rbp)
mov    %al,-0x45(%rbp)
je     11ca <test_time_t_ne+0x7a>
xor    %eax,%eax
cmpq   $0x0,-0x40(%rbp)
mov    %al,-0x45(%rbp)
je     11ca <test_time_t_ne+0x7a>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1060 <ASN1_TIME_compare@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jne    1255 <test_time_t_ne+0x105>
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
call   1070 <print_time@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%rdi
call   1070 <print_time@plt>
mov    -0x70(%rbp),%rsi
mov    -0x64(%rbp),%edx
mov    -0x60(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x4c(%rbp),%r10d
xor    %ecx,%ecx
mov    %ecx,%edi
lea    0xdd0(%rip),%rcx
lea    0xdd0(%rip),%rbx
lea    0xdcc(%rip),%r11
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1030 <test_fail_message@plt>
mov    -0x38(%rbp),%rdi
call   1040 <ASN1_STRING_free@plt>
mov    -0x40(%rbp),%rdi
call   1040 <ASN1_STRING_free@plt>
mov    -0x44(%rbp),%eax
add    $0x88,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_time_t_ne>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,%ebp
mov    %rcx,0x10(%rsp)
mov    %rdx,0x8(%rsp)
mov    %esi,%r13d
mov    %rdi,%r12
xor    %edi,%edi
mov    %r8d,%esi
call   1050 <ASN1_TIME_set@plt>
mov    %rax,%rbx
xor    %edi,%edi
mov    %ebp,%esi
call   1050 <ASN1_TIME_set@plt>
mov    %rax,%r14
test   %rbx,%rbx
je     11aa <test_time_t_ne+0x5a>
test   %r14,%r14
je     11aa <test_time_t_ne+0x5a>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <ASN1_TIME_compare@plt>
mov    $0x1,%r15d
test   %rax,%rax
jne    11f5 <test_time_t_ne+0xa5>
mov    %rbx,%rdi
call   1070 <print_time@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1070 <print_time@plt>
lea    0xe47(%rip),%r10
lea    0xe3d(%rip),%r11
lea    0xe2f(%rip),%rcx
xor    %edi,%edi
mov    %r12,%rsi
mov    %r13d,%edx
mov    0x8(%rsp),%r8
mov    0x10(%rsp),%r9
push   %rax
push   %rbp
push   %r10
push   %r11
call   1030 <test_fail_message@plt>
add    $0x20,%rsp
xor    %r15d,%r15d
mov    %rbx,%rdi
call   1040 <ASN1_STRING_free@plt>
mov    %r14,%rdi
call   1040 <ASN1_STRING_free@plt>
mov    %r15d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"time_t\00"
@.str.1 = [3 x i8] c"!=\00"
@.str.2 = [22 x i8] c"[%s] compared to [%s]\00"
define i32 @test_time_t_ne(i8* %0, i32 %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32
store i8* %0, i8** %7
store i32 %1, i32* %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%16 = load i32, i32* %11
%17 = call i32* @ASN1_TIME_set(i32* null, i32 %16)
store i32* %17, i32** %13
%18 = load i32, i32* %12
%19 = call i32* @ASN1_TIME_set(i32* null, i32 %18)
store i32* %19, i32** %14
%20 = load i32*, i32** %13
%21 = icmp ne i32* %20, null
br i1 %21, label %22, label %30
22: ; preds = %6
%23 = load i32*, i32** %14
%24 = icmp ne i32* %23, null
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load i32*, i32** %13
%27 = load i32*, i32** %14
%28 = call i64 @ASN1_TIME_compare(i32* %26, i32* %27)
%29 = icmp ne i64 %28, 0
br label %30
30: ; preds = %25, %22, %6
%31 = phi i1 [ false, %22 ], [ false, %6 ], [ %29, %25 ]
%32 = zext i1 %31 to i32
store i32 %32, i32* %15
%33 = load i32, i32* %15
%34 = icmp ne i32 %33, 0
br i1 %34, label %45, label %35
35: ; preds = %30
%36 = load i8*, i8** %7
%37 = load i32, i32* %8
%38 = load i8*, i8** %9
%39 = load i8*, i8** %10
%40 = load i32*, i32** %13
%41 = call i32 @print_time(i32* %40)
%42 = load i32*, i32** %14
%43 = call i32 @print_time(i32* %42)
%44 = call i32 @test_fail_message(i32* null, i8* %36, i32 %37, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %38, i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %41, i32 %43)
br label %45
45: ; preds = %35, %30
%46 = load i32*, i32** %13
%47 = call i32 @ASN1_STRING_free(i32* %46)
%48 = load i32*, i32** %14
%49 = call i32 @ASN1_STRING_free(i32* %48)
%50 = load i32, i32* %15
ret i32 %50
}

LLVM IR (-O2):
@.str = [7 x i8] c"time_t\00"
@.str.1 = [3 x i8] c"!=\00"
@.str.2 = [22 x i8] c"[%s] compared to [%s]\00"
define i32 @test_time_t_ne(i8* %0, i32 %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = tail call i32* @ASN1_TIME_set(i32* null, i32 %4)
%8 = tail call i32* @ASN1_TIME_set(i32* null, i32 %5)
%9 = icmp ne i32* %7, null
%10 = icmp ne i32* %8, null
%11 = select i1 %9, i1 %10, i1 false
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = tail call i64 @ASN1_TIME_compare(i32* %7, i32* %8)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %6, %12
%16 = tail call i32 @print_time(i32* %7)
%17 = tail call i32 @print_time(i32* %8)
%18 = tail call i32 @test_fail_message(i32* null, i8* %0, i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %16, i32 %17)
br label %19
19: ; preds = %15, %12
%20 = phi i32 [ 0, %15 ], [ 1, %12 ]
%21 = tail call i32 @ASN1_STRING_free(i32* %7)
%22 = tail call i32 @ASN1_STRING_free(i32* %8)
ret i32 %20
}