#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*/ ConvertToLower(int /*<<< orphan*/, char *);
int /*<<< orphan*/ ConvertToTitle(int /*<<< orphan*/, char *);
int /*<<< orphan*/ ConvertToUpper(int /*<<< orphan*/, char *);
int /*<<< orphan*/ lr_eval_string(char *);
int /*<<< orphan*/ lr_output_message(int /*<<< orphan*/);
int /*<<< orphan*/ lr_save_string(char *, char *);
Action() {
  lr_save_string("rIchard BiSHop - PerfORMANCE tESter", "sName");
  ConvertToUpper(lr_eval_string("{sName}"), "sNameUPPER");
  lr_output_message(lr_eval_string("[{sNameUPPER}]"));
  ConvertToLower(lr_eval_string("{sName}"), "sNameLOWER");
  lr_output_message(lr_eval_string("[{sNameLOWER}]"));
  ConvertToTitle(lr_eval_string("{sName}"), "sNameTITLE");
  lr_output_message(lr_eval_string("[{sNameTITLE}]"));
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xe95(%rip),%rdi
lea    0xeb2(%rip),%rsi
call   1050 <lr_save_string@plt>
lea    0xeac(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
lea    0xea6(%rip),%rsi
call   1080 <ConvertToUpper@plt>
lea    0xea5(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
lea    0xe7f(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
lea    0xe93(%rip),%rsi
call   1070 <ConvertToLower@plt>
lea    0xe92(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
lea    0xe52(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
lea    0xe80(%rip),%rsi
call   1060 <ConvertToTitle@plt>
lea    0xe7f(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Action>:
push   %rbx
lea    0xe98(%rip),%rdi
lea    0xeb5(%rip),%rsi
call   1050 <lr_save_string@plt>
lea    0xeaf(%rip),%rbx
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
lea    0xea8(%rip),%rsi
mov    %eax,%edi
call   1080 <ConvertToUpper@plt>
lea    0xea5(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
lea    0xe99(%rip),%rsi
mov    %eax,%edi
call   1070 <ConvertToLower@plt>
lea    0xe96(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
lea    0xe8a(%rip),%rsi
mov    %eax,%edi
call   1060 <ConvertToTitle@plt>
lea    0xe87(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"rIchard BiSHop - PerfORMANCE tESter\00"
@.str.1 = [6 x i8] c"sName\00"
@.str.2 = [8 x i8] c"{sName}\00"
@.str.3 = [11 x i8] c"sNameUPPER\00"
@.str.4 = [15 x i8] c"[{sNameUPPER}]\00"
@.str.5 = [11 x i8] c"sNameLOWER\00"
@.str.6 = [15 x i8] c"[{sNameLOWER}]\00"
@.str.7 = [11 x i8] c"sNameTITLE\00"
@.str.8 = [15 x i8] c"[{sNameTITLE}]\00"
define i32 @Action() {
%1 = call i32 @lr_save_string(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @ConvertToUpper(i32 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @lr_eval_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @lr_output_message(i32 %4)
%6 = call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @ConvertToLower(i32 %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @lr_eval_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @lr_output_message(i32 %8)
%10 = call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @ConvertToTitle(i32 %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @lr_eval_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @lr_output_message(i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [36 x i8] c"rIchard BiSHop - PerfORMANCE tESter\00"
@.str.1 = [6 x i8] c"sName\00"
@.str.2 = [8 x i8] c"{sName}\00"
@.str.3 = [11 x i8] c"sNameUPPER\00"
@.str.4 = [15 x i8] c"[{sNameUPPER}]\00"
@.str.5 = [11 x i8] c"sNameLOWER\00"
@.str.6 = [15 x i8] c"[{sNameLOWER}]\00"
@.str.7 = [11 x i8] c"sNameTITLE\00"
@.str.8 = [15 x i8] c"[{sNameTITLE}]\00"
define i32 @Action() {
%1 = tail call i32 @lr_save_string(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @ConvertToUpper(i32 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @lr_output_message(i32 %4)
%6 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @ConvertToLower(i32 %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @lr_output_message(i32 %8)
%10 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @ConvertToTitle(i32 %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @lr_output_message(i32 %12)
ret i32 0
}