#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*/ lr_end_transaction(char *, int /*<<< orphan*/);
int /*<<< orphan*/ lr_start_transaction(char *);
int /*<<< orphan*/ truclient_step(char *, char *, char *);
Script_View_Action() {
  truclient_step("2", "If ( true )", "snapshot=Action_2.inf");
  {
    lr_start_transaction("T01_Landing");
    truclient_step("2.1",
                   "Navigate to 'http://' + TC.getParam...c/example1.html'",
                   "snapshot=Action_2.1.inf");
    lr_end_transaction("T01_Landing", 0);
    truclient_step("2.2",
                   "Evaluate JavaScript [Code] on 0 : pg 1 : row 0 : col...",
                   "snapshot=Action_2.2.inf");
    truclient_step("2.3", "[not set]", "snapshot=Action_2.3.inf");
  }
}


x86 assembly (clang, -O0):
<Script_View_Action>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xf44(%rip),%rdi
lea    0xeba(%rip),%rsi
lea    0xebf(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xec9(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xec9(%rip),%rdi
lea    0xec6(%rip),%rsi
lea    0xef6(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xea3(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xef4(%rip),%rdi
lea    0xef1(%rip),%rsi
lea    0xf22(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf2e(%rip),%rdi
lea    0xf2b(%rip),%rsi
lea    0xf2e(%rip),%rdx
call   1040 <truclient_step@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Script_View_Action>:
push   %rbx
lea    0xf4b(%rip),%rdi
lea    0xec1(%rip),%rsi
lea    0xec6(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xed0(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xecd(%rip),%rdi
lea    0xeca(%rip),%rsi
lea    0xefa(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xefc(%rip),%rdi
lea    0xef9(%rip),%rsi
lea    0xf2a(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf36(%rip),%rdi
lea    0xf33(%rip),%rsi
lea    0xf36(%rip),%rdx
pop    %rbx
jmp    1040 <truclient_step@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"2\00"
@.str.1 = [12 x i8] c"If ( true )\00"
@.str.2 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.3 = [12 x i8] c"T01_Landing\00"
@.str.4 = [4 x i8] c"2.1\00"
@.str.5 = [55 x i8] c"Navigate to 'http://' + TC.getParam...c/example1.html'\00"
@.str.6 = [24 x i8] c"snapshot=Action_2.1.inf\00"
@.str.7 = [4 x i8] c"2.2\00"
@.str.8 = [56 x i8] c"Evaluate JavaScript [Code] on 0 : pg 1 : row 0 : col...\00"
@.str.9 = [24 x i8] c"snapshot=Action_2.2.inf\00"
@.str.10 = [4 x i8] c"2.3\00"
@.str.11 = [10 x i8] c"[not set]\00"
@.str.12 = [24 x i8] c"snapshot=Action_2.3.inf\00"
define i32 @Script_View_Action() {
%1 = alloca i32
%2 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = call i32 @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%8 = load i32, i32* %1
ret i32 %8
}

LLVM IR (-O2):
@.str = [2 x i8] c"2\00"
@.str.1 = [12 x i8] c"If ( true )\00"
@.str.2 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.3 = [12 x i8] c"T01_Landing\00"
@.str.4 = [4 x i8] c"2.1\00"
@.str.5 = [55 x i8] c"Navigate to 'http://' + TC.getParam...c/example1.html'\00"
@.str.6 = [24 x i8] c"snapshot=Action_2.1.inf\00"
@.str.7 = [4 x i8] c"2.2\00"
@.str.8 = [56 x i8] c"Evaluate JavaScript [Code] on 0 : pg 1 : row 0 : col...\00"
@.str.9 = [24 x i8] c"snapshot=Action_2.2.inf\00"
@.str.10 = [4 x i8] c"2.3\00"
@.str.11 = [10 x i8] c"[not set]\00"
@.str.12 = [24 x i8] c"snapshot=Action_2.3.inf\00"
define i32 @Script_View_Action() {
%1 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%4 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 0)
%5 = tail call i32 @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
ret i32 undef
}