#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*/ ion_set_bold(int);
int /*<<< orphan*/ printw(char *);
void ion_disp_welcome(void) {
  printw("\n\r");
  ion_set_bold(1);
  printw("Ion Linux (tm)");
  ion_set_bold(0);
  printw(" Command Line Interface (CLI)\n\r");
  printw("Copyright (c) 2002-2003 by Spliced Networks LLC.\n\r");
  printw("\n\r");
}


x86 assembly (clang, -O0):
<ion_disp_welcome>:
push   %rbp
mov    %rsp,%rbp
lea    0xf01(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1,%edi
call   1040 <ion_set_bold@plt>
lea    0xebf(%rip),%rdi
call   1030 <printw@plt>
xor    %edi,%edi
call   1040 <ion_set_bold@plt>
lea    0xebb(%rip),%rdi
call   1030 <printw@plt>
lea    0xecf(%rip),%rdi
call   1030 <printw@plt>
lea    0xec0(%rip),%rdi
call   1030 <printw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ion_disp_welcome>:
push   %rbx
lea    0xf04(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1,%edi
call   1040 <ion_set_bold@plt>
lea    0xebf(%rip),%rdi
call   1030 <printw@plt>
xor    %edi,%edi
call   1040 <ion_set_bold@plt>
lea    0xebb(%rip),%rdi
call   1030 <printw@plt>
lea    0xecf(%rip),%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0D\00"
@.str.1 = [15 x i8] c"Ion Linux (tm)\00"
@.str.2 = [32 x i8] c" Command Line Interface (CLI)\0A\0D\00"
@.str.3 = [51 x i8] c"Copyright (c) 2002-2003 by Spliced Networks LLC.\0A\0D\00"
define void @ion_disp_welcome() {
%1 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @ion_set_bold(i32 1)
%3 = call i32 @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @ion_set_bold(i32 0)
%5 = call i32 @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printw(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"\0A\0D\00"
@.str.1 = [15 x i8] c"Ion Linux (tm)\00"
@.str.2 = [32 x i8] c" Command Line Interface (CLI)\0A\0D\00"
@.str.3 = [51 x i8] c"Copyright (c) 2002-2003 by Spliced Networks LLC.\0A\0D\00"
define void @ion_disp_welcome() {
%1 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @ion_set_bold(i32 1)
%3 = tail call i32 @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @ion_set_bold(i32 0)
%5 = tail call i32 @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret void
}