#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 cochran_log_print_short_header(int ordinal) {
  if (ordinal < 0) {
    printf("Dive Rep YYYY/MM/DD hh:mm:ss   SIT    BT  Depth Temp   NDL  Deco "
           "Int Volt Con   O2   He  Pro Pre  Pro Beg  Pro End\n");
    printf("==== === =================== ===== ===== ====== ==== ===== ===== "
           "=== ==== === ==== ==== ======== ======== ========\n");
  } else {
    printf("  # Dive Rep YYYY/MM/DD hh:mm:ss   SIT    BT  Depth Temp   NDL  "
           "Deco Int Volt Con   O2   He  Pro Pre  Pro Beg  Pro End\n");
    printf("=== ==== === =================== ===== ===== ====== ==== ===== "
           "===== === ==== === ==== ==== ======== ======== ========\n");
  }
}


x86 assembly (clang, -O0):
<cochran_log_print_short_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1142 <cochran_log_print_short_header+0x32>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
jmp    115a <cochran_log_print_short_header+0x4a>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cochran_log_print_short_header>:
push   %rbx
test   %edi,%edi
lea    0xeea(%rip),%rax
lea    0xedf(%rip),%rdi
cmovs  %rax,%rdi
lea    0xf4f(%rip),%rax
lea    0xf44(%rip),%rbx
cmovs  %rax,%rbx
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [116 x i8] c"Dive Rep YYYY/MM/DD hh:mm:ss SIT BT Depth Temp NDL Deco Int Volt Con O2 He Pro Pre Pro Beg Pro End\0A\00"
@.str.1 = [116 x i8] c"==== === =================== ===== ===== ====== ==== ===== ===== === ==== === ==== ==== ======== ======== ========\0A\00"
@.str.2 = [120 x i8] c" # Dive Rep YYYY/MM/DD hh:mm:ss SIT BT Depth Temp NDL Deco Int Volt Con O2 He Pro Pre Pro Beg Pro End\0A\00"
@.str.3 = [120 x i8] c"=== ==== === =================== ===== ===== ====== ==== ===== ===== === ==== === ==== ==== ======== ======== ========\0A\00"
define void @cochran_log_print_short_header(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.1, i64 0, i64 0))
br label %11
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.3, i64 0, i64 0))
br label %11
11: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
@str = [119 x i8] c" # Dive Rep YYYY/MM/DD hh:mm:ss SIT BT Depth Temp NDL Deco Int Volt Con O2 He Pro Pre Pro Beg Pro End\00"
@str.4 = [119 x i8] c"=== ==== === =================== ===== ===== ====== ==== ===== ===== === ==== === ==== ==== ======== ======== ========\00"
@str.5 = [115 x i8] c"Dive Rep YYYY/MM/DD hh:mm:ss SIT BT Depth Temp NDL Deco Int Volt Con O2 He Pro Pre Pro Beg Pro End\00"
@str.6 = [115 x i8] c"==== === =================== ===== ===== ====== ==== ===== ===== === ==== === ==== ==== ======== ======== ========\00"
define void @cochran_log_print_short_header(i32 %0) {
%2 = icmp slt i32 %0, 0
%3 = select i1 %2, i8* getelementptr inbounds ([115 x i8], [115 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([119 x i8], [119 x i8]* @str, i64 0, i64 0)
%4 = select i1 %2, i8* getelementptr inbounds ([115 x i8], [115 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([119 x i8], [119 x i8]* @str.4, i64 0, i64 0)
%5 = tail call i32 @puts(i8* dereferenceable(1) %3)
%6 = tail call i32 @puts(i8* dereferenceable(1) %4)
ret void
}