#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 printListServiceHeader(int allDetails) {
  printf("%-56s  %-20s", "                         Bucket", "      Created");
  if (allDetails) {
    printf("  %-64s  %-12s", "                            Owner ID",
           "Display Name");
  }
  printf("\n");
  printf("--------------------------------------------------------  "
         "--------------------");
  if (allDetails) {
    printf("  -------------------------------------------------"
           "---------------  ------------");
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<printListServiceHeader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
lea    0xee4(%rip),%rsi
lea    0xefd(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     115d <printListServiceHeader+0x4d>
lea    0xef3(%rip),%rdi
lea    0xefb(%rip),%rsi
lea    0xf19(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     1191 <printListServiceHeader+0x81>
lea    0xf43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printListServiceHeader>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xef5(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebx,%ebx
je     1180 <printListServiceHeader+0x60>
lea    0xef1(%rip),%rdi
lea    0xef9(%rip),%rsi
lea    0xf17(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf0c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4d(%rip),%rdi
jmp    1191 <printListServiceHeader+0x71>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeeb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%-56s %-20s\00"
@.str.1 = [32 x i8] c" Bucket\00"
@.str.2 = [14 x i8] c" Created\00"
@.str.3 = [15 x i8] c" %-64s %-12s\00"
@.str.4 = [37 x i8] c" Owner ID\00"
@.str.5 = [13 x i8] c"Display Name\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [79 x i8] c"-------------------------------------------------------- --------------------\00"
@.str.8 = [81 x i8] c" ---------------------------------------------------------------- ------------\00"
define void @printListServiceHeader(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.7, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0))
br label %15
15: ; preds = %13, %8
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"%-56s %-20s\00"
@.str.1 = [32 x i8] c" Bucket\00"
@.str.2 = [14 x i8] c" Created\00"
@.str.3 = [15 x i8] c" %-64s %-12s\00"
@.str.4 = [37 x i8] c" Owner ID\00"
@.str.5 = [13 x i8] c"Display Name\00"
@.str.7 = [79 x i8] c"-------------------------------------------------------- --------------------\00"
@.str.8 = [81 x i8] c" ---------------------------------------------------------------- ------------\00"
define void @printListServiceHeader(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%3 = icmp eq i32 %0, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.7, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = tail call i32 @putchar(i32 10)
br label %10
10: ; preds = %8, %4
%11 = phi i8* [ getelementptr inbounds ([79 x i8], [79 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0), %4 ]
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %11)
%13 = tail call i32 @putchar(i32 10)
ret void
}