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

; 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: 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: nounwind uwtable
declare dso_local void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #2

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3APrintMessage0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3ASMLoc0x2C0x20llvh0x3A0x3ASourceMgr0x3A0x3ADiagKind0x2C0x20llvh0x3A0x3ATwine0x20const0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMRange0x3E0x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMFixIt0x3E0x2C0x20bool0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i64, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !9
  store i32 %8, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store i64 0, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  %32 = load i32, ptr %31, align 8, !tbaa !13
  store i32 %32, ptr %22, align 4, !tbaa !9
  store i32 192, ptr %23, align 4, !tbaa !9
  %33 = load i32, ptr %23, align 4, !tbaa !9
  %34 = load i32, ptr %22, align 4, !tbaa !9
  %35 = sub i32 %34, %33
  store i32 %35, ptr %22, align 4, !tbaa !9
  %36 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %36, ptr %19, align 4, !tbaa !9
  %37 = load i32, ptr %22, align 4, !tbaa !9
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 3
  store i32 %37, ptr %39, align 8, !tbaa !13
  %40 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %40, ptr %22, align 4, !tbaa !9
  %41 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %41, ptr %23, align 4, !tbaa !9
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %23, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call i64 @i64_load(ptr noundef %43, i64 noundef %45)
  store i64 %46, ptr %29, align 8, !tbaa !11
  %47 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %47, ptr %20, align 8, !tbaa !11
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %22, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = add i64 %51, 24
  %53 = load i64, ptr %29, align 8, !tbaa !11
  call void @i64_store(ptr noundef %49, i64 noundef %52, i64 noundef %53)
  %54 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %54, ptr %22, align 4, !tbaa !9
  %55 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %55, ptr %23, align 4, !tbaa !9
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %23, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call i64 @i64_load(ptr noundef %57, i64 noundef %59)
  store i64 %60, ptr %29, align 8, !tbaa !11
  %61 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %61, ptr %21, align 8, !tbaa !11
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.w2c_hermes, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %22, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = add i64 %65, 16
  %67 = load i64, ptr %29, align 8, !tbaa !11
  call void @i64_store(ptr noundef %63, i64 noundef %66, i64 noundef %67)
  %68 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %68, ptr %22, align 4, !tbaa !9
  %69 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %69, ptr %29, align 8, !tbaa !11
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %22, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 8
  %75 = load i64, ptr %29, align 8, !tbaa !11
  call void @i64_store(ptr noundef %71, i64 noundef %74, i64 noundef %75)
  %76 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %76, ptr %22, align 4, !tbaa !9
  %77 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %77, ptr %29, align 8, !tbaa !11
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %22, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = load i64, ptr %29, align 8, !tbaa !11
  call void @i64_store(ptr noundef %79, i64 noundef %81, i64 noundef %82)
  %83 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %83, ptr %22, align 4, !tbaa !9
  store i32 32, ptr %23, align 4, !tbaa !9
  %84 = load i32, ptr %23, align 4, !tbaa !9
  %85 = load i32, ptr %22, align 4, !tbaa !9
  %86 = add i32 %85, %84
  store i32 %86, ptr %22, align 4, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %87, ptr %23, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %88, ptr %24, align 4, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %89, ptr %25, align 4, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %90, ptr %26, align 4, !tbaa !9
  %91 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %91, ptr %27, align 4, !tbaa !9
  store i32 8, ptr %28, align 4, !tbaa !9
  %92 = load i32, ptr %28, align 4, !tbaa !9
  %93 = load i32, ptr %27, align 4, !tbaa !9
  %94 = add i32 %93, %92
  store i32 %94, ptr %27, align 4, !tbaa !9
  %95 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %95, ptr %28, align 4, !tbaa !9
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load i32, ptr %22, align 4, !tbaa !9
  %98 = load i32, ptr %23, align 4, !tbaa !9
  %99 = load i32, ptr %24, align 4, !tbaa !9
  %100 = load i32, ptr %25, align 4, !tbaa !9
  %101 = load i32, ptr %26, align 4, !tbaa !9
  %102 = load i32, ptr %27, align 4, !tbaa !9
  %103 = load i32, ptr %28, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3AGetMessage0x28llvh0x3A0x3ASMLoc0x2C0x20llvh0x3A0x3ASourceMgr0x3A0x3ADiagKind0x2C0x20llvh0x3A0x3ATwine0x20const0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMRange0x3E0x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMFixIt0x3E0x290x20const(ptr noundef %96, i32 noundef %97, i32 noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %102, i32 noundef %103)
  %104 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %104, ptr %22, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %105, ptr %23, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %106, ptr %24, align 4, !tbaa !9
  store i32 32, ptr %25, align 4, !tbaa !9
  %107 = load i32, ptr %25, align 4, !tbaa !9
  %108 = load i32, ptr %24, align 4, !tbaa !9
  %109 = add i32 %108, %107
  store i32 %109, ptr %24, align 4, !tbaa !9
  %110 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %110, ptr %25, align 4, !tbaa !9
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load i32, ptr %22, align 4, !tbaa !9
  %113 = load i32, ptr %23, align 4, !tbaa !9
  %114 = load i32, ptr %24, align 4, !tbaa !9
  %115 = load i32, ptr %25, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3APrintMessage0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3ASMDiagnostic0x20const0x260x2C0x20bool0x290x20const(ptr noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %114, i32 noundef %115)
  %116 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %116, ptr %22, align 4, !tbaa !9
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %22, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 100
  %122 = call i32 @i32_load(ptr noundef %118, i64 noundef %121)
  store i32 %122, ptr %22, align 4, !tbaa !9
  %123 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %123, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %124, ptr %22, align 4, !tbaa !9
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %22, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 104
  %130 = call i32 @i32_load(ptr noundef %126, i64 noundef %129)
  store i32 %130, ptr %22, align 4, !tbaa !9
  %131 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %131, ptr %11, align 4, !tbaa !9
  %132 = load i32, ptr %22, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %195

134:                                              ; preds = %9
  %135 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %135, ptr %22, align 4, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %136, ptr %23, align 4, !tbaa !9
  store i32 20, ptr %24, align 4, !tbaa !9
  %137 = load i32, ptr %24, align 4, !tbaa !9
  %138 = load i32, ptr %23, align 4, !tbaa !9
  %139 = mul i32 %138, %137
  store i32 %139, ptr %23, align 4, !tbaa !9
  %140 = load i32, ptr %23, align 4, !tbaa !9
  %141 = load i32, ptr %22, align 4, !tbaa !9
  %142 = add i32 %141, %140
  store i32 %142, ptr %22, align 4, !tbaa !9
  %143 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %143, ptr %11, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %185, %134
  %145 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %145, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %146 = load i32, ptr %23, align 4, !tbaa !9
  %147 = load i32, ptr %22, align 4, !tbaa !9
  %148 = sub i32 %147, %146
  store i32 %148, ptr %22, align 4, !tbaa !9
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.w2c_hermes, ptr %149, i32 0, i32 6
  %151 = load i32, ptr %22, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = call i32 @i32_load8_s(ptr noundef %150, i64 noundef %152)
  store i32 %153, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %154 = load i32, ptr %22, align 4, !tbaa !9
  %155 = load i32, ptr %23, align 4, !tbaa !9
  %156 = icmp slt i32 %154, %155
  %157 = zext i1 %156 to i32
  store i32 %157, ptr %22, align 4, !tbaa !9
  %158 = load i32, ptr %22, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %172

160:                                              ; preds = %144
  %161 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %161, ptr %22, align 4, !tbaa !9
  store i32 12, ptr %23, align 4, !tbaa !9
  %162 = load i32, ptr %23, align 4, !tbaa !9
  %163 = load i32, ptr %22, align 4, !tbaa !9
  %164 = sub i32 %163, %162
  store i32 %164, ptr %22, align 4, !tbaa !9
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = call i32 @i32_load(ptr noundef %166, i64 noundef %168)
  store i32 %169, ptr %22, align 4, !tbaa !9
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %170, i32 noundef %171)
  br label %172

172:                                              ; preds = %160, %144
  %173 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %173, ptr %22, align 4, !tbaa !9
  store i32 20, ptr %23, align 4, !tbaa !9
  %174 = load i32, ptr %23, align 4, !tbaa !9
  %175 = load i32, ptr %22, align 4, !tbaa !9
  %176 = sub i32 %175, %174
  store i32 %176, ptr %22, align 4, !tbaa !9
  %177 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %177, ptr %11, align 4, !tbaa !9
  %178 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %178, ptr %23, align 4, !tbaa !9
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = load i32, ptr %23, align 4, !tbaa !9
  %181 = icmp ne i32 %179, %180
  %182 = zext i1 %181 to i32
  store i32 %182, ptr %22, align 4, !tbaa !9
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %172
  br label %144

186:                                              ; preds = %172
  %187 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %187, ptr %22, align 4, !tbaa !9
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 6
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = add i64 %191, 100
  %193 = call i32 @i32_load(ptr noundef %189, i64 noundef %192)
  store i32 %193, ptr %22, align 4, !tbaa !9
  %194 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %194, ptr %16, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %186, %9
  %196 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %196, ptr %22, align 4, !tbaa !9
  store i32 112, ptr %23, align 4, !tbaa !9
  %197 = load i32, ptr %23, align 4, !tbaa !9
  %198 = load i32, ptr %22, align 4, !tbaa !9
  %199 = add i32 %198, %197
  store i32 %199, ptr %22, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %200, ptr %23, align 4, !tbaa !9
  %201 = load i32, ptr %22, align 4, !tbaa !9
  %202 = load i32, ptr %23, align 4, !tbaa !9
  %203 = icmp ne i32 %201, %202
  %204 = zext i1 %203 to i32
  store i32 %204, ptr %22, align 4, !tbaa !9
  %205 = load i32, ptr %22, align 4, !tbaa !9
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %211

207:                                              ; preds = %195
  %208 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %208, ptr %22, align 4, !tbaa !9
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %209, i32 noundef %210)
  br label %211

211:                                              ; preds = %207, %195
  %212 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %212, ptr %22, align 4, !tbaa !9
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %22, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = add i64 %216, 88
  %218 = call i32 @i32_load(ptr noundef %214, i64 noundef %217)
  store i32 %218, ptr %22, align 4, !tbaa !9
  %219 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %219, ptr %11, align 4, !tbaa !9
  %220 = load i32, ptr %22, align 4, !tbaa !9
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %234

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

234:                                              ; preds = %222, %211
  %235 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %235, ptr %22, align 4, !tbaa !9
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %22, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = add i64 %239, 87
  %241 = call i32 @i32_load8_s(ptr noundef %237, i64 noundef %240)
  store i32 %241, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %242 = load i32, ptr %22, align 4, !tbaa !9
  %243 = load i32, ptr %23, align 4, !tbaa !9
  %244 = icmp slt i32 %242, %243
  %245 = zext i1 %244 to i32
  store i32 %245, ptr %22, align 4, !tbaa !9
  %246 = load i32, ptr %22, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %258

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

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

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

282:                                              ; preds = %272, %258
  %283 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %283, ptr %22, align 4, !tbaa !9
  %284 = load ptr, ptr %10, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %22, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = add i64 %287, 51
  %289 = call i32 @i32_load8_s(ptr noundef %285, i64 noundef %288)
  store i32 %289, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %290 = load i32, ptr %22, align 4, !tbaa !9
  %291 = load i32, ptr %23, align 4, !tbaa !9
  %292 = icmp slt i32 %290, %291
  %293 = zext i1 %292 to i32
  store i32 %293, ptr %22, align 4, !tbaa !9
  %294 = load i32, ptr %22, align 4, !tbaa !9
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %306

296:                                              ; preds = %282
  %297 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %297, ptr %22, align 4, !tbaa !9
  %298 = load ptr, ptr %10, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.w2c_hermes, ptr %298, i32 0, i32 6
  %300 = load i32, ptr %22, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = add i64 %301, 40
  %303 = call i32 @i32_load(ptr noundef %299, i64 noundef %302)
  store i32 %303, ptr %22, align 4, !tbaa !9
  %304 = load ptr, ptr %10, align 8, !tbaa !5
  %305 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %304, i32 noundef %305)
  br label %306

306:                                              ; preds = %296, %282
  %307 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %307, ptr %22, align 4, !tbaa !9
  store i32 192, ptr %23, align 4, !tbaa !9
  %308 = load i32, ptr %23, align 4, !tbaa !9
  %309 = load i32, ptr %22, align 4, !tbaa !9
  %310 = add i32 %309, %308
  store i32 %310, ptr %22, align 4, !tbaa !9
  %311 = load i32, ptr %22, align 4, !tbaa !9
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.w2c_hermes, ptr %312, i32 0, i32 3
  store i32 %311, ptr %313, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !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: 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 void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3APrintMessage0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3ASMLoc0x2C0x20llvh0x3A0x3ASourceMgr0x3A0x3ADiagKind0x2C0x20llvh0x3A0x3ATwine0x20const0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMRange0x3E0x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMFixIt0x3E0x2C0x20bool0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #1 {
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = add i32 %11, -192
  store i32 %12, ptr %10, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = zext i32 %6 to i64
  %15 = tail call i64 @i64_load(ptr noundef nonnull %13, i64 noundef %14)
  %16 = zext i32 %12 to i64
  %17 = add nuw nsw i64 %16, 24
  tail call void @i64_store(ptr noundef nonnull %13, i64 noundef %17, i64 noundef %15)
  %18 = zext i32 %7 to i64
  %19 = tail call i64 @i64_load(ptr noundef nonnull %13, i64 noundef %18)
  %20 = add nuw nsw i64 %16, 16
  tail call void @i64_store(ptr noundef nonnull %13, i64 noundef %20, i64 noundef %19)
  %21 = add nuw nsw i64 %16, 8
  tail call void @i64_store(ptr noundef nonnull %13, i64 noundef %21, i64 noundef %15)
  tail call void @i64_store(ptr noundef nonnull %13, i64 noundef %16, i64 noundef %19)
  %22 = add i32 %11, -160
  %23 = add i32 %11, -184
  tail call void @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3AGetMessage0x28llvh0x3A0x3ASMLoc0x2C0x20llvh0x3A0x3ASourceMgr0x3A0x3ADiagKind0x2C0x20llvh0x3A0x3ATwine0x20const0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMRange0x3E0x2C0x20llvh0x3A0x3AArrayRef0x3Cllvh0x3A0x3ASMFixIt0x3E0x290x20const(ptr noundef %0, i32 noundef %22, i32 noundef %1, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %23, i32 noundef %12)
  tail call void @w2c_hermes_llvh0x3A0x3ASourceMgr0x3A0x3APrintMessage0x28llvh0x3A0x3Araw_ostream0x260x2C0x20llvh0x3A0x3ASMDiagnostic0x20const0x260x2C0x20bool0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %22, i32 noundef %8)
  %24 = add nuw nsw i64 %16, 100
  %25 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %24)
  %26 = add nuw nsw i64 %16, 104
  %27 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %26)
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %44, label %28

28:                                               ; preds = %9
  %29 = mul i32 %27, 20
  %30 = add i32 %29, %25
  br label %31

31:                                               ; preds = %40, %28
  %.0 = phi i32 [ %30, %28 ], [ %41, %40 ]
  %32 = add i32 %.0, -1
  %33 = zext i32 %32 to i64
  %34 = tail call i32 @i32_load8_s(ptr noundef nonnull %13, i64 noundef %33)
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %36, label %40

36:                                               ; preds = %31
  %37 = add i32 %.0, -12
  %38 = zext i32 %37 to i64
  %39 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %38)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %39)
  br label %40

40:                                               ; preds = %36, %31
  %41 = add i32 %.0, -20
  %.not169 = icmp eq i32 %41, %25
  br i1 %.not169, label %42, label %31

42:                                               ; preds = %40
  %43 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %24)
  br label %44

44:                                               ; preds = %42, %9
  %.0165 = phi i32 [ %43, %42 ], [ %25, %9 ]
  %45 = add i32 %11, -80
  %.not170 = icmp eq i32 %45, %.0165
  br i1 %.not170, label %47, label %46

46:                                               ; preds = %44
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %.0165) #3
  br label %47

47:                                               ; preds = %46, %44
  %48 = add nuw nsw i64 %16, 88
  %49 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %48)
  %.not171 = icmp eq i32 %49, 0
  br i1 %.not171, label %52, label %50

50:                                               ; preds = %47
  %51 = add nuw nsw i64 %16, 92
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %51, i32 noundef %49)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %49)
  br label %52

52:                                               ; preds = %50, %47
  %53 = add nuw nsw i64 %16, 87
  %54 = tail call i32 @i32_load8_s(ptr noundef nonnull %13, i64 noundef %53)
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  %57 = add nuw nsw i64 %16, 76
  %58 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %57)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %58)
  br label %59

59:                                               ; preds = %56, %52
  %60 = add nuw nsw i64 %16, 75
  %61 = tail call i32 @i32_load8_s(ptr noundef nonnull %13, i64 noundef %60)
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  %64 = add nuw nsw i64 %16, 64
  %65 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %64)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %65)
  br label %66

66:                                               ; preds = %63, %59
  %67 = add nuw nsw i64 %16, 51
  %68 = tail call i32 @i32_load8_s(ptr noundef nonnull %13, i64 noundef %67)
  %69 = icmp slt i32 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %66
  %71 = add nuw nsw i64 %16, 40
  %72 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %71)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %72)
  br label %73

73:                                               ; preds = %70, %66
  store i32 %11, ptr %10, align 8, !tbaa !5
  ret void
}

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

!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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass