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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ print_date(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ print_gap(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ print_line(int, int /*<<< orphan*/ *);
void print_day(time_t info, FILE *fp) {
  print_gap(1, fp);
  print_line(50, fp);
  fprintf(fp, "(");
  print_date(info, fp);
  fprintf(fp, ")\n");
  fprintf(fp, "Goals:\n");
}


x86 assembly (clang, -O0):
<print_day>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1050 <print_gap@plt>
mov    -0x10(%rbp),%rsi
mov    $0x32,%edi
call   1030 <print_line@plt>
mov    -0x10(%rbp),%rdi
lea    0xe8a(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <print_date@plt>
mov    -0x10(%rbp),%rdi
lea    0xe70(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1060 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_day>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    $0x1,%edi
call   1060 <print_gap@plt>
mov    $0x32,%edi
mov    %rbx,%rsi
call   1030 <print_line@plt>
mov    $0x28,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1050 <print_date@plt>
lea    0xe73(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe5d(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <fwrite@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"(\00"
@.str.1 = [3 x i8] c")\0A\00"
@.str.2 = [8 x i8] c"Goals:\0A\00"
define void @print_day(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = call i32 @print_gap(i32 1, i32* %5)
%7 = load i32*, i32** %4
%8 = call i32 @print_line(i32 50, i32* %7)
%9 = load i32*, i32** %4
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %3
%12 = load i32*, i32** %4
%13 = call i32 @print_date(i32 %11, i32* %12)
%14 = load i32*, i32** %4
%15 = call i32 @fprintf(i32* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32*, i32** %4
%17 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c")\0A\00"
@.str.2 = [8 x i8] c"Goals:\0A\00"
define void @print_day(i32 %0, i32* %1) {
%3 = tail call i32 @print_gap(i32 1, i32* %1)
%4 = tail call i32 @print_line(i32 50, i32* %1)
%5 = tail call i32 @fputc(i32 40, i32* %1)
%6 = tail call i32 @print_date(i32 %0, i32* %1)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i64 2, i64 1, i32* %1)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 7, i64 1, i32* %1)
ret void
}