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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3AMatchAnyNode0x3A0x3AemitStep0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x29(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
  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
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.w2c_hermes, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !11
  store i32 %17, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %18 = load i32, ptr %12, align 4, !tbaa !9
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = sub i32 %19, %18
  store i32 %20, ptr %11, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %21, ptr %7, align 4, !tbaa !9
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  store i32 %22, ptr %24, align 8, !tbaa !11
  %25 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %25, ptr %11, align 4, !tbaa !9
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = add i64 %29, 4
  %31 = call i32 @i32_load(ptr noundef %27, i64 noundef %30)
  store i32 %31, ptr %11, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %32, ptr %12, 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 %12, 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 %12, align 4, !tbaa !9
  %38 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %38, ptr %8, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = sub i32 %40, %39
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %43, ptr %11, 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 %11, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 5
  %49 = call i32 @i32_load8_u(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %50, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 4
  %57 = call i32 @i32_load8_u(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %146

60:                                               ; preds = %3
  %61 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %61, ptr %11, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %105

64:                                               ; preds = %60
  %65 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %65, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %11, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 12
  %71 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %67, i64 noundef %70, i32 noundef %71)
  %72 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %72, ptr %11, align 4, !tbaa !9
  store i32 -1, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = icmp ne i32 %73, %74
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %96

79:                                               ; preds = %64
  %80 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %80, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = add i32 %83, %82
  store i32 %84, ptr %13, align 4, !tbaa !9
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88)
  %89 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %89, ptr %11, 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 = call i32 @i32_load(ptr noundef %91, i64 noundef %93)
  store i32 %94, ptr %11, align 4, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %95, ptr %8, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  br label %233

96:                                               ; preds = %64
  %97 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %97, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = add i64 %102, 4
  %104 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %100, i64 noundef %103, i32 noundef %104)
  store i32 4, ptr %11, align 4, !tbaa !9
  br label %233

105:                                              ; preds = %60
  %106 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %106, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = add i64 %110, 13
  %112 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %108, i64 noundef %111, i32 noundef %112)
  %113 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %113, ptr %11, align 4, !tbaa !9
  store i32 -1, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = icmp ne i32 %114, %115
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %11, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %137

120:                                              ; preds = %105
  %121 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %121, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %122, ptr %13, align 4, !tbaa !9
  store i32 13, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = add i32 %124, %123
  store i32 %125, ptr %13, align 4, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %11, 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 %11, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = call i32 @i32_load(ptr noundef %132, i64 noundef %134)
  store i32 %135, ptr %11, align 4, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %136, ptr %8, align 4, !tbaa !9
  store i32 6, ptr %11, align 4, !tbaa !9
  br label %233

137:                                              ; preds = %105
  %138 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %138, ptr %11, align 4, !tbaa !9
  %139 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %139, ptr %12, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = add i64 %143, 4
  %145 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %141, i64 noundef %144, i32 noundef %145)
  store i32 6, ptr %11, align 4, !tbaa !9
  br label %233

146:                                              ; preds = %3
  %147 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %147, ptr %11, align 4, !tbaa !9
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %191

150:                                              ; preds = %146
  %151 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %151, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, 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 %11, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = add i64 %155, 14
  %157 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %153, i64 noundef %156, i32 noundef %157)
  %158 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %158, ptr %11, align 4, !tbaa !9
  store i32 -1, ptr %12, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = icmp ne i32 %159, %160
  %162 = zext i1 %161 to i32
  store i32 %162, ptr %11, align 4, !tbaa !9
  %163 = load i32, ptr %11, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %182

165:                                              ; preds = %150
  %166 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %166, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %167 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %167, ptr %13, align 4, !tbaa !9
  store i32 14, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = add i32 %169, %168
  store i32 %170, ptr %13, align 4, !tbaa !9
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = load i32, ptr %11, align 4, !tbaa !9
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %11, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = call i32 @i32_load(ptr noundef %177, i64 noundef %179)
  store i32 %180, ptr %11, align 4, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %181, ptr %8, align 4, !tbaa !9
  store i32 3, ptr %11, align 4, !tbaa !9
  br label %233

182:                                              ; preds = %150
  %183 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %183, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %184, ptr %12, align 4, !tbaa !9
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 4
  %190 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %186, i64 noundef %189, i32 noundef %190)
  store i32 3, ptr %11, align 4, !tbaa !9
  br label %233

191:                                              ; preds = %146
  %192 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %192, ptr %11, align 4, !tbaa !9
  store i32 0, 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 %11, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 15
  %198 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %194, i64 noundef %197, i32 noundef %198)
  %199 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %199, ptr %11, align 4, !tbaa !9
  store i32 -1, ptr %12, align 4, !tbaa !9
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = icmp ne i32 %200, %201
  %203 = zext i1 %202 to i32
  store i32 %203, ptr %11, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %223

206:                                              ; preds = %191
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %208 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %208, ptr %13, align 4, !tbaa !9
  store i32 15, ptr %14, align 4, !tbaa !9
  %209 = load i32, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %13, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215)
  %216 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %216, ptr %11, 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 = call i32 @i32_load(ptr noundef %218, i64 noundef %220)
  store i32 %221, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %222, ptr %8, align 4, !tbaa !9
  br label %232

223:                                              ; preds = %191
  %224 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %224, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %225, ptr %12, align 4, !tbaa !9
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = add i64 %229, 4
  %231 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %227, i64 noundef %230, i32 noundef %231)
  br label %232

232:                                              ; preds = %223, %206
  store i32 5, ptr %11, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %232, %182, %165, %137, %120, %96, %79
  %234 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %234, ptr %6, align 4, !tbaa !9
  %235 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %236, ptr %12, align 4, !tbaa !9
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = add i32 %238, %237
  store i32 %239, ptr %11, align 4, !tbaa !9
  %240 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %240, ptr %12, align 4, !tbaa !9
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %11, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %242, i64 noundef %244, i32 noundef %245)
  %246 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %246, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %11, align 4, !tbaa !9
  %249 = add i32 %248, %247
  store i32 %249, ptr %11, align 4, !tbaa !9
  %250 = load i32, ptr %11, align 4, !tbaa !9
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 3
  store i32 %250, ptr %252, align 8, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !9
  %253 = load i32, ptr %11, align 4, !tbaa !9
  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 %253
}

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

!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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3AMatchAnyNode0x3A0x3AemitStep0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x29(ptr noundef %0, i32 noundef %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 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %2 to i64
  %9 = add nuw nsw i64 %8, 4
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %12 = sub i32 %10, %11
  %13 = zext i32 %1 to i64
  %14 = add nuw nsw i64 %13, 5
  %15 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %14)
  %16 = add nuw nsw i64 %13, 4
  %17 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %16)
  %.not = icmp eq i32 %17, 0
  %.not143 = icmp eq i32 %15, 0
  %18 = zext i32 %6 to i64
  %.not144 = icmp eq i32 %12, -1
  br i1 %.not, label %32, label %19

19:                                               ; preds = %3
  br i1 %.not143, label %26, label %20

20:                                               ; preds = %19
  %21 = add nuw nsw i64 %18, 12
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %21, i32 noundef 0)
  br i1 %.not144, label %25, label %22

22:                                               ; preds = %20
  %23 = add i32 %5, -4
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 1, i32 noundef %23) #3
  %24 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  br label %45

25:                                               ; preds = %20
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %11)
  br label %45

26:                                               ; preds = %19
  %27 = add nuw nsw i64 %18, 13
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %27, i32 noundef 0)
  br i1 %.not144, label %31, label %28

28:                                               ; preds = %26
  %29 = add i32 %5, -3
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 1, i32 noundef %29) #3
  %30 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  br label %45

31:                                               ; preds = %26
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %11)
  br label %45

32:                                               ; preds = %3
  br i1 %.not143, label %39, label %33

33:                                               ; preds = %32
  %34 = add nuw nsw i64 %18, 14
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %34, i32 noundef 0)
  br i1 %.not144, label %38, label %35

35:                                               ; preds = %33
  %36 = add i32 %5, -2
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 1, i32 noundef %36) #3
  %37 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  br label %45

38:                                               ; preds = %33
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %11)
  br label %45

39:                                               ; preds = %32
  %40 = add nuw nsw i64 %18, 15
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %40, i32 noundef 0)
  br i1 %.not144, label %44, label %41

41:                                               ; preds = %39
  %42 = add i32 %5, -1
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 1, i32 noundef %42) #3
  %43 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  br label %45

44:                                               ; preds = %39
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %11)
  br label %45

45:                                               ; preds = %41, %44, %38, %35, %31, %28, %25, %22
  %.1 = phi i32 [ %24, %22 ], [ %11, %25 ], [ %30, %28 ], [ %11, %31 ], [ %37, %35 ], [ %11, %38 ], [ %43, %41 ], [ %11, %44 ]
  %.0 = phi i32 [ 4, %22 ], [ 4, %25 ], [ 6, %28 ], [ 6, %31 ], [ 3, %35 ], [ 3, %38 ], [ 5, %41 ], [ 5, %44 ]
  %46 = add i32 %.1, %12
  %47 = zext i32 %46 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %47, i32 noundef %.0)
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 0
}

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