#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*/ Reverse(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("ABC123456", "Param");
  Reverse(lr_eval_string("{Param}"), "NewParam");
  lr_output_message(lr_eval_string("Changed [{Param}] to [{NewParam}]"));
  lr_save_string("Peter Piper", "Param");
  Reverse(lr_eval_string("{Param}"), "NewParam");
  lr_output_message(lr_eval_string("Changed [{Param}] to [{NewParam}]"));
  lr_save_string("Fiddlesticks", "Param");
  Reverse(lr_eval_string("{Param}"), "NewParam");
  lr_output_message(lr_eval_string("Changed [{Param}] to [{NewParam}]"));
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
lea    0xec3(%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   1060 <Reverse@plt>
lea    0xea3(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
lea    0xeb2(%rip),%rdi
lea    0xe83(%rip),%rsi
call   1050 <lr_save_string@plt>
lea    0xe6c(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
lea    0xe66(%rip),%rsi
call   1060 <Reverse@plt>
lea    0xe63(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
lea    0xe7e(%rip),%rdi
lea    0xe43(%rip),%rsi
call   1050 <lr_save_string@plt>
lea    0xe2c(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
lea    0xe26(%rip),%rsi
call   1060 <Reverse@plt>
lea    0xe23(%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   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xeb1(%rip),%rdi
lea    0xebf(%rip),%r14
mov    %r14,%rsi
call   1050 <lr_save_string@plt>
lea    0xea5(%rip),%r12
mov    %r12,%rdi
call   1030 <lr_eval_string@plt>
lea    0xe9e(%rip),%r15
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <Reverse@plt>
lea    0xe96(%rip),%rbx
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
lea    0xea2(%rip),%rdi
mov    %r14,%rsi
call   1050 <lr_save_string@plt>
mov    %r12,%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <Reverse@plt>
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
lea    0xe7e(%rip),%rdi
mov    %r14,%rsi
call   1050 <lr_save_string@plt>
mov    %r12,%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1060 <Reverse@plt>
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
mov    %eax,%edi
call   1040 <lr_output_message@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"ABC123456\00"
@.str.1 = [6 x i8] c"Param\00"
@.str.2 = [8 x i8] c"{Param}\00"
@.str.3 = [9 x i8] c"NewParam\00"
@.str.4 = [34 x i8] c"Changed [{Param}] to [{NewParam}]\00"
@.str.5 = [12 x i8] c"Peter Piper\00"
@.str.6 = [13 x i8] c"Fiddlesticks\00"
define i32 @Action() {
%1 = call i32 @lr_save_string(i8* getelementptr inbounds ([10 x i8], [10 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 @Reverse(i32 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @lr_eval_string(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @lr_output_message(i32 %4)
%6 = call i32 @lr_save_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @Reverse(i32 %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @lr_eval_string(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @lr_output_message(i32 %9)
%11 = call i32 @lr_save_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @Reverse(i32 %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @lr_eval_string(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @lr_output_message(i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"ABC123456\00"
@.str.1 = [6 x i8] c"Param\00"
@.str.2 = [8 x i8] c"{Param}\00"
@.str.3 = [9 x i8] c"NewParam\00"
@.str.4 = [34 x i8] c"Changed [{Param}] to [{NewParam}]\00"
@.str.5 = [12 x i8] c"Peter Piper\00"
@.str.6 = [13 x i8] c"Fiddlesticks\00"
define i32 @Action() {
%1 = tail call i32 @lr_save_string(i8* getelementptr inbounds ([10 x i8], [10 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 @Reverse(i32 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @lr_output_message(i32 %4)
%6 = tail call i32 @lr_save_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @Reverse(i32 %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @lr_output_message(i32 %9)
%11 = tail call i32 @lr_save_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @Reverse(i32 %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call i32 @lr_eval_string(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @lr_output_message(i32 %14)
ret i32 0
}