; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

; 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

; 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_store8(ptr noundef, i64 noundef, i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Abasic_string0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3Anullptr_t0x3E0x28char0x20const0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %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 i32, align 4
  %16 = alloca i32, align 4
  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) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !11
  store i32 %19, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = sub i32 %21, %20
  store i32 %22, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %23, ptr %10, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !11
  %27 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = call i32 @w2c_hermes_strlen(ptr noundef %28, i32 noundef %29)
  store i32 %30, ptr %11, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %31, ptr %7, align 4, !tbaa !9
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !11
  store i32 %34, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = sub i32 %36, %35
  store i32 %37, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %38, ptr %8, align 4, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 3
  store i32 %39, ptr %41, align 8, !tbaa !11
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %11, align 4, !tbaa !9
  store i32 2147483631, ptr %12, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = icmp ule i32 %43, %44
  %46 = zext i1 %45 to i32
  store i32 %46, ptr %11, align 4, !tbaa !9
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %262

49:                                               ; preds = %3
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr %11, align 4, !tbaa !9
  store i32 11, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = icmp ult i32 %51, %52
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %11, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %98

57:                                               ; preds = %49
  %58 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %59, ptr %12, align 4, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 11
  %65 = call i32 @i32_load8_u(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %12, align 4, !tbaa !9
  store i32 128, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = and i32 %67, %66
  store i32 %68, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %13, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = or i32 %71, %70
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = add i64 %76, 11
  %78 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %74, i64 noundef %77, i32 noundef %78)
  %79 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %79, ptr %11, align 4, !tbaa !9
  %80 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 11
  %86 = call i32 @i32_load8_u(ptr noundef %82, i64 noundef %85)
  store i32 %86, ptr %12, align 4, !tbaa !9
  store i32 127, ptr %13, align 4, !tbaa !9
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = and i32 %88, %87
  store i32 %89, ptr %12, align 4, !tbaa !9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 11
  %95 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %91, i64 noundef %94, i32 noundef %95)
  %96 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %96, ptr %11, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %97, ptr %9, align 4, !tbaa !9
  br label %223

98:                                               ; preds = %49
  %99 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %99, ptr %11, align 4, !tbaa !9
  store i32 8, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = add i32 %101, %100
  store i32 %102, ptr %11, align 4, !tbaa !9
  %103 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %103, ptr %12, align 4, !tbaa !9
  %104 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %104, ptr %13, align 4, !tbaa !9
  store i32 11, ptr %14, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp uge i32 %105, %106
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %13, align 4, !tbaa !9
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %138

111:                                              ; preds = %98
  %112 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %112, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = add i32 %114, %113
  store i32 %115, ptr %13, align 4, !tbaa !9
  store i32 -16, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = and i32 %117, %116
  store i32 %118, ptr %13, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %119, ptr %9, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %120, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = sub i32 %122, %121
  store i32 %123, ptr %14, align 4, !tbaa !9
  %124 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %124, ptr %9, align 4, !tbaa !9
  %125 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %125, ptr %15, align 4, !tbaa !9
  store i32 11, ptr %16, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !9
  %128 = icmp eq i32 %126, %127
  %129 = zext i1 %128 to i32
  store i32 %129, ptr %15, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %111
  %133 = load i32, ptr %13, align 4, !tbaa !9
  br label %136

134:                                              ; preds = %111
  %135 = load i32, ptr %14, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %134, %132
  %137 = phi i32 [ %133, %132 ], [ %135, %134 ]
  store i32 %137, ptr %13, align 4, !tbaa !9
  br label %139

138:                                              ; preds = %98
  store i32 10, ptr %13, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %138, %136
  store i32 1, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = add i32 %141, %140
  store i32 %142, ptr %13, align 4, !tbaa !9
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fallocation_result0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator_traits0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Apointer0x3E0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fallocate_at_least0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x260x2C0x20unsigned0x20long0x29(ptr noundef %143, i32 noundef %144, i32 noundef %145, i32 noundef %146)
  %147 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %147, ptr %11, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 12
  %153 = call i32 @i32_load(ptr noundef %149, i64 noundef %152)
  store i32 %153, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %154, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %155, ptr %12, align 4, !tbaa !9
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = add i64 %159, 8
  %161 = call i32 @i32_load(ptr noundef %157, i64 noundef %160)
  store i32 %161, ptr %12, align 4, !tbaa !9
  %162 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %162, ptr %9, align 4, !tbaa !9
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %11, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %164, i64 noundef %166, i32 noundef %167)
  %168 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %168, ptr %11, align 4, !tbaa !9
  %169 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %169, ptr %12, align 4, !tbaa !9
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = add i64 %173, 8
  %175 = call i32 @i32_load(ptr noundef %171, i64 noundef %174)
  store i32 %175, ptr %12, align 4, !tbaa !9
  store i32 -2147483648, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = and i32 %177, %176
  store i32 %178, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %179, ptr %13, align 4, !tbaa !9
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 6
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = add i64 %183, 12
  %185 = call i32 @i32_load(ptr noundef %181, i64 noundef %184)
  store i32 %185, ptr %13, align 4, !tbaa !9
  store i32 2147483647, ptr %14, align 4, !tbaa !9
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = and i32 %187, %186
  store i32 %188, ptr %13, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = or i32 %190, %189
  store i32 %191, ptr %12, 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, 8
  %197 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %193, i64 noundef %196, i32 noundef %197)
  %198 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %198, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %199, ptr %12, align 4, !tbaa !9
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 8
  %205 = call i32 @i32_load(ptr noundef %201, i64 noundef %204)
  store i32 %205, ptr %12, align 4, !tbaa !9
  store i32 -2147483648, ptr %13, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = or i32 %207, %206
  store i32 %208, ptr %12, align 4, !tbaa !9
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 8
  %214 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %210, i64 noundef %213, i32 noundef %214)
  %215 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %215, ptr %11, align 4, !tbaa !9
  %216 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %216, ptr %12, align 4, !tbaa !9
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %11, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 4
  %222 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %218, i64 noundef %221, i32 noundef %222)
  br label %223

223:                                              ; preds = %139, %57
  %224 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %224, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %225, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  %230 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x3A0x3Acopy0x28char0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef %230)
  %231 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %231, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.w2c_hermes, ptr %232, i32 0, i32 6
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = add i64 %235, 7
  %237 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %233, i64 noundef %236, i32 noundef %237)
  %238 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %238, ptr %11, align 4, !tbaa !9
  %239 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %239, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %12, align 4, !tbaa !9
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = add i32 %241, %240
  store i32 %242, ptr %11, align 4, !tbaa !9
  %243 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %243, ptr %12, align 4, !tbaa !9
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.w2c_hermes, ptr %244, i32 0, i32 6
  %246 = load i32, ptr %12, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = add i64 %247, 7
  %249 = call i32 @i32_load8_u(ptr noundef %245, i64 noundef %248)
  store i32 %249, ptr %12, align 4, !tbaa !9
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %251, i64 noundef %253, i32 noundef %254)
  %255 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %255, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = load i32, ptr %11, align 4, !tbaa !9
  %258 = add i32 %257, %256
  store i32 %258, ptr %11, align 4, !tbaa !9
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 3
  store i32 %259, ptr %261, align 8, !tbaa !11
  br label %264

262:                                              ; preds = %3
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x280x290x20const(ptr noundef %263)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

264:                                              ; preds = %223
  %265 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %265, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %11, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %11, align 4, !tbaa !9
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 3
  store i32 %269, ptr %271, align 8, !tbaa !11
  %272 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %272, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %273
}

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 = { 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 }

!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}


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fallocation_result0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator_traits0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Apointer0x3E0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fallocate_at_least0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x260x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x3A0x3Acopy0x28char0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Abasic_string0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3Anullptr_t0x3E0x28char0x20const0x2A0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = tail call i32 @w2c_hermes_strlen(ptr noundef %0, i32 noundef %2)
  %8 = load i32, ptr %4, align 8, !tbaa !5
  %9 = add i32 %8, -16
  store i32 %9, ptr %4, align 8, !tbaa !5
  %10 = icmp ult i32 %7, 2147483632
  br i1 %10, label %11, label %48

11:                                               ; preds = %3
  %12 = icmp ult i32 %7, 11
  br i1 %12, label %13, label %22

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = zext i32 %1 to i64
  %16 = add nuw nsw i64 %15, 11
  %17 = tail call i32 @i32_load8_u(ptr noundef nonnull %14, i64 noundef %16)
  %18 = and i32 %17, 128
  %19 = or disjoint i32 %18, %7
  tail call void @i32_store8(ptr noundef nonnull %14, i64 noundef %16, i32 noundef %19)
  %20 = tail call i32 @i32_load8_u(ptr noundef nonnull %14, i64 noundef %16)
  %21 = and i32 %20, 127
  tail call void @i32_store8(ptr noundef nonnull %14, i64 noundef %16, i32 noundef %21)
  %.pre = zext i32 %9 to i64
  br label %42

22:                                               ; preds = %11
  %23 = add i32 %8, -8
  %24 = add nuw nsw i32 %7, 16
  %25 = and i32 %24, 2147483632
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fallocation_result0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator_traits0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3Apointer0x3E0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fallocate_at_least0x5Babi0x3Av150070x5D0x3Cstd0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x260x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %1, i32 noundef %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = zext i32 %9 to i64
  %28 = add nuw nsw i64 %27, 12
  %29 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %28)
  %30 = add nuw nsw i64 %27, 8
  %31 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %30)
  %32 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %32, i32 noundef %31)
  %33 = add nuw nsw i64 %32, 8
  %34 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %33)
  %35 = and i32 %34, -2147483648
  %36 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %28)
  %37 = and i32 %36, 2147483647
  %38 = or disjoint i32 %37, %35
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %33, i32 noundef %38)
  %39 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %33)
  %40 = or i32 %39, -2147483648
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %33, i32 noundef %40)
  %41 = add nuw nsw i64 %32, 4
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %41, i32 noundef %7)
  br label %42

42:                                               ; preds = %22, %13
  %.pre-phi = phi i64 [ %27, %22 ], [ %.pre, %13 ]
  %.0151 = phi i32 [ %31, %22 ], [ %1, %13 ]
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x3A0x3Acopy0x28char0x2A0x2C0x20char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %.0151, i32 noundef %2, i32 noundef %7)
  %43 = getelementptr inbounds i8, ptr %0, i64 40
  %44 = add nuw nsw i64 %.pre-phi, 7
  tail call void @i32_store8(ptr noundef nonnull %43, i64 noundef %44, i32 noundef 0)
  %45 = add i32 %.0151, %7
  %46 = tail call i32 @i32_load8_u(ptr noundef nonnull %43, i64 noundef %44)
  %47 = zext i32 %45 to i64
  tail call void @i32_store8(ptr noundef nonnull %43, i64 noundef %47, i32 noundef %46)
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %1

48:                                               ; preds = %3
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x280x290x20const(ptr noundef nonnull %0)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable
}

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 = { 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 #3 = { 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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass