#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 *, ...);
Action() {
  lr_start_transaction("T01_Landing_URL");
  truclient_step("1", "Navigate to 'http://stormhelp.saas.h...tml/table2.html'",
                 "snapshot=Action_1.inf");
  lr_end_transaction("T01_Landing_URL", 0);
  truclient_step(
      "2", "Evaluate JavaScript var rows = object.rows.length; on element (1)",
      "snapshot=Action_2.inf");
  truclient_step("3", "For ( var i = 1 ; i <= rows ; i++ )",
                 "snapshot=Action_3.inf");
  {
    truclient_step("3.1", "If Open gridcell exists", "snapshot=Action_3.1.inf");
    {
      truclient_step(
          "3.1.1",
          "Evaluate JavaScript var theOpenText = object; on Open gridcell",
          "snapshot=Action_3.1.1.inf");
      truclient_step("3.1.2",
                     "Evaluate JavaScript code var clickOn = "
                     "theOpenTex...clickOn.click();",
                     "snapshot=Action_3.1.2.inf");
    }
    truclient_step("Else");
    { truclient_step("3.1.1", "Break", "snapshot=Action_3.1.1.inf"); }
  }
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xfe3(%rip),%rdi
lea    0xec2(%rip),%rsi
lea    0xef3(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xe9d(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x1018(%rip),%rdi
lea    0xee6(%rip),%rsi
lea    0xf21(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xf29(%rip),%rdi
lea    0xf24(%rip),%rsi
lea    0xf41(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xf49(%rip),%rdi
lea    0xf46(%rip),%rsi
lea    0xf57(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xf61(%rip),%rdi
lea    0xf60(%rip),%rsi
lea    0xf98(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xfa4(%rip),%rdi
lea    0xfa3(%rip),%rsi
lea    0xfe1(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xfed(%rip),%rdi
mov    $0x0,%al
call   1040 <truclient_step@plt>
lea    0xf1b(%rip),%rdi
lea    0xfdd(%rip),%rsi
lea    0xf52(%rip),%rdx
mov    $0x0,%al
call   1040 <truclient_step@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Action>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xfe0(%rip),%rdi
lea    0xebf(%rip),%rsi
lea    0xef0(%rip),%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x1019(%rip),%rdi
lea    0xee7(%rip),%rsi
lea    0xf22(%rip),%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
lea    0xf2a(%rip),%rdi
lea    0xf25(%rip),%rsi
lea    0xf42(%rip),%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
lea    0xf4a(%rip),%rdi
lea    0xf47(%rip),%rsi
lea    0xf58(%rip),%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
lea    0xf62(%rip),%rbx
lea    0xf61(%rip),%rsi
lea    0xf99(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
lea    0xf9f(%rip),%rdi
lea    0xf9e(%rip),%rsi
lea    0xfdc(%rip),%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
lea    0xfe8(%rip),%rdi
xor    %eax,%eax
call   1040 <truclient_step@plt>
lea    0xfdf(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <truclient_step@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"T01_Landing_URL\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [56 x i8] c"Navigate to 'http://stormhelp.saas.h...tml/table2.html'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [66 x i8] c"Evaluate JavaScript var rows = object.rows.length; on element (1)\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [2 x i8] c"3\00"
@.str.8 = [36 x i8] c"For ( var i = 1 ; i <= rows ; i++ )\00"
@.str.9 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.10 = [4 x i8] c"3.1\00"
@.str.11 = [24 x i8] c"If Open gridcell exists\00"
@.str.12 = [24 x i8] c"snapshot=Action_3.1.inf\00"
@.str.13 = [6 x i8] c"3.1.1\00"
@.str.14 = [63 x i8] c"Evaluate JavaScript var theOpenText = object; on Open gridcell\00"
@.str.15 = [26 x i8] c"snapshot=Action_3.1.1.inf\00"
@.str.16 = [6 x i8] c"3.1.2\00"
@.str.17 = [69 x i8] c"Evaluate JavaScript code var clickOn = theOpenTex...clickOn.click();\00"
@.str.18 = [26 x i8] c"snapshot=Action_3.1.2.inf\00"
@.str.19 = [5 x i8] c"Else\00"
@.str.20 = [6 x i8] c"Break\00"
define i32 @Action() {
%1 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%6 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%7 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
%8 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%9 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%10 = call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"T01_Landing_URL\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [56 x i8] c"Navigate to 'http://stormhelp.saas.h...tml/table2.html'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [66 x i8] c"Evaluate JavaScript var rows = object.rows.length; on element (1)\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [2 x i8] c"3\00"
@.str.8 = [36 x i8] c"For ( var i = 1 ; i <= rows ; i++ )\00"
@.str.9 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.10 = [4 x i8] c"3.1\00"
@.str.11 = [24 x i8] c"If Open gridcell exists\00"
@.str.12 = [24 x i8] c"snapshot=Action_3.1.inf\00"
@.str.13 = [6 x i8] c"3.1.1\00"
@.str.14 = [63 x i8] c"Evaluate JavaScript var theOpenText = object; on Open gridcell\00"
@.str.15 = [26 x i8] c"snapshot=Action_3.1.1.inf\00"
@.str.16 = [6 x i8] c"3.1.2\00"
@.str.17 = [69 x i8] c"Evaluate JavaScript code var clickOn = theOpenTex...clickOn.click();\00"
@.str.18 = [26 x i8] c"snapshot=Action_3.1.2.inf\00"
@.str.19 = [5 x i8] c"Else\00"
@.str.20 = [6 x i8] c"Break\00"
define i32 @Action() {
%1 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @truclient_step(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
ret i32 0
}