#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 *);
Action() {
  lr_start_transaction("0010_OpenHomePage");
  truclient_step("1", "Navigate to 'http://maps.environment...ics&lang=_e'",
                 "snapshot=Action_1.inf");
  lr_end_transaction("0010_OpenHomePage", 0);
  truclient_step("2", "Wait 3 seconds", "snapshot=Action_2.inf");
  lr_start_transaction("0020_OpenFloodMapsPage");
  truclient_step("3", "Click on Flood Map for Planning... link",
                 "snapshot=Action_3.inf");
  lr_end_transaction("0020_OpenFloodMapsPage", 0);
  truclient_step("5", "Wait 3 seconds", "snapshot=Action_5.inf");
  truclient_step("6", "Click on Enter a postcode or place... textbox",
                 "snapshot=Action_6.inf");
  truclient_step(
      "7",
      "Type LR.getParam('pPostCode') in Enter a postcode or place... textbox",
      "snapshot=Action_7.inf");
  lr_start_transaction("0030_OpenLocalFloodMap");
  truclient_step("8", "Press Enter key on Enter a postcode or place... textbox",
                 "snapshot=Action_8.inf");
  lr_end_transaction("0030_OpenLocalFloodMap", 0);
  truclient_step("9", "Wait 3 seconds", "snapshot=Action_9.inf");
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xecb(%rip),%rdi
lea    0xec6(%rip),%rsi
lea    0xef3(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xe9f(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xeef(%rip),%rdi
lea    0xeea(%rip),%rsi
lea    0xef2(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xefc(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf07(%rip),%rdi
lea    0xf02(%rip),%rsi
lea    0xf23(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xed6(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf1f(%rip),%rdi
lea    0xe9c(%rip),%rsi
lea    0xf13(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf1d(%rip),%rdi
lea    0xf18(%rip),%rsi
lea    0xf3f(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf49(%rip),%rdi
lea    0xf44(%rip),%rsi
lea    0xf83(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf8d(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf98(%rip),%rdi
lea    0xf93(%rip),%rsi
lea    0xfc4(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf67(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xfc0(%rip),%rdi
lea    0xe1a(%rip),%rsi
lea    0xfb4(%rip),%rdx
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    0xec8(%rip),%rdi
lea    0xec3(%rip),%rsi
lea    0xef0(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xef0(%rip),%rdi
lea    0xeeb(%rip),%r14
lea    0xef3(%rip),%rdx
mov    %r14,%rsi
call   1040 <truclient_step@plt>
lea    0xefa(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf02(%rip),%rdi
lea    0xefd(%rip),%rsi
lea    0xf1e(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf1e(%rip),%rdi
lea    0xf19(%rip),%rdx
mov    %r14,%rsi
call   1040 <truclient_step@plt>
lea    0xf20(%rip),%rdi
lea    0xf1b(%rip),%rsi
lea    0xf42(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf4c(%rip),%rdi
lea    0xf47(%rip),%rsi
lea    0xf86(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf90(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf98(%rip),%rdi
lea    0xf93(%rip),%rsi
lea    0xfc4(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xfc4(%rip),%rdi
lea    0xfbf(%rip),%rdx
mov    %r14,%rsi
call   1040 <truclient_step@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [18 x i8] c"0010_OpenHomePage\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [52 x i8] c"Navigate to 'http://maps.environment...ics&lang=_e'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [15 x i8] c"Wait 3 seconds\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [23 x i8] c"0020_OpenFloodMapsPage\00"
@.str.8 = [2 x i8] c"3\00"
@.str.9 = [40 x i8] c"Click on Flood Map for Planning... link\00"
@.str.10 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.11 = [2 x i8] c"5\00"
@.str.12 = [22 x i8] c"snapshot=Action_5.inf\00"
@.str.13 = [2 x i8] c"6\00"
@.str.14 = [46 x i8] c"Click on Enter a postcode or place... textbox\00"
@.str.15 = [22 x i8] c"snapshot=Action_6.inf\00"
@.str.16 = [2 x i8] c"7\00"
@.str.17 = [70 x i8] c"Type LR.getParam('pPostCode') in Enter a postcode or place... textbox\00"
@.str.18 = [22 x i8] c"snapshot=Action_7.inf\00"
@.str.19 = [23 x i8] c"0030_OpenLocalFloodMap\00"
@.str.20 = [2 x i8] c"8\00"
@.str.21 = [56 x i8] c"Press Enter key on Enter a postcode or place... textbox\00"
@.str.22 = [22 x i8] c"snapshot=Action_8.inf\00"
@.str.23 = [2 x i8] c"9\00"
@.str.24 = [22 x i8] c"snapshot=Action_9.inf\00"
define i32 @Action() {
%1 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 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 ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 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 @lr_start_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%7 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 0)
%8 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%9 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%10 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0))
%11 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0))
%12 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0))
%13 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i32 0)
%14 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.24, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"0010_OpenHomePage\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [52 x i8] c"Navigate to 'http://maps.environment...ics&lang=_e'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [15 x i8] c"Wait 3 seconds\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [23 x i8] c"0020_OpenFloodMapsPage\00"
@.str.8 = [2 x i8] c"3\00"
@.str.9 = [40 x i8] c"Click on Flood Map for Planning... link\00"
@.str.10 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.11 = [2 x i8] c"5\00"
@.str.12 = [22 x i8] c"snapshot=Action_5.inf\00"
@.str.13 = [2 x i8] c"6\00"
@.str.14 = [46 x i8] c"Click on Enter a postcode or place... textbox\00"
@.str.15 = [22 x i8] c"snapshot=Action_6.inf\00"
@.str.16 = [2 x i8] c"7\00"
@.str.17 = [70 x i8] c"Type LR.getParam('pPostCode') in Enter a postcode or place... textbox\00"
@.str.18 = [22 x i8] c"snapshot=Action_7.inf\00"
@.str.19 = [23 x i8] c"0030_OpenLocalFloodMap\00"
@.str.20 = [2 x i8] c"8\00"
@.str.21 = [56 x i8] c"Press Enter key on Enter a postcode or place... textbox\00"
@.str.22 = [22 x i8] c"snapshot=Action_8.inf\00"
@.str.23 = [2 x i8] c"9\00"
@.str.24 = [22 x i8] c"snapshot=Action_9.inf\00"
define i32 @Action() {
%1 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 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 ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 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 @lr_start_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%7 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 0)
%8 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%9 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%10 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0))
%11 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0))
%12 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0))
%13 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i32 0)
%14 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.24, i64 0, i64 0))
ret i32 0
}