#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*/ carmen_commander_print_centered(char *, int);
int /*<<< orphan*/ mvprintw(int, int, char *);
int /*<<< orphan*/ refresh();
void carmen_commander_print_header(int header_row) {
  carmen_commander_print_centered("CARMEN PROCESS COMMANDER", header_row);
  mvprintw(header_row + 2, 5 - 1, "ID");
  mvprintw(header_row + 2, 9, "MODULE NAME");
  mvprintw(header_row + 2, 36, "HOST");
  mvprintw(header_row + 2, 50, "STATE");
  refresh();
}


x86 assembly (clang, -O0):
<carmen_commander_print_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xebb(%rip),%rdi
call   1030 <carmen_commander_print_centered@plt>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    $0x4,%esi
lea    0xebd(%rip),%rdx
call   1050 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    $0x9,%esi
lea    0xea9(%rip),%rdx
call   1050 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    $0x24,%esi
lea    0xe9e(%rip),%rdx
call   1050 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    $0x32,%esi
lea    0xe8c(%rip),%rdx
call   1050 <mvprintw@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<carmen_commander_print_header>:
push   %rbx
mov    %edi,%ebx
lea    0xec6(%rip),%rdi
mov    %ebx,%esi
call   1030 <carmen_commander_print_centered@plt>
add    $0x2,%ebx
lea    0xece(%rip),%rdx
mov    %ebx,%edi
mov    $0x4,%esi
call   1050 <mvprintw@plt>
lea    0xebe(%rip),%rdx
mov    %ebx,%edi
mov    $0x9,%esi
call   1050 <mvprintw@plt>
lea    0xeb7(%rip),%rdx
mov    %ebx,%edi
mov    $0x24,%esi
call   1050 <mvprintw@plt>
lea    0xea9(%rip),%rdx
mov    %ebx,%edi
mov    $0x32,%esi
call   1050 <mvprintw@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <refresh@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"CARMEN PROCESS COMMANDER\00"
@.str.1 = [3 x i8] c"ID\00"
@.str.2 = [12 x i8] c"MODULE NAME\00"
@.str.3 = [5 x i8] c"HOST\00"
@.str.4 = [6 x i8] c"STATE\00"
define void @carmen_commander_print_header(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @carmen_commander_print_centered(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 2
%7 = call i32 @mvprintw(i32 %6, i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 2
%10 = call i32 @mvprintw(i32 %9, i32 9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 2
%13 = call i32 @mvprintw(i32 %12, i32 36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 2
%16 = call i32 @mvprintw(i32 %15, i32 50, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"CARMEN PROCESS COMMANDER\00"
@.str.1 = [3 x i8] c"ID\00"
@.str.2 = [12 x i8] c"MODULE NAME\00"
@.str.3 = [5 x i8] c"HOST\00"
@.str.4 = [6 x i8] c"STATE\00"
define void @carmen_commander_print_header(i32 %0) {
%2 = tail call i32 @carmen_commander_print_centered(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = add nsw i32 %0, 2
%4 = tail call i32 @mvprintw(i32 %3, i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @mvprintw(i32 %3, i32 9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @mvprintw(i32 %3, i32 36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @mvprintw(i32 %3, i32 50, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (...) @refresh()
ret void
}