#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 *, char *, char *);
void print_header() {
  printf("%-9s %5s %10s %4s %9s %18s %9s %10s %s\n", "COMMAND", "PID", "USER",
         "FD", "TYPE", "DEVICE", "SIZE/OFF", "NODE", "NAME");
}


x86 assembly (clang, -O0):
<print_header>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x28,%rsp
lea    0xee0(%rip),%rdi
lea    0xf01(%rip),%rsi
lea    0xf02(%rip),%rdx
lea    0xeff(%rip),%rcx
lea    0xefd(%rip),%r8
lea    0xef9(%rip),%r9
lea    0xef7(%rip),%rbx
lea    0xef7(%rip),%r11
lea    0xef9(%rip),%r10
lea    0xef7(%rip),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_header>:
push   %rbx
lea    0xf3e(%rip),%rax
lea    0xf32(%rip),%r10
lea    0xf22(%rip),%r11
lea    0xf14(%rip),%rbx
lea    0xecc(%rip),%rdi
lea    0xeed(%rip),%rsi
lea    0xeee(%rip),%rdx
lea    0xeeb(%rip),%rcx
lea    0xee9(%rip),%r8
lea    0xee5(%rip),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [40 x i8] c"%-9s %5s %10s %4s %9s %18s %9s %10s %s\0A\00"
@.str.1 = [8 x i8] c"COMMAND\00"
@.str.2 = [4 x i8] c"PID\00"
@.str.3 = [5 x i8] c"USER\00"
@.str.4 = [3 x i8] c"FD\00"
@.str.5 = [5 x i8] c"TYPE\00"
@.str.6 = [7 x i8] c"DEVICE\00"
@.str.7 = [9 x i8] c"SIZE/OFF\00"
@.str.8 = [5 x i8] c"NODE\00"
@.str.9 = [5 x i8] c"NAME\00"
define void @print_header() {
%1 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [40 x i8] c"%-9s %5s %10s %4s %9s %18s %9s %10s %s\0A\00"
@.str.1 = [8 x i8] c"COMMAND\00"
@.str.2 = [4 x i8] c"PID\00"
@.str.3 = [5 x i8] c"USER\00"
@.str.4 = [3 x i8] c"FD\00"
@.str.5 = [5 x i8] c"TYPE\00"
@.str.6 = [7 x i8] c"DEVICE\00"
@.str.7 = [9 x i8] c"SIZE/OFF\00"
@.str.8 = [5 x i8] c"NODE\00"
@.str.9 = [5 x i8] c"NAME\00"
define void @print_header() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
ret void
}