#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 *, char *, char *, char *, char *, char *,
                          char *, char *);
void print_map_hdr(void) {
  printf("%8s %-15s %-10s %8s %8s %8s %-15s\n", "MID", "TYPE", "FLAGS", "KeySz",
         "ValueSz", "MaxEnts", "NAME");
}


x86 assembly (clang, -O0):
<print_map_hdr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    0xefd(%rip),%rsi
lea    0xefa(%rip),%rdx
lea    0xef8(%rip),%rcx
lea    0xef7(%rip),%r8
lea    0xef6(%rip),%r9
lea    0xef7(%rip),%r10
lea    0xef8(%rip),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_map_hdr>:
push   %rax
lea    0xf30(%rip),%rax
lea    0xf21(%rip),%r10
lea    0xeda(%rip),%rdi
lea    0xef6(%rip),%rsi
lea    0xef3(%rip),%rdx
lea    0xef1(%rip),%rcx
lea    0xef0(%rip),%r8
lea    0xeef(%rip),%r9
push   %rax
push   %r10
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [35 x i8] c"%8s %-15s %-10s %8s %8s %8s %-15s\0A\00"
@.str.1 = [4 x i8] c"MID\00"
@.str.2 = [5 x i8] c"TYPE\00"
@.str.3 = [6 x i8] c"FLAGS\00"
@.str.4 = [6 x i8] c"KeySz\00"
@.str.5 = [8 x i8] c"ValueSz\00"
@.str.6 = [8 x i8] c"MaxEnts\00"
@.str.7 = [5 x i8] c"NAME\00"
define void @print_map_hdr() {
%1 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"%8s %-15s %-10s %8s %8s %8s %-15s\0A\00"
@.str.1 = [4 x i8] c"MID\00"
@.str.2 = [5 x i8] c"TYPE\00"
@.str.3 = [6 x i8] c"FLAGS\00"
@.str.4 = [6 x i8] c"KeySz\00"
@.str.5 = [8 x i8] c"ValueSz\00"
@.str.6 = [8 x i8] c"MaxEnts\00"
@.str.7 = [5 x i8] c"NAME\00"
define void @print_map_hdr() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
ret void
}