#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*/ print_header(char *);
void otradhead(void) {
  print_header("Welcome to the Ularn Trading Post.  We buy items that "
               "explorers no longer find ");
  print_header("useful.  Since the condition of the items you bring in is not "
               "certain, ");
  print_header("and we incur great expense in reconditioning the items, we "
               "usually pay ");
  print_header(
      "only 20% of their value were they to be new.  If the items are badly ");
  print_header("damaged, we will pay only 10% of their new value. ");
}


x86 assembly (clang, -O0):
<otradhead>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <print_header@plt>
lea    0xf29(%rip),%rdi
call   1030 <print_header@plt>
lea    0xf65(%rip),%rdi
call   1030 <print_header@plt>
lea    0xfa1(%rip),%rdi
call   1030 <print_header@plt>
lea    0xfdb(%rip),%rdi
call   1030 <print_header@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<otradhead>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <print_header@plt>
lea    0xf2c(%rip),%rdi
call   1030 <print_header@plt>
lea    0xf68(%rip),%rdi
call   1030 <print_header@plt>
lea    0xfa4(%rip),%rdi
call   1030 <print_header@plt>
lea    0xfde(%rip),%rdi
pop    %rax
jmp    1030 <print_header@plt>

LLVM IR (-O0):
@.str = [80 x i8] c"Welcome to the Ularn Trading Post. We buy items that explorers no longer find \00"
@.str.1 = [72 x i8] c"useful. Since the condition of the items you bring in is not certain, \00"
@.str.2 = [72 x i8] c"and we incur great expense in reconditioning the items, we usually pay \00"
@.str.3 = [70 x i8] c"only 20% of their value were they to be new. If the items are badly \00"
@.str.4 = [51 x i8] c"damaged, we will pay only 10% of their new value. \00"
define void @otradhead() {
%1 = call i32 @print_header(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @print_header(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @print_header(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @print_header(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @print_header(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [80 x i8] c"Welcome to the Ularn Trading Post. We buy items that explorers no longer find \00"
@.str.1 = [72 x i8] c"useful. Since the condition of the items you bring in is not certain, \00"
@.str.2 = [72 x i8] c"and we incur great expense in reconditioning the items, we usually pay \00"
@.str.3 = [70 x i8] c"only 20% of their value were they to be new. If the items are badly \00"
@.str.4 = [51 x i8] c"damaged, we will pay only 10% of their new value. \00"
define void @otradhead() {
%1 = tail call i32 @print_header(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @print_header(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @print_header(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @print_header(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @print_header(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
ret void
}