#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("FloodWarningsPostCode_0010_OpenHomePage");
  truclient_step("1", "Navigate to 'https://flood-warning-i...service.gov.uk/'",
                 "snapshot=Action_1.inf");
  lr_end_transaction("FloodWarningsPostCode_0010_OpenHomePage", 0);
  truclient_step("2", "Click on Search warnings and river... textbox",
                 "snapshot=Action_2.inf");
  truclient_step(
      "3",
      "Type LR.getParam('pPostCode') in Search warnings and river... textbox",
      "snapshot=Action_3.inf");
  lr_start_transaction("FloodWarningsPostCode_0020_PostCodeSearch");
  truclient_step("4", "Click on Search button", "snapshot=Action_4.inf");
  lr_end_transaction("FloodWarningsPostCode_0020_PostCodeSearch", 0);
  lr_start_transaction("FloodWarningsPostCode_0030_ViewFloodAlerts");
  truclient_step("5", "Click on Flood alert button", "snapshot=Action_5.inf");
  lr_end_transaction("FloodWarningsPostCode_0030_ViewFloodAlerts", 0);
  lr_start_transaction("FloodWarningsPostCode_0040_ViewLocalAlert");
  truclient_step("6", "Click on First Local Flood Alert button",
                 "snapshot=Action_6.inf");
  lr_end_transaction("FloodWarningsPostCode_0040_ViewLocalAlert", 0);
  lr_start_transaction("FloodWarningsPostCode_0050_ViewLocalFloodMap");
  truclient_step("7", "Click on See a map of the area... link",
                 "snapshot=Action_7.inf");
  lr_end_transaction("FloodWarningsPostCode_0050_ViewLocalFloodMap", 0);
  lr_start_transaction("FloodWarningsPostCode_0060_ViewLatestRiverAlerts");
  truclient_step("8", "Click on latest river and sea... link",
                 "snapshot=Action_8.inf");
  lr_end_transaction("FloodWarningsPostCode_0060_ViewLatestRiverAlerts", 0);
  return 0;
}


x86 assembly (clang, -O0):
<Action>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xee1(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xf0d(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xe9f(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf09(%rip),%rdi
lea    0xf04(%rip),%rsi
lea    0xf2b(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf35(%rip),%rdi
lea    0xf30(%rip),%rsi
lea    0xf6f(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf79(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf97(%rip),%rdi
lea    0xf92(%rip),%rsi
lea    0xfa2(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf53(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf9e(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xfbd(%rip),%rdi
lea    0xfb8(%rip),%rsi
lea    0xfcd(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf78(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xfc9(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0xfe7(%rip),%rdi
lea    0xfe2(%rip),%rsi
lea    0x1003(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xfa3(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xfff(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1020(%rip),%rdi
lea    0x101b(%rip),%rsi
lea    0x103b(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xfd9(%rip),%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x1037(%rip),%rdi
call   1050 <lr_start_transaction@plt>
lea    0x105c(%rip),%rdi
lea    0x1057(%rip),%rsi
lea    0x1076(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0x1011(%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    0xee1(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xf0d(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xf0d(%rip),%rdi
lea    0xf08(%rip),%rsi
lea    0xf2f(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf39(%rip),%rdi
lea    0xf34(%rip),%rsi
lea    0xf73(%rip),%rdx
call   1040 <truclient_step@plt>
lea    0xf7d(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xf98(%rip),%rdi
lea    0xf93(%rip),%rsi
lea    0xfa3(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xfa3(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xfbf(%rip),%rdi
lea    0xfba(%rip),%rsi
lea    0xfcf(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0xfcf(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0xfea(%rip),%rdi
lea    0xfe5(%rip),%rsi
lea    0x1006(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x1006(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1024(%rip),%rdi
lea    0x101f(%rip),%rsi
lea    0x103f(%rip),%rdx
call   1040 <truclient_step@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <lr_end_transaction@plt>
lea    0x103f(%rip),%rbx
mov    %rbx,%rdi
call   1050 <lr_start_transaction@plt>
lea    0x1061(%rip),%rdi
lea    0x105c(%rip),%rsi
lea    0x107b(%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 = [40 x i8] c"FloodWarningsPostCode_0010_OpenHomePage\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [56 x i8] c"Navigate to 'https://flood-warning-i...service.gov.uk/'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [46 x i8] c"Click on Search warnings and river... textbox\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [2 x i8] c"3\00"
@.str.8 = [70 x i8] c"Type LR.getParam('pPostCode') in Search warnings and river... textbox\00"
@.str.9 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.10 = [42 x i8] c"FloodWarningsPostCode_0020_PostCodeSearch\00"
@.str.11 = [2 x i8] c"4\00"
@.str.12 = [23 x i8] c"Click on Search button\00"
@.str.13 = [22 x i8] c"snapshot=Action_4.inf\00"
@.str.14 = [43 x i8] c"FloodWarningsPostCode_0030_ViewFloodAlerts\00"
@.str.15 = [2 x i8] c"5\00"
@.str.16 = [28 x i8] c"Click on Flood alert button\00"
@.str.17 = [22 x i8] c"snapshot=Action_5.inf\00"
@.str.18 = [42 x i8] c"FloodWarningsPostCode_0040_ViewLocalAlert\00"
@.str.19 = [2 x i8] c"6\00"
@.str.20 = [40 x i8] c"Click on First Local Flood Alert button\00"
@.str.21 = [22 x i8] c"snapshot=Action_6.inf\00"
@.str.22 = [45 x i8] c"FloodWarningsPostCode_0050_ViewLocalFloodMap\00"
@.str.23 = [2 x i8] c"7\00"
@.str.24 = [39 x i8] c"Click on See a map of the area... link\00"
@.str.25 = [22 x i8] c"snapshot=Action_7.inf\00"
@.str.26 = [49 x i8] c"FloodWarningsPostCode_0060_ViewLatestRiverAlerts\00"
@.str.27 = [2 x i8] c"8\00"
@.str.28 = [38 x i8] c"Click on latest river and sea... link\00"
@.str.29 = [22 x i8] c"snapshot=Action_8.inf\00"
define i32 @Action() {
%1 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([40 x i8], [40 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 ([40 x i8], [40 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 ([46 x i8], [46 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 ([70 x i8], [70 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 ([42 x i8], [42 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 ([23 x i8], [23 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 ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 0)
%9 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%10 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%11 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0), i32 0)
%12 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%13 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0))
%14 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0), i32 0)
%15 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.22, i64 0, i64 0))
%16 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%17 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.22, i64 0, i64 0), i32 0)
%18 = call i32 @lr_start_transaction(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i64 0, i64 0))
%19 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0))
%20 = call i32 @lr_end_transaction(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i64 0, i64 0), i32 0)
ret i32 0
}

LLVM IR (-O2):
@.str = [40 x i8] c"FloodWarningsPostCode_0010_OpenHomePage\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [56 x i8] c"Navigate to 'https://flood-warning-i...service.gov.uk/'\00"
@.str.3 = [22 x i8] c"snapshot=Action_1.inf\00"
@.str.4 = [2 x i8] c"2\00"
@.str.5 = [46 x i8] c"Click on Search warnings and river... textbox\00"
@.str.6 = [22 x i8] c"snapshot=Action_2.inf\00"
@.str.7 = [2 x i8] c"3\00"
@.str.8 = [70 x i8] c"Type LR.getParam('pPostCode') in Search warnings and river... textbox\00"
@.str.9 = [22 x i8] c"snapshot=Action_3.inf\00"
@.str.10 = [42 x i8] c"FloodWarningsPostCode_0020_PostCodeSearch\00"
@.str.11 = [2 x i8] c"4\00"
@.str.12 = [23 x i8] c"Click on Search button\00"
@.str.13 = [22 x i8] c"snapshot=Action_4.inf\00"
@.str.14 = [43 x i8] c"FloodWarningsPostCode_0030_ViewFloodAlerts\00"
@.str.15 = [2 x i8] c"5\00"
@.str.16 = [28 x i8] c"Click on Flood alert button\00"
@.str.17 = [22 x i8] c"snapshot=Action_5.inf\00"
@.str.18 = [42 x i8] c"FloodWarningsPostCode_0040_ViewLocalAlert\00"
@.str.19 = [2 x i8] c"6\00"
@.str.20 = [40 x i8] c"Click on First Local Flood Alert button\00"
@.str.21 = [22 x i8] c"snapshot=Action_6.inf\00"
@.str.22 = [45 x i8] c"FloodWarningsPostCode_0050_ViewLocalFloodMap\00"
@.str.23 = [2 x i8] c"7\00"
@.str.24 = [39 x i8] c"Click on See a map of the area... link\00"
@.str.25 = [22 x i8] c"snapshot=Action_7.inf\00"
@.str.26 = [49 x i8] c"FloodWarningsPostCode_0060_ViewLatestRiverAlerts\00"
@.str.27 = [2 x i8] c"8\00"
@.str.28 = [38 x i8] c"Click on latest river and sea... link\00"
@.str.29 = [22 x i8] c"snapshot=Action_8.inf\00"
define i32 @Action() {
%1 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([40 x i8], [40 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 ([40 x i8], [40 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 ([46 x i8], [46 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 ([70 x i8], [70 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 ([42 x i8], [42 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 ([23 x i8], [23 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 ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 0)
%9 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%10 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%11 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0), i32 0)
%12 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%13 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0))
%14 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0), i32 0)
%15 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.22, i64 0, i64 0))
%16 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%17 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.22, i64 0, i64 0), i32 0)
%18 = tail call i32 @lr_start_transaction(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i64 0, i64 0))
%19 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0))
%20 = tail call i32 @lr_end_transaction(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i64 0, i64 0), i32 0)
ret i32 0
}