#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 header(int verbose, int param) {
  if (param)
    printf("Output values in Mbytes\n");
  else
    printf("Output values in %%\n");
  if (verbose)
    printf("veid       ");
  printf(" LowMem  LowMem     RAM MemSwap MemSwap   Alloc   Alloc   Alloc\n");
  if (verbose)
    printf("           ");
  printf("   util  commit    util    util  commit    util  commit   limit\n");
  return;
}


x86 assembly (clang, -O0):
<header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1139 <header+0x29>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
jmp    1145 <header+0x35>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     115b <header+0x4b>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     117d <header+0x6d>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<header>:
push   %rbx
mov    %edi,%ebx
test   %esi,%esi
je     115d <header+0x3d>
lea    0xf7f(%rip),%rdi
call   1030 <puts@plt>
test   %ebx,%ebx
je     116d <header+0x4d>
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
call   1040 <printf@plt>
jmp    1179 <header+0x59>
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
test   %ebx,%ebx
jne    1137 <header+0x17>
lea    0xeb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Output values in Mbytes\0A\00"
@.str.1 = [21 x i8] c"Output values in %%\0A\00"
@.str.2 = [12 x i8] c"veid \00"
@.str.3 = [65 x i8] c" LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc\0A\00"
@.str.4 = [12 x i8] c" \00"
@.str.5 = [65 x i8] c" util commit util util commit util commit limit\0A\00"
define void @header(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %11
9: ; preds = %2
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %7
%12 = load i32, i32* %3
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %11
%17 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* %3
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
br label %22
22: ; preds = %20, %16
%23 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [21 x i8] c"Output values in %%\0A\00"
@.str.2 = [12 x i8] c"veid \00"
@.str.4 = [12 x i8] c" \00"
@str = [64 x i8] c" LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc\00"
@str.6 = [64 x i8] c" util commit util util commit util commit limit\00"
@str.7 = [24 x i8] c"Output values in Mbytes\00"
define void @header(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.7, i64 0, i64 0))
br label %8
6: ; preds = %2
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
%9 = icmp eq i32 %0, 0
br i1 %9, label %14, label %10
10: ; preds = %8
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
br label %16
14: ; preds = %8
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
br label %16
16: ; preds = %14, %10
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.6, i64 0, i64 0))
ret void
}