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

50:                                               ; preds = %2
  %51 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %51, ptr %11, align 4, !tbaa !11
  %52 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %52, ptr %6, align 4, !tbaa !11
  br label %126

53:                                               ; preds = %2
  %54 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %54, ptr %11, align 4, !tbaa !11
  %55 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %55, ptr %12, align 4, !tbaa !11
  %56 = load i32, ptr %11, align 4, !tbaa !11
  %57 = load i32, ptr %12, align 4, !tbaa !11
  %58 = icmp ult i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %11, align 4, !tbaa !11
  %60 = load i32, ptr %11, align 4, !tbaa !11
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %67

62:                                               ; preds = %53
  %63 = load double, ptr %4, align 8, !tbaa !9
  store double %63, ptr %18, align 8, !tbaa !9
  store double 1.000000e+00, ptr %19, align 8, !tbaa !9
  %64 = load double, ptr %19, align 8, !tbaa !9
  %65 = load double, ptr %18, align 8, !tbaa !9
  %66 = fadd double %65, %64
  store double %66, ptr %18, align 8, !tbaa !9
  br label %308

67:                                               ; preds = %53
  store i32 0, ptr %11, align 4, !tbaa !11
  %68 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %68, ptr %6, align 4, !tbaa !11
  store double 1.024000e+03, ptr %18, align 8, !tbaa !9
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load double, ptr %18, align 8, !tbaa !9
  %71 = call i32 @w2c_hermes_top120x2E1(ptr noundef %69, double noundef %70)
  store i32 %71, ptr %11, align 4, !tbaa !11
  %72 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %72, ptr %12, align 4, !tbaa !11
  %73 = load i32, ptr %11, align 4, !tbaa !11
  %74 = load i32, ptr %12, align 4, !tbaa !11
  %75 = icmp ugt i32 %73, %74
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %11, align 4, !tbaa !11
  %77 = load i32, ptr %11, align 4, !tbaa !11
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %67
  br label %126

80:                                               ; preds = %67
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  %81 = load double, ptr %4, align 8, !tbaa !9
  store double %81, ptr %19, align 8, !tbaa !9
  %82 = load double, ptr %19, align 8, !tbaa !9
  %83 = call i64 @i64_reinterpret_f64(double noundef %82)
  store i64 %83, ptr %16, align 8, !tbaa !13
  %84 = load i64, ptr %16, align 8, !tbaa !13
  store i64 %84, ptr %7, align 8, !tbaa !13
  store i64 -4503599627370496, ptr %17, align 8, !tbaa !13
  %85 = load i64, ptr %16, align 8, !tbaa !13
  %86 = load i64, ptr %17, align 8, !tbaa !13
  %87 = icmp eq i64 %85, %86
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %12, align 4, !tbaa !11
  %89 = load i32, ptr %12, align 4, !tbaa !11
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %80
  br label %306

92:                                               ; preds = %80
  store double 0x7FF0000000000000, ptr %18, align 8, !tbaa !9
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load double, ptr %18, align 8, !tbaa !9
  %95 = call i32 @w2c_hermes_top120x2E1(ptr noundef %93, double noundef %94)
  store i32 %95, ptr %11, align 4, !tbaa !11
  %96 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %96, ptr %12, align 4, !tbaa !11
  %97 = load i32, ptr %11, align 4, !tbaa !11
  %98 = load i32, ptr %12, align 4, !tbaa !11
  %99 = icmp ule i32 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %11, align 4, !tbaa !11
  %101 = load i32, ptr %11, align 4, !tbaa !11
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %92
  %104 = load double, ptr %4, align 8, !tbaa !9
  store double %104, ptr %18, align 8, !tbaa !9
  store double 1.000000e+00, ptr %19, align 8, !tbaa !9
  %105 = load double, ptr %19, align 8, !tbaa !9
  %106 = load double, ptr %18, align 8, !tbaa !9
  %107 = fadd double %106, %105
  store double %107, ptr %18, align 8, !tbaa !9
  br label %308

108:                                              ; preds = %92
  %109 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %109, ptr %15, align 8, !tbaa !13
  store i64 0, ptr %16, align 8, !tbaa !13
  %110 = load i64, ptr %15, align 8, !tbaa !13
  %111 = load i64, ptr %16, align 8, !tbaa !13
  %112 = icmp slt i64 %110, %111
  %113 = zext i1 %112 to i32
  %114 = sext i32 %113 to i64
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %11, align 4, !tbaa !11
  %116 = load i32, ptr %11, align 4, !tbaa !11
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %122

118:                                              ; preds = %108
  store i32 0, ptr %11, align 4, !tbaa !11
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !11
  %121 = call double @w2c_hermes_0x5F_math_uflow(ptr noundef %119, i32 noundef %120)
  store double %121, ptr %18, align 8, !tbaa !9
  br label %308

122:                                              ; preds = %108
  store i32 0, ptr %11, align 4, !tbaa !11
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = load i32, ptr %11, align 4, !tbaa !11
  %125 = call double @w2c_hermes_0x5F_math_oflow(ptr noundef %123, i32 noundef %124)
  store double %125, ptr %18, align 8, !tbaa !9
  br label %308

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

284:                                              ; preds = %126
  %285 = load double, ptr %4, align 8, !tbaa !9
  store double %285, ptr %18, align 8, !tbaa !9
  %286 = load i64, ptr %8, align 8, !tbaa !13
  store i64 %286, ptr %16, align 8, !tbaa !13
  %287 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %287, ptr %17, align 8, !tbaa !13
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = load double, ptr %18, align 8, !tbaa !9
  %290 = load i64, ptr %16, align 8, !tbaa !13
  %291 = load i64, ptr %17, align 8, !tbaa !13
  %292 = call double @w2c_hermes_specialcase0x2E1(ptr noundef %288, double noundef %289, i64 noundef %290, i64 noundef %291)
  store double %292, ptr %18, align 8, !tbaa !9
  br label %308

293:                                              ; preds = %126
  %294 = load i64, ptr %8, align 8, !tbaa !13
  store i64 %294, ptr %15, align 8, !tbaa !13
  %295 = load i64, ptr %15, align 8, !tbaa !13
  %296 = call double @f64_reinterpret_i64(i64 noundef %295)
  store double %296, ptr %18, align 8, !tbaa !9
  %297 = load double, ptr %18, align 8, !tbaa !9
  store double %297, ptr %9, align 8, !tbaa !9
  %298 = load double, ptr %4, align 8, !tbaa !9
  store double %298, ptr %19, align 8, !tbaa !9
  %299 = load double, ptr %19, align 8, !tbaa !9
  %300 = load double, ptr %18, align 8, !tbaa !9
  %301 = fmul double %300, %299
  store double %301, ptr %18, align 8, !tbaa !9
  %302 = load double, ptr %9, align 8, !tbaa !9
  store double %302, ptr %19, align 8, !tbaa !9
  %303 = load double, ptr %19, align 8, !tbaa !9
  %304 = load double, ptr %18, align 8, !tbaa !9
  %305 = fadd double %304, %303
  store double %305, ptr %18, align 8, !tbaa !9
  br label %306

306:                                              ; preds = %293, %91
  %307 = load double, ptr %18, align 8, !tbaa !9
  store double %307, ptr %9, align 8, !tbaa !9
  br label %308

308:                                              ; preds = %306, %284, %122, %118, %103, %62
  %309 = load double, ptr %18, align 8, !tbaa !9
  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 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %309
}

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #2

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

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

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

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

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

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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: nounwind uwtable
define dso_local double @w2c_hermes_exp(ptr noundef %0, double noundef %1) local_unnamed_addr #0 {
  %3 = tail call i32 @w2c_hermes_top120x2E1(ptr noundef %0, double noundef %1) #3
  %4 = and i32 %3, 2047
  %5 = tail call i32 @w2c_hermes_top120x2E1(ptr noundef %0, double noundef 0x3C90000000000000) #3
  %6 = sub i32 %4, %5
  %7 = tail call i32 @w2c_hermes_top120x2E1(ptr noundef %0, double noundef 5.120000e+02) #3
  %8 = sub i32 %7, %5
  %9 = icmp ult i32 %6, %8
  br i1 %9, label %10, label %12

10:                                               ; preds = %2
  %11 = icmp eq i32 %4, 0
  br label %32

12:                                               ; preds = %2
  %13 = icmp ult i32 %4, %5
  br i1 %13, label %14, label %16

14:                                               ; preds = %12
  %15 = fadd double %1, 1.000000e+00
  br label %78

16:                                               ; preds = %12
  %17 = tail call i32 @w2c_hermes_top120x2E1(ptr noundef %0, double noundef 1.024000e+03) #3
  %18 = icmp ugt i32 %17, %4
  br i1 %18, label %32, label %19

19:                                               ; preds = %16
  %20 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %21 = icmp eq i64 %20, -4503599627370496
  br i1 %21, label %78, label %22

22:                                               ; preds = %19
  %23 = tail call i32 @w2c_hermes_top120x2E1(ptr noundef %0, double noundef 0x7FF0000000000000) #3
  %.not = icmp ugt i32 %23, %4
  br i1 %.not, label %26, label %24

24:                                               ; preds = %22
  %25 = fadd double %1, 1.000000e+00
  br label %78

26:                                               ; preds = %22
  %27 = icmp slt i64 %20, 0
  br i1 %27, label %28, label %30

28:                                               ; preds = %26
  %29 = tail call double @w2c_hermes_0x5F_math_uflow(ptr noundef %0, i32 noundef 0)
  br label %78

30:                                               ; preds = %26
  %31 = tail call double @w2c_hermes_0x5F_math_oflow(ptr noundef %0, i32 noundef 0)
  br label %78

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

72:                                               ; preds = %32
  %73 = tail call double @w2c_hermes_specialcase0x2E1(ptr noundef %0, double noundef %66, i64 noundef %71, i64 noundef %57) #3
  br label %78

74:                                               ; preds = %32
  %75 = tail call double @f64_reinterpret_i64(i64 noundef %71)
  %76 = fmul double %66, %75
  %77 = fadd double %75, %76
  br label %78

78:                                               ; preds = %74, %19, %72, %30, %28, %24, %14
  %.1 = phi double [ %73, %72 ], [ %15, %14 ], [ %25, %24 ], [ %29, %28 ], [ %31, %30 ], [ %77, %74 ], [ 0.000000e+00, %19 ]
  ret double %.1
}

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

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

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

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

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

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

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

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

attributes #0 = { 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 = { 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 = { "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