; 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_atan(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 double, 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 i64, align 8
  %19 = alloca double, 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
  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 double 0.000000e+00, ptr %8, align 8, !tbaa !9
  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
  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 %4, align 8, !tbaa !9
  store double %26, ptr %19, align 8, !tbaa !9
  %27 = load double, ptr %19, align 8, !tbaa !9
  %28 = call i64 @i64_reinterpret_f64(double noundef %27)
  store i64 %28, ptr %15, align 8, !tbaa !13
  %29 = load i64, ptr %15, align 8, !tbaa !13
  store i64 %29, ptr %7, align 8, !tbaa !13
  store i64 32, ptr %16, align 8, !tbaa !13
  %30 = load i64, ptr %16, align 8, !tbaa !13
  %31 = and i64 %30, 63
  %32 = load i64, ptr %15, align 8, !tbaa !13
  %33 = lshr i64 %32, %31
  store i64 %33, ptr %15, align 8, !tbaa !13
  %34 = load i64, ptr %15, align 8, !tbaa !13
  %35 = trunc i64 %34 to i32
  store i32 %35, ptr %11, align 4, !tbaa !11
  store i32 2147483647, ptr %12, align 4, !tbaa !11
  %36 = load i32, ptr %12, align 4, !tbaa !11
  %37 = load i32, ptr %11, align 4, !tbaa !11
  %38 = and i32 %37, %36
  store i32 %38, ptr %11, align 4, !tbaa !11
  %39 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %39, ptr %5, align 4, !tbaa !11
  store i32 1141899264, ptr %12, align 4, !tbaa !11
  %40 = load i32, ptr %11, align 4, !tbaa !11
  %41 = load i32, ptr %12, align 4, !tbaa !11
  %42 = icmp uge i32 %40, %41
  %43 = zext i1 %42 to i32
  store i32 %43, ptr %11, align 4, !tbaa !11
  %44 = load i32, ptr %11, align 4, !tbaa !11
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %71

46:                                               ; preds = %2
  %47 = load double, ptr %4, align 8, !tbaa !9
  store double %47, ptr %19, align 8, !tbaa !9
  store double 0x3FF921FB54442D18, ptr %20, align 8, !tbaa !9
  %48 = load double, ptr %4, align 8, !tbaa !9
  store double %48, ptr %21, align 8, !tbaa !9
  %49 = load double, ptr %20, align 8, !tbaa !9
  %50 = load double, ptr %21, align 8, !tbaa !9
  %51 = call double @llvm.copysign.f64(double %49, double %50)
  store double %51, ptr %20, align 8, !tbaa !9
  %52 = load double, ptr %4, align 8, !tbaa !9
  store double %52, ptr %21, align 8, !tbaa !9
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load double, ptr %21, align 8, !tbaa !9
  %55 = call i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E5(ptr noundef %53, double noundef %54)
  store i64 %55, ptr %17, align 8, !tbaa !13
  store i64 9223372036854775807, ptr %18, align 8, !tbaa !13
  %56 = load i64, ptr %18, align 8, !tbaa !13
  %57 = load i64, ptr %17, align 8, !tbaa !13
  %58 = and i64 %57, %56
  store i64 %58, ptr %17, align 8, !tbaa !13
  store i64 9218868437227405312, ptr %18, align 8, !tbaa !13
  %59 = load i64, ptr %17, align 8, !tbaa !13
  %60 = load i64, ptr %18, align 8, !tbaa !13
  %61 = icmp ugt i64 %59, %60
  %62 = zext i1 %61 to i32
  store i32 %62, ptr %13, align 4, !tbaa !11
  %63 = load i32, ptr %13, align 4, !tbaa !11
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %46
  %66 = load double, ptr %19, align 8, !tbaa !9
  br label %69

67:                                               ; preds = %46
  %68 = load double, ptr %20, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %67, %65
  %70 = phi double [ %66, %65 ], [ %68, %67 ]
  store double %70, ptr %19, align 8, !tbaa !9
  br label %342

71:                                               ; preds = %2
  %72 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %72, ptr %11, align 4, !tbaa !11
  store i32 1071382527, 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 ule 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 %90

79:                                               ; preds = %71
  store i32 -1, ptr %11, align 4, !tbaa !11
  %80 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %80, ptr %6, align 4, !tbaa !11
  %81 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %81, ptr %12, align 4, !tbaa !11
  store i32 1044381696, ptr %13, align 4, !tbaa !11
  %82 = load i32, ptr %12, align 4, !tbaa !11
  %83 = load i32, ptr %13, align 4, !tbaa !11
  %84 = icmp uge i32 %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %12, align 4, !tbaa !11
  %86 = load i32, ptr %12, align 4, !tbaa !11
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %79
  br label %171

89:                                               ; preds = %79
  br label %340

90:                                               ; preds = %71
  %91 = load double, ptr %4, align 8, !tbaa !9
  store double %91, ptr %19, align 8, !tbaa !9
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = load double, ptr %19, align 8, !tbaa !9
  %94 = call double @w2c_hermes_fabs(ptr noundef %92, double noundef %93)
  store double %94, ptr %19, align 8, !tbaa !9
  %95 = load double, ptr %19, align 8, !tbaa !9
  store double %95, ptr %4, align 8, !tbaa !9
  %96 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %96, ptr %11, align 4, !tbaa !11
  store i32 1072889855, 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 %141

103:                                              ; preds = %90
  %104 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %104, ptr %11, align 4, !tbaa !11
  store i32 1072037887, ptr %12, align 4, !tbaa !11
  %105 = load i32, ptr %11, align 4, !tbaa !11
  %106 = load i32, ptr %12, align 4, !tbaa !11
  %107 = icmp ule i32 %105, %106
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %11, align 4, !tbaa !11
  %109 = load i32, ptr %11, align 4, !tbaa !11
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %128

111:                                              ; preds = %103
  %112 = load double, ptr %4, align 8, !tbaa !9
  store double %112, ptr %19, align 8, !tbaa !9
  %113 = load double, ptr %4, align 8, !tbaa !9
  store double %113, ptr %20, align 8, !tbaa !9
  %114 = load double, ptr %20, align 8, !tbaa !9
  %115 = load double, ptr %19, align 8, !tbaa !9
  %116 = fadd double %115, %114
  store double %116, ptr %19, align 8, !tbaa !9
  store double -1.000000e+00, ptr %20, align 8, !tbaa !9
  %117 = load double, ptr %20, align 8, !tbaa !9
  %118 = load double, ptr %19, align 8, !tbaa !9
  %119 = fadd double %118, %117
  store double %119, ptr %19, align 8, !tbaa !9
  %120 = load double, ptr %4, align 8, !tbaa !9
  store double %120, ptr %20, align 8, !tbaa !9
  store double 2.000000e+00, ptr %21, align 8, !tbaa !9
  %121 = load double, ptr %21, align 8, !tbaa !9
  %122 = load double, ptr %20, align 8, !tbaa !9
  %123 = fadd double %122, %121
  store double %123, ptr %20, align 8, !tbaa !9
  %124 = load double, ptr %20, align 8, !tbaa !9
  %125 = load double, ptr %19, align 8, !tbaa !9
  %126 = fdiv double %125, %124
  store double %126, ptr %19, align 8, !tbaa !9
  %127 = load double, ptr %19, align 8, !tbaa !9
  store double %127, ptr %4, align 8, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %171

128:                                              ; preds = %103
  %129 = load double, ptr %4, align 8, !tbaa !9
  store double %129, ptr %19, align 8, !tbaa !9
  store double -1.000000e+00, ptr %20, align 8, !tbaa !9
  %130 = load double, ptr %20, align 8, !tbaa !9
  %131 = load double, ptr %19, align 8, !tbaa !9
  %132 = fadd double %131, %130
  store double %132, ptr %19, align 8, !tbaa !9
  %133 = load double, ptr %4, align 8, !tbaa !9
  store double %133, ptr %20, align 8, !tbaa !9
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  %134 = load double, ptr %21, align 8, !tbaa !9
  %135 = load double, ptr %20, align 8, !tbaa !9
  %136 = fadd double %135, %134
  store double %136, ptr %20, align 8, !tbaa !9
  %137 = load double, ptr %20, align 8, !tbaa !9
  %138 = load double, ptr %19, align 8, !tbaa !9
  %139 = fdiv double %138, %137
  store double %139, ptr %19, align 8, !tbaa !9
  %140 = load double, ptr %19, align 8, !tbaa !9
  store double %140, ptr %4, align 8, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %171

141:                                              ; preds = %90
  %142 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %142, ptr %11, align 4, !tbaa !11
  store i32 1073971199, ptr %12, align 4, !tbaa !11
  %143 = load i32, ptr %11, align 4, !tbaa !11
  %144 = load i32, ptr %12, align 4, !tbaa !11
  %145 = icmp ule i32 %143, %144
  %146 = zext i1 %145 to i32
  store i32 %146, ptr %11, align 4, !tbaa !11
  %147 = load i32, ptr %11, align 4, !tbaa !11
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %165

149:                                              ; preds = %141
  %150 = load double, ptr %4, align 8, !tbaa !9
  store double %150, ptr %19, align 8, !tbaa !9
  store double -1.500000e+00, ptr %20, align 8, !tbaa !9
  %151 = load double, ptr %20, align 8, !tbaa !9
  %152 = load double, ptr %19, align 8, !tbaa !9
  %153 = fadd double %152, %151
  store double %153, ptr %19, align 8, !tbaa !9
  %154 = load double, ptr %4, align 8, !tbaa !9
  store double %154, ptr %20, align 8, !tbaa !9
  store double 1.500000e+00, ptr %21, align 8, !tbaa !9
  %155 = load double, ptr %21, align 8, !tbaa !9
  %156 = load double, ptr %20, align 8, !tbaa !9
  %157 = fmul double %156, %155
  store double %157, ptr %20, align 8, !tbaa !9
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  %158 = load double, ptr %21, align 8, !tbaa !9
  %159 = load double, ptr %20, align 8, !tbaa !9
  %160 = fadd double %159, %158
  store double %160, ptr %20, align 8, !tbaa !9
  %161 = load double, ptr %20, align 8, !tbaa !9
  %162 = load double, ptr %19, align 8, !tbaa !9
  %163 = fdiv double %162, %161
  store double %163, ptr %19, align 8, !tbaa !9
  %164 = load double, ptr %19, align 8, !tbaa !9
  store double %164, ptr %4, align 8, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !11
  br label %171

165:                                              ; preds = %141
  store double -1.000000e+00, ptr %19, align 8, !tbaa !9
  %166 = load double, ptr %4, align 8, !tbaa !9
  store double %166, ptr %20, align 8, !tbaa !9
  %167 = load double, ptr %20, align 8, !tbaa !9
  %168 = load double, ptr %19, align 8, !tbaa !9
  %169 = fdiv double %168, %167
  store double %169, ptr %19, align 8, !tbaa !9
  %170 = load double, ptr %19, align 8, !tbaa !9
  store double %170, ptr %4, align 8, !tbaa !9
  store i32 3, ptr %11, align 4, !tbaa !11
  br label %171

171:                                              ; preds = %165, %149, %128, %111, %88
  %172 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %172, ptr %6, align 4, !tbaa !11
  %173 = load double, ptr %4, align 8, !tbaa !9
  store double %173, ptr %19, align 8, !tbaa !9
  %174 = load double, ptr %4, align 8, !tbaa !9
  store double %174, ptr %20, align 8, !tbaa !9
  %175 = load double, ptr %20, align 8, !tbaa !9
  %176 = load double, ptr %19, align 8, !tbaa !9
  %177 = fmul double %176, %175
  store double %177, ptr %19, align 8, !tbaa !9
  %178 = load double, ptr %19, align 8, !tbaa !9
  store double %178, ptr %9, align 8, !tbaa !9
  %179 = load double, ptr %9, align 8, !tbaa !9
  store double %179, ptr %20, align 8, !tbaa !9
  %180 = load double, ptr %20, align 8, !tbaa !9
  %181 = load double, ptr %19, align 8, !tbaa !9
  %182 = fmul double %181, %180
  store double %182, ptr %19, align 8, !tbaa !9
  %183 = load double, ptr %19, align 8, !tbaa !9
  store double %183, ptr %8, align 8, !tbaa !9
  %184 = load double, ptr %8, align 8, !tbaa !9
  store double %184, ptr %20, align 8, !tbaa !9
  %185 = load double, ptr %8, align 8, !tbaa !9
  store double %185, ptr %21, align 8, !tbaa !9
  %186 = load double, ptr %8, align 8, !tbaa !9
  store double %186, ptr %22, align 8, !tbaa !9
  %187 = load double, ptr %8, align 8, !tbaa !9
  store double %187, ptr %23, align 8, !tbaa !9
  store double 0xBFA2B4442C6A6C2F, 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 double 0xBFADDE2D52DEFD9A, ptr %24, align 8, !tbaa !9
  %191 = load double, ptr %24, align 8, !tbaa !9
  %192 = load double, ptr %23, align 8, !tbaa !9
  %193 = fadd double %192, %191
  store double %193, ptr %23, align 8, !tbaa !9
  %194 = load double, ptr %23, align 8, !tbaa !9
  %195 = load double, ptr %22, align 8, !tbaa !9
  %196 = fmul double %195, %194
  store double %196, ptr %22, align 8, !tbaa !9
  store double 0xBFB3B0F2AF749A6D, ptr %23, align 8, !tbaa !9
  %197 = load double, ptr %23, align 8, !tbaa !9
  %198 = load double, ptr %22, align 8, !tbaa !9
  %199 = fadd double %198, %197
  store double %199, ptr %22, align 8, !tbaa !9
  %200 = load double, ptr %22, align 8, !tbaa !9
  %201 = load double, ptr %21, align 8, !tbaa !9
  %202 = fmul double %201, %200
  store double %202, ptr %21, align 8, !tbaa !9
  store double 0xBFBC71C6FE231671, ptr %22, align 8, !tbaa !9
  %203 = load double, ptr %22, align 8, !tbaa !9
  %204 = load double, ptr %21, align 8, !tbaa !9
  %205 = fadd double %204, %203
  store double %205, ptr %21, align 8, !tbaa !9
  %206 = load double, ptr %21, align 8, !tbaa !9
  %207 = load double, ptr %20, align 8, !tbaa !9
  %208 = fmul double %207, %206
  store double %208, ptr %20, align 8, !tbaa !9
  store double 0xBFC999999998EBC4, ptr %21, align 8, !tbaa !9
  %209 = load double, ptr %21, align 8, !tbaa !9
  %210 = load double, ptr %20, align 8, !tbaa !9
  %211 = fadd double %210, %209
  store double %211, ptr %20, align 8, !tbaa !9
  %212 = load double, ptr %20, align 8, !tbaa !9
  %213 = load double, ptr %19, align 8, !tbaa !9
  %214 = fmul double %213, %212
  store double %214, ptr %19, align 8, !tbaa !9
  %215 = load double, ptr %19, align 8, !tbaa !9
  store double %215, ptr %10, align 8, !tbaa !9
  %216 = load double, ptr %9, align 8, !tbaa !9
  store double %216, ptr %19, align 8, !tbaa !9
  %217 = load double, ptr %8, align 8, !tbaa !9
  store double %217, ptr %20, align 8, !tbaa !9
  %218 = load double, ptr %8, align 8, !tbaa !9
  store double %218, ptr %21, align 8, !tbaa !9
  %219 = load double, ptr %8, align 8, !tbaa !9
  store double %219, ptr %22, align 8, !tbaa !9
  %220 = load double, ptr %8, align 8, !tbaa !9
  store double %220, ptr %23, align 8, !tbaa !9
  %221 = load double, ptr %8, align 8, !tbaa !9
  store double %221, ptr %24, align 8, !tbaa !9
  store double 0x3F90AD3AE322DA11, ptr %25, align 8, !tbaa !9
  %222 = load double, ptr %25, align 8, !tbaa !9
  %223 = load double, ptr %24, align 8, !tbaa !9
  %224 = fmul double %223, %222
  store double %224, ptr %24, align 8, !tbaa !9
  store double 0x3FA97B4B24760DEB, ptr %25, align 8, !tbaa !9
  %225 = load double, ptr %25, align 8, !tbaa !9
  %226 = load double, ptr %24, align 8, !tbaa !9
  %227 = fadd double %226, %225
  store double %227, ptr %24, align 8, !tbaa !9
  %228 = load double, ptr %24, align 8, !tbaa !9
  %229 = load double, ptr %23, align 8, !tbaa !9
  %230 = fmul double %229, %228
  store double %230, ptr %23, align 8, !tbaa !9
  store double 0x3FB10D66A0D03D51, ptr %24, align 8, !tbaa !9
  %231 = load double, ptr %24, align 8, !tbaa !9
  %232 = load double, ptr %23, align 8, !tbaa !9
  %233 = fadd double %232, %231
  store double %233, ptr %23, align 8, !tbaa !9
  %234 = load double, ptr %23, align 8, !tbaa !9
  %235 = load double, ptr %22, align 8, !tbaa !9
  %236 = fmul double %235, %234
  store double %236, ptr %22, align 8, !tbaa !9
  store double 0x3FB745CDC54C206E, ptr %23, align 8, !tbaa !9
  %237 = load double, ptr %23, align 8, !tbaa !9
  %238 = load double, ptr %22, align 8, !tbaa !9
  %239 = fadd double %238, %237
  store double %239, ptr %22, align 8, !tbaa !9
  %240 = load double, ptr %22, align 8, !tbaa !9
  %241 = load double, ptr %21, align 8, !tbaa !9
  %242 = fmul double %241, %240
  store double %242, ptr %21, align 8, !tbaa !9
  store double 0x3FC24924920083FF, ptr %22, align 8, !tbaa !9
  %243 = load double, ptr %22, align 8, !tbaa !9
  %244 = load double, ptr %21, align 8, !tbaa !9
  %245 = fadd double %244, %243
  store double %245, ptr %21, align 8, !tbaa !9
  %246 = load double, ptr %21, align 8, !tbaa !9
  %247 = load double, ptr %20, align 8, !tbaa !9
  %248 = fmul double %247, %246
  store double %248, ptr %20, align 8, !tbaa !9
  store double 0x3FD555555555550D, 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 = fmul double %253, %252
  store double %254, ptr %19, align 8, !tbaa !9
  %255 = load double, ptr %19, align 8, !tbaa !9
  store double %255, ptr %8, align 8, !tbaa !9
  %256 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %256, ptr %11, align 4, !tbaa !11
  store i32 1071382527, ptr %12, align 4, !tbaa !11
  %257 = load i32, ptr %11, align 4, !tbaa !11
  %258 = load i32, ptr %12, align 4, !tbaa !11
  %259 = icmp ule i32 %257, %258
  %260 = zext i1 %259 to i32
  store i32 %260, ptr %11, align 4, !tbaa !11
  %261 = load i32, ptr %11, align 4, !tbaa !11
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %277

263:                                              ; preds = %171
  %264 = load double, ptr %4, align 8, !tbaa !9
  store double %264, ptr %19, align 8, !tbaa !9
  %265 = load double, ptr %4, align 8, !tbaa !9
  store double %265, ptr %20, align 8, !tbaa !9
  %266 = load double, ptr %10, align 8, !tbaa !9
  store double %266, ptr %21, align 8, !tbaa !9
  %267 = load double, ptr %8, align 8, !tbaa !9
  store double %267, ptr %22, align 8, !tbaa !9
  %268 = load double, ptr %22, align 8, !tbaa !9
  %269 = load double, ptr %21, align 8, !tbaa !9
  %270 = fadd double %269, %268
  store double %270, ptr %21, align 8, !tbaa !9
  %271 = load double, ptr %21, align 8, !tbaa !9
  %272 = load double, ptr %20, align 8, !tbaa !9
  %273 = fmul double %272, %271
  store double %273, ptr %20, align 8, !tbaa !9
  %274 = load double, ptr %20, align 8, !tbaa !9
  %275 = load double, ptr %19, align 8, !tbaa !9
  %276 = fsub double %275, %274
  store double %276, ptr %19, align 8, !tbaa !9
  br label %342

277:                                              ; preds = %171
  %278 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %278, ptr %11, align 4, !tbaa !11
  store i32 3, ptr %12, align 4, !tbaa !11
  %279 = load i32, ptr %12, align 4, !tbaa !11
  %280 = and i32 %279, 31
  %281 = load i32, ptr %11, align 4, !tbaa !11
  %282 = shl i32 %281, %280
  store i32 %282, ptr %11, align 4, !tbaa !11
  %283 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %283, ptr %5, align 4, !tbaa !11
  store i32 235952, ptr %12, align 4, !tbaa !11
  %284 = load i32, ptr %12, align 4, !tbaa !11
  %285 = load i32, ptr %11, align 4, !tbaa !11
  %286 = add i32 %285, %284
  store i32 %286, ptr %11, align 4, !tbaa !11
  %287 = load ptr, ptr %3, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.w2c_hermes, ptr %287, i32 0, i32 6
  %289 = load i32, ptr %11, align 4, !tbaa !11
  %290 = zext i32 %289 to i64
  %291 = call double @f64_load(ptr noundef %288, i64 noundef %290)
  store double %291, ptr %19, align 8, !tbaa !9
  %292 = load double, ptr %4, align 8, !tbaa !9
  store double %292, ptr %20, align 8, !tbaa !9
  %293 = load double, ptr %10, align 8, !tbaa !9
  store double %293, ptr %21, align 8, !tbaa !9
  %294 = load double, ptr %8, align 8, !tbaa !9
  store double %294, ptr %22, align 8, !tbaa !9
  %295 = load double, ptr %22, align 8, !tbaa !9
  %296 = load double, ptr %21, align 8, !tbaa !9
  %297 = fadd double %296, %295
  store double %297, ptr %21, align 8, !tbaa !9
  %298 = load double, ptr %21, align 8, !tbaa !9
  %299 = load double, ptr %20, align 8, !tbaa !9
  %300 = fmul double %299, %298
  store double %300, ptr %20, align 8, !tbaa !9
  %301 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %301, ptr %13, align 4, !tbaa !11
  store i32 235984, ptr %14, align 4, !tbaa !11
  %302 = load i32, ptr %14, align 4, !tbaa !11
  %303 = load i32, ptr %13, align 4, !tbaa !11
  %304 = add i32 %303, %302
  store i32 %304, ptr %13, align 4, !tbaa !11
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.w2c_hermes, ptr %305, i32 0, i32 6
  %307 = load i32, ptr %13, align 4, !tbaa !11
  %308 = zext i32 %307 to i64
  %309 = call double @f64_load(ptr noundef %306, i64 noundef %308)
  store double %309, ptr %21, align 8, !tbaa !9
  %310 = load double, ptr %21, align 8, !tbaa !9
  %311 = load double, ptr %20, align 8, !tbaa !9
  %312 = fsub double %311, %310
  store double %312, ptr %20, align 8, !tbaa !9
  %313 = load double, ptr %4, align 8, !tbaa !9
  store double %313, ptr %21, align 8, !tbaa !9
  %314 = load double, ptr %21, align 8, !tbaa !9
  %315 = load double, ptr %20, align 8, !tbaa !9
  %316 = fsub double %315, %314
  store double %316, ptr %20, align 8, !tbaa !9
  %317 = load double, ptr %20, align 8, !tbaa !9
  %318 = load double, ptr %19, align 8, !tbaa !9
  %319 = fsub double %318, %317
  store double %319, ptr %19, align 8, !tbaa !9
  %320 = load double, ptr %19, align 8, !tbaa !9
  store double %320, ptr %4, align 8, !tbaa !9
  %321 = load double, ptr %19, align 8, !tbaa !9
  %322 = fneg double %321
  store double %322, ptr %19, align 8, !tbaa !9
  %323 = load double, ptr %4, align 8, !tbaa !9
  store double %323, ptr %20, align 8, !tbaa !9
  %324 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %324, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %18, align 8, !tbaa !13
  %325 = load i64, ptr %17, align 8, !tbaa !13
  %326 = load i64, ptr %18, align 8, !tbaa !13
  %327 = icmp slt i64 %325, %326
  %328 = zext i1 %327 to i32
  %329 = sext i32 %328 to i64
  %330 = trunc i64 %329 to i32
  store i32 %330, ptr %13, align 4, !tbaa !11
  %331 = load i32, ptr %13, align 4, !tbaa !11
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %335

333:                                              ; preds = %277
  %334 = load double, ptr %19, align 8, !tbaa !9
  br label %337

335:                                              ; preds = %277
  %336 = load double, ptr %20, align 8, !tbaa !9
  br label %337

337:                                              ; preds = %335, %333
  %338 = phi double [ %334, %333 ], [ %336, %335 ]
  store double %338, ptr %19, align 8, !tbaa !9
  %339 = load double, ptr %19, align 8, !tbaa !9
  store double %339, ptr %4, align 8, !tbaa !9
  br label %340

340:                                              ; preds = %337, %89
  %341 = load double, ptr %4, align 8, !tbaa !9
  store double %341, ptr %19, align 8, !tbaa !9
  br label %342

342:                                              ; preds = %340, %263, %69
  %343 = load double, ptr %19, 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 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 %343
}

; 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_reinterpret_f64(double 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_fabs(ptr noundef, double noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #3

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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_atan(ptr noundef %0, double noundef %1) local_unnamed_addr #0 {
  %3 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %4 = lshr i64 %3, 32
  %5 = trunc nuw i64 %4 to i32
  %6 = and i32 %5, 2147483647
  %7 = icmp ugt i32 %6, 1141899263
  br i1 %7, label %8, label %14

8:                                                ; preds = %2
  %9 = tail call double @llvm.copysign.f64(double 0x3FF921FB54442D18, double %1)
  %10 = tail call i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E5(ptr noundef %0, double noundef %1)
  %11 = and i64 %10, 9223372036854775807
  %12 = icmp ugt i64 %11, 9218868437227405312
  %13 = select i1 %12, double %1, double %9
  br label %84

14:                                               ; preds = %2
  %15 = icmp ult i32 %6, 1071382528
  br i1 %15, label %16, label %18

16:                                               ; preds = %14
  %17 = icmp ugt i32 %6, 1044381695
  br i1 %17, label %41, label %84

18:                                               ; preds = %14
  %19 = tail call double @w2c_hermes_fabs(ptr noundef %0, double noundef %1)
  %20 = icmp ult i32 %6, 1072889856
  br i1 %20, label %21, label %32

21:                                               ; preds = %18
  %22 = icmp ult i32 %6, 1072037888
  br i1 %22, label %23, label %28

23:                                               ; preds = %21
  %24 = fadd double %19, %19
  %25 = fadd double %24, -1.000000e+00
  %26 = fadd double %19, 2.000000e+00
  %27 = fdiv double %25, %26
  br label %41

28:                                               ; preds = %21
  %29 = fadd double %19, -1.000000e+00
  %30 = fadd double %19, 1.000000e+00
  %31 = fdiv double %29, %30
  br label %41

32:                                               ; preds = %18
  %33 = icmp ult i32 %6, 1073971200
  br i1 %33, label %34, label %39

34:                                               ; preds = %32
  %35 = fadd double %19, -1.500000e+00
  %36 = fmul double %19, 1.500000e+00
  %37 = fadd double %36, 1.000000e+00
  %38 = fdiv double %35, %37
  br label %41

39:                                               ; preds = %32
  %40 = fdiv double -1.000000e+00, %19
  br label %41

41:                                               ; preds = %16, %39, %34, %28, %23
  %.0202 = phi i32 [ -8, %16 ], [ 0, %23 ], [ 8, %28 ], [ 16, %34 ], [ 24, %39 ]
  %.0 = phi double [ %1, %16 ], [ %27, %23 ], [ %31, %28 ], [ %38, %34 ], [ %40, %39 ]
  %42 = fmul double %.0, %.0
  %43 = fmul double %42, %42
  %44 = fmul double %43, 0x3FA2B4442C6A6C2F
  %45 = fsub double 0xBFADDE2D52DEFD9A, %44
  %46 = fmul double %43, %45
  %47 = fadd double %46, 0xBFB3B0F2AF749A6D
  %48 = fmul double %43, %47
  %49 = fadd double %48, 0xBFBC71C6FE231671
  %50 = fmul double %43, %49
  %51 = fadd double %50, 0xBFC999999998EBC4
  %52 = fmul double %43, %51
  %53 = fmul double %43, 0x3F90AD3AE322DA11
  %54 = fadd double %53, 0x3FA97B4B24760DEB
  %55 = fmul double %43, %54
  %56 = fadd double %55, 0x3FB10D66A0D03D51
  %57 = fmul double %43, %56
  %58 = fadd double %57, 0x3FB745CDC54C206E
  %59 = fmul double %43, %58
  %60 = fadd double %59, 0x3FC24924920083FF
  %61 = fmul double %43, %60
  %62 = fadd double %61, 0x3FD555555555550D
  %63 = fmul double %42, %62
  br i1 %15, label %64, label %68

64:                                               ; preds = %41
  %65 = fadd double %52, %63
  %66 = fmul double %.0, %65
  %67 = fsub double %.0, %66
  br label %84

68:                                               ; preds = %41
  %69 = add nsw i32 %.0202, 235952
  %70 = getelementptr inbounds i8, ptr %0, i64 40
  %71 = zext nneg i32 %69 to i64
  %72 = tail call double @f64_load(ptr noundef nonnull %70, i64 noundef %71)
  %73 = fadd double %52, %63
  %74 = fmul double %.0, %73
  %75 = add nsw i32 %.0202, 235984
  %76 = zext nneg i32 %75 to i64
  %77 = tail call double @f64_load(ptr noundef nonnull %70, i64 noundef %76)
  %78 = fsub double %74, %77
  %79 = fsub double %78, %.0
  %80 = fsub double %72, %79
  %81 = fneg double %80
  %82 = icmp slt i64 %3, 0
  %83 = select i1 %82, double %81, double %80
  br label %84

84:                                               ; preds = %68, %16, %64, %8
  %.0201 = phi double [ %13, %8 ], [ %67, %64 ], [ %83, %68 ], [ %1, %16 ]
  ret double %.0201
}

; 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_load(ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #2

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass