; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_7)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

declare void @w2c_hermes_abort(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #4

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #3

declare i32 @w2c_hermes_memmove(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_s(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar32_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar32_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar32_t0x3E0x3E0x3A0x3A_0x5Fgrow_by0x28unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #4 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 1073741807, ptr %20, align 4, !tbaa !9
  %25 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %25, ptr %17, align 4, !tbaa !9
  %26 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %26, ptr %20, align 4, !tbaa !9
  store i32 1073741807, ptr %21, align 4, !tbaa !9
  %27 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %27, ptr %22, align 4, !tbaa !9
  %28 = load i32, ptr %22, align 4, !tbaa !9
  %29 = load i32, ptr %21, align 4, !tbaa !9
  %30 = sub i32 %29, %28
  store i32 %30, ptr %21, align 4, !tbaa !9
  %31 = load i32, ptr %20, align 4, !tbaa !9
  %32 = load i32, ptr %21, align 4, !tbaa !9
  %33 = icmp ule i32 %31, %32
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %20, align 4, !tbaa !9
  %35 = load i32, ptr %20, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %249

37:                                               ; preds = %8
  %38 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %38, ptr %20, align 4, !tbaa !9
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %20, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = add i64 %42, 11
  %44 = call i32 @i32_load8_s(ptr noundef %40, i64 noundef %43)
  store i32 %44, ptr %20, align 4, !tbaa !9
  %45 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %45, ptr %18, align 4, !tbaa !9
  %46 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %46, ptr %20, align 4, !tbaa !9
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %20, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = call i32 @i32_load(ptr noundef %48, i64 noundef %50)
  store i32 %51, ptr %20, align 4, !tbaa !9
  %52 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %52, ptr %19, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %53, ptr %20, align 4, !tbaa !9
  store i32 536870886, ptr %21, align 4, !tbaa !9
  %54 = load i32, ptr %20, align 4, !tbaa !9
  %55 = load i32, ptr %21, align 4, !tbaa !9
  %56 = icmp ule i32 %54, %55
  %57 = zext i1 %56 to i32
  store i32 %57, ptr %20, align 4, !tbaa !9
  %58 = load i32, ptr %20, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %116

60:                                               ; preds = %37
  store i32 2, ptr %20, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %61, ptr %21, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %62, ptr %22, align 4, !tbaa !9
  %63 = load i32, ptr %22, align 4, !tbaa !9
  %64 = load i32, ptr %21, align 4, !tbaa !9
  %65 = add i32 %64, %63
  store i32 %65, ptr %21, align 4, !tbaa !9
  %66 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %66, ptr %17, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %67, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %68 = load i32, ptr %23, align 4, !tbaa !9
  %69 = and i32 %68, 31
  %70 = load i32, ptr %22, align 4, !tbaa !9
  %71 = shl i32 %70, %69
  store i32 %71, ptr %22, align 4, !tbaa !9
  %72 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %73, ptr %23, align 4, !tbaa !9
  %74 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %74, ptr %24, align 4, !tbaa !9
  %75 = load i32, ptr %23, align 4, !tbaa !9
  %76 = load i32, ptr %24, align 4, !tbaa !9
  %77 = icmp ult i32 %75, %76
  %78 = zext i1 %77 to i32
  store i32 %78, ptr %23, align 4, !tbaa !9
  %79 = load i32, ptr %23, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %60
  %82 = load i32, ptr %21, align 4, !tbaa !9
  br label %85

83:                                               ; preds = %60
  %84 = load i32, ptr %22, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %83, %81
  %86 = phi i32 [ %82, %81 ], [ %84, %83 ]
  store i32 %86, ptr %21, align 4, !tbaa !9
  %87 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %87, ptr %17, align 4, !tbaa !9
  store i32 3, ptr %22, align 4, !tbaa !9
  %88 = load i32, ptr %22, align 4, !tbaa !9
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = or i32 %89, %88
  store i32 %90, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %91 = load i32, ptr %22, align 4, !tbaa !9
  %92 = load i32, ptr %21, align 4, !tbaa !9
  %93 = add i32 %92, %91
  store i32 %93, ptr %21, align 4, !tbaa !9
  %94 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %94, ptr %22, align 4, !tbaa !9
  store i32 2, ptr %23, align 4, !tbaa !9
  %95 = load i32, ptr %22, align 4, !tbaa !9
  %96 = load i32, ptr %23, align 4, !tbaa !9
  %97 = icmp ult i32 %95, %96
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %22, align 4, !tbaa !9
  %99 = load i32, ptr %22, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %85
  %102 = load i32, ptr %20, align 4, !tbaa !9
  br label %105

103:                                              ; preds = %85
  %104 = load i32, ptr %21, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %103, %101
  %106 = phi i32 [ %102, %101 ], [ %104, %103 ]
  store i32 %106, ptr %20, align 4, !tbaa !9
  %107 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %107, ptr %17, align 4, !tbaa !9
  store i32 1073741824, ptr %21, align 4, !tbaa !9
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = load i32, ptr %21, align 4, !tbaa !9
  %110 = icmp uge i32 %108, %109
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %20, align 4, !tbaa !9
  %112 = load i32, ptr %20, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %105
  br label %251

115:                                              ; preds = %105
  br label %116

116:                                              ; preds = %115, %37
  %117 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %117, ptr %20, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %118, ptr %21, align 4, !tbaa !9
  %119 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %119, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = load i32, ptr %23, align 4, !tbaa !9
  %122 = icmp slt i32 %120, %121
  %123 = zext i1 %122 to i32
  store i32 %123, ptr %22, align 4, !tbaa !9
  %124 = load i32, ptr %22, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %116
  %127 = load i32, ptr %20, align 4, !tbaa !9
  br label %130

128:                                              ; preds = %116
  %129 = load i32, ptr %21, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %128, %126
  %131 = phi i32 [ %127, %126 ], [ %129, %128 ]
  store i32 %131, ptr %20, align 4, !tbaa !9
  %132 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %132, ptr %18, align 4, !tbaa !9
  %133 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %133, ptr %20, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = and i32 %134, 31
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = shl i32 %136, %135
  store i32 %137, ptr %20, align 4, !tbaa !9
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %138, i32 noundef %139)
  store i32 %140, ptr %20, align 4, !tbaa !9
  %141 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %141, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %142, ptr %20, align 4, !tbaa !9
  %143 = load i32, ptr %20, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %158

145:                                              ; preds = %130
  %146 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %146, ptr %20, align 4, !tbaa !9
  %147 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %147, ptr %21, align 4, !tbaa !9
  %148 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %148, ptr %22, align 4, !tbaa !9
  store i32 2, ptr %23, align 4, !tbaa !9
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = and i32 %149, 31
  %151 = load i32, ptr %22, align 4, !tbaa !9
  %152 = shl i32 %151, %150
  store i32 %152, ptr %22, align 4, !tbaa !9
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = call i32 @w2c_hermes_memmove(ptr noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %156)
  store i32 %157, ptr %20, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %145, %130
  %159 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %159, ptr %20, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %160, ptr %21, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %161, ptr %22, align 4, !tbaa !9
  %162 = load i32, ptr %22, align 4, !tbaa !9
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %21, align 4, !tbaa !9
  %165 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %165, ptr %19, align 4, !tbaa !9
  %166 = load i32, ptr %20, align 4, !tbaa !9
  %167 = load i32, ptr %21, align 4, !tbaa !9
  %168 = icmp ne i32 %166, %167
  %169 = zext i1 %168 to i32
  store i32 %169, ptr %20, align 4, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %218

172:                                              ; preds = %158
  %173 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %173, ptr %20, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %174, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %22, align 4, !tbaa !9
  %175 = load i32, ptr %22, align 4, !tbaa !9
  %176 = and i32 %175, 31
  %177 = load i32, ptr %21, align 4, !tbaa !9
  %178 = shl i32 %177, %176
  store i32 %178, ptr %21, align 4, !tbaa !9
  %179 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %179, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = load i32, ptr %20, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %20, align 4, !tbaa !9
  %183 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %183, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %22, align 4, !tbaa !9
  %184 = load i32, ptr %22, align 4, !tbaa !9
  %185 = and i32 %184, 31
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = shl i32 %186, %185
  store i32 %187, ptr %21, align 4, !tbaa !9
  %188 = load i32, ptr %21, align 4, !tbaa !9
  %189 = load i32, ptr %20, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %20, align 4, !tbaa !9
  %191 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %191, ptr %21, align 4, !tbaa !9
  %192 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %192, ptr %22, align 4, !tbaa !9
  %193 = load i32, ptr %22, align 4, !tbaa !9
  %194 = load i32, ptr %21, align 4, !tbaa !9
  %195 = add i32 %194, %193
  store i32 %195, ptr %21, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %196, ptr %22, align 4, !tbaa !9
  store i32 2, ptr %23, align 4, !tbaa !9
  %197 = load i32, ptr %23, align 4, !tbaa !9
  %198 = and i32 %197, 31
  %199 = load i32, ptr %22, align 4, !tbaa !9
  %200 = shl i32 %199, %198
  store i32 %200, ptr %22, align 4, !tbaa !9
  %201 = load i32, ptr %22, align 4, !tbaa !9
  %202 = load i32, ptr %21, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %21, align 4, !tbaa !9
  %204 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %204, ptr %22, align 4, !tbaa !9
  %205 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %205, ptr %23, align 4, !tbaa !9
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = load i32, ptr %22, align 4, !tbaa !9
  %208 = sub i32 %207, %206
  store i32 %208, ptr %22, align 4, !tbaa !9
  store i32 2, ptr %23, align 4, !tbaa !9
  %209 = load i32, ptr %23, align 4, !tbaa !9
  %210 = and i32 %209, 31
  %211 = load i32, ptr %22, align 4, !tbaa !9
  %212 = shl i32 %211, %210
  store i32 %212, ptr %22, align 4, !tbaa !9
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = load i32, ptr %20, align 4, !tbaa !9
  %215 = load i32, ptr %21, align 4, !tbaa !9
  %216 = load i32, ptr %22, align 4, !tbaa !9
  %217 = call i32 @w2c_hermes_memmove(ptr noundef %213, i32 noundef %214, i32 noundef %215, i32 noundef %216)
  store i32 %217, ptr %20, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %172, %158
  %219 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %219, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %220 = load i32, ptr %20, align 4, !tbaa !9
  %221 = load i32, ptr %21, align 4, !tbaa !9
  %222 = icmp ne i32 %220, %221
  %223 = zext i1 %222 to i32
  store i32 %223, ptr %20, align 4, !tbaa !9
  %224 = load i32, ptr %20, align 4, !tbaa !9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %230

226:                                              ; preds = %218
  %227 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %227, ptr %20, align 4, !tbaa !9
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %228, i32 noundef %229)
  br label %230

230:                                              ; preds = %226, %218
  %231 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %231, ptr %20, align 4, !tbaa !9
  %232 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %232, ptr %21, align 4, !tbaa !9
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %20, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %234, i64 noundef %236, i32 noundef %237)
  %238 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %238, ptr %20, align 4, !tbaa !9
  %239 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %239, ptr %21, align 4, !tbaa !9
  store i32 -2147483648, ptr %22, align 4, !tbaa !9
  %240 = load i32, ptr %22, align 4, !tbaa !9
  %241 = load i32, ptr %21, align 4, !tbaa !9
  %242 = or i32 %241, %240
  store i32 %242, ptr %21, align 4, !tbaa !9
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %20, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = add i64 %246, 8
  %248 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %244, i64 noundef %247, i32 noundef %248)
  br label %253

249:                                              ; preds = %8
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %250)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

251:                                              ; preds = %114
  %252 = load ptr, ptr %9, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %252)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

253:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_memmove(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_s(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar32_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar32_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar32_t0x3E0x3E0x3A0x3A_0x5Fgrow_by0x28unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #3 {
  %9 = sub i32 1073741807, %2
  %.not = icmp ult i32 %9, %3
  br i1 %.not, label %50, label %10

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = zext i32 %1 to i64
  %13 = add nuw nsw i64 %12, 11
  %14 = tail call i32 @i32_load8_s(ptr noundef nonnull %11, i64 noundef %13)
  %15 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %12)
  %16 = icmp ult i32 %2, 536870887
  br i1 %16, label %17, label %26

17:                                               ; preds = %10
  %18 = add i32 %3, %2
  %19 = shl nuw nsw i32 %2, 1
  %20 = tail call i32 @llvm.umax.i32(i32 %19, i32 %18)
  %21 = or i32 %20, 3
  %22 = add i32 %21, 1
  %23 = icmp ult i32 %20, 2
  %24 = select i1 %23, i32 2, i32 %22
  %25 = icmp ugt i32 %24, 1073741823
  br i1 %25, label %51, label %26

26:                                               ; preds = %17, %10
  %.0 = phi i32 [ %24, %17 ], [ 1073741807, %10 ]
  %27 = icmp slt i32 %14, 0
  %28 = select i1 %27, i32 %15, i32 %1
  %29 = shl nuw i32 %.0, 2
  %30 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %29) #5
  %.not143 = icmp eq i32 %5, 0
  br i1 %.not143, label %34, label %31

31:                                               ; preds = %26
  %32 = shl i32 %5, 2
  %33 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %30, i32 noundef %28, i32 noundef %32) #5
  br label %34

34:                                               ; preds = %31, %26
  %35 = add i32 %6, %5
  %.not144 = icmp eq i32 %35, %4
  br i1 %.not144, label %45, label %36

36:                                               ; preds = %34
  %37 = add i32 %7, %5
  %38 = shl i32 %37, 2
  %39 = add i32 %38, %30
  %40 = shl i32 %35, 2
  %41 = add i32 %40, %28
  %42 = sub i32 %4, %35
  %43 = shl i32 %42, 2
  %44 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %39, i32 noundef %41, i32 noundef %43) #5
  br label %45

45:                                               ; preds = %36, %34
  %.not145 = icmp eq i32 %2, 1
  br i1 %.not145, label %47, label %46

46:                                               ; preds = %45
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %28) #5
  br label %47

47:                                               ; preds = %46, %45
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %12, i32 noundef %30)
  %48 = or disjoint i32 %.0, -2147483648
  %49 = add nuw nsw i64 %12, 8
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %49, i32 noundef %48)
  ret void

50:                                               ; preds = %8
  tail call void @w2c_hermes_abort(ptr noundef %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

51:                                               ; preds = %17
  tail call void @w2c_hermes_std0x3A0x3A_0x5Fthrow_bad_array_new_length0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0)
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass