#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("FloodWarnings_0010_OpenHomePage");
  truclient_step("1", "Navigate to 'https://flood-warning-i...gov.uk/warnings'",
                 "snapshot=Action_1.inf");
  lr_end_transaction("FloodWarnings_0010_OpenHomePage", 0);
  truclient_step("2", "Get Visible Text from 3 Flood alerts flooding... button",
                 "snapshot=Action_2.inf");
  truclient_step("3",
                 "Evaluate JavaScript code window.alert(NumberFloodAlerts)",
                 "snapshot=Action_3.inf");
  lr_start_transaction("FloodWarnings_0020_OpenFloodAlerts");
  truclient_step("4", "Click on Flood alerts button", "snapshot=Action_4.inf");
  lr_end_transaction("FloodWarnings_0020_OpenFloodAlerts", 0);
  truclient_step(
      "5",
      "Evaluate JavaScript code var randomButton = Math....rFloodAlerts)+1;",
      "snapshot=Action_5.inf");
  truclient_step("6", "Evaluate JavaScript code window.alert(randomButton)",
                 "snapshot=Action_6.inf");
  lr_start_transaction("FloodWarnings_0030_OpenRandomFloodAlert");
  truclient_step("7",
                 "Select option #Math.floor(Math....rFloodAlerts)+1; from ? "
                 "Groundwater flooding... listbox",
                 "snapshot=Action_7.inf");
  lr_end_transaction("FloodWarnings_0030_OpenRandomFloodAlert", 0);
  lr_start_transaction("FloodWarnings_0040_ViewFloodAlertMap");
  truclient_step("8", "Click on See a map of the area... link",
                 "snapshot=Action_8.inf");
  lr_end_transaction("FloodWarnings_0040_ViewFloodAlertMap", 0);
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xed9(%rip),%rdi
lea    0xed4(%rip),%rsi
lea    0xf05(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xe9f(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf01(%rip),%rdi
lea    0xefc(%rip),%rsi
lea    0xf2d(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf37(%rip),%rdi
lea    0xf32(%rip),%rsi
lea    0xf64(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf6e(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf85(%rip),%rdi
lea    0xf80(%rip),%rsi
lea    0xf96(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf48(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf92(%rip),%rdi
lea    0xf8d(%rip),%rsi
lea    0xfcb(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xfd5(%rip),%rdi
lea    0xfd0(%rip),%rsi
lea    0xffd(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0x1007(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1023(%rip),%rdi
lea    0x101e(%rip),%rsi
lea    0x1071(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xfe1(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x106d(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1086(%rip),%rdi
lea    0x1081(%rip),%rsi
lea    0x10a1(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0x1047(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Action>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xed9(%rip),%rdi
lea    0xed4(%rip),%rsi
lea    0xf05(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf05(%rip),%rdi
lea    0xf00(%rip),%rsi
lea    0xf31(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf3b(%rip),%rdi
lea    0xf36(%rip),%rsi
lea    0xf68(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf72(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf86(%rip),%rdi
lea    0xf81(%rip),%rsi
lea    0xf97(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf97(%rip),%rdi
lea    0xf92(%rip),%rsi
lea    0xfd0(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xfda(%rip),%rdi
lea    0xfd5(%rip),%rsi
lea    0x1002(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0x100c(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1025(%rip),%rdi
lea    0x1020(%rip),%rsi
lea    0x1073(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x1073(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1089(%rip),%rdi
lea    0x1084(%rip),%rsi
lea    0x10a4(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [32 x i8] c"FloodWarnings_0010_OpenHomePage\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [56 x i8] c"Navigate to 'https://flood-warning-i...gov.uk/warnings'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [56 x i8] c"Get Visible Text from 3 Flood alerts flooding... button\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [2 x i8] c"3\00"
@.str.8 = [57 x i8] c"Evaluate JavaScript code window.alert(NumberFloodAlerts)\00"
@.str.9 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.10 = [35 x i8] c"FloodWarnings_0020_OpenFloodAlerts\00"
@.str.11 = [2 x i8] c"4\00"
@.str.12 = [29 x i8] c"Click on Flood alerts button\00"
@.str.13 = [22 x i8] c"snapshot=Action_4.inf\00"
@.str.14 = [2 x i8] c"5\00"
@.str.15 = [69 x i8] c"Evaluate JavaScript code var randomButton = Math....rFloodAlerts)+1;\00"
@.str.16 = [22 x i8] c"snapshot=Action_5.inf\00"
@.str.17 = [2 x i8] c"6\00"
@.str.18 = [52 x i8] c"Evaluate JavaScript code window.alert(randomButton)\00"
@.str.19 = [22 x i8] c"snapshot=Action_6.inf\00"
@.str.20 = [40 x i8] c"FloodWarnings_0030_OpenRandomFloodAlert\00"
@.str.21 = [2 x i8] c"7\00"
@.str.22 = [90 x i8] c"Select option #Math.floor(Math....rFloodAlerts)+1; from ? Groundwater flooding... listbox\00"
@.str.23 = [22 x i8] c"snapshot=Action_7.inf\00"
@.str.24 = [37 x i8] c"FloodWarnings_0040_ViewFloodAlertMap\00"
@.str.25 = [2 x i8] c"8\00"
@.str.26 = [39 x i8] c"Click on See a map of the area... link\00"
@.str.27 = [22 x i8] c"snapshot=Action_8.inf\00"
define i32 @Action() {
%1 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([32 x i8], [32 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 ([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 ([32 x i8], [32 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 ([56 x i8], [56 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 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 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 @lr_start_transaction(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%7 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%8 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i32 0)
%9 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%10 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%11 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0))
%12 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0))
%13 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0), i32 0)
%14 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0))
%15 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0))
%16 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0), i32 0)
ret i32 0
}

LLVM IR (-O2):
@.str = [32 x i8] c"FloodWarnings_0010_OpenHomePage\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [56 x i8] c"Navigate to 'https://flood-warning-i...gov.uk/warnings'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [56 x i8] c"Get Visible Text from 3 Flood alerts flooding... button\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [2 x i8] c"3\00"
@.str.8 = [57 x i8] c"Evaluate JavaScript code window.alert(NumberFloodAlerts)\00"
@.str.9 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.10 = [35 x i8] c"FloodWarnings_0020_OpenFloodAlerts\00"
@.str.11 = [2 x i8] c"4\00"
@.str.12 = [29 x i8] c"Click on Flood alerts button\00"
@.str.13 = [22 x i8] c"snapshot=Action_4.inf\00"
@.str.14 = [2 x i8] c"5\00"
@.str.15 = [69 x i8] c"Evaluate JavaScript code var randomButton = Math....rFloodAlerts)+1;\00"
@.str.16 = [22 x i8] c"snapshot=Action_5.inf\00"
@.str.17 = [2 x i8] c"6\00"
@.str.18 = [52 x i8] c"Evaluate JavaScript code window.alert(randomButton)\00"
@.str.19 = [22 x i8] c"snapshot=Action_6.inf\00"
@.str.20 = [40 x i8] c"FloodWarnings_0030_OpenRandomFloodAlert\00"
@.str.21 = [2 x i8] c"7\00"
@.str.22 = [90 x i8] c"Select option #Math.floor(Math....rFloodAlerts)+1; from ? Groundwater flooding... listbox\00"
@.str.23 = [22 x i8] c"snapshot=Action_7.inf\00"
@.str.24 = [37 x i8] c"FloodWarnings_0040_ViewFloodAlertMap\00"
@.str.25 = [2 x i8] c"8\00"
@.str.26 = [39 x i8] c"Click on See a map of the area... link\00"
@.str.27 = [22 x i8] c"snapshot=Action_8.inf\00"
define i32 @Action() {
%1 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([32 x i8], [32 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 ([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 ([32 x i8], [32 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 ([56 x i8], [56 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 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 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 @lr_start_transaction(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%7 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%8 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i32 0)
%9 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%10 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%11 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0))
%12 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0))
%13 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0), i32 0)
%14 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0))
%15 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0))
%16 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0), i32 0)
ret i32 0
}