#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 *, ...);
void print_header(void) {
  printf("%-5s  %-27s  %-14s  %-17s\n", "procs", "memory", "system", "cpu");
  printf("%2s %2s  %6s %6s %6s %6s  %4s %4s %4s  %2s %2s %2s %2s %2s %2s\n",
         "r", "b", "free", "mapped", "anon", "slab", "in", "cs", "flt", "us",
         "ni", "sy", "id", "wa", "ir");
}


x86 assembly (clang, -O0):
<print_header>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
lea    0xed8(%rip),%rdi
lea    0xeec(%rip),%rsi
lea    0xeeb(%rip),%rdx
lea    0xeeb(%rip),%rcx
lea    0xeeb(%rip),%r8
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
lea    0xf47(%rip),%rsi
lea    0xf27(%rip),%rdx
lea    0xf0c(%rip),%rcx
lea    0xf0a(%rip),%r8
lea    0xf0a(%rip),%r9
lea    0xf08(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xf02(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe8c(%rip),%r13
lea    0xef3(%rip),%r12
lea    0xef0(%rip),%r15
lea    0xeec(%rip),%r14
lea    0xee8(%rip),%rbx
lea    0xee4(%rip),%r11
lea    0xee0(%rip),%r10
lea    0xedc(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x38(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x30(%rbp),%rax
mov    %r13,0x10(%rsp)
mov    %r12,0x18(%rsp)
mov    %r15,0x20(%rsp)
mov    %r14,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_header>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xede(%rip),%rdi
lea    0xef2(%rip),%rsi
lea    0xef1(%rip),%rdx
lea    0xef1(%rip),%rcx
lea    0xef1(%rip),%r8
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf53(%rip),%rbx
lea    0xf49(%rip),%r14
lea    0xf3f(%rip),%r15
lea    0xf35(%rip),%r12
lea    0xf2b(%rip),%r13
lea    0xf21(%rip),%rbp
lea    0xf16(%rip),%r10
lea    0xea1(%rip),%r11
lea    0xeaf(%rip),%rdi
lea    0xf15(%rip),%rsi
lea    0xef5(%rip),%rdx
lea    0xeda(%rip),%rcx
lea    0xed8(%rip),%r8
lea    0xed8(%rip),%r9
mov    $0x0,%eax
push   %rbx
push   %r14
push   %r15
push   %r12
push   %r13
push   %rbp
push   %r10
push   %r11
lea    0xec8(%rip),%rbp
push   %rbp
lea    0xebb(%rip),%rbp
push   %rbp
call   1030 <printf@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"%-5s %-27s %-14s %-17s\0A\00"
@.str.1 = [6 x i8] c"procs\00"
@.str.2 = [7 x i8] c"memory\00"
@.str.3 = [7 x i8] c"system\00"
@.str.4 = [4 x i8] c"cpu\00"
@.str.5 = [64 x i8] c"%2s %2s %6s %6s %6s %6s %4s %4s %4s %2s %2s %2s %2s %2s %2s\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [2 x i8] c"b\00"
@.str.8 = [5 x i8] c"free\00"
@.str.9 = [7 x i8] c"mapped\00"
@.str.10 = [5 x i8] c"anon\00"
@.str.11 = [5 x i8] c"slab\00"
@.str.12 = [3 x i8] c"in\00"
@.str.13 = [3 x i8] c"cs\00"
@.str.14 = [4 x i8] c"flt\00"
@.str.15 = [3 x i8] c"us\00"
@.str.16 = [3 x i8] c"ni\00"
@.str.17 = [3 x i8] c"sy\00"
@.str.18 = [3 x i8] c"id\00"
@.str.19 = [3 x i8] c"wa\00"
@.str.20 = [3 x i8] c"ir\00"
define void @print_header() {
%1 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%2 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 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 ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"%-5s %-27s %-14s %-17s\0A\00"
@.str.1 = [6 x i8] c"procs\00"
@.str.2 = [7 x i8] c"memory\00"
@.str.3 = [7 x i8] c"system\00"
@.str.4 = [4 x i8] c"cpu\00"
@.str.5 = [64 x i8] c"%2s %2s %6s %6s %6s %6s %4s %4s %4s %2s %2s %2s %2s %2s %2s\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [2 x i8] c"b\00"
@.str.8 = [5 x i8] c"free\00"
@.str.9 = [7 x i8] c"mapped\00"
@.str.10 = [5 x i8] c"anon\00"
@.str.11 = [5 x i8] c"slab\00"
@.str.12 = [3 x i8] c"in\00"
@.str.13 = [3 x i8] c"cs\00"
@.str.14 = [4 x i8] c"flt\00"
@.str.15 = [3 x i8] c"us\00"
@.str.16 = [3 x i8] c"ni\00"
@.str.17 = [3 x i8] c"sy\00"
@.str.18 = [3 x i8] c"id\00"
@.str.19 = [3 x i8] c"wa\00"
@.str.20 = [3 x i8] c"ir\00"
define void @print_header() {
%1 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 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 ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
ret void
}