; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden void @i32_store8(ptr noundef, i64 noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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

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

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

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

declare i32 @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AFindNodeOrInsertPos0x28llvh0x3A0x3AFoldingSetNodeID0x20const0x260x2C0x20void0x2A0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AModule0x3A0x3AgetLiteralNumber0x28double0x29(ptr noundef %0, i32 noundef %1, double noundef %2) #5 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, 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 i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !11
  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
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !13
  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 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !15
  store i32 %23, ptr %14, align 4, !tbaa !9
  store i32 144, ptr %15, align 4, !tbaa !9
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = sub i32 %25, %24
  store i32 %26, ptr %14, align 4, !tbaa !9
  %27 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %27, ptr %7, align 4, !tbaa !9
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 3
  store i32 %28, ptr %30, align 8, !tbaa !15
  %31 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %31, ptr %14, align 4, !tbaa !9
  store i64 137438953472, ptr %18, align 8, !tbaa !13
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 8
  %37 = load i64, ptr %18, align 8, !tbaa !13
  call void @i64_store(ptr noundef %33, i64 noundef %36, i64 noundef %37)
  %38 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %38, ptr %14, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %39, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = add i32 %41, %40
  store i32 %42, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %43, ptr %10, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 4
  %49 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %45, i64 noundef %48, i32 noundef %49)
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %54, ptr %8, align 4, !tbaa !9
  %55 = load double, ptr %6, align 8, !tbaa !11
  store double %55, ptr %20, align 8, !tbaa !11
  %56 = load double, ptr %20, align 8, !tbaa !11
  %57 = call i64 @i64_reinterpret_f64(double noundef %56)
  store i64 %57, ptr %18, align 8, !tbaa !13
  %58 = load i64, ptr %18, align 8, !tbaa !13
  store i64 %58, ptr %13, align 8, !tbaa !13
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = load i64, ptr %18, align 8, !tbaa !13
  call void @w2c_hermes_llvh0x3A0x3AFoldingSetNodeID0x3A0x3AAddInteger0x28unsigned0x20long0x20long0x29(ptr noundef %59, i32 noundef %60, i64 noundef %61)
  %62 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %62, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %64, i64 noundef %66, i32 noundef %67)
  %68 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %68, ptr %14, align 4, !tbaa !9
  store i32 416, ptr %15, align 4, !tbaa !9
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = add i32 %70, %69
  store i32 %71, ptr %14, align 4, !tbaa !9
  %72 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %72, ptr %11, align 4, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %74, ptr %16, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %15, align 4, !tbaa !9
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = call i32 @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AFindNodeOrInsertPos0x28llvh0x3A0x3AFoldingSetNodeID0x20const0x260x2C0x20void0x2A0x260x29(ptr noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78)
  store i32 %79, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %80, ptr %5, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %89

83:                                               ; preds = %3
  %84 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %84, ptr %14, align 4, !tbaa !9
  store i32 28, ptr %15, align 4, !tbaa !9
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = sub i32 %86, %85
  store i32 %87, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %88, ptr %5, align 4, !tbaa !9
  br label %265

89:                                               ; preds = %3
  store i32 40, ptr %14, align 4, !tbaa !9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load i32, ptr %14, align 4, !tbaa !9
  %92 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %90, i32 noundef %91)
  store i32 %92, ptr %14, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %93, ptr %5, align 4, !tbaa !9
  %94 = load double, ptr %6, align 8, !tbaa !11
  store double %94, ptr %20, align 8, !tbaa !11
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 32
  %100 = load double, ptr %20, align 8, !tbaa !11
  call void @f64_store(ptr noundef %96, i64 noundef %99, double noundef %100)
  %101 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %101, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 28
  %107 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %108, ptr %14, align 4, !tbaa !9
  store i32 114, ptr %15, align 4, !tbaa !9
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %110, i64 noundef %112, i32 noundef %113)
  %114 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %114, ptr %14, align 4, !tbaa !9
  store i64 8589934592, ptr %18, align 8, !tbaa !13
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 12
  %120 = load i64, ptr %18, align 8, !tbaa !13
  call void @i64_store(ptr noundef %116, i64 noundef %119, i64 noundef %120)
  %121 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %122, ptr %15, align 4, !tbaa !9
  store i32 20, ptr %16, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = add i32 %124, %123
  store i32 %125, ptr %15, align 4, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = add i64 %129, 8
  %131 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %127, i64 noundef %130, i32 noundef %131)
  %132 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 28, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %136, ptr %12, align 4, !tbaa !9
  %137 = load double, ptr %6, align 8, !tbaa !11
  store double %137, ptr %19, align 8, !tbaa !11
  %138 = load double, ptr %6, align 8, !tbaa !11
  store double %138, ptr %20, align 8, !tbaa !11
  %139 = load double, ptr %19, align 8, !tbaa !11
  %140 = load double, ptr %20, align 8, !tbaa !11
  %141 = fcmp une double %139, %140
  %142 = zext i1 %141 to i32
  store i32 %142, ptr %14, align 4, !tbaa !9
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %89
  br label %242

146:                                              ; preds = %89
  %147 = load double, ptr %6, align 8, !tbaa !11
  store double %147, ptr %19, align 8, !tbaa !11
  store double 0x41DFFFFFFFC00000, ptr %20, align 8, !tbaa !11
  %148 = load double, ptr %19, align 8, !tbaa !11
  %149 = load double, ptr %20, align 8, !tbaa !11
  %150 = fcmp ogt double %148, %149
  %151 = zext i1 %150 to i32
  store i32 %151, ptr %14, align 4, !tbaa !9
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %146
  br label %242

155:                                              ; preds = %146
  %156 = load double, ptr %6, align 8, !tbaa !11
  store double %156, ptr %19, align 8, !tbaa !11
  store double 0xC1E0000000000000, ptr %20, align 8, !tbaa !11
  %157 = load double, ptr %19, align 8, !tbaa !11
  %158 = load double, ptr %20, align 8, !tbaa !11
  %159 = fcmp olt double %157, %158
  %160 = zext i1 %159 to i32
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %155
  br label %242

164:                                              ; preds = %155
  %165 = load double, ptr %6, align 8, !tbaa !11
  store double %165, ptr %19, align 8, !tbaa !11
  %166 = load double, ptr %19, align 8, !tbaa !11
  %167 = call double @wasm_fabs(double noundef %166)
  store double %167, ptr %19, align 8, !tbaa !11
  store double 0x41E0000000000000, ptr %20, align 8, !tbaa !11
  %168 = load double, ptr %19, align 8, !tbaa !11
  %169 = load double, ptr %20, align 8, !tbaa !11
  %170 = fcmp olt double %168, %169
  %171 = zext i1 %170 to i32
  store i32 %171, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %211

174:                                              ; preds = %164
  %175 = load double, ptr %6, align 8, !tbaa !11
  store double %175, ptr %19, align 8, !tbaa !11
  %176 = load double, ptr %19, align 8, !tbaa !11
  %177 = load double, ptr %19, align 8, !tbaa !11
  %178 = fcmp une double %176, %177
  %179 = xor i1 %178, true
  %180 = xor i1 %179, true
  %181 = zext i1 %180 to i32
  %182 = sext i32 %181 to i64
  %183 = call i64 @llvm.expect.i64(i64 %182, i64 0)
  %184 = icmp ne i64 %183, 0
  br i1 %184, label %185, label %187

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

186:                                              ; No predecessors!
  br label %209

187:                                              ; preds = %174
  %188 = load double, ptr %19, align 8, !tbaa !11
  %189 = fcmp ogt double %188, 0xC1E0000000200000
  br i1 %189, label %190, label %193

190:                                              ; preds = %187
  %191 = load double, ptr %19, align 8, !tbaa !11
  %192 = fcmp olt double %191, 0x41E0000000000000
  br label %193

193:                                              ; preds = %190, %187
  %194 = phi i1 [ false, %187 ], [ %192, %190 ]
  %195 = xor i1 %194, true
  %196 = xor i1 %195, true
  %197 = xor i1 %196, true
  %198 = zext i1 %197 to i32
  %199 = sext i32 %198 to i64
  %200 = call i64 @llvm.expect.i64(i64 %199, i64 0)
  %201 = icmp ne i64 %200, 0
  br i1 %201, label %202, label %204

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

203:                                              ; No predecessors!
  br label %207

204:                                              ; preds = %193
  %205 = load double, ptr %19, align 8, !tbaa !11
  %206 = fptosi double %205 to i32
  br label %207

207:                                              ; preds = %204, %203
  %208 = phi i32 [ 0, %203 ], [ %206, %204 ]
  br label %209

209:                                              ; preds = %207, %186
  %210 = phi i32 [ 0, %186 ], [ %208, %207 ]
  store i32 %210, ptr %14, align 4, !tbaa !9
  br label %212

211:                                              ; preds = %164
  store i32 -2147483648, ptr %14, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %211, %209
  %213 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %213, ptr %8, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = sitofp i32 %214 to double
  store double %215, ptr %19, align 8, !tbaa !11
  %216 = load double, ptr %6, align 8, !tbaa !11
  store double %216, ptr %20, align 8, !tbaa !11
  %217 = load double, ptr %19, align 8, !tbaa !11
  %218 = load double, ptr %20, align 8, !tbaa !11
  %219 = fcmp une double %217, %218
  %220 = zext i1 %219 to i32
  store i32 %220, ptr %14, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %212
  br label %242

224:                                              ; preds = %212
  store i32 131104, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %225, ptr %9, align 4, !tbaa !9
  %226 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %226, ptr %14, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %230

229:                                              ; preds = %224
  br label %244

230:                                              ; preds = %224
  %231 = load i64, ptr %13, align 8, !tbaa !13
  store i64 %231, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %18, align 8, !tbaa !13
  %232 = load i64, ptr %17, align 8, !tbaa !13
  %233 = load i64, ptr %18, align 8, !tbaa !13
  %234 = icmp sge i64 %232, %233
  %235 = zext i1 %234 to i32
  %236 = sext i32 %235 to i64
  %237 = trunc i64 %236 to i32
  store i32 %237, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %241

240:                                              ; preds = %230
  br label %244

241:                                              ; preds = %230
  br label %242

242:                                              ; preds = %241, %223, %163, %154, %145
  store i32 458784, ptr %14, align 4, !tbaa !9
  %243 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %243, ptr %9, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %242, %240, %229
  %245 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %245, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %246, ptr %15, align 4, !tbaa !9
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = add i64 %250, 2
  %252 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %248, i64 noundef %251, i32 noundef %252)
  %253 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %253, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %254, ptr %15, align 4, !tbaa !9
  %255 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %255, ptr %16, align 4, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.w2c_hermes, ptr %256, i32 0, i32 6
  %258 = load i32, ptr %16, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = call i32 @i32_load(ptr noundef %257, i64 noundef %259)
  store i32 %260, ptr %16, align 4, !tbaa !9
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = load i32, ptr %14, align 4, !tbaa !9
  %263 = load i32, ptr %15, align 4, !tbaa !9
  %264 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AInsertNode0x28llvh0x3A0x3AFoldingSetBase0x3A0x3ANode0x2A0x2C0x20void0x2A0x29(ptr noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264)
  br label %265

265:                                              ; preds = %244, %83
  %266 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %266, ptr %14, align 4, !tbaa !9
  %267 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %267, ptr %15, align 4, !tbaa !9
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %15, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = add i64 %271, 4
  %273 = call i32 @i32_load(ptr noundef %269, i64 noundef %272)
  store i32 %273, ptr %15, align 4, !tbaa !9
  %274 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %274, ptr %8, align 4, !tbaa !9
  %275 = load i32, ptr %14, align 4, !tbaa !9
  %276 = load i32, ptr %15, align 4, !tbaa !9
  %277 = icmp ne i32 %275, %276
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %14, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %285

281:                                              ; preds = %265
  %282 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %282, ptr %14, align 4, !tbaa !9
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %283, i32 noundef %284)
  br label %285

285:                                              ; preds = %281, %265
  %286 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %286, ptr %14, align 4, !tbaa !9
  store i32 144, ptr %15, align 4, !tbaa !9
  %287 = load i32, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %14, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %14, align 4, !tbaa !9
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.w2c_hermes, ptr %291, i32 0, i32 3
  store i32 %290, ptr %292, align 8, !tbaa !15
  %293 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %293, ptr %14, align 4, !tbaa !9
  %294 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 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 i32 %294
}

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) #5

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

declare void @w2c_hermes_llvh0x3A0x3AFoldingSetNodeID0x3A0x3AAddInteger0x28unsigned0x20long0x20long0x29(ptr noundef, i32 noundef, i64 noundef) #3

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AModule0x3A0x3AgetLiteralNumber0x28double0x29(ptr noundef %0, i32 noundef %1, double 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, -144
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %6 to i64
  %9 = add nuw nsw i64 %8, 8
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %9, i64 noundef 137438953472)
  %10 = add i32 %5, -128
  %11 = add nuw nsw i64 %8, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %11, i32 noundef %10)
  %12 = add i32 %5, -140
  %13 = tail call i64 @i64_reinterpret_f64(double noundef %2)
  tail call void @w2c_hermes_llvh0x3A0x3AFoldingSetNodeID0x3A0x3AAddInteger0x28unsigned0x20long0x20long0x29(ptr noundef %0, i32 noundef %12, i64 noundef %13) #4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %8, i32 noundef 0)
  %14 = add i32 %1, 416
  %15 = tail call i32 @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AFindNodeOrInsertPos0x28llvh0x3A0x3AFoldingSetNodeID0x20const0x260x2C0x20void0x2A0x260x29(ptr noundef %0, i32 noundef %14, i32 noundef %12, i32 noundef %6) #4
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %18, label %16

16:                                               ; preds = %3
  %17 = add i32 %15, -28
  br label %48

18:                                               ; preds = %3
  %19 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 40) #4
  %20 = zext i32 %19 to i64
  %21 = add nuw nsw i64 %20, 32
  tail call void @f64_store(ptr noundef nonnull %7, i64 noundef %21, double noundef %2)
  %22 = add nuw nsw i64 %20, 28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %22, i32 noundef 0)
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %20, i32 noundef 114)
  %23 = add nuw nsw i64 %20, 12
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %23, i64 noundef 8589934592)
  %24 = add i32 %19, 20
  %25 = add nuw nsw i64 %20, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %25, i32 noundef %24)
  %26 = add i32 %19, 28
  %27 = fcmp uno double %2, 0.000000e+00
  %28 = fcmp ogt double %2, 0x41DFFFFFFFC00000
  %or.cond = or i1 %27, %28
  %29 = fcmp olt double %2, 0xC1E0000000000000
  %or.cond157 = or i1 %29, %or.cond
  br i1 %or.cond157, label %44, label %30

30:                                               ; preds = %18
  %31 = tail call double @wasm_fabs(double noundef %2)
  %32 = fcmp olt double %31, 0x41E0000000000000
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = fcmp ule double %2, 0xC1E0000000200000
  %35 = fcmp uge double %2, 0x41E0000000000000
  %.not154 = or i1 %34, %35
  br i1 %.not154, label %36, label %37, !prof !15

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

37:                                               ; preds = %33
  %38 = fptosi double %2 to i32
  br label %39

39:                                               ; preds = %30, %37
  %.0147 = phi i32 [ %38, %37 ], [ -2147483648, %30 ]
  %40 = sitofp i32 %.0147 to double
  %41 = fcmp une double %40, %2
  br i1 %41, label %44, label %42

42:                                               ; preds = %39
  %.not155 = icmp ne i32 %.0147, 0
  %43 = icmp sgt i64 %13, -1
  %or.cond158 = or i1 %43, %.not155
  br i1 %or.cond158, label %45, label %44

44:                                               ; preds = %42, %39, %18
  br label %45

45:                                               ; preds = %42, %44
  %.0148 = phi i32 [ 458784, %44 ], [ 131104, %42 ]
  %46 = add nuw nsw i64 %20, 2
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %46, i32 noundef %.0148)
  %47 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  tail call void @w2c_hermes_llvh0x3A0x3AFoldingSetBase0x3A0x3AInsertNode0x28llvh0x3A0x3AFoldingSetBase0x3A0x3ANode0x2A0x2C0x20void0x2A0x29(ptr noundef nonnull %0, i32 noundef %14, i32 noundef %26, i32 noundef %47) #4
  br label %48

48:                                               ; preds = %45, %16
  %.0 = phi i32 [ %17, %16 ], [ %19, %45 ]
  %49 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  %.not156 = icmp eq i32 %10, %49
  br i1 %.not156, label %51, label %50

50:                                               ; preds = %48
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %49) #4
  br label %51

51:                                               ; preds = %50, %48
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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}


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