#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*/ printf(char *, ...);
void print_header() {
  printf("Keys:		%d bytes each\n", 16);
  printf("Values:		%d bytes each\n", 100);
  printf("Entries:	%d\n", 2000000);
  printf("IndexSize:	%.1f MB (estimated)\n",
         (double)((double)(16 + 8 * 6) * 2000000) / 1048576.0);
  printf("DBSize:		%.1f MB (estimated)\n",
         (double)((double)(100 + 8 * 3) * 2000000) / 1048576.0);
  printf("---------------------------------------------------------------------"
         "-----------------------------------------\n");
}


x86 assembly (clang, -O0):
<print_header>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x1e8480,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
movsd  0xeac(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
movsd  0xe8e(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_header>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x1e8480,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
movsd  0xe97(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
movsd  0xe89(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xefc(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Keys:\09\09%d bytes each\0A\00"
@.str.1 = [24 x i8] c"Values:\09\09%d bytes each\0A\00"
@.str.2 = [13 x i8] c"Entries:\09%d\0A\00"
@.str.3 = [32 x i8] c"IndexSize:\09%.1f MB (estimated)\0A\00"
@.str.4 = [30 x i8] c"DBSize:\09\09%.1f MB (estimated)\0A\00"
@.str.5 = [112 x i8] c"--------------------------------------------------------------------------------------------------------------\0A\00"
define void @print_header() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 16)
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 100)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 2000000)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), double 0x405E848000000000)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double 0x406D905C00000000)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Keys:\09\09%d bytes each\0A\00"
@.str.1 = [24 x i8] c"Values:\09\09%d bytes each\0A\00"
@.str.2 = [13 x i8] c"Entries:\09%d\0A\00"
@.str.3 = [32 x i8] c"IndexSize:\09%.1f MB (estimated)\0A\00"
@.str.4 = [30 x i8] c"DBSize:\09\09%.1f MB (estimated)\0A\00"
@str = [111 x i8] c"--------------------------------------------------------------------------------------------------------------\00"
define void @print_header() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 16)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 100)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 2000000)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), double 0x405E848000000000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), double 0x406D905C00000000)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @str, i64 0, i64 0))
ret void
}