#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 */

/* Variables and functions */
int /*<<< orphan*/ check_date_max(int /*<<< orphan*/, char *);
int /*<<< orphan*/ check_date_min(int /*<<< orphan*/, char *);
int /*<<< orphan*/ gmtime;
int /*<<< orphan*/ localtime;
int main(void) {
  check_date_max(gmtime, "gmtime");
  check_date_max(localtime, "localtime");
  check_date_min(gmtime, "gmtime");
  check_date_min(localtime, "localtime");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
lea    0xec1(%rip),%rsi
call   1040 <check_date_max@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
lea    0xeb3(%rip),%rsi
call   1040 <check_date_max@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
lea    0xe97(%rip),%rsi
call   1030 <check_date_min@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%edi
lea    0xe89(%rip),%rsi
call   1030 <check_date_min@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    0x2eb9(%rip),%r15
mov    (%r15),%edi
lea    0xec7(%rip),%r14
mov    %r14,%rsi
call   1040 <check_date_max@plt>
mov    0x2e90(%rip),%r12
mov    (%r12),%edi
lea    0xeb4(%rip),%rbx
mov    %rbx,%rsi
call   1040 <check_date_max@plt>
mov    (%r15),%edi
mov    %r14,%rsi
call   1030 <check_date_min@plt>
mov    (%r12),%edi
mov    %rbx,%rsi
call   1030 <check_date_min@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@gmtime = global i32 0
@.str = [7 x i8] c"gmtime\00"
@localtime = global i32 0
@.str.1 = [10 x i8] c"localtime\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @gmtime
%3 = call i32 @check_date_max(i32 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @localtime
%5 = call i32 @check_date_max(i32 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @gmtime
%7 = call i32 @check_date_min(i32 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @localtime
%9 = call i32 @check_date_min(i32 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@gmtime = global i32 0
@.str = [7 x i8] c"gmtime\00"
@localtime = global i32 0
@.str.1 = [10 x i8] c"localtime\00"
define i32 @main() {
%1 = load i32, i32* @gmtime
%2 = tail call i32 @check_date_max(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @localtime
%4 = tail call i32 @check_date_max(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @gmtime
%6 = tail call i32 @check_date_min(i32 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @localtime
%8 = tail call i32 @check_date_min(i32 %7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}