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

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

declare void @w2c_hermes_abort(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3AMarkedSubexpressionNode0x3A0x3AemitStep0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x29(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 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) #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
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  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 4, 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 %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %19 = load i32, ptr %13, align 4, !tbaa !9
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = sub i32 %20, %19
  store i32 %21, ptr %12, align 4, !tbaa !9
  %22 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %22, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %12, 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 %5, align 4, !tbaa !9
  store i32 %26, ptr %12, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = add i64 %30, 20
  %32 = call i32 @i32_load8_u(ptr noundef %28, i64 noundef %31)
  store i32 %32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 0
  %35 = xor i1 %34, true
  %36 = zext i1 %35 to i32
  store i32 %36, ptr %12, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %169

39:                                               ; preds = %3
  %40 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %40, ptr %12, align 4, !tbaa !9
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.w2c_hermes, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = add i64 %44, 18
  %46 = call i32 @i32_load16_u(ptr noundef %42, i64 noundef %45)
  store i32 %46, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %47, ptr %11, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %48, ptr %12, align 4, !tbaa !9
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.w2c_hermes, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = call i32 @i32_load(ptr noundef %50, i64 noundef %52)
  store i32 %53, ptr %12, align 4, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %54, ptr %7, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %55, ptr %12, align 4, !tbaa !9
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = add i64 %59, 4
  %61 = call i32 @i32_load(ptr noundef %57, i64 noundef %60)
  store i32 %61, ptr %12, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %62, ptr %8, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %63, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 14
  %69 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %65, i64 noundef %68, i32 noundef %69)
  %70 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %70, ptr %12, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = sub i32 %73, %72
  store i32 %74, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %75, ptr %8, align 4, !tbaa !9
  store i32 -4, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = icmp ule i32 %76, %77
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %107

82:                                               ; preds = %39
  %83 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %84, ptr %14, align 4, !tbaa !9
  store i32 14, ptr %15, align 4, !tbaa !9
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = add i32 %86, %85
  store i32 %87, ptr %14, align 4, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91)
  %92 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = call i32 @i32_load(ptr noundef %94, i64 noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %98, ptr %7, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %99, ptr %12, align 4, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 4
  %105 = call i32 @i32_load(ptr noundef %101, i64 noundef %104)
  store i32 %105, ptr %12, align 4, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %106, ptr %10, align 4, !tbaa !9
  br label %124

107:                                              ; preds = %39
  %108 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = add i32 %112, %111
  store i32 %113, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = add i32 %115, %114
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %117, ptr %10, align 4, !tbaa !9
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 4
  %123 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %119, i64 noundef %122, i32 noundef %123)
  br label %124

124:                                              ; preds = %107, %82
  %125 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %125, ptr %12, align 4, !tbaa !9
  %126 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = add i32 %128, %127
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %130, ptr %6, align 4, !tbaa !9
  store i32 19, ptr %13, align 4, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %132, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %136, ptr %12, align 4, !tbaa !9
  %137 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %137, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = sub i32 %139, %138
  store i32 %140, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %141, ptr %13, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = icmp ule i32 %142, %143
  %145 = zext i1 %144 to i32
  store i32 %145, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %124
  br label %305

149:                                              ; preds = %124
  %150 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %151, ptr %13, align 4, !tbaa !9
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = add i64 %155, 1
  %157 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %153, i64 noundef %156, i32 noundef %157)
  %158 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %158, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 20
  %164 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %160, i64 noundef %163, i32 noundef %164)
  %165 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %165, ptr %12, align 4, !tbaa !9
  store i32 4, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %12, align 4, !tbaa !9
  br label %295

169:                                              ; preds = %3
  %170 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %170, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = add i64 %174, 20
  %176 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %172, i64 noundef %175, i32 noundef %176)
  %177 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %177, ptr %12, align 4, !tbaa !9
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %12, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = add i64 %181, 18
  %183 = call i32 @i32_load16_u(ptr noundef %179, i64 noundef %182)
  store i32 %183, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %184, ptr %10, align 4, !tbaa !9
  %185 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %185, ptr %12, align 4, !tbaa !9
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = call i32 @i32_load(ptr noundef %187, i64 noundef %189)
  store i32 %190, ptr %12, align 4, !tbaa !9
  %191 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %191, ptr %5, align 4, !tbaa !9
  %192 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %192, ptr %12, align 4, !tbaa !9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 4
  %198 = call i32 @i32_load(ptr noundef %194, i64 noundef %197)
  store i32 %198, ptr %12, align 4, !tbaa !9
  %199 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %199, ptr %7, align 4, !tbaa !9
  %200 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %200, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.w2c_hermes, ptr %201, i32 0, i32 6
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = add i64 %204, 15
  %206 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %202, i64 noundef %205, i32 noundef %206)
  %207 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %207, ptr %12, align 4, !tbaa !9
  %208 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %208, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = sub i32 %210, %209
  store i32 %211, ptr %12, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %212, ptr %7, align 4, !tbaa !9
  store i32 -4, ptr %13, align 4, !tbaa !9
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = icmp ule i32 %213, %214
  %216 = zext i1 %215 to i32
  store i32 %216, ptr %12, align 4, !tbaa !9
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %244

219:                                              ; preds = %169
  %220 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %220, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %221 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %221, ptr %14, align 4, !tbaa !9
  store i32 15, ptr %15, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %14, align 4, !tbaa !9
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %225, i32 noundef %226, i32 noundef %227, i32 noundef %228)
  %229 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %229, ptr %12, align 4, !tbaa !9
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %12, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call i32 @i32_load(ptr noundef %231, i64 noundef %233)
  store i32 %234, ptr %12, align 4, !tbaa !9
  %235 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %235, ptr %5, align 4, !tbaa !9
  %236 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %236, ptr %12, align 4, !tbaa !9
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.w2c_hermes, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = add i64 %240, 4
  %242 = call i32 @i32_load(ptr noundef %238, i64 noundef %241)
  store i32 %242, ptr %12, align 4, !tbaa !9
  %243 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %243, ptr %8, align 4, !tbaa !9
  br label %261

244:                                              ; preds = %169
  %245 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %245, ptr %12, align 4, !tbaa !9
  %246 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %246, ptr %13, align 4, !tbaa !9
  %247 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %247, ptr %14, align 4, !tbaa !9
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = add i32 %249, %248
  store i32 %250, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %13, align 4, !tbaa !9
  %254 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %254, ptr %8, align 4, !tbaa !9
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %12, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = add i64 %258, 4
  %260 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %256, i64 noundef %259, i32 noundef %260)
  br label %261

261:                                              ; preds = %244, %219
  %262 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %262, ptr %12, align 4, !tbaa !9
  %263 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %263, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = add i32 %265, %264
  store i32 %266, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %267, ptr %6, align 4, !tbaa !9
  store i32 20, ptr %13, align 4, !tbaa !9
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %12, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %269, i64 noundef %271, i32 noundef %272)
  %273 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %273, ptr %12, align 4, !tbaa !9
  %274 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %274, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = sub i32 %276, %275
  store i32 %277, ptr %12, align 4, !tbaa !9
  %278 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %278, ptr %13, align 4, !tbaa !9
  %279 = load i32, ptr %12, align 4, !tbaa !9
  %280 = load i32, ptr %13, align 4, !tbaa !9
  %281 = icmp ule i32 %279, %280
  %282 = zext i1 %281 to i32
  store i32 %282, ptr %12, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %261
  br label %305

286:                                              ; preds = %261
  %287 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %287, ptr %12, align 4, !tbaa !9
  %288 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %288, ptr %13, align 4, !tbaa !9
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %12, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = add i64 %292, 1
  %294 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %290, i64 noundef %293, i32 noundef %294)
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %286, %149
  %296 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %296, ptr %6, align 4, !tbaa !9
  %297 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %297, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %298 = load i32, ptr %13, align 4, !tbaa !9
  %299 = load i32, ptr %12, align 4, !tbaa !9
  %300 = add i32 %299, %298
  store i32 %300, ptr %12, align 4, !tbaa !9
  %301 = load i32, ptr %12, align 4, !tbaa !9
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 3
  store i32 %301, ptr %303, align 8, !tbaa !11
  %304 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %304, ptr %12, align 4, !tbaa !9
  br label %307

305:                                              ; preds = %285, %148
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %306)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

307:                                              ; preds = %295
  %308 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, 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 %308
}

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}


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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3AMarkedSubexpressionNode0x3A0x3AemitStep0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x29(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, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 20
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %35

11:                                               ; preds = %3
  %12 = add nuw nsw i64 %8, 18
  %13 = tail call i32 @i32_load16_u(ptr noundef nonnull %7, i64 noundef %12)
  %14 = zext i32 %2 to i64
  %15 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %14)
  %16 = add nuw nsw i64 %14, 4
  %17 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  %18 = zext i32 %6 to i64
  %19 = add nuw nsw i64 %18, 14
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %19, i32 noundef 0)
  %20 = sub i32 %17, %15
  %21 = icmp ult i32 %20, -3
  br i1 %21, label %22, label %26

22:                                               ; preds = %11
  %23 = add i32 %5, -2
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 3, i32 noundef %23) #4
  %24 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %14)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  br label %28

26:                                               ; preds = %11
  %27 = add i32 %17, 3
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %16, i32 noundef %27)
  br label %28

28:                                               ; preds = %26, %22
  %.0176 = phi i32 [ %24, %22 ], [ %15, %26 ]
  %.0174 = phi i32 [ %25, %22 ], [ %27, %26 ]
  %29 = add i32 %.0176, %20
  %30 = zext i32 %29 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %30, i32 noundef 19)
  %31 = sub i32 %.0174, %.0176
  %.not179 = icmp ugt i32 %31, %20
  br i1 %.not179, label %32, label %59

32:                                               ; preds = %28
  %33 = add nuw nsw i64 %30, 1
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %33, i32 noundef %13)
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %9, i32 noundef 1)
  %34 = add i32 %1, 4
  br label %58

35:                                               ; preds = %3
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %9, i32 noundef 0)
  %36 = add nuw nsw i64 %8, 18
  %37 = tail call i32 @i32_load16_u(ptr noundef nonnull %7, i64 noundef %36)
  %38 = zext i32 %2 to i64
  %39 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %38)
  %40 = add nuw nsw i64 %38, 4
  %41 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %40)
  %42 = zext i32 %6 to i64
  %43 = add nuw nsw i64 %42, 15
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %43, i32 noundef 0)
  %44 = sub i32 %41, %39
  %45 = icmp ult i32 %44, -3
  br i1 %45, label %46, label %50

46:                                               ; preds = %35
  %47 = add i32 %5, -1
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 3, i32 noundef %47) #4
  %48 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %38)
  %49 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %40)
  br label %52

50:                                               ; preds = %35
  %51 = add i32 %41, 3
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %40, i32 noundef %51)
  br label %52

52:                                               ; preds = %50, %46
  %.0177 = phi i32 [ %48, %46 ], [ %39, %50 ]
  %.0175 = phi i32 [ %49, %46 ], [ %51, %50 ]
  %53 = add i32 %.0177, %44
  %54 = zext i32 %53 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %54, i32 noundef 20)
  %55 = sub i32 %.0175, %.0177
  %.not178 = icmp ugt i32 %55, %44
  br i1 %.not178, label %56, label %59

56:                                               ; preds = %52
  %57 = add nuw nsw i64 %54, 1
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %57, i32 noundef %37)
  br label %58

58:                                               ; preds = %56, %32
  %.0 = phi i32 [ %34, %32 ], [ 0, %56 ]
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.0

59:                                               ; preds = %52, %28
  tail call void @w2c_hermes_abort(ptr noundef nonnull %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  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 = { "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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass