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

; 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: 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 i64 @i64_load(ptr noundef, i64 noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_exp_inline(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %26 = load double, ptr %6, align 8, !tbaa !9
  store double %26, ptr %22, align 8, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load double, ptr %22, align 8, !tbaa !9
  %29 = call i32 @w2c_hermes_top12(ptr noundef %27, double noundef %28)
  store i32 %29, ptr %15, align 4, !tbaa !11
  store i32 2047, ptr %16, align 4, !tbaa !11
  %30 = load i32, ptr %16, align 4, !tbaa !11
  %31 = load i32, ptr %15, align 4, !tbaa !11
  %32 = and i32 %31, %30
  store i32 %32, ptr %15, align 4, !tbaa !11
  %33 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %33, ptr %10, align 4, !tbaa !11
  store double 0x3C90000000000000, ptr %23, align 8, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load double, ptr %23, align 8, !tbaa !9
  %36 = call i32 @w2c_hermes_top12(ptr noundef %34, double noundef %35)
  store i32 %36, ptr %16, align 4, !tbaa !11
  %37 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %37, ptr %9, align 4, !tbaa !11
  %38 = load i32, ptr %16, align 4, !tbaa !11
  %39 = load i32, ptr %15, align 4, !tbaa !11
  %40 = sub i32 %39, %38
  store i32 %40, ptr %15, align 4, !tbaa !11
  store double 5.120000e+02, ptr %23, align 8, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load double, ptr %23, align 8, !tbaa !9
  %43 = call i32 @w2c_hermes_top12(ptr noundef %41, double noundef %42)
  store i32 %43, ptr %16, align 4, !tbaa !11
  %44 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %44, ptr %17, align 4, !tbaa !11
  %45 = load i32, ptr %17, align 4, !tbaa !11
  %46 = load i32, ptr %16, align 4, !tbaa !11
  %47 = sub i32 %46, %45
  store i32 %47, ptr %16, align 4, !tbaa !11
  %48 = load i32, ptr %15, align 4, !tbaa !11
  %49 = load i32, ptr %16, align 4, !tbaa !11
  %50 = icmp ult i32 %48, %49
  %51 = zext i1 %50 to i32
  store i32 %51, ptr %15, align 4, !tbaa !11
  %52 = load i32, ptr %15, align 4, !tbaa !11
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %4
  br label %119

55:                                               ; preds = %4
  %56 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %56, ptr %15, align 4, !tbaa !11
  %57 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %57, ptr %16, align 4, !tbaa !11
  %58 = load i32, ptr %15, align 4, !tbaa !11
  %59 = load i32, ptr %16, align 4, !tbaa !11
  %60 = icmp ugt i32 %58, %59
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %15, align 4, !tbaa !11
  %62 = load i32, ptr %15, align 4, !tbaa !11
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %82

64:                                               ; preds = %55
  %65 = load double, ptr %6, align 8, !tbaa !9
  store double %65, ptr %22, align 8, !tbaa !9
  store double 1.000000e+00, ptr %23, align 8, !tbaa !9
  %66 = load double, ptr %23, align 8, !tbaa !9
  %67 = load double, ptr %22, align 8, !tbaa !9
  %68 = fadd double %67, %66
  store double %68, ptr %22, align 8, !tbaa !9
  %69 = load double, ptr %22, align 8, !tbaa !9
  store double %69, ptr %6, align 8, !tbaa !9
  %70 = load double, ptr %22, align 8, !tbaa !9
  %71 = fneg double %70
  store double %71, ptr %22, align 8, !tbaa !9
  %72 = load double, ptr %6, align 8, !tbaa !9
  store double %72, ptr %23, align 8, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %73, ptr %17, align 4, !tbaa !11
  %74 = load i32, ptr %17, align 4, !tbaa !11
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %64
  %77 = load double, ptr %22, align 8, !tbaa !9
  br label %80

78:                                               ; preds = %64
  %79 = load double, ptr %23, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %78, %76
  %81 = phi double [ %77, %76 ], [ %79, %78 ]
  store double %81, ptr %22, align 8, !tbaa !9
  br label %309

82:                                               ; preds = %55
  store double 1.024000e+03, ptr %22, align 8, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load double, ptr %22, align 8, !tbaa !9
  %85 = call i32 @w2c_hermes_top12(ptr noundef %83, double noundef %84)
  store i32 %85, ptr %15, align 4, !tbaa !11
  %86 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %86, ptr %16, align 4, !tbaa !11
  %87 = load i32, ptr %15, align 4, !tbaa !11
  %88 = load i32, ptr %16, align 4, !tbaa !11
  %89 = icmp ugt i32 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %15, align 4, !tbaa !11
  %91 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %91, ptr %9, align 4, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !11
  %92 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %92, ptr %10, align 4, !tbaa !11
  %93 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %93, ptr %15, align 4, !tbaa !11
  %94 = load i32, ptr %15, align 4, !tbaa !11
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %82
  br label %119

97:                                               ; preds = %82
  %98 = load double, ptr %6, align 8, !tbaa !9
  store double %98, ptr %22, align 8, !tbaa !9
  %99 = load double, ptr %22, align 8, !tbaa !9
  %100 = call i64 @i64_reinterpret_f64(double noundef %99)
  store i64 %100, ptr %19, align 8, !tbaa !13
  store i64 0, ptr %20, align 8, !tbaa !13
  %101 = load i64, ptr %19, align 8, !tbaa !13
  %102 = load i64, ptr %20, align 8, !tbaa !13
  %103 = icmp slt i64 %101, %102
  %104 = zext i1 %103 to i32
  %105 = sext i32 %104 to i64
  %106 = trunc i64 %105 to i32
  store i32 %106, ptr %15, align 4, !tbaa !11
  %107 = load i32, ptr %15, align 4, !tbaa !11
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %114

109:                                              ; preds = %97
  %110 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %110, ptr %15, align 4, !tbaa !11
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load i32, ptr %15, align 4, !tbaa !11
  %113 = call double @w2c_hermes_0x5F_math_uflow(ptr noundef %111, i32 noundef %112)
  store double %113, ptr %22, align 8, !tbaa !9
  br label %309

114:                                              ; preds = %97
  %115 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %115, ptr %15, align 4, !tbaa !11
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load i32, ptr %15, align 4, !tbaa !11
  %118 = call double @w2c_hermes_0x5F_math_oflow(ptr noundef %116, i32 noundef %117)
  store double %118, ptr %22, align 8, !tbaa !9
  br label %309

119:                                              ; preds = %96, %54
  store i32 240248, ptr %15, align 4, !tbaa !11
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %15, align 4, !tbaa !11
  %123 = zext i32 %122 to i64
  %124 = call double @f64_load(ptr noundef %121, i64 noundef %123)
  store double %124, ptr %22, align 8, !tbaa !9
  %125 = load double, ptr %6, align 8, !tbaa !9
  store double %125, ptr %23, align 8, !tbaa !9
  %126 = load double, ptr %23, align 8, !tbaa !9
  %127 = load double, ptr %22, align 8, !tbaa !9
  %128 = fmul double %127, %126
  store double %128, ptr %22, align 8, !tbaa !9
  store i32 240256, ptr %16, align 4, !tbaa !11
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %16, align 4, !tbaa !11
  %132 = zext i32 %131 to i64
  %133 = call double @f64_load(ptr noundef %130, i64 noundef %132)
  store double %133, ptr %23, align 8, !tbaa !9
  %134 = load double, ptr %23, align 8, !tbaa !9
  store double %134, ptr %13, align 8, !tbaa !9
  %135 = load double, ptr %23, align 8, !tbaa !9
  %136 = load double, ptr %22, align 8, !tbaa !9
  %137 = fadd double %136, %135
  store double %137, ptr %22, align 8, !tbaa !9
  %138 = load double, ptr %22, align 8, !tbaa !9
  store double %138, ptr %14, align 8, !tbaa !9
  %139 = load double, ptr %13, align 8, !tbaa !9
  store double %139, ptr %23, align 8, !tbaa !9
  %140 = load double, ptr %23, align 8, !tbaa !9
  %141 = load double, ptr %22, align 8, !tbaa !9
  %142 = fsub double %141, %140
  store double %142, ptr %22, align 8, !tbaa !9
  %143 = load double, ptr %22, align 8, !tbaa !9
  store double %143, ptr %13, align 8, !tbaa !9
  store i32 240272, ptr %16, align 4, !tbaa !11
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %16, align 4, !tbaa !11
  %147 = zext i32 %146 to i64
  %148 = call double @f64_load(ptr noundef %145, i64 noundef %147)
  store double %148, ptr %23, align 8, !tbaa !9
  %149 = load double, ptr %23, align 8, !tbaa !9
  %150 = load double, ptr %22, align 8, !tbaa !9
  %151 = fmul double %150, %149
  store double %151, ptr %22, align 8, !tbaa !9
  %152 = load double, ptr %13, align 8, !tbaa !9
  store double %152, ptr %23, align 8, !tbaa !9
  store i32 240264, ptr %17, align 4, !tbaa !11
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %17, align 4, !tbaa !11
  %156 = zext i32 %155 to i64
  %157 = call double @f64_load(ptr noundef %154, i64 noundef %156)
  store double %157, ptr %24, align 8, !tbaa !9
  %158 = load double, ptr %24, align 8, !tbaa !9
  %159 = load double, ptr %23, align 8, !tbaa !9
  %160 = fmul double %159, %158
  store double %160, ptr %23, align 8, !tbaa !9
  %161 = load double, ptr %6, align 8, !tbaa !9
  store double %161, ptr %24, align 8, !tbaa !9
  %162 = load double, ptr %24, align 8, !tbaa !9
  %163 = load double, ptr %23, align 8, !tbaa !9
  %164 = fadd double %163, %162
  store double %164, ptr %23, align 8, !tbaa !9
  %165 = load double, ptr %23, align 8, !tbaa !9
  %166 = load double, ptr %22, align 8, !tbaa !9
  %167 = fadd double %166, %165
  store double %167, ptr %22, align 8, !tbaa !9
  %168 = load double, ptr %7, align 8, !tbaa !9
  store double %168, ptr %23, align 8, !tbaa !9
  %169 = load double, ptr %23, align 8, !tbaa !9
  %170 = load double, ptr %22, align 8, !tbaa !9
  %171 = fadd double %170, %169
  store double %171, ptr %22, align 8, !tbaa !9
  %172 = load double, ptr %22, align 8, !tbaa !9
  store double %172, ptr %6, align 8, !tbaa !9
  %173 = load double, ptr %6, align 8, !tbaa !9
  store double %173, ptr %23, align 8, !tbaa !9
  %174 = load double, ptr %23, align 8, !tbaa !9
  %175 = load double, ptr %22, align 8, !tbaa !9
  %176 = fmul double %175, %174
  store double %176, ptr %22, align 8, !tbaa !9
  %177 = load double, ptr %22, align 8, !tbaa !9
  store double %177, ptr %7, align 8, !tbaa !9
  %178 = load double, ptr %7, align 8, !tbaa !9
  store double %178, ptr %23, align 8, !tbaa !9
  %179 = load double, ptr %23, align 8, !tbaa !9
  %180 = load double, ptr %22, align 8, !tbaa !9
  %181 = fmul double %180, %179
  store double %181, ptr %22, align 8, !tbaa !9
  %182 = load double, ptr %6, align 8, !tbaa !9
  store double %182, ptr %23, align 8, !tbaa !9
  store i32 240304, ptr %17, align 4, !tbaa !11
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %17, align 4, !tbaa !11
  %186 = zext i32 %185 to i64
  %187 = call double @f64_load(ptr noundef %184, i64 noundef %186)
  store double %187, ptr %24, align 8, !tbaa !9
  %188 = load double, ptr %24, align 8, !tbaa !9
  %189 = load double, ptr %23, align 8, !tbaa !9
  %190 = fmul double %189, %188
  store double %190, ptr %23, align 8, !tbaa !9
  store i32 240296, ptr %17, align 4, !tbaa !11
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %17, align 4, !tbaa !11
  %194 = zext i32 %193 to i64
  %195 = call double @f64_load(ptr noundef %192, i64 noundef %194)
  store double %195, ptr %24, align 8, !tbaa !9
  %196 = load double, ptr %24, align 8, !tbaa !9
  %197 = load double, ptr %23, align 8, !tbaa !9
  %198 = fadd double %197, %196
  store double %198, ptr %23, align 8, !tbaa !9
  %199 = load double, ptr %23, align 8, !tbaa !9
  %200 = load double, ptr %22, align 8, !tbaa !9
  %201 = fmul double %200, %199
  store double %201, ptr %22, align 8, !tbaa !9
  %202 = load double, ptr %7, align 8, !tbaa !9
  store double %202, ptr %23, align 8, !tbaa !9
  %203 = load double, ptr %6, align 8, !tbaa !9
  store double %203, ptr %24, align 8, !tbaa !9
  store i32 240288, ptr %18, align 4, !tbaa !11
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.w2c_hermes, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %18, align 4, !tbaa !11
  %207 = zext i32 %206 to i64
  %208 = call double @f64_load(ptr noundef %205, i64 noundef %207)
  store double %208, ptr %25, align 8, !tbaa !9
  %209 = load double, ptr %25, align 8, !tbaa !9
  %210 = load double, ptr %24, align 8, !tbaa !9
  %211 = fmul double %210, %209
  store double %211, ptr %24, align 8, !tbaa !9
  store i32 240280, ptr %18, align 4, !tbaa !11
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %18, align 4, !tbaa !11
  %215 = zext i32 %214 to i64
  %216 = call double @f64_load(ptr noundef %213, i64 noundef %215)
  store double %216, ptr %25, align 8, !tbaa !9
  %217 = load double, ptr %25, align 8, !tbaa !9
  %218 = load double, ptr %24, align 8, !tbaa !9
  %219 = fadd double %218, %217
  store double %219, ptr %24, align 8, !tbaa !9
  %220 = load double, ptr %24, align 8, !tbaa !9
  %221 = load double, ptr %23, align 8, !tbaa !9
  %222 = fmul double %221, %220
  store double %222, ptr %23, align 8, !tbaa !9
  %223 = load double, ptr %14, align 8, !tbaa !9
  store double %223, ptr %24, align 8, !tbaa !9
  %224 = load double, ptr %24, align 8, !tbaa !9
  %225 = call i64 @i64_reinterpret_f64(double noundef %224)
  store i64 %225, ptr %21, align 8, !tbaa !13
  %226 = load i64, ptr %21, align 8, !tbaa !13
  store i64 %226, ptr %11, align 8, !tbaa !13
  %227 = load i64, ptr %21, align 8, !tbaa !13
  %228 = trunc i64 %227 to i32
  store i32 %228, ptr %17, align 4, !tbaa !11
  store i32 4, ptr %18, align 4, !tbaa !11
  %229 = load i32, ptr %18, align 4, !tbaa !11
  %230 = and i32 %229, 31
  %231 = load i32, ptr %17, align 4, !tbaa !11
  %232 = shl i32 %231, %230
  store i32 %232, ptr %17, align 4, !tbaa !11
  store i32 2032, ptr %18, align 4, !tbaa !11
  %233 = load i32, ptr %18, align 4, !tbaa !11
  %234 = load i32, ptr %17, align 4, !tbaa !11
  %235 = and i32 %234, %233
  store i32 %235, ptr %17, align 4, !tbaa !11
  %236 = load i32, ptr %17, align 4, !tbaa !11
  store i32 %236, ptr %9, align 4, !tbaa !11
  store i32 240360, ptr %18, align 4, !tbaa !11
  %237 = load i32, ptr %18, align 4, !tbaa !11
  %238 = load i32, ptr %17, align 4, !tbaa !11
  %239 = add i32 %238, %237
  store i32 %239, ptr %17, align 4, !tbaa !11
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %17, align 4, !tbaa !11
  %243 = zext i32 %242 to i64
  %244 = call double @f64_load(ptr noundef %241, i64 noundef %243)
  store double %244, ptr %24, align 8, !tbaa !9
  %245 = load double, ptr %6, align 8, !tbaa !9
  store double %245, ptr %25, align 8, !tbaa !9
  %246 = load double, ptr %25, align 8, !tbaa !9
  %247 = load double, ptr %24, align 8, !tbaa !9
  %248 = fadd double %247, %246
  store double %248, ptr %24, align 8, !tbaa !9
  %249 = load double, ptr %24, align 8, !tbaa !9
  %250 = load double, ptr %23, align 8, !tbaa !9
  %251 = fadd double %250, %249
  store double %251, ptr %23, align 8, !tbaa !9
  %252 = load double, ptr %23, align 8, !tbaa !9
  %253 = load double, ptr %22, align 8, !tbaa !9
  %254 = fadd double %253, %252
  store double %254, ptr %22, align 8, !tbaa !9
  %255 = load double, ptr %22, align 8, !tbaa !9
  store double %255, ptr %6, align 8, !tbaa !9
  %256 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %256, ptr %15, align 4, !tbaa !11
  store i32 240368, ptr %16, align 4, !tbaa !11
  %257 = load i32, ptr %16, align 4, !tbaa !11
  %258 = load i32, ptr %15, align 4, !tbaa !11
  %259 = add i32 %258, %257
  store i32 %259, ptr %15, align 4, !tbaa !11
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %15, align 4, !tbaa !11
  %263 = zext i32 %262 to i64
  %264 = call i64 @i64_load(ptr noundef %261, i64 noundef %263)
  store i64 %264, ptr %19, align 8, !tbaa !13
  %265 = load i64, ptr %11, align 8, !tbaa !13
  store i64 %265, ptr %20, align 8, !tbaa !13
  %266 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %266, ptr %17, align 4, !tbaa !11
  %267 = load i32, ptr %17, align 4, !tbaa !11
  %268 = zext i32 %267 to i64
  store i64 %268, ptr %21, align 8, !tbaa !13
  %269 = load i64, ptr %21, align 8, !tbaa !13
  %270 = load i64, ptr %20, align 8, !tbaa !13
  %271 = add i64 %270, %269
  store i64 %271, ptr %20, align 8, !tbaa !13
  store i64 45, ptr %21, align 8, !tbaa !13
  %272 = load i64, ptr %21, align 8, !tbaa !13
  %273 = and i64 %272, 63
  %274 = load i64, ptr %20, align 8, !tbaa !13
  %275 = shl i64 %274, %273
  store i64 %275, ptr %20, align 8, !tbaa !13
  %276 = load i64, ptr %20, align 8, !tbaa !13
  %277 = load i64, ptr %19, align 8, !tbaa !13
  %278 = add i64 %277, %276
  store i64 %278, ptr %19, align 8, !tbaa !13
  %279 = load i64, ptr %19, align 8, !tbaa !13
  store i64 %279, ptr %12, align 8, !tbaa !13
  %280 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %280, ptr %15, align 4, !tbaa !11
  %281 = load i32, ptr %15, align 4, !tbaa !11
  %282 = icmp ne i32 %281, 0
  %283 = xor i1 %282, true
  %284 = zext i1 %283 to i32
  store i32 %284, ptr %15, align 4, !tbaa !11
  %285 = load i32, ptr %15, align 4, !tbaa !11
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %296

287:                                              ; preds = %119
  %288 = load double, ptr %6, align 8, !tbaa !9
  store double %288, ptr %22, align 8, !tbaa !9
  %289 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %289, ptr %20, align 8, !tbaa !13
  %290 = load i64, ptr %11, align 8, !tbaa !13
  store i64 %290, ptr %21, align 8, !tbaa !13
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = load double, ptr %22, align 8, !tbaa !9
  %293 = load i64, ptr %20, align 8, !tbaa !13
  %294 = load i64, ptr %21, align 8, !tbaa !13
  %295 = call double @w2c_hermes_specialcase(ptr noundef %291, double noundef %292, i64 noundef %293, i64 noundef %294)
  store double %295, ptr %22, align 8, !tbaa !9
  br label %309

296:                                              ; preds = %119
  %297 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %297, ptr %19, align 8, !tbaa !13
  %298 = load i64, ptr %19, align 8, !tbaa !13
  %299 = call double @f64_reinterpret_i64(i64 noundef %298)
  store double %299, ptr %22, align 8, !tbaa !9
  %300 = load double, ptr %22, align 8, !tbaa !9
  store double %300, ptr %7, align 8, !tbaa !9
  %301 = load double, ptr %6, align 8, !tbaa !9
  store double %301, ptr %23, align 8, !tbaa !9
  %302 = load double, ptr %23, align 8, !tbaa !9
  %303 = load double, ptr %22, align 8, !tbaa !9
  %304 = fmul double %303, %302
  store double %304, ptr %22, align 8, !tbaa !9
  %305 = load double, ptr %7, align 8, !tbaa !9
  store double %305, ptr %23, align 8, !tbaa !9
  %306 = load double, ptr %23, align 8, !tbaa !9
  %307 = load double, ptr %22, align 8, !tbaa !9
  %308 = fadd double %307, %306
  store double %308, ptr %22, align 8, !tbaa !9
  br label %309

309:                                              ; preds = %296, %287, %114, %109, %80
  %310 = load double, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret double %310
}

declare i32 @w2c_hermes_top12(ptr noundef, double noundef) #3

declare double @w2c_hermes_specialcase(ptr noundef, double noundef, i64 noundef, i64 noundef) #3

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_exp_inline(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = tail call i32 @w2c_hermes_top12(ptr noundef %0, double noundef %1) #3
  %6 = and i32 %5, 2047
  %7 = tail call i32 @w2c_hermes_top12(ptr noundef %0, double noundef 0x3C90000000000000) #3
  %8 = sub i32 %6, %7
  %9 = tail call i32 @w2c_hermes_top12(ptr noundef %0, double noundef 5.120000e+02) #3
  %10 = sub i32 %9, %7
  %11 = icmp ult i32 %8, %10
  br i1 %11, label %28, label %12

12:                                               ; preds = %4
  %13 = icmp ugt i32 %7, %6
  br i1 %13, label %14, label %18

14:                                               ; preds = %12
  %15 = fadd double %1, 1.000000e+00
  %16 = fneg double %15
  %.not = icmp eq i32 %3, 0
  %17 = select i1 %.not, double %15, double %16
  br label %77

18:                                               ; preds = %12
  %19 = tail call i32 @w2c_hermes_top12(ptr noundef %0, double noundef 1.024000e+03) #3
  %20 = icmp ugt i32 %19, %6
  br i1 %20, label %28, label %21

21:                                               ; preds = %18
  %22 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = tail call double @w2c_hermes_0x5F_math_uflow(ptr noundef %0, i32 noundef %3)
  br label %77

26:                                               ; preds = %21
  %27 = tail call double @w2c_hermes_0x5F_math_oflow(ptr noundef %0, i32 noundef %3)
  br label %77

28:                                               ; preds = %18, %4
  %.0172 = phi i32 [ %6, %4 ], [ 0, %18 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240248)
  %31 = fmul double %30, %1
  %32 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240256)
  %33 = fadd double %31, %32
  %34 = fsub double %33, %32
  %35 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240272)
  %36 = fmul double %35, %34
  %37 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240264)
  %38 = fmul double %34, %37
  %39 = fadd double %38, %1
  %40 = fadd double %36, %39
  %41 = fadd double %40, %2
  %42 = fmul double %41, %41
  %43 = fmul double %42, %42
  %44 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240304)
  %45 = fmul double %44, %41
  %46 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240296)
  %47 = fadd double %46, %45
  %48 = fmul double %43, %47
  %49 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240288)
  %50 = fmul double %49, %41
  %51 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef 240280)
  %52 = fadd double %51, %50
  %53 = fmul double %42, %52
  %54 = tail call i64 @i64_reinterpret_f64(double noundef %33)
  %55 = trunc i64 %54 to i32
  %56 = shl i32 %55, 4
  %57 = and i32 %56, 2032
  %58 = add nuw nsw i32 %57, 240360
  %59 = zext nneg i32 %58 to i64
  %60 = tail call double @f64_load(ptr noundef nonnull %29, i64 noundef %59)
  %61 = fadd double %41, %60
  %62 = fadd double %53, %61
  %63 = fadd double %48, %62
  %64 = add nuw nsw i32 %57, 240368
  %65 = zext nneg i32 %64 to i64
  %66 = tail call i64 @i64_load(ptr noundef nonnull %29, i64 noundef %65)
  %67 = zext i32 %3 to i64
  %68 = add i64 %54, %67
  %69 = shl i64 %68, 45
  %70 = add i64 %66, %69
  %.not174 = icmp eq i32 %.0172, 0
  br i1 %.not174, label %71, label %73

71:                                               ; preds = %28
  %72 = tail call double @w2c_hermes_specialcase(ptr noundef %0, double noundef %63, i64 noundef %70, i64 noundef %54) #3
  br label %77

73:                                               ; preds = %28
  %74 = tail call double @f64_reinterpret_i64(i64 noundef %70)
  %75 = fmul double %63, %74
  %76 = fadd double %74, %75
  br label %77

77:                                               ; preds = %73, %71, %26, %24, %14
  %.0 = phi double [ %72, %71 ], [ %76, %73 ], [ %17, %14 ], [ %25, %24 ], [ %27, %26 ]
  ret double %.0
}

declare i32 @w2c_hermes_top12(ptr noundef, double noundef) local_unnamed_addr #2

declare double @w2c_hermes_specialcase(ptr noundef, double noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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