#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*/ CheckStringInString(char *, char *);
char *lr_eval_string(char *);
int /*<<< orphan*/ lr_save_string(char *, char *);
Action() {
  lr_save_string("The quick brown fox jumps over the lazy dogs",
                 "cCapturedString");
  CheckStringInString(lr_eval_string("{cCapturedString}"), "lazy");
  CheckStringInString(lr_eval_string("{cCapturedString}"), "work-shy");
  CheckStringInString("abcdefghijklmnopqrstuvwxyz", "abc");
  CheckStringInString("abcdefghijklmnopqrstuvwxyz", "abd");
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
lea    0xeeb(%rip),%rsi
call   1050 <lr_save_string@plt>
lea    0xeef(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %rax,%rdi
lea    0xef2(%rip),%rsi
call   1040 <CheckStringInString@plt>
lea    0xed4(%rip),%rdi
call   1030 <lr_eval_string@plt>
mov    %rax,%rdi
lea    0xedc(%rip),%rsi
call   1040 <CheckStringInString@plt>
lea    0xed9(%rip),%rdi
lea    0xeed(%rip),%rsi
call   1040 <CheckStringInString@plt>
lea    0xec6(%rip),%rdi
lea    0xede(%rip),%rsi
call   1040 <CheckStringInString@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Action>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xeee(%rip),%rsi
call   1050 <lr_save_string@plt>
lea    0xef2(%rip),%rbx
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
lea    0xef5(%rip),%rsi
mov    %rax,%rdi
call   1040 <CheckStringInString@plt>
mov    %rbx,%rdi
call   1030 <lr_eval_string@plt>
lea    0xee3(%rip),%rsi
mov    %rax,%rdi
call   1040 <CheckStringInString@plt>
lea    0xedd(%rip),%rbx
lea    0xef1(%rip),%rsi
mov    %rbx,%rdi
call   1040 <CheckStringInString@plt>
lea    0xee6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <CheckStringInString@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [45 x i8] c"The quick brown fox jumps over the lazy dogs\00"
@.str.1 = [16 x i8] c"cCapturedString\00"
@.str.2 = [18 x i8] c"{cCapturedString}\00"
@.str.3 = [5 x i8] c"lazy\00"
@.str.4 = [9 x i8] c"work-shy\00"
@.str.5 = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.6 = [4 x i8] c"abc\00"
@.str.7 = [4 x i8] c"abd\00"
define i32 @Action() {
%1 = call i32 @lr_save_string(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%2 = call i8* @lr_eval_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @CheckStringInString(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%4 = call i8* @lr_eval_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @CheckStringInString(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @CheckStringInString(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 @CheckStringInString(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [45 x i8] c"The quick brown fox jumps over the lazy dogs\00"
@.str.1 = [16 x i8] c"cCapturedString\00"
@.str.2 = [18 x i8] c"{cCapturedString}\00"
@.str.3 = [5 x i8] c"lazy\00"
@.str.4 = [9 x i8] c"work-shy\00"
@.str.5 = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.6 = [4 x i8] c"abc\00"
@.str.7 = [4 x i8] c"abd\00"
define i32 @Action() {
%1 = tail call i32 @lr_save_string(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i8* @lr_eval_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @CheckStringInString(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i8* @lr_eval_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @CheckStringInString(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @CheckStringInString(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%7 = tail call i32 @CheckStringInString(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}