#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 diskheader(void) {
  printf("disk- ------------reads------------ ------------writes----------- "
         "-----IO------\n");
  printf("%5s %6s %6s %7s %7s %6s %6s %7s %7s %6s %6s\n", " ", "total",
         "merged", "sectors", "ms", "total", "merged", "sectors", "ms", "cur",
         "sec");
}


x86 assembly (clang, -O0):
<diskheader>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
lea    0xf45(%rip),%rsi
lea    0xf40(%rip),%r15
lea    0xf3f(%rip),%r14
lea    0xf3f(%rip),%rbx
lea    0xf40(%rip),%r11
lea    0xf3c(%rip),%r10
lea    0xf39(%rip),%rax
mov    %r15,%rdx
mov    %r14,%rcx
mov    %rbx,%r8
mov    %r11,%r9
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<diskheader>:
push   %rax
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
lea    0xf17(%rip),%r10
lea    0xf0c(%rip),%r11
lea    0xf02(%rip),%r9
lea    0xef3(%rip),%r8
lea    0xee5(%rip),%rcx
lea    0xed8(%rip),%rdx
lea    0xea2(%rip),%rdi
lea    0xec8(%rip),%rsi
xor    %eax,%eax
push   %r10
push   %r11
push   %r9
push   %r8
push   %rcx
push   %rdx
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [81 x i8] c"disk- ------------reads------------ ------------writes----------- -----IO------\0A\00"
@.str.1 = [45 x i8] c"%5s %6s %6s %7s %7s %6s %6s %7s %7s %6s %6s\0A\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [6 x i8] c"total\00"
@.str.4 = [7 x i8] c"merged\00"
@.str.5 = [8 x i8] c"sectors\00"
@.str.6 = [3 x i8] c"ms\00"
@.str.7 = [4 x i8] c"cur\00"
@.str.8 = [4 x i8] c"sec\00"
define void @diskheader() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 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 ([7 x i8], [7 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 ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [45 x i8] c"%5s %6s %6s %7s %7s %6s %6s %7s %7s %6s %6s\0A\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [6 x i8] c"total\00"
@.str.4 = [7 x i8] c"merged\00"
@.str.5 = [8 x i8] c"sectors\00"
@.str.6 = [3 x i8] c"ms\00"
@.str.7 = [4 x i8] c"cur\00"
@.str.8 = [4 x i8] c"sec\00"
@str = [80 x i8] c"disk- ------------reads------------ ------------writes----------- -----IO------\00"
define void @diskheader() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 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 ([7 x i8], [7 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 ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
ret void
}