#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*/ free(char *);
char *julian_display_hhmm(double);
char *julian_display_yyyy_mm_dd(double);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
char *strdup(char *);
char *julian_display_yyyy_mm_dd_hhmm(double current) {
  char buffer[128];
  char *yyyy_mm_dd;
  char *hhmm;
  yyyy_mm_dd = julian_display_yyyy_mm_dd(current);
  hhmm = julian_display_hhmm(current);
  sprintf(buffer, "%s:%s", yyyy_mm_dd, hhmm);
  free(yyyy_mm_dd);
  free(hhmm);
  return strdup(buffer);
}


x86 assembly (clang, -O0):
<julian_display_yyyy_mm_dd_hhmm>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <julian_display_yyyy_mm_dd@plt>
mov    %rax,-0x98(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1050 <julian_display_hhmm@plt>
mov    %rax,-0xa0(%rbp)
lea    -0x90(%rbp),%rdi
mov    -0x98(%rbp),%rdx
mov    -0xa0(%rbp),%rcx
lea    0xe62(%rip),%rsi
call   1060 <sprintf@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0xa0(%rbp),%rdi
call   1030 <free@plt>
lea    -0x90(%rbp),%rdi
call   1070 <strdup@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<julian_display_yyyy_mm_dd_hhmm>:
push   %r15
push   %r14
push   %rbx
sub    $0x90,%rsp
movsd  %xmm0,0x8(%rsp)
call   1040 <julian_display_yyyy_mm_dd@plt>
mov    %rax,%r14
movsd  0x8(%rsp),%xmm0
call   1050 <julian_display_hhmm@plt>
mov    %rax,%rbx
lea    0xe81(%rip),%rsi
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    %r14,%rdx
mov    %rax,%rcx
call   1060 <sprintf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1070 <strdup@plt>
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s:%s\00"
define i8* @julian_display_yyyy_mm_dd_hhmm(double %0) {
%2 = alloca double
%3 = alloca [128 x i8]
%4 = alloca i8*
%5 = alloca i8*
store double %0, double* %2
%6 = load double, double* %2
%7 = call i8* @julian_display_yyyy_mm_dd(double %6)
store i8* %7, i8** %4
%8 = load double, double* %2
%9 = call i8* @julian_display_hhmm(double %8)
store i8* %9, i8** %5
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%11 = load i8*, i8** %4
%12 = load i8*, i8** %5
%13 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12)
%14 = load i8*, i8** %4
%15 = call i32 @free(i8* %14)
%16 = load i8*, i8** %5
%17 = call i32 @free(i8* %16)
%18 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%19 = call i8* @strdup(i8* %18)
ret i8* %19
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s:%s\00"
define noalias i8* @julian_display_yyyy_mm_dd_hhmm(double %0) {
%2 = alloca [128 x i8]
%3 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%4 = tail call i8* @julian_display_yyyy_mm_dd(double %0)
%5 = tail call i8* @julian_display_hhmm(double %0)
%6 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5)
%7 = tail call i32 @free(i8* %4)
%8 = tail call i32 @free(i8* %5)
%9 = call i8* @strdup(i8* %3)
ret i8* %9
}