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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

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

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

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

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

59:                                               ; preds = %5
  %60 = load i32, ptr %16, align 4, !tbaa !9
  br label %63

61:                                               ; preds = %5
  %62 = load i32, ptr %17, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %61, %59
  %64 = phi i32 [ %60, %59 ], [ %62, %61 ]
  store i32 %64, ptr %16, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoUInt32_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  %69 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 16
  %75 = call i32 @i32_load(ptr noundef %71, i64 noundef %74)
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  %78 = xor i1 %77, true
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %89

82:                                               ; preds = %63
  %83 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %83, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %85, i64 noundef %87, i32 noundef %88)
  br label %277

89:                                               ; preds = %63
  %90 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %90, ptr %14, align 4, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 24
  %96 = call double @f64_load(ptr noundef %92, i64 noundef %95)
  store double %96, ptr %20, align 8, !tbaa !11
  %97 = load double, ptr %20, align 8, !tbaa !11
  store double %97, ptr %12, align 8, !tbaa !11
  %98 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %98, ptr %14, align 4, !tbaa !9
  %99 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %99, ptr %15, align 4, !tbaa !9
  store i32 67208, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %100, ptr %17, align 4, !tbaa !9
  store i32 16, ptr %18, align 4, !tbaa !9
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = sub i32 %102, %101
  store i32 %103, ptr %17, align 4, !tbaa !9
  %104 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %104, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  %107 = icmp ule i32 %105, %106
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %89
  %112 = load i32, ptr %16, align 4, !tbaa !9
  br label %115

113:                                              ; preds = %89
  %114 = load i32, ptr %17, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %113, %111
  %116 = phi i32 [ %112, %111 ], [ %114, %113 ]
  store i32 %116, ptr %16, align 4, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoUInt32_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %117, i32 noundef %118, i32 noundef %119, i32 noundef %120)
  %121 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = call i32 @i32_load(ptr noundef %123, i64 noundef %125)
  store i32 %126, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  %129 = xor i1 %128, true
  %130 = zext i1 %129 to i32
  store i32 %130, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %140

133:                                              ; preds = %115
  %134 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %134, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %136, i64 noundef %138, i32 noundef %139)
  br label %277

140:                                              ; preds = %115
  %141 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %141, ptr %14, align 4, !tbaa !9
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 8
  %147 = call double @f64_load(ptr noundef %143, i64 noundef %146)
  store double %147, ptr %20, align 8, !tbaa !11
  %148 = load double, ptr %20, align 8, !tbaa !11
  store double %148, ptr %13, align 8, !tbaa !11
  %149 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %151, i64 noundef %153, i32 noundef %154)
  %155 = load double, ptr %12, align 8, !tbaa !11
  store double %155, ptr %20, align 8, !tbaa !11
  store double 0x41F0000000000000, ptr %21, align 8, !tbaa !11
  %156 = load double, ptr %20, align 8, !tbaa !11
  %157 = load double, ptr %21, align 8, !tbaa !11
  %158 = fcmp olt double %156, %157
  %159 = zext i1 %158 to i32
  store i32 %159, ptr %14, align 4, !tbaa !9
  %160 = load double, ptr %12, align 8, !tbaa !11
  store double %160, ptr %21, align 8, !tbaa !11
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  %161 = load double, ptr %21, align 8, !tbaa !11
  %162 = load double, ptr %22, align 8, !tbaa !11
  %163 = fcmp oge double %161, %162
  %164 = zext i1 %163 to i32
  store i32 %164, ptr %15, align 4, !tbaa !9
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = and i32 %166, %165
  store i32 %167, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %207

170:                                              ; preds = %140
  %171 = load double, ptr %12, align 8, !tbaa !11
  store double %171, ptr %20, align 8, !tbaa !11
  %172 = load double, ptr %20, align 8, !tbaa !11
  %173 = load double, ptr %20, align 8, !tbaa !11
  %174 = fcmp une double %172, %173
  %175 = xor i1 %174, true
  %176 = xor i1 %175, true
  %177 = zext i1 %176 to i32
  %178 = sext i32 %177 to i64
  %179 = call i64 @llvm.expect.i64(i64 %178, i64 0)
  %180 = icmp ne i64 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %170
  call void @wasm_rt_trap(i32 noundef 4) #7
  unreachable

182:                                              ; No predecessors!
  br label %205

183:                                              ; preds = %170
  %184 = load double, ptr %20, align 8, !tbaa !11
  %185 = fcmp ogt double %184, -1.000000e+00
  br i1 %185, label %186, label %189

186:                                              ; preds = %183
  %187 = load double, ptr %20, align 8, !tbaa !11
  %188 = fcmp olt double %187, 0x41F0000000000000
  br label %189

189:                                              ; preds = %186, %183
  %190 = phi i1 [ false, %183 ], [ %188, %186 ]
  %191 = xor i1 %190, true
  %192 = xor i1 %191, true
  %193 = xor i1 %192, true
  %194 = zext i1 %193 to i32
  %195 = sext i32 %194 to i64
  %196 = call i64 @llvm.expect.i64(i64 %195, i64 0)
  %197 = icmp ne i64 %196, 0
  br i1 %197, label %198, label %200

198:                                              ; preds = %189
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

199:                                              ; No predecessors!
  br label %203

200:                                              ; preds = %189
  %201 = load double, ptr %20, align 8, !tbaa !11
  %202 = fptoui double %201 to i32
  br label %203

203:                                              ; preds = %200, %199
  %204 = phi i32 [ 0, %199 ], [ %202, %200 ]
  br label %205

205:                                              ; preds = %203, %182
  %206 = phi i32 [ 0, %182 ], [ %204, %203 ]
  store i32 %206, ptr %14, align 4, !tbaa !9
  br label %208

207:                                              ; preds = %140
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %207, %205
  %209 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %209, ptr %10, align 4, !tbaa !9
  %210 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %210, ptr %14, align 4, !tbaa !9
  %211 = load double, ptr %13, align 8, !tbaa !11
  store double %211, ptr %21, align 8, !tbaa !11
  store double 0x41F0000000000000, ptr %22, align 8, !tbaa !11
  %212 = load double, ptr %21, align 8, !tbaa !11
  %213 = load double, ptr %22, align 8, !tbaa !11
  %214 = fcmp olt double %212, %213
  %215 = zext i1 %214 to i32
  store i32 %215, ptr %15, align 4, !tbaa !9
  %216 = load double, ptr %13, align 8, !tbaa !11
  store double %216, ptr %22, align 8, !tbaa !11
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  %217 = load double, ptr %22, align 8, !tbaa !11
  %218 = load double, ptr %23, align 8, !tbaa !11
  %219 = fcmp oge double %217, %218
  %220 = zext i1 %219 to i32
  store i32 %220, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %16, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = and i32 %222, %221
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %263

226:                                              ; preds = %208
  %227 = load double, ptr %13, align 8, !tbaa !11
  store double %227, ptr %21, align 8, !tbaa !11
  %228 = load double, ptr %21, align 8, !tbaa !11
  %229 = load double, ptr %21, align 8, !tbaa !11
  %230 = fcmp une double %228, %229
  %231 = xor i1 %230, true
  %232 = xor i1 %231, true
  %233 = zext i1 %232 to i32
  %234 = sext i32 %233 to i64
  %235 = call i64 @llvm.expect.i64(i64 %234, i64 0)
  %236 = icmp ne i64 %235, 0
  br i1 %236, label %237, label %239

237:                                              ; preds = %226
  call void @wasm_rt_trap(i32 noundef 4) #7
  unreachable

238:                                              ; No predecessors!
  br label %261

239:                                              ; preds = %226
  %240 = load double, ptr %21, align 8, !tbaa !11
  %241 = fcmp ogt double %240, -1.000000e+00
  br i1 %241, label %242, label %245

242:                                              ; preds = %239
  %243 = load double, ptr %21, align 8, !tbaa !11
  %244 = fcmp olt double %243, 0x41F0000000000000
  br label %245

245:                                              ; preds = %242, %239
  %246 = phi i1 [ false, %239 ], [ %244, %242 ]
  %247 = xor i1 %246, true
  %248 = xor i1 %247, true
  %249 = xor i1 %248, true
  %250 = zext i1 %249 to i32
  %251 = sext i32 %250 to i64
  %252 = call i64 @llvm.expect.i64(i64 %251, i64 0)
  %253 = icmp ne i64 %252, 0
  br i1 %253, label %254, label %256

254:                                              ; preds = %245
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

255:                                              ; No predecessors!
  br label %259

256:                                              ; preds = %245
  %257 = load double, ptr %21, align 8, !tbaa !11
  %258 = fptoui double %257 to i32
  br label %259

259:                                              ; preds = %256, %255
  %260 = phi i32 [ 0, %255 ], [ %258, %256 ]
  br label %261

261:                                              ; preds = %259, %238
  %262 = phi i32 [ 0, %238 ], [ %260, %259 ]
  store i32 %262, ptr %15, align 4, !tbaa !9
  br label %264

263:                                              ; preds = %208
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %263, %261
  %265 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %265, ptr %16, align 4, !tbaa !9
  %266 = load i32, ptr %16, align 4, !tbaa !9
  %267 = load i32, ptr %15, align 4, !tbaa !9
  %268 = mul i32 %267, %266
  store i32 %268, ptr %15, align 4, !tbaa !9
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = sitofp i32 %269 to double
  store double %270, ptr %21, align 8, !tbaa !11
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.w2c_hermes, ptr %271, i32 0, i32 6
  %273 = load i32, ptr %14, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = add i64 %274, 8
  %276 = load double, ptr %21, align 8, !tbaa !11
  call void @f64_store(ptr noundef %272, i64 noundef %275, double noundef %276)
  br label %277

277:                                              ; preds = %264, %133, %82
  %278 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %278, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = load i32, ptr %14, align 4, !tbaa !9
  %281 = add i32 %280, %279
  store i32 %281, ptr %14, align 4, !tbaa !9
  %282 = load i32, ptr %14, align 4, !tbaa !9
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.w2c_hermes, ptr %283, i32 0, i32 3
  store i32 %282, ptr %284, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
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, !12, i64 0}
!12 = !{!"double", !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, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !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 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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmathImul0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -32
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = add i32 %7, -16
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %4 to i64
  %12 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %11)
  %13 = add i32 %12, -8
  %14 = add nuw nsw i64 %11, 4
  %15 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %14)
  %.not = icmp eq i32 %15, 0
  %16 = select i1 %.not, i32 67208, i32 %13
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoUInt32_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %9, i32 noundef %3, i32 noundef %16) #4
  %17 = zext i32 %8 to i64
  %18 = add nuw nsw i64 %17, 16
  %19 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %18)
  %.not116 = icmp eq i32 %19, 0
  br i1 %.not116, label %20, label %22

20:                                               ; preds = %5
  %21 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %21, i32 noundef 0)
  br label %62

22:                                               ; preds = %5
  %23 = add nuw nsw i64 %17, 24
  %24 = tail call double @f64_load(ptr noundef nonnull %10, i64 noundef %23)
  %25 = add i32 %12, -16
  %26 = icmp ult i32 %15, 2
  %27 = select i1 %26, i32 67208, i32 %25
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoUInt32_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %8, i32 noundef %3, i32 noundef %27) #4
  %28 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %17)
  %.not117 = icmp eq i32 %28, 0
  br i1 %.not117, label %29, label %31

29:                                               ; preds = %22
  %30 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %30, i32 noundef 0)
  br label %62

31:                                               ; preds = %22
  %32 = add nuw nsw i64 %17, 8
  %33 = tail call double @f64_load(ptr noundef nonnull %10, i64 noundef %32)
  %34 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %34, i32 noundef 1)
  %35 = fcmp olt double %24, 0x41F0000000000000
  %36 = fcmp oge double %24, 0.000000e+00
  %37 = and i1 %35, %36
  br i1 %37, label %38, label %46

38:                                               ; preds = %31
  %39 = fcmp uno double %24, 0.000000e+00
  br i1 %39, label %40, label %41, !prof !15

40:                                               ; preds = %38
  tail call void @wasm_rt_trap(i32 noundef 4) #5
  unreachable

41:                                               ; preds = %38
  %42 = fcmp ogt double %24, -1.000000e+00
  br i1 %42, label %44, label %43, !prof !16

43:                                               ; preds = %41
  tail call void @wasm_rt_trap(i32 noundef 2) #5
  unreachable

44:                                               ; preds = %41
  %45 = fptoui double %24 to i32
  br label %46

46:                                               ; preds = %31, %44
  %.0115 = phi i32 [ %45, %44 ], [ 0, %31 ]
  %47 = fcmp olt double %33, 0x41F0000000000000
  %48 = fcmp oge double %33, 0.000000e+00
  %49 = and i1 %47, %48
  br i1 %49, label %50, label %58

50:                                               ; preds = %46
  %51 = fcmp uno double %33, 0.000000e+00
  br i1 %51, label %52, label %53, !prof !15

52:                                               ; preds = %50
  tail call void @wasm_rt_trap(i32 noundef 4) #5
  unreachable

53:                                               ; preds = %50
  %54 = fcmp ogt double %33, -1.000000e+00
  br i1 %54, label %56, label %55, !prof !16

55:                                               ; preds = %53
  tail call void @wasm_rt_trap(i32 noundef 2) #5
  unreachable

56:                                               ; preds = %53
  %57 = fptoui double %33 to i32
  br label %58

58:                                               ; preds = %46, %56
  %.0 = phi i32 [ %57, %56 ], [ 0, %46 ]
  %59 = mul i32 %.0, %.0115
  %60 = sitofp i32 %59 to double
  %61 = add nuw nsw i64 %34, 8
  tail call void @f64_store(ptr noundef nonnull %10, i64 noundef %61, double noundef %60)
  br label %62

62:                                               ; preds = %58, %29, %20
  store i32 %7, ptr %6, 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 = { 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}
!15 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass