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

; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenAnonymousFunctionNameIfNeeded0x28hermes0x3A0x3AIdentifier0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %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 i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.w2c_hermes, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 8, !tbaa !11
  store i32 %18, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %11, align 4, !tbaa !9
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = sub i32 %20, %19
  store i32 %21, ptr %10, align 4, !tbaa !9
  %22 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %22, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 3
  store i32 %23, ptr %25, align 8, !tbaa !11
  %26 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %26, ptr %10, align 4, !tbaa !9
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %3
  br label %281

30:                                               ; preds = %3
  store i32 0, ptr %10, align 4, !tbaa !9
  %31 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %31, ptr %6, align 4, !tbaa !9
  %32 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %32, ptr %10, align 4, !tbaa !9
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = call i32 @i32_load(ptr noundef %34, i64 noundef %36)
  store i32 %37, ptr %10, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 28
  %43 = call i32 @i32_load(ptr noundef %39, i64 noundef %42)
  store i32 %43, ptr %10, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 136
  %49 = call i32 @i32_load8_u(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  store i32 %53, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %30
  br label %281

57:                                               ; preds = %30
  %58 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %58, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = add i32 %60, %59
  store i32 %61, ptr %10, align 4, !tbaa !9
  store i32 109849, ptr %11, align 4, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Abasic_string0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3Anullptr_t0x3E0x28char0x20const0x2A0x29(ptr noundef %62, i32 noundef %63, i32 noundef %64)
  store i32 %65, ptr %10, align 4, !tbaa !9
  %66 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %66, ptr %8, align 4, !tbaa !9
  %67 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %67, ptr %10, align 4, !tbaa !9
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 40
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %74, ptr %6, align 4, !tbaa !9
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i32
  store i32 %78, ptr %10, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %57
  br label %290

82:                                               ; preds = %57
  %83 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %83, ptr %10, align 4, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %85, ptr %12, align 4, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = add i64 %89, 60
  %91 = call i32 @i32_load(ptr noundef %87, i64 noundef %90)
  store i32 %91, ptr %12, align 4, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %12, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = add i64 %95, 100
  %97 = call i32 @i32_load(ptr noundef %93, i64 noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = call i32 @i32_load(ptr noundef %99, i64 noundef %101)
  store i32 %102, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Aappend0x28char0x20const0x2A0x29(ptr noundef %103, i32 noundef %104, i32 noundef %105)
  store i32 %106, ptr %11, align 4, !tbaa !9
  %107 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %107, ptr %6, align 4, !tbaa !9
  store i32 8, ptr %12, align 4, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %111, ptr %9, align 4, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = call i32 @i32_load(ptr noundef %113, i64 noundef %115)
  store i32 %116, ptr %11, align 4, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 32
  %122 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %118, i64 noundef %121, i32 noundef %122)
  %123 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %123, ptr %10, align 4, !tbaa !9
  %124 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %124, ptr %11, align 4, !tbaa !9
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = call i64 @i64_load(ptr noundef %126, i64 noundef %128)
  store i64 %129, ptr %15, align 8, !tbaa !17
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 24
  %135 = load i64, ptr %15, align 8, !tbaa !17
  call void @i64_store(ptr noundef %131, i64 noundef %134, i64 noundef %135)
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %10, align 4, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !17
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = load i64, ptr %15, align 8, !tbaa !17
  call void @i64_store(ptr noundef %138, i64 noundef %140, i64 noundef %141)
  %142 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %142, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %144, i64 noundef %146, i32 noundef %147)
  %148 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %148, ptr %10, align 4, !tbaa !9
  %149 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %149, ptr %11, align 4, !tbaa !9
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = add i64 %153, 24
  %155 = call i32 @i32_load(ptr noundef %151, i64 noundef %154)
  store i32 %155, ptr %11, align 4, !tbaa !9
  %156 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %13, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = add i32 %158, %157
  store i32 %159, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %160, ptr %13, align 4, !tbaa !9
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 6
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = add i64 %164, 35
  %166 = call i32 @i32_load8_u(ptr noundef %162, i64 noundef %165)
  store i32 %166, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %167, ptr %6, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = trunc i32 %168 to i8
  %170 = sext i8 %169 to i32
  store i32 %170, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = icmp slt i32 %171, %172
  %174 = zext i1 %173 to i32
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %175, ptr %9, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %180

178:                                              ; preds = %82
  %179 = load i32, ptr %11, align 4, !tbaa !9
  br label %182

180:                                              ; preds = %82
  %181 = load i32, ptr %12, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %180, %178
  %183 = phi i32 [ %179, %178 ], [ %181, %180 ]
  store i32 %183, ptr %11, align 4, !tbaa !9
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = add i64 %187, 40
  %189 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %185, i64 noundef %188, i32 noundef %189)
  %190 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %190, ptr %10, align 4, !tbaa !9
  %191 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %11, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 28
  %197 = call i32 @i32_load(ptr noundef %193, i64 noundef %196)
  store i32 %197, ptr %11, align 4, !tbaa !9
  %198 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %198, ptr %12, align 4, !tbaa !9
  %199 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %199, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %204

202:                                              ; preds = %182
  %203 = load i32, ptr %11, align 4, !tbaa !9
  br label %206

204:                                              ; preds = %182
  %205 = load i32, ptr %12, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %204, %202
  %207 = phi i32 [ %203, %202 ], [ %205, %204 ]
  store i32 %207, ptr %11, align 4, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = add i64 %211, 44
  %213 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %209, i64 noundef %212, i32 noundef %213)
  %214 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %214, ptr %10, align 4, !tbaa !9
  %215 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %215, ptr %11, align 4, !tbaa !9
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %11, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = add i64 %219, 40
  %221 = call i64 @i64_load(ptr noundef %217, i64 noundef %220)
  store i64 %221, ptr %15, align 8, !tbaa !17
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %10, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = load i64, ptr %15, align 8, !tbaa !17
  call void @i64_store(ptr noundef %223, i64 noundef %225, i64 noundef %226)
  %227 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %227, ptr %10, align 4, !tbaa !9
  %228 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %228, ptr %11, align 4, !tbaa !9
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = load i32, ptr %10, align 4, !tbaa !9
  %231 = load i32, ptr %11, align 4, !tbaa !9
  %232 = call i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenAnonymousLabelName0x28llvh0x3A0x3AStringRef0x29(ptr noundef %229, i32 noundef %230, i32 noundef %231)
  store i32 %232, ptr %10, align 4, !tbaa !9
  %233 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %233, ptr %6, align 4, !tbaa !9
  %234 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %234, ptr %10, align 4, !tbaa !9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %10, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = add i64 %238, 35
  %240 = call i32 @i32_load8_s(ptr noundef %236, i64 noundef %239)
  store i32 %240, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = load i32, ptr %11, align 4, !tbaa !9
  %243 = icmp slt i32 %241, %242
  %244 = zext i1 %243 to i32
  store i32 %244, ptr %10, align 4, !tbaa !9
  %245 = load i32, ptr %10, align 4, !tbaa !9
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %257

247:                                              ; preds = %206
  %248 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %248, ptr %10, align 4, !tbaa !9
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.w2c_hermes, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %10, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = add i64 %252, 24
  %254 = call i32 @i32_load(ptr noundef %250, i64 noundef %253)
  store i32 %254, ptr %10, align 4, !tbaa !9
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %255, i32 noundef %256)
  br label %257

257:                                              ; preds = %247, %206
  %258 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %258, ptr %10, align 4, !tbaa !9
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.w2c_hermes, ptr %259, i32 0, i32 6
  %261 = load i32, ptr %10, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = add i64 %262, 11
  %264 = call i32 @i32_load8_s(ptr noundef %260, i64 noundef %263)
  store i32 %264, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %10, align 4, !tbaa !9
  %266 = load i32, ptr %11, align 4, !tbaa !9
  %267 = icmp sge i32 %265, %266
  %268 = zext i1 %267 to i32
  store i32 %268, ptr %10, align 4, !tbaa !9
  %269 = load i32, ptr %10, align 4, !tbaa !9
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %257
  br label %281

272:                                              ; preds = %257
  %273 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %273, ptr %10, align 4, !tbaa !9
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 6
  %276 = load i32, ptr %10, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = call i32 @i32_load(ptr noundef %275, i64 noundef %277)
  store i32 %278, ptr %10, align 4, !tbaa !9
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %279, i32 noundef %280)
  br label %281

281:                                              ; preds = %272, %271, %56, %29
  %282 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %282, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %11, align 4, !tbaa !9
  %283 = load i32, ptr %11, align 4, !tbaa !9
  %284 = load i32, ptr %10, align 4, !tbaa !9
  %285 = add i32 %284, %283
  store i32 %285, ptr %10, align 4, !tbaa !9
  %286 = load i32, ptr %10, align 4, !tbaa !9
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.w2c_hermes, ptr %287, i32 0, i32 3
  store i32 %286, ptr %288, align 8, !tbaa !11
  %289 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %289, ptr %10, align 4, !tbaa !9
  br label %308

290:                                              ; preds = %81
  store i32 0, ptr %10, align 4, !tbaa !9
  %291 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %291, ptr %6, align 4, !tbaa !9
  store i32 128500, ptr %11, align 4, !tbaa !9
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = load i32, ptr %10, align 4, !tbaa !9
  %294 = add i32 %293, %292
  store i32 %294, ptr %10, align 4, !tbaa !9
  %295 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %295, ptr %11, align 4, !tbaa !9
  store i32 82008, ptr %12, align 4, !tbaa !9
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = load i32, ptr %11, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %11, align 4, !tbaa !9
  store i32 964, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %299, ptr %13, align 4, !tbaa !9
  store i32 65865, ptr %14, align 4, !tbaa !9
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = load i32, ptr %13, align 4, !tbaa !9
  %302 = add i32 %301, %300
  store i32 %302, ptr %13, align 4, !tbaa !9
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = load i32, ptr %10, align 4, !tbaa !9
  %305 = load i32, ptr %11, align 4, !tbaa !9
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef %306, i32 noundef %307)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

308:                                              ; preds = %281
  %309 = load i32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %309
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenAnonymousLabelName0x28llvh0x3A0x3AStringRef0x29(ptr noundef, i32 noundef, i32 noundef) #4

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}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, 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_load8_u(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

; 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 i32 @i32_load8_s(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenAnonymousFunctionNameIfNeeded0x28hermes0x3A0x3AIdentifier0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -48
  store i32 %6, ptr %4, align 8, !tbaa !5
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %7, label %63

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %1 to i64
  %10 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  %11 = zext i32 %10 to i64
  %12 = add nuw nsw i64 %11, 28
  %13 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %12)
  %14 = zext i32 %13 to i64
  %15 = add nuw nsw i64 %14, 136
  %16 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %15)
  %.not156 = icmp eq i32 %16, 0
  br i1 %.not156, label %63, label %17

17:                                               ; preds = %7
  %18 = add i32 %5, -36
  %19 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Abasic_string0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3Anullptr_t0x3E0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %18, i32 noundef 109849) #4
  %20 = add nuw nsw i64 %9, 40
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %.not157 = icmp eq i32 %21, 0
  br i1 %.not157, label %64, label %22

22:                                               ; preds = %17
  %23 = zext i32 %21 to i64
  %24 = add nuw nsw i64 %23, 60
  %25 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %24)
  %26 = zext i32 %25 to i64
  %27 = add nuw nsw i64 %26, 100
  %28 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %27)
  %29 = zext i32 %28 to i64
  %30 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %29)
  %31 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Aappend0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %19, i32 noundef %30) #4
  %32 = add i32 %31, 8
  %33 = zext i32 %32 to i64
  %34 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %33)
  %35 = zext i32 %6 to i64
  %36 = add nuw nsw i64 %35, 32
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %36, i32 noundef %34)
  %37 = zext i32 %31 to i64
  %38 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %37)
  %39 = add nuw nsw i64 %35, 24
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %39, i64 noundef %38)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %37, i64 noundef 0)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %33, i32 noundef 0)
  %40 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %39)
  %41 = add i32 %5, -24
  %42 = add nuw nsw i64 %35, 35
  %43 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %42)
  %sext.mask = and i32 %43, 128
  %.not158 = icmp eq i32 %sext.mask, 0
  %44 = select i1 %.not158, i32 %41, i32 %40
  %45 = add nuw nsw i64 %35, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %45, i32 noundef %44)
  %46 = add nuw nsw i64 %35, 28
  %47 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %46)
  %48 = select i1 %.not158, i32 %43, i32 %47
  %49 = add nuw nsw i64 %35, 44
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %49, i32 noundef %48)
  %50 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %45)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %35, i64 noundef %50)
  %51 = tail call i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenAnonymousLabelName0x28llvh0x3A0x3AStringRef0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %6)
  %52 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %42)
  %53 = icmp slt i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %22
  %55 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %39)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %55) #4
  br label %56

56:                                               ; preds = %54, %22
  %57 = zext i32 %19 to i64
  %58 = add nuw nsw i64 %57, 11
  %59 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %58)
  %60 = icmp sgt i32 %59, -1
  br i1 %60, label %63, label %61

61:                                               ; preds = %56
  %62 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %57)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %62) #4
  br label %63

63:                                               ; preds = %56, %7, %3, %61
  %.0 = phi i32 [ %2, %3 ], [ 0, %7 ], [ %51, %56 ], [ %51, %61 ]
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.0

64:                                               ; preds = %17
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 128500, i32 noundef 82008, i32 noundef 964, i32 noundef 65865) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenAnonymousLabelName0x28llvh0x3A0x3AStringRef0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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 = { nounwind }
attributes #5 = { 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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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