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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

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

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

62:                                               ; preds = %2
  %63 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %63, ptr %13, align 4, !tbaa !11
  store i32 -1074790400, ptr %14, align 4, !tbaa !11
  %64 = load i32, ptr %13, align 4, !tbaa !11
  %65 = load i32, ptr %14, align 4, !tbaa !11
  %66 = icmp uge i32 %64, %65
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %13, align 4, !tbaa !11
  %68 = load i32, ptr %13, align 4, !tbaa !11
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %89

70:                                               ; preds = %62
  store double 0xFFF0000000000000, ptr %20, align 8, !tbaa !9
  %71 = load double, ptr %20, align 8, !tbaa !9
  store double %71, ptr %8, align 8, !tbaa !9
  %72 = load double, ptr %4, align 8, !tbaa !9
  store double %72, ptr %21, align 8, !tbaa !9
  store double -1.000000e+00, ptr %22, align 8, !tbaa !9
  %73 = load double, ptr %21, align 8, !tbaa !9
  %74 = load double, ptr %22, align 8, !tbaa !9
  %75 = fcmp oeq double %73, %74
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %14, align 4, !tbaa !11
  %77 = load i32, ptr %14, align 4, !tbaa !11
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %70
  br label %328

80:                                               ; preds = %70
  %81 = load double, ptr %4, align 8, !tbaa !9
  store double %81, ptr %20, align 8, !tbaa !9
  %82 = load double, ptr %4, align 8, !tbaa !9
  store double %82, ptr %21, align 8, !tbaa !9
  %83 = load double, ptr %21, align 8, !tbaa !9
  %84 = load double, ptr %20, align 8, !tbaa !9
  %85 = fsub double %84, %83
  store double %85, ptr %20, align 8, !tbaa !9
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  %86 = load double, ptr %21, align 8, !tbaa !9
  %87 = load double, ptr %20, align 8, !tbaa !9
  %88 = fdiv double %87, %86
  store double %88, ptr %20, align 8, !tbaa !9
  br label %332

89:                                               ; preds = %62
  %90 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %90, ptr %13, align 4, !tbaa !11
  store i32 1, ptr %14, align 4, !tbaa !11
  %91 = load i32, ptr %14, align 4, !tbaa !11
  %92 = and i32 %91, 31
  %93 = load i32, ptr %13, align 4, !tbaa !11
  %94 = shl i32 %93, %92
  store i32 %94, ptr %13, align 4, !tbaa !11
  store i32 2034237440, ptr %14, align 4, !tbaa !11
  %95 = load i32, ptr %13, align 4, !tbaa !11
  %96 = load i32, ptr %14, align 4, !tbaa !11
  %97 = icmp ult i32 %95, %96
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %13, align 4, !tbaa !11
  %99 = load i32, ptr %13, align 4, !tbaa !11
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %89
  br label %330

102:                                              ; preds = %89
  %103 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %103, ptr %13, align 4, !tbaa !11
  store i32 -1076707643, ptr %14, align 4, !tbaa !11
  %104 = load i32, ptr %13, align 4, !tbaa !11
  %105 = load i32, ptr %14, align 4, !tbaa !11
  %106 = icmp uge i32 %104, %105
  %107 = zext i1 %106 to i32
  store i32 %107, ptr %13, align 4, !tbaa !11
  %108 = load i32, ptr %13, align 4, !tbaa !11
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %102
  br label %122

111:                                              ; preds = %102
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  br label %221

112:                                              ; preds = %2
  %113 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %113, ptr %13, align 4, !tbaa !11
  store i32 2146435071, ptr %14, align 4, !tbaa !11
  %114 = load i32, ptr %13, align 4, !tbaa !11
  %115 = load i32, ptr %14, align 4, !tbaa !11
  %116 = icmp ugt i32 %114, %115
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %13, align 4, !tbaa !11
  %118 = load i32, ptr %13, align 4, !tbaa !11
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %112
  br label %330

121:                                              ; preds = %112
  br label %122

122:                                              ; preds = %121, %110
  %123 = load double, ptr %4, align 8, !tbaa !9
  store double %123, ptr %20, align 8, !tbaa !9
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  %124 = load double, ptr %21, align 8, !tbaa !9
  %125 = load double, ptr %20, align 8, !tbaa !9
  %126 = fadd double %125, %124
  store double %126, ptr %20, align 8, !tbaa !9
  %127 = load double, ptr %20, align 8, !tbaa !9
  store double %127, ptr %8, align 8, !tbaa !9
  %128 = load double, ptr %20, align 8, !tbaa !9
  %129 = call i64 @i64_reinterpret_f64(double noundef %128)
  store i64 %129, ptr %17, align 8, !tbaa !13
  %130 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %130, ptr %7, align 8, !tbaa !13
  store i64 32, ptr %18, align 8, !tbaa !13
  %131 = load i64, ptr %18, align 8, !tbaa !13
  %132 = and i64 %131, 63
  %133 = load i64, ptr %17, align 8, !tbaa !13
  %134 = lshr i64 %133, %132
  store i64 %134, ptr %17, align 8, !tbaa !13
  %135 = load i64, ptr %17, align 8, !tbaa !13
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %13, align 4, !tbaa !11
  store i32 614242, ptr %14, align 4, !tbaa !11
  %137 = load i32, ptr %14, align 4, !tbaa !11
  %138 = load i32, ptr %13, align 4, !tbaa !11
  %139 = add i32 %138, %137
  store i32 %139, ptr %13, align 4, !tbaa !11
  %140 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %140, ptr %5, align 4, !tbaa !11
  store i32 20, ptr %14, align 4, !tbaa !11
  %141 = load i32, ptr %14, align 4, !tbaa !11
  %142 = and i32 %141, 31
  %143 = load i32, ptr %13, align 4, !tbaa !11
  %144 = lshr i32 %143, %142
  store i32 %144, ptr %13, align 4, !tbaa !11
  store i32 1023, ptr %14, align 4, !tbaa !11
  %145 = load i32, ptr %14, align 4, !tbaa !11
  %146 = load i32, ptr %13, align 4, !tbaa !11
  %147 = sub i32 %146, %145
  store i32 %147, ptr %13, align 4, !tbaa !11
  %148 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %148, ptr %6, align 4, !tbaa !11
  %149 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %149, ptr %13, align 4, !tbaa !11
  store i32 1129316351, ptr %14, align 4, !tbaa !11
  %150 = load i32, ptr %13, align 4, !tbaa !11
  %151 = load i32, ptr %14, align 4, !tbaa !11
  %152 = icmp ule i32 %150, %151
  %153 = zext i1 %152 to i32
  store i32 %153, ptr %13, align 4, !tbaa !11
  %154 = load i32, ptr %13, align 4, !tbaa !11
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %191

156:                                              ; preds = %122
  %157 = load double, ptr %4, align 8, !tbaa !9
  store double %157, ptr %20, align 8, !tbaa !9
  %158 = load double, ptr %8, align 8, !tbaa !9
  store double %158, ptr %21, align 8, !tbaa !9
  %159 = load double, ptr %21, align 8, !tbaa !9
  %160 = load double, ptr %20, align 8, !tbaa !9
  %161 = fsub double %160, %159
  store double %161, ptr %20, align 8, !tbaa !9
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  %162 = load double, ptr %21, align 8, !tbaa !9
  %163 = load double, ptr %20, align 8, !tbaa !9
  %164 = fadd double %163, %162
  store double %164, ptr %20, align 8, !tbaa !9
  %165 = load double, ptr %4, align 8, !tbaa !9
  store double %165, ptr %21, align 8, !tbaa !9
  %166 = load double, ptr %8, align 8, !tbaa !9
  store double %166, ptr %22, align 8, !tbaa !9
  store double -1.000000e+00, ptr %23, align 8, !tbaa !9
  %167 = load double, ptr %23, align 8, !tbaa !9
  %168 = load double, ptr %22, align 8, !tbaa !9
  %169 = fadd double %168, %167
  store double %169, ptr %22, align 8, !tbaa !9
  %170 = load double, ptr %22, align 8, !tbaa !9
  %171 = load double, ptr %21, align 8, !tbaa !9
  %172 = fsub double %171, %170
  store double %172, ptr %21, align 8, !tbaa !9
  %173 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %173, ptr %15, align 4, !tbaa !11
  store i32 1074790399, ptr %16, align 4, !tbaa !11
  %174 = load i32, ptr %15, align 4, !tbaa !11
  %175 = load i32, ptr %16, align 4, !tbaa !11
  %176 = icmp ugt i32 %174, %175
  %177 = zext i1 %176 to i32
  store i32 %177, ptr %15, align 4, !tbaa !11
  %178 = load i32, ptr %15, align 4, !tbaa !11
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %182

180:                                              ; preds = %156
  %181 = load double, ptr %20, align 8, !tbaa !9
  br label %184

182:                                              ; preds = %156
  %183 = load double, ptr %21, align 8, !tbaa !9
  br label %184

184:                                              ; preds = %182, %180
  %185 = phi double [ %181, %180 ], [ %183, %182 ]
  store double %185, ptr %20, align 8, !tbaa !9
  %186 = load double, ptr %8, align 8, !tbaa !9
  store double %186, ptr %21, align 8, !tbaa !9
  %187 = load double, ptr %21, align 8, !tbaa !9
  %188 = load double, ptr %20, align 8, !tbaa !9
  %189 = fdiv double %188, %187
  store double %189, ptr %20, align 8, !tbaa !9
  %190 = load double, ptr %20, align 8, !tbaa !9
  store double %190, ptr %9, align 8, !tbaa !9
  br label %191

191:                                              ; preds = %184, %122
  %192 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %192, ptr %17, align 8, !tbaa !13
  store i64 4294967295, ptr %18, align 8, !tbaa !13
  %193 = load i64, ptr %18, align 8, !tbaa !13
  %194 = load i64, ptr %17, align 8, !tbaa !13
  %195 = and i64 %194, %193
  store i64 %195, ptr %17, align 8, !tbaa !13
  %196 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %196, ptr %14, align 4, !tbaa !11
  store i32 1048575, ptr %15, align 4, !tbaa !11
  %197 = load i32, ptr %15, align 4, !tbaa !11
  %198 = load i32, ptr %14, align 4, !tbaa !11
  %199 = and i32 %198, %197
  store i32 %199, ptr %14, align 4, !tbaa !11
  store i32 1072079006, ptr %15, align 4, !tbaa !11
  %200 = load i32, ptr %15, align 4, !tbaa !11
  %201 = load i32, ptr %14, align 4, !tbaa !11
  %202 = add i32 %201, %200
  store i32 %202, ptr %14, align 4, !tbaa !11
  %203 = load i32, ptr %14, align 4, !tbaa !11
  %204 = zext i32 %203 to i64
  store i64 %204, ptr %18, align 8, !tbaa !13
  store i64 32, ptr %19, align 8, !tbaa !13
  %205 = load i64, ptr %19, align 8, !tbaa !13
  %206 = and i64 %205, 63
  %207 = load i64, ptr %18, align 8, !tbaa !13
  %208 = shl i64 %207, %206
  store i64 %208, ptr %18, align 8, !tbaa !13
  %209 = load i64, ptr %18, align 8, !tbaa !13
  %210 = load i64, ptr %17, align 8, !tbaa !13
  %211 = or i64 %210, %209
  store i64 %211, ptr %17, align 8, !tbaa !13
  %212 = load i64, ptr %17, align 8, !tbaa !13
  %213 = call double @f64_reinterpret_i64(i64 noundef %212)
  store double %213, ptr %20, align 8, !tbaa !9
  store double -1.000000e+00, ptr %21, align 8, !tbaa !9
  %214 = load double, ptr %21, align 8, !tbaa !9
  %215 = load double, ptr %20, align 8, !tbaa !9
  %216 = fadd double %215, %214
  store double %216, ptr %20, align 8, !tbaa !9
  %217 = load double, ptr %20, align 8, !tbaa !9
  store double %217, ptr %4, align 8, !tbaa !9
  %218 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %218, ptr %13, align 4, !tbaa !11
  %219 = load i32, ptr %13, align 4, !tbaa !11
  %220 = sitofp i32 %219 to double
  store double %220, ptr %20, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %191, %111
  %222 = load double, ptr %20, align 8, !tbaa !9
  store double %222, ptr %11, align 8, !tbaa !9
  store double 0x3FE62E42FEE00000, ptr %21, align 8, !tbaa !9
  %223 = load double, ptr %21, align 8, !tbaa !9
  %224 = load double, ptr %20, align 8, !tbaa !9
  %225 = fmul double %224, %223
  store double %225, ptr %20, align 8, !tbaa !9
  %226 = load double, ptr %4, align 8, !tbaa !9
  store double %226, ptr %21, align 8, !tbaa !9
  %227 = load double, ptr %4, align 8, !tbaa !9
  store double %227, ptr %22, align 8, !tbaa !9
  %228 = load double, ptr %4, align 8, !tbaa !9
  store double %228, ptr %23, align 8, !tbaa !9
  store double 2.000000e+00, ptr %24, align 8, !tbaa !9
  %229 = load double, ptr %24, align 8, !tbaa !9
  %230 = load double, ptr %23, align 8, !tbaa !9
  %231 = fadd double %230, %229
  store double %231, ptr %23, align 8, !tbaa !9
  %232 = load double, ptr %23, align 8, !tbaa !9
  %233 = load double, ptr %22, align 8, !tbaa !9
  %234 = fdiv double %233, %232
  store double %234, ptr %22, align 8, !tbaa !9
  %235 = load double, ptr %22, align 8, !tbaa !9
  store double %235, ptr %8, align 8, !tbaa !9
  %236 = load double, ptr %4, align 8, !tbaa !9
  store double %236, ptr %23, align 8, !tbaa !9
  %237 = load double, ptr %4, align 8, !tbaa !9
  store double %237, ptr %24, align 8, !tbaa !9
  store double 5.000000e-01, ptr %25, align 8, !tbaa !9
  %238 = load double, ptr %25, align 8, !tbaa !9
  %239 = load double, ptr %24, align 8, !tbaa !9
  %240 = fmul double %239, %238
  store double %240, ptr %24, align 8, !tbaa !9
  %241 = load double, ptr %24, align 8, !tbaa !9
  %242 = load double, ptr %23, align 8, !tbaa !9
  %243 = fmul double %242, %241
  store double %243, ptr %23, align 8, !tbaa !9
  %244 = load double, ptr %23, align 8, !tbaa !9
  store double %244, ptr %12, align 8, !tbaa !9
  %245 = load double, ptr %8, align 8, !tbaa !9
  store double %245, ptr %24, align 8, !tbaa !9
  %246 = load double, ptr %8, align 8, !tbaa !9
  store double %246, ptr %25, align 8, !tbaa !9
  %247 = load double, ptr %25, align 8, !tbaa !9
  %248 = load double, ptr %24, align 8, !tbaa !9
  %249 = fmul double %248, %247
  store double %249, ptr %24, align 8, !tbaa !9
  %250 = load double, ptr %24, align 8, !tbaa !9
  store double %250, ptr %10, align 8, !tbaa !9
  %251 = load double, ptr %10, align 8, !tbaa !9
  store double %251, ptr %25, align 8, !tbaa !9
  %252 = load double, ptr %25, align 8, !tbaa !9
  %253 = load double, ptr %24, align 8, !tbaa !9
  %254 = fmul double %253, %252
  store double %254, ptr %24, align 8, !tbaa !9
  %255 = load double, ptr %24, align 8, !tbaa !9
  store double %255, ptr %8, align 8, !tbaa !9
  %256 = load double, ptr %8, align 8, !tbaa !9
  store double %256, ptr %25, align 8, !tbaa !9
  %257 = load double, ptr %8, align 8, !tbaa !9
  store double %257, ptr %26, align 8, !tbaa !9
  store double 0x3FC39A09D078C69F, ptr %27, align 8, !tbaa !9
  %258 = load double, ptr %27, align 8, !tbaa !9
  %259 = load double, ptr %26, align 8, !tbaa !9
  %260 = fmul double %259, %258
  store double %260, ptr %26, align 8, !tbaa !9
  store double 0x3FCC71C51D8E78AF, ptr %27, align 8, !tbaa !9
  %261 = load double, ptr %27, align 8, !tbaa !9
  %262 = load double, ptr %26, align 8, !tbaa !9
  %263 = fadd double %262, %261
  store double %263, ptr %26, align 8, !tbaa !9
  %264 = load double, ptr %26, align 8, !tbaa !9
  %265 = load double, ptr %25, align 8, !tbaa !9
  %266 = fmul double %265, %264
  store double %266, ptr %25, align 8, !tbaa !9
  store double 0x3FD999999997FA04, ptr %26, align 8, !tbaa !9
  %267 = load double, ptr %26, align 8, !tbaa !9
  %268 = load double, ptr %25, align 8, !tbaa !9
  %269 = fadd double %268, %267
  store double %269, ptr %25, align 8, !tbaa !9
  %270 = load double, ptr %25, align 8, !tbaa !9
  %271 = load double, ptr %24, align 8, !tbaa !9
  %272 = fmul double %271, %270
  store double %272, ptr %24, align 8, !tbaa !9
  %273 = load double, ptr %10, align 8, !tbaa !9
  store double %273, ptr %25, align 8, !tbaa !9
  %274 = load double, ptr %8, align 8, !tbaa !9
  store double %274, ptr %26, align 8, !tbaa !9
  %275 = load double, ptr %8, align 8, !tbaa !9
  store double %275, ptr %27, align 8, !tbaa !9
  %276 = load double, ptr %8, align 8, !tbaa !9
  store double %276, ptr %28, align 8, !tbaa !9
  store double 0x3FC2F112DF3E5244, ptr %29, align 8, !tbaa !9
  %277 = load double, ptr %29, align 8, !tbaa !9
  %278 = load double, ptr %28, align 8, !tbaa !9
  %279 = fmul double %278, %277
  store double %279, ptr %28, align 8, !tbaa !9
  store double 0x3FC7466496CB03DE, ptr %29, align 8, !tbaa !9
  %280 = load double, ptr %29, align 8, !tbaa !9
  %281 = load double, ptr %28, align 8, !tbaa !9
  %282 = fadd double %281, %280
  store double %282, ptr %28, align 8, !tbaa !9
  %283 = load double, ptr %28, align 8, !tbaa !9
  %284 = load double, ptr %27, align 8, !tbaa !9
  %285 = fmul double %284, %283
  store double %285, ptr %27, align 8, !tbaa !9
  store double 0x3FD2492494229359, ptr %28, align 8, !tbaa !9
  %286 = load double, ptr %28, align 8, !tbaa !9
  %287 = load double, ptr %27, align 8, !tbaa !9
  %288 = fadd double %287, %286
  store double %288, ptr %27, align 8, !tbaa !9
  %289 = load double, ptr %27, align 8, !tbaa !9
  %290 = load double, ptr %26, align 8, !tbaa !9
  %291 = fmul double %290, %289
  store double %291, ptr %26, align 8, !tbaa !9
  store double 0x3FE5555555555593, ptr %27, align 8, !tbaa !9
  %292 = load double, ptr %27, align 8, !tbaa !9
  %293 = load double, ptr %26, align 8, !tbaa !9
  %294 = fadd double %293, %292
  store double %294, ptr %26, align 8, !tbaa !9
  %295 = load double, ptr %26, align 8, !tbaa !9
  %296 = load double, ptr %25, align 8, !tbaa !9
  %297 = fmul double %296, %295
  store double %297, ptr %25, align 8, !tbaa !9
  %298 = load double, ptr %25, align 8, !tbaa !9
  %299 = load double, ptr %24, align 8, !tbaa !9
  %300 = fadd double %299, %298
  store double %300, ptr %24, align 8, !tbaa !9
  %301 = load double, ptr %24, align 8, !tbaa !9
  %302 = load double, ptr %23, align 8, !tbaa !9
  %303 = fadd double %302, %301
  store double %303, ptr %23, align 8, !tbaa !9
  %304 = load double, ptr %23, align 8, !tbaa !9
  %305 = load double, ptr %22, align 8, !tbaa !9
  %306 = fmul double %305, %304
  store double %306, ptr %22, align 8, !tbaa !9
  %307 = load double, ptr %11, align 8, !tbaa !9
  store double %307, ptr %23, align 8, !tbaa !9
  store double 0x3DEA39EF35793C76, ptr %24, align 8, !tbaa !9
  %308 = load double, ptr %24, align 8, !tbaa !9
  %309 = load double, ptr %23, align 8, !tbaa !9
  %310 = fmul double %309, %308
  store double %310, ptr %23, align 8, !tbaa !9
  %311 = load double, ptr %9, align 8, !tbaa !9
  store double %311, ptr %24, align 8, !tbaa !9
  %312 = load double, ptr %24, align 8, !tbaa !9
  %313 = load double, ptr %23, align 8, !tbaa !9
  %314 = fadd double %313, %312
  store double %314, ptr %23, align 8, !tbaa !9
  %315 = load double, ptr %23, align 8, !tbaa !9
  %316 = load double, ptr %22, align 8, !tbaa !9
  %317 = fadd double %316, %315
  store double %317, ptr %22, align 8, !tbaa !9
  %318 = load double, ptr %12, align 8, !tbaa !9
  store double %318, ptr %23, align 8, !tbaa !9
  %319 = load double, ptr %23, align 8, !tbaa !9
  %320 = load double, ptr %22, align 8, !tbaa !9
  %321 = fsub double %320, %319
  store double %321, ptr %22, align 8, !tbaa !9
  %322 = load double, ptr %22, align 8, !tbaa !9
  %323 = load double, ptr %21, align 8, !tbaa !9
  %324 = fadd double %323, %322
  store double %324, ptr %21, align 8, !tbaa !9
  %325 = load double, ptr %21, align 8, !tbaa !9
  %326 = load double, ptr %20, align 8, !tbaa !9
  %327 = fadd double %326, %325
  store double %327, ptr %20, align 8, !tbaa !9
  br label %328

328:                                              ; preds = %221, %79
  %329 = load double, ptr %20, align 8, !tbaa !9
  store double %329, ptr %8, align 8, !tbaa !9
  br label %332

330:                                              ; preds = %120, %101
  %331 = load double, ptr %4, align 8, !tbaa !9
  store double %331, ptr %20, align 8, !tbaa !9
  br label %332

332:                                              ; preds = %330, %328, %80
  %333 = load double, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret double %333
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, 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 double @f64_reinterpret_i64(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_log1p(ptr nocapture noundef readnone %0, double noundef %1) local_unnamed_addr #1 {
  %3 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %4 = icmp slt i64 %3, 4601133429810003968
  br i1 %4, label %5, label %16

5:                                                ; preds = %2
  %6 = icmp ugt i64 %3, -4616189618054758401
  br i1 %6, label %7, label %12

7:                                                ; preds = %5
  %8 = fcmp oeq double %1, -1.000000e+00
  br i1 %8, label %74, label %9

9:                                                ; preds = %7
  %10 = fsub double %1, %1
  %11 = fdiv double %10, 0.000000e+00
  br label %74

12:                                               ; preds = %5
  %sh.diff = lshr i64 %3, 31
  %tr.sh.diff = trunc i64 %sh.diff to i32
  %13 = icmp ult i32 %tr.sh.diff, 2034237440
  br i1 %13, label %74, label %14

14:                                               ; preds = %12
  %15 = icmp ugt i64 %3, -4624424114038243329
  br i1 %15, label %18, label %45

16:                                               ; preds = %2
  %17 = icmp ugt i64 %3, 9218868437227405311
  br i1 %17, label %74, label %18

18:                                               ; preds = %16, %14
  %19 = fadd double %1, 1.000000e+00
  %20 = tail call i64 @i64_reinterpret_f64(double noundef %19)
  %21 = lshr i64 %20, 32
  %22 = trunc nuw i64 %21 to i32
  %23 = add i32 %22, 614242
  %24 = lshr i32 %23, 20
  %25 = add nsw i32 %24, -1023
  %26 = icmp ult i32 %23, 1129316352
  br i1 %26, label %27, label %35

27:                                               ; preds = %18
  %28 = fsub double %1, %19
  %29 = fadd double %28, 1.000000e+00
  %30 = fadd double %19, -1.000000e+00
  %31 = fsub double %1, %30
  %32 = icmp ugt i32 %23, 1074790399
  %33 = select i1 %32, double %29, double %31
  %34 = fdiv double %33, %19
  br label %35

35:                                               ; preds = %27, %18
  %.0188 = phi double [ %34, %27 ], [ 0.000000e+00, %18 ]
  %36 = and i64 %20, 4294967295
  %37 = and i32 %23, 1048575
  %38 = add nuw nsw i32 %37, 1072079006
  %39 = zext nneg i32 %38 to i64
  %40 = shl nuw nsw i64 %39, 32
  %41 = or disjoint i64 %40, %36
  %42 = tail call double @f64_reinterpret_i64(i64 noundef %41)
  %43 = fadd double %42, -1.000000e+00
  %44 = sitofp i32 %25 to double
  br label %45

45:                                               ; preds = %14, %35
  %.0189 = phi double [ %44, %35 ], [ 0.000000e+00, %14 ]
  %.1 = phi double [ %.0188, %35 ], [ 0.000000e+00, %14 ]
  %.0 = phi double [ %43, %35 ], [ %1, %14 ]
  %46 = fmul double %.0189, 0x3FE62E42FEE00000
  %47 = fadd double %.0, 2.000000e+00
  %48 = fdiv double %.0, %47
  %49 = fmul double %.0, 5.000000e-01
  %50 = fmul double %.0, %49
  %51 = fmul double %48, %48
  %52 = fmul double %51, %51
  %53 = fmul double %52, 0x3FC2F112DF3E5244
  %54 = fadd double %53, 0x3FC7466496CB03DE
  %55 = insertelement <2 x double> poison, double %52, i64 0
  %56 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> zeroinitializer
  %57 = insertelement <2 x double> <double 0x3FC39A09D078C69F, double poison>, double %54, i64 1
  %58 = fmul <2 x double> %56, %57
  %59 = fadd <2 x double> %58, <double 0x3FCC71C51D8E78AF, double 0x3FD2492494229359>
  %60 = fmul <2 x double> %56, %59
  %61 = fadd <2 x double> %60, <double 0x3FD999999997FA04, double 0x3FE5555555555593>
  %62 = insertelement <2 x double> %55, double %51, i64 1
  %63 = fmul <2 x double> %62, %61
  %shift = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %64 = fadd <2 x double> %63, %shift
  %65 = extractelement <2 x double> %64, i64 0
  %66 = fadd double %50, %65
  %67 = fmul double %48, %66
  %68 = fmul double %.0189, 0x3DEA39EF35793C76
  %69 = fadd double %68, %.1
  %70 = fadd double %69, %67
  %71 = fsub double %70, %50
  %72 = fadd double %.0, %71
  %73 = fadd double %46, %72
  br label %74

74:                                               ; preds = %12, %16, %45, %7, %9
  %.2 = phi double [ %11, %9 ], [ 0xFFF0000000000000, %7 ], [ %73, %45 ], [ %1, %16 ], [ %1, %12 ]
  ret double %.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 = { 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" }

!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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass