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

; 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(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #4

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Athread0x3A0x3A0x7Ethread0x280x29(ptr noundef, i32 noundef) #4

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

37:                                               ; preds = %3
  br label %271

38:                                               ; preds = %3
  %39 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %39, ptr %11, align 4, !tbaa !9
  store i32 101, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = icmp uge i32 %40, %41
  %43 = zext i1 %42 to i32
  store i32 %43, ptr %11, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %38
  br label %279

47:                                               ; preds = %38
  %48 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %48, ptr %11, 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 %11, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = add i64 %52, 144
  %54 = call i32 @i32_load(ptr noundef %50, i64 noundef %53)
  store i32 %54, ptr %11, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %55, ptr %9, 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 %11, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = add i64 %59, 8
  %61 = call i32 @i32_load(ptr noundef %57, i64 noundef %60)
  store i32 %61, ptr %11, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %62, ptr %8, align 4, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %11, align 4, !tbaa !9
  store i32 100, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = icmp ne i32 %64, %65
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %11, align 4, !tbaa !9
  %68 = load i32, ptr %11, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %99

70:                                               ; preds = %47
  %71 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %71, ptr %11, align 4, !tbaa !9
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  store i64 %73, ptr %16, align 8, !tbaa !17
  %74 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %74, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  store i64 %76, ptr %17, align 8, !tbaa !17
  %77 = load i64, ptr %17, align 8, !tbaa !17
  %78 = load i64, ptr %16, align 8, !tbaa !17
  %79 = mul i64 %78, %77
  store i64 %79, ptr %16, align 8, !tbaa !17
  store i64 100, ptr %17, align 8, !tbaa !17
  %80 = load i64, ptr %17, align 8, !tbaa !17
  %81 = icmp eq i64 %80, 0
  %82 = xor i1 %81, true
  %83 = xor i1 %82, true
  %84 = zext i1 %83 to i32
  %85 = sext i32 %84 to i64
  %86 = call i64 @llvm.expect.i64(i64 %85, i64 0)
  %87 = icmp ne i64 %86, 0
  br i1 %87, label %88, label %90

88:                                               ; preds = %70
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

89:                                               ; No predecessors!
  br label %94

90:                                               ; preds = %70
  %91 = load i64, ptr %16, align 8, !tbaa !17
  %92 = load i64, ptr %17, align 8, !tbaa !17
  %93 = udiv i64 %91, %92
  br label %94

94:                                               ; preds = %90, %89
  %95 = phi i64 [ 0, %89 ], [ %93, %90 ]
  store i64 %95, ptr %16, align 8, !tbaa !17
  %96 = load i64, ptr %16, align 8, !tbaa !17
  %97 = trunc i64 %96 to i32
  store i32 %97, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %98, ptr %8, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %94, %47
  %100 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %100, ptr %11, align 4, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  %103 = xor i1 %102, true
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %99
  br label %271

108:                                              ; preds = %99
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 4
  %115 = call i32 @i32_load(ptr noundef %111, i64 noundef %114)
  store i32 %115, ptr %11, align 4, !tbaa !9
  %116 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %116, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %117, i32 noundef %118)
  store i32 %119, ptr %11, align 4, !tbaa !9
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthread_struct0x3A0x3A_0x5Fthread_struct0x280x29(ptr noundef %120, i32 noundef %121)
  store i32 %122, ptr %11, align 4, !tbaa !9
  %123 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %123, ptr %10, align 4, !tbaa !9
  store i32 20, ptr %11, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %124, i32 noundef %125)
  store i32 %126, ptr %11, align 4, !tbaa !9
  %127 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %127, ptr %6, align 4, !tbaa !9
  %128 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %128, ptr %12, align 4, !tbaa !9
  store i32 180, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = add i32 %130, %129
  store i32 %131, ptr %12, align 4, !tbaa !9
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = add i64 %135, 16
  %137 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %133, i64 noundef %136, i32 noundef %137)
  %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, 12
  %145 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %141, i64 noundef %144, i32 noundef %145)
  %146 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %146, ptr %11, align 4, !tbaa !9
  %147 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %147, ptr %12, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 8
  %153 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %149, i64 noundef %152, i32 noundef %153)
  %154 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %154, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %155, ptr %8, align 4, !tbaa !9
  store i32 243, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = load i32, ptr %12, align 4, !tbaa !9
  %158 = add i32 %157, %156
  store i32 %158, ptr %12, 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 %11, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 4
  %164 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %160, i64 noundef %163, i32 noundef %164)
  %165 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %165, ptr %11, align 4, !tbaa !9
  %166 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %168, i64 noundef %170, i32 noundef %171)
  %172 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %172, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %176 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %176, ptr %13, align 4, !tbaa !9
  store i32 244, ptr %14, align 4, !tbaa !9
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %180, ptr %14, align 4, !tbaa !9
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = load i32, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = call i32 @w2c_hermes_0x5F_pthread_create(ptr noundef %181, i32 noundef %182, i32 noundef %183, i32 noundef %184, i32 noundef %185)
  store i32 %186, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %187, ptr %6, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %108
  br label %297

191:                                              ; preds = %108
  %192 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %192, ptr %11, 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, 176
  %198 = call i32 @i32_load8_u(ptr noundef %194, i64 noundef %197)
  store i32 %198, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %234

201:                                              ; preds = %191
  %202 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %202, ptr %11, align 4, !tbaa !9
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = add i64 %206, 172
  %208 = call i32 @i32_load(ptr noundef %204, i64 noundef %207)
  store i32 %208, ptr %11, align 4, !tbaa !9
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %201
  br label %302

212:                                              ; preds = %201
  %213 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %213, ptr %11, align 4, !tbaa !9
  %214 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %214, ptr %12, align 4, !tbaa !9
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = add i64 %218, 12
  %220 = call i32 @i32_load(ptr noundef %216, i64 noundef %219)
  store i32 %220, ptr %12, align 4, !tbaa !9
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 172
  %226 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %222, i64 noundef %225, i32 noundef %226)
  %227 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %227, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %11, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = add i64 %231, 12
  %233 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %229, i64 noundef %232, i32 noundef %233)
  br label %263

234:                                              ; preds = %191
  %235 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %7, 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, 12
  %242 = call i32 @i32_load(ptr noundef %238, i64 noundef %241)
  store i32 %242, ptr %12, align 4, !tbaa !9
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %11, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = add i64 %246, 172
  %248 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %244, i64 noundef %247, i32 noundef %248)
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = add i64 %253, 12
  %255 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %251, i64 noundef %254, i32 noundef %255)
  %256 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %256, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = add i64 %260, 176
  %262 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %258, i64 noundef %261, i32 noundef %262)
  br label %263

263:                                              ; preds = %234, %212
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %11, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %11, align 4, !tbaa !9
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = load i32, ptr %11, align 4, !tbaa !9
  %270 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Athread0x3A0x3A0x7Ethread0x280x29(ptr noundef %268, i32 noundef %269)
  store i32 %270, ptr %11, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %263, %107, %37
  %272 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %272, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %273 = load i32, ptr %12, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %11, align 4, !tbaa !9
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 3
  store i32 %276, ptr %278, align 8, !tbaa !11
  br label %304

279:                                              ; preds = %46
  store i32 0, ptr %11, align 4, !tbaa !9
  %280 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %280, ptr %5, align 4, !tbaa !9
  store i32 111578, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %11, align 4, !tbaa !9
  %284 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %284, ptr %12, align 4, !tbaa !9
  store i32 58178, ptr %13, align 4, !tbaa !9
  %285 = load i32, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %12, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %12, align 4, !tbaa !9
  store i32 404, ptr %13, align 4, !tbaa !9
  %288 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %288, ptr %14, align 4, !tbaa !9
  store i32 53791, ptr %15, align 4, !tbaa !9
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = add i32 %290, %289
  store i32 %291, ptr %14, align 4, !tbaa !9
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = load i32, ptr %11, align 4, !tbaa !9
  %294 = load i32, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %292, i32 noundef %293, i32 noundef %294, i32 noundef %295, i32 noundef %296)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

297:                                              ; preds = %190
  %298 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %298, ptr %11, align 4, !tbaa !9
  store i32 105647, ptr %12, align 4, !tbaa !9
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_system_error0x28int0x2C0x20char0x20const0x2A0x29(ptr noundef %299, i32 noundef %300, i32 noundef %301)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

302:                                              ; preds = %211
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3Aterminate0x280x29(ptr noundef %303)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

304:                                              ; preds = %271
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthread_struct0x3A0x3A_0x5Fthread_struct0x280x29(ptr noundef, i32 noundef) #4

declare i32 @w2c_hermes_0x5F_pthread_create(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_system_error0x28int0x2C0x20char0x20const0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #4

declare void @w2c_hermes_std0x3A0x3Aterminate0x280x29(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { 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 #4 = { "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 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 #6 = { nounwind }
attributes #7 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABCProviderFromBuffer0x3A0x3AstartWarmup0x28unsigned0x20char0x29(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, 176
  %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 %56

11:                                               ; preds = %3
  %12 = icmp ugt i32 %2, 100
  br i1 %12, label %57, label %13

13:                                               ; preds = %11
  %14 = add nuw nsw i64 %8, 144
  %15 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %14)
  %16 = zext i32 %15 to i64
  %17 = add nuw nsw i64 %16, 8
  %18 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %17)
  %.not157 = icmp eq i32 %2, 100
  br i1 %.not157, label %25, label %19

19:                                               ; preds = %13
  %20 = zext i32 %18 to i64
  %21 = zext nneg i32 %2 to i64
  %22 = mul nuw nsw i64 %20, %21
  %23 = udiv i64 %22, 100
  %24 = trunc nuw i64 %23 to i32
  br label %25

25:                                               ; preds = %19, %13
  %.0 = phi i32 [ %24, %19 ], [ %18, %13 ]
  %.not158 = icmp eq i32 %.0, 0
  br i1 %.not158, label %56, label %26

26:                                               ; preds = %25
  %27 = add nuw nsw i64 %16, 4
  %28 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %27)
  %29 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 4) #4
  %30 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthread_struct0x3A0x3A_0x5Fthread_struct0x280x29(ptr noundef nonnull %0, i32 noundef %29) #4
  %31 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 20) #4
  %32 = add i32 %1, 180
  %33 = zext i32 %31 to i64
  %34 = add nuw nsw i64 %33, 16
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %34, i32 noundef %32)
  %35 = add nuw nsw i64 %33, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %35, i32 noundef %.0)
  %36 = add nuw nsw i64 %33, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %36, i32 noundef %28)
  %37 = add nuw nsw i64 %33, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %37, i32 noundef 244)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %33, i32 noundef %30)
  %38 = add i32 %5, -4
  %39 = tail call i32 @w2c_hermes_0x5F_pthread_create(ptr noundef nonnull %0, i32 noundef %38, i32 noundef 0, i32 noundef 245, i32 noundef %31) #4
  %.not159 = icmp eq i32 %39, 0
  br i1 %.not159, label %40, label %58

40:                                               ; preds = %26
  %41 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %9)
  %.not160 = icmp eq i32 %41, 0
  br i1 %.not160, label %49, label %42

42:                                               ; preds = %40
  %43 = add nuw nsw i64 %8, 172
  %44 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %43)
  %.not161 = icmp eq i32 %44, 0
  br i1 %.not161, label %45, label %59

45:                                               ; preds = %42
  %46 = zext i32 %6 to i64
  %47 = add nuw nsw i64 %46, 12
  %48 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %47)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %43, i32 noundef %48)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %47, i32 noundef 0)
  br label %54

49:                                               ; preds = %40
  %50 = zext i32 %6 to i64
  %51 = add nuw nsw i64 %50, 12
  %52 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %51)
  %53 = add nuw nsw i64 %8, 172
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %53, i32 noundef %52)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %51, i32 noundef 0)
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %9, i32 noundef 1)
  br label %54

54:                                               ; preds = %49, %45
  %55 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Athread0x3A0x3A0x7Ethread0x280x29(ptr noundef nonnull %0, i32 noundef %38) #4
  br label %56

56:                                               ; preds = %25, %3, %54
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

57:                                               ; preds = %11
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 111578, i32 noundef 58178, i32 noundef 404, i32 noundef 53791) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

58:                                               ; preds = %26
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_system_error0x28int0x2C0x20char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %39, i32 noundef 105647) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

59:                                               ; preds = %42
  tail call void @w2c_hermes_std0x3A0x3Aterminate0x280x29(ptr noundef nonnull %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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

declare void @w2c_hermes_std0x3A0x3Aterminate0x280x29(ptr noundef) local_unnamed_addr #2

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,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass