; 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"

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_acos(ptr noundef %0, double noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = 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 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  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 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  %20 = load double, ptr %4, align 8, !tbaa !9
  store double %20, ptr %16, align 8, !tbaa !9
  %21 = load double, ptr %16, align 8, !tbaa !9
  %22 = call i64 @i64_reinterpret_f64(double noundef %21)
  store i64 %22, ptr %12, align 8, !tbaa !13
  %23 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %23, ptr %6, align 8, !tbaa !13
  store i64 32, ptr %13, align 8, !tbaa !13
  %24 = load i64, ptr %13, align 8, !tbaa !13
  %25 = and i64 %24, 63
  %26 = load i64, ptr %12, align 8, !tbaa !13
  %27 = lshr i64 %26, %25
  store i64 %27, ptr %12, align 8, !tbaa !13
  %28 = load i64, ptr %12, align 8, !tbaa !13
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %9, align 4, !tbaa !11
  store i32 2147483647, ptr %10, align 4, !tbaa !11
  %30 = load i32, ptr %10, align 4, !tbaa !11
  %31 = load i32, ptr %9, align 4, !tbaa !11
  %32 = and i32 %31, %30
  store i32 %32, ptr %9, align 4, !tbaa !11
  %33 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %33, ptr %5, align 4, !tbaa !11
  store i32 1072693248, ptr %10, align 4, !tbaa !11
  %34 = load i32, ptr %9, align 4, !tbaa !11
  %35 = load i32, ptr %10, align 4, !tbaa !11
  %36 = icmp uge i32 %34, %35
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %9, align 4, !tbaa !11
  %38 = load i32, ptr %9, align 4, !tbaa !11
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %82

40:                                               ; preds = %2
  %41 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %41, ptr %12, align 8, !tbaa !13
  %42 = load i64, ptr %12, align 8, !tbaa !13
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %9, align 4, !tbaa !11
  %44 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %44, ptr %10, align 4, !tbaa !11
  store i32 1072693248, ptr %11, align 4, !tbaa !11
  %45 = load i32, ptr %11, align 4, !tbaa !11
  %46 = load i32, ptr %10, align 4, !tbaa !11
  %47 = sub i32 %46, %45
  store i32 %47, ptr %10, align 4, !tbaa !11
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = load i32, ptr %9, align 4, !tbaa !11
  %50 = or i32 %49, %48
  store i32 %50, ptr %9, align 4, !tbaa !11
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = icmp ne i32 %51, 0
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %9, align 4, !tbaa !11
  %55 = load i32, ptr %9, align 4, !tbaa !11
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %73

57:                                               ; preds = %40
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  store double 0x400921FB54442D18, ptr %17, align 8, !tbaa !9
  %58 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %58, ptr %14, align 8, !tbaa !13
  store i64 0, ptr %15, align 8, !tbaa !13
  %59 = load i64, ptr %14, align 8, !tbaa !13
  %60 = load i64, ptr %15, align 8, !tbaa !13
  %61 = icmp sge i64 %59, %60
  %62 = zext i1 %61 to i32
  %63 = sext i32 %62 to i64
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %11, align 4, !tbaa !11
  %65 = load i32, ptr %11, align 4, !tbaa !11
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %57
  %68 = load double, ptr %16, align 8, !tbaa !9
  br label %71

69:                                               ; preds = %57
  %70 = load double, ptr %17, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %69, %67
  %72 = phi double [ %68, %67 ], [ %70, %69 ]
  store double %72, ptr %16, align 8, !tbaa !9
  br label %227

73:                                               ; preds = %40
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %74 = load double, ptr %4, align 8, !tbaa !9
  store double %74, ptr %17, align 8, !tbaa !9
  %75 = load double, ptr %4, align 8, !tbaa !9
  store double %75, ptr %18, align 8, !tbaa !9
  %76 = load double, ptr %18, align 8, !tbaa !9
  %77 = load double, ptr %17, align 8, !tbaa !9
  %78 = fsub double %77, %76
  store double %78, ptr %17, align 8, !tbaa !9
  %79 = load double, ptr %17, align 8, !tbaa !9
  %80 = load double, ptr %16, align 8, !tbaa !9
  %81 = fdiv double %80, %79
  store double %81, ptr %16, align 8, !tbaa !9
  br label %227

82:                                               ; preds = %2
  %83 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %83, ptr %9, align 4, !tbaa !11
  store i32 1071644671, ptr %10, align 4, !tbaa !11
  %84 = load i32, ptr %9, align 4, !tbaa !11
  %85 = load i32, ptr %10, align 4, !tbaa !11
  %86 = icmp ule i32 %84, %85
  %87 = zext i1 %86 to i32
  store i32 %87, ptr %9, align 4, !tbaa !11
  %88 = load i32, ptr %9, align 4, !tbaa !11
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %123

90:                                               ; preds = %82
  store double 0x3FF921FB54442D18, ptr %16, align 8, !tbaa !9
  %91 = load double, ptr %16, align 8, !tbaa !9
  store double %91, ptr %7, align 8, !tbaa !9
  %92 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %92, ptr %10, align 4, !tbaa !11
  store i32 1012924417, ptr %11, align 4, !tbaa !11
  %93 = load i32, ptr %10, align 4, !tbaa !11
  %94 = load i32, ptr %11, align 4, !tbaa !11
  %95 = icmp ult i32 %93, %94
  %96 = zext i1 %95 to i32
  store i32 %96, ptr %10, align 4, !tbaa !11
  %97 = load i32, ptr %10, align 4, !tbaa !11
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %90
  br label %225

100:                                              ; preds = %90
  store double 0x3C91A62633145C07, ptr %16, align 8, !tbaa !9
  %101 = load double, ptr %4, align 8, !tbaa !9
  store double %101, ptr %17, align 8, !tbaa !9
  %102 = load double, ptr %4, align 8, !tbaa !9
  store double %102, ptr %18, align 8, !tbaa !9
  %103 = load double, ptr %4, align 8, !tbaa !9
  store double %103, ptr %19, align 8, !tbaa !9
  %104 = load double, ptr %19, align 8, !tbaa !9
  %105 = load double, ptr %18, align 8, !tbaa !9
  %106 = fmul double %105, %104
  store double %106, ptr %18, align 8, !tbaa !9
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load double, ptr %18, align 8, !tbaa !9
  %109 = call double @w2c_hermes_R(ptr noundef %107, double noundef %108)
  store double %109, ptr %18, align 8, !tbaa !9
  %110 = load double, ptr %18, align 8, !tbaa !9
  %111 = load double, ptr %17, align 8, !tbaa !9
  %112 = fmul double %111, %110
  store double %112, ptr %17, align 8, !tbaa !9
  %113 = load double, ptr %17, align 8, !tbaa !9
  %114 = load double, ptr %16, align 8, !tbaa !9
  %115 = fsub double %114, %113
  store double %115, ptr %16, align 8, !tbaa !9
  %116 = load double, ptr %4, align 8, !tbaa !9
  store double %116, ptr %17, align 8, !tbaa !9
  %117 = load double, ptr %17, align 8, !tbaa !9
  %118 = load double, ptr %16, align 8, !tbaa !9
  %119 = fsub double %118, %117
  store double %119, ptr %16, align 8, !tbaa !9
  store double 0x3FF921FB54442D18, ptr %17, align 8, !tbaa !9
  %120 = load double, ptr %17, align 8, !tbaa !9
  %121 = load double, ptr %16, align 8, !tbaa !9
  %122 = fadd double %121, %120
  store double %122, ptr %16, align 8, !tbaa !9
  br label %227

123:                                              ; preds = %82
  %124 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %124, ptr %12, align 8, !tbaa !13
  store i64 0, ptr %13, align 8, !tbaa !13
  %125 = load i64, ptr %12, align 8, !tbaa !13
  %126 = load i64, ptr %13, align 8, !tbaa !13
  %127 = icmp slt i64 %125, %126
  %128 = zext i1 %127 to i32
  %129 = sext i32 %128 to i64
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %9, align 4, !tbaa !11
  %131 = load i32, ptr %9, align 4, !tbaa !11
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %168

133:                                              ; preds = %123
  store double 0x3FF921FB54442D18, ptr %16, align 8, !tbaa !9
  %134 = load double, ptr %4, align 8, !tbaa !9
  store double %134, ptr %17, align 8, !tbaa !9
  store double 1.000000e+00, ptr %18, align 8, !tbaa !9
  %135 = load double, ptr %18, align 8, !tbaa !9
  %136 = load double, ptr %17, align 8, !tbaa !9
  %137 = fadd double %136, %135
  store double %137, ptr %17, align 8, !tbaa !9
  store double 5.000000e-01, ptr %18, align 8, !tbaa !9
  %138 = load double, ptr %18, align 8, !tbaa !9
  %139 = load double, ptr %17, align 8, !tbaa !9
  %140 = fmul double %139, %138
  store double %140, ptr %17, align 8, !tbaa !9
  %141 = load double, ptr %17, align 8, !tbaa !9
  store double %141, ptr %4, align 8, !tbaa !9
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = load double, ptr %17, align 8, !tbaa !9
  %144 = call double @w2c_hermes_sqrt(ptr noundef %142, double noundef %143)
  store double %144, ptr %17, align 8, !tbaa !9
  %145 = load double, ptr %17, align 8, !tbaa !9
  store double %145, ptr %7, align 8, !tbaa !9
  %146 = load double, ptr %7, align 8, !tbaa !9
  store double %146, ptr %18, align 8, !tbaa !9
  %147 = load double, ptr %4, align 8, !tbaa !9
  store double %147, ptr %19, align 8, !tbaa !9
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = load double, ptr %19, align 8, !tbaa !9
  %150 = call double @w2c_hermes_R(ptr noundef %148, double noundef %149)
  store double %150, ptr %19, align 8, !tbaa !9
  %151 = load double, ptr %19, align 8, !tbaa !9
  %152 = load double, ptr %18, align 8, !tbaa !9
  %153 = fmul double %152, %151
  store double %153, ptr %18, align 8, !tbaa !9
  store double 0xBC91A62633145C07, ptr %19, align 8, !tbaa !9
  %154 = load double, ptr %19, align 8, !tbaa !9
  %155 = load double, ptr %18, align 8, !tbaa !9
  %156 = fadd double %155, %154
  store double %156, ptr %18, align 8, !tbaa !9
  %157 = load double, ptr %18, align 8, !tbaa !9
  %158 = load double, ptr %17, align 8, !tbaa !9
  %159 = fadd double %158, %157
  store double %159, ptr %17, align 8, !tbaa !9
  %160 = load double, ptr %17, align 8, !tbaa !9
  %161 = load double, ptr %16, align 8, !tbaa !9
  %162 = fsub double %161, %160
  store double %162, ptr %16, align 8, !tbaa !9
  %163 = load double, ptr %16, align 8, !tbaa !9
  store double %163, ptr %4, align 8, !tbaa !9
  %164 = load double, ptr %4, align 8, !tbaa !9
  store double %164, ptr %17, align 8, !tbaa !9
  %165 = load double, ptr %17, align 8, !tbaa !9
  %166 = load double, ptr %16, align 8, !tbaa !9
  %167 = fadd double %166, %165
  store double %167, ptr %16, align 8, !tbaa !9
  br label %227

168:                                              ; preds = %123
  store double 1.000000e+00, ptr %16, align 8, !tbaa !9
  %169 = load double, ptr %4, align 8, !tbaa !9
  store double %169, ptr %17, align 8, !tbaa !9
  %170 = load double, ptr %17, align 8, !tbaa !9
  %171 = load double, ptr %16, align 8, !tbaa !9
  %172 = fsub double %171, %170
  store double %172, ptr %16, align 8, !tbaa !9
  store double 5.000000e-01, ptr %17, align 8, !tbaa !9
  %173 = load double, ptr %17, align 8, !tbaa !9
  %174 = load double, ptr %16, align 8, !tbaa !9
  %175 = fmul double %174, %173
  store double %175, ptr %16, align 8, !tbaa !9
  %176 = load double, ptr %16, align 8, !tbaa !9
  store double %176, ptr %7, align 8, !tbaa !9
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = load double, ptr %16, align 8, !tbaa !9
  %179 = call double @w2c_hermes_sqrt(ptr noundef %177, double noundef %178)
  store double %179, ptr %16, align 8, !tbaa !9
  %180 = load double, ptr %16, align 8, !tbaa !9
  store double %180, ptr %8, align 8, !tbaa !9
  %181 = load double, ptr %7, align 8, !tbaa !9
  store double %181, ptr %17, align 8, !tbaa !9
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = load double, ptr %17, align 8, !tbaa !9
  %184 = call double @w2c_hermes_R(ptr noundef %182, double noundef %183)
  store double %184, ptr %17, align 8, !tbaa !9
  %185 = load double, ptr %17, align 8, !tbaa !9
  %186 = load double, ptr %16, align 8, !tbaa !9
  %187 = fmul double %186, %185
  store double %187, ptr %16, align 8, !tbaa !9
  %188 = load double, ptr %7, align 8, !tbaa !9
  store double %188, ptr %17, align 8, !tbaa !9
  %189 = load double, ptr %8, align 8, !tbaa !9
  store double %189, ptr %18, align 8, !tbaa !9
  %190 = load double, ptr %18, align 8, !tbaa !9
  %191 = call i64 @i64_reinterpret_f64(double noundef %190)
  store i64 %191, ptr %14, align 8, !tbaa !13
  store i64 -4294967296, ptr %15, align 8, !tbaa !13
  %192 = load i64, ptr %15, align 8, !tbaa !13
  %193 = load i64, ptr %14, align 8, !tbaa !13
  %194 = and i64 %193, %192
  store i64 %194, ptr %14, align 8, !tbaa !13
  %195 = load i64, ptr %14, align 8, !tbaa !13
  %196 = call double @f64_reinterpret_i64(i64 noundef %195)
  store double %196, ptr %18, align 8, !tbaa !9
  %197 = load double, ptr %18, align 8, !tbaa !9
  store double %197, ptr %4, align 8, !tbaa !9
  %198 = load double, ptr %4, align 8, !tbaa !9
  store double %198, ptr %19, align 8, !tbaa !9
  %199 = load double, ptr %19, align 8, !tbaa !9
  %200 = load double, ptr %18, align 8, !tbaa !9
  %201 = fmul double %200, %199
  store double %201, ptr %18, align 8, !tbaa !9
  %202 = load double, ptr %18, align 8, !tbaa !9
  %203 = load double, ptr %17, align 8, !tbaa !9
  %204 = fsub double %203, %202
  store double %204, ptr %17, align 8, !tbaa !9
  %205 = load double, ptr %8, align 8, !tbaa !9
  store double %205, ptr %18, align 8, !tbaa !9
  %206 = load double, ptr %4, align 8, !tbaa !9
  store double %206, ptr %19, align 8, !tbaa !9
  %207 = load double, ptr %19, align 8, !tbaa !9
  %208 = load double, ptr %18, align 8, !tbaa !9
  %209 = fadd double %208, %207
  store double %209, ptr %18, align 8, !tbaa !9
  %210 = load double, ptr %18, align 8, !tbaa !9
  %211 = load double, ptr %17, align 8, !tbaa !9
  %212 = fdiv double %211, %210
  store double %212, ptr %17, align 8, !tbaa !9
  %213 = load double, ptr %17, align 8, !tbaa !9
  %214 = load double, ptr %16, align 8, !tbaa !9
  %215 = fadd double %214, %213
  store double %215, ptr %16, align 8, !tbaa !9
  %216 = load double, ptr %4, align 8, !tbaa !9
  store double %216, ptr %17, align 8, !tbaa !9
  %217 = load double, ptr %17, align 8, !tbaa !9
  %218 = load double, ptr %16, align 8, !tbaa !9
  %219 = fadd double %218, %217
  store double %219, ptr %16, align 8, !tbaa !9
  %220 = load double, ptr %16, align 8, !tbaa !9
  store double %220, ptr %4, align 8, !tbaa !9
  %221 = load double, ptr %4, align 8, !tbaa !9
  store double %221, ptr %17, align 8, !tbaa !9
  %222 = load double, ptr %17, align 8, !tbaa !9
  %223 = load double, ptr %16, align 8, !tbaa !9
  %224 = fadd double %223, %222
  store double %224, ptr %16, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %168, %99
  %226 = load double, ptr %16, align 8, !tbaa !9
  store double %226, ptr %7, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %225, %133, %100, %73, %71
  %228 = load double, ptr %16, align 8, !tbaa !9
  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 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 4, 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
  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 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %228
}

declare double @w2c_hermes_sqrt(ptr noundef, double noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_R(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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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_acos(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, 1072693247
  br i1 %7, label %8, label %18

8:                                                ; preds = %2
  %9 = trunc i64 %3 to i32
  %10 = add nsw i32 %6, -1072693248
  %11 = or i32 %10, %9
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %15

12:                                               ; preds = %8
  %13 = icmp sgt i64 %3, -1
  %14 = select i1 %13, double 0.000000e+00, double 0x400921FB54442D18
  br label %57

15:                                               ; preds = %8
  %16 = fsub double %1, %1
  %17 = fdiv double 0.000000e+00, %16
  br label %57

18:                                               ; preds = %2
  %19 = icmp ult i32 %6, 1071644672
  br i1 %19, label %20, label %29

20:                                               ; preds = %18
  %21 = icmp ult i32 %6, 1012924417
  br i1 %21, label %57, label %22

22:                                               ; preds = %20
  %23 = fmul double %1, %1
  %24 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %23)
  %25 = fmul double %24, %1
  %26 = fsub double 0x3C91A62633145C07, %25
  %27 = fsub double %26, %1
  %28 = fadd double %27, 0x3FF921FB54442D18
  br label %57

29:                                               ; preds = %18
  %30 = icmp slt i64 %3, 0
  br i1 %30, label %31, label %41

31:                                               ; preds = %29
  %32 = fadd double %1, 1.000000e+00
  %33 = fmul double %32, 5.000000e-01
  %34 = tail call double @w2c_hermes_sqrt(ptr noundef %0, double noundef %33) #3
  %35 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %33)
  %36 = fmul double %34, %35
  %37 = fadd double %36, 0xBC91A62633145C07
  %38 = fadd double %34, %37
  %39 = fsub double 0x3FF921FB54442D18, %38
  %40 = fadd double %39, %39
  br label %57

41:                                               ; preds = %29
  %42 = fsub double 1.000000e+00, %1
  %43 = fmul double %42, 5.000000e-01
  %44 = tail call double @w2c_hermes_sqrt(ptr noundef %0, double noundef %43) #3
  %45 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %43)
  %46 = fmul double %44, %45
  %47 = tail call i64 @i64_reinterpret_f64(double noundef %44)
  %48 = and i64 %47, -4294967296
  %49 = tail call double @f64_reinterpret_i64(i64 noundef %48)
  %50 = fmul double %49, %49
  %51 = fsub double %43, %50
  %52 = fadd double %44, %49
  %53 = fdiv double %51, %52
  %54 = fadd double %46, %53
  %55 = fadd double %49, %54
  %56 = fadd double %55, %55
  br label %57

57:                                               ; preds = %41, %20, %31, %22, %15, %12
  %.1 = phi double [ %14, %12 ], [ %17, %15 ], [ %28, %22 ], [ %40, %31 ], [ 0x3FF921FB54442D18, %20 ], [ %56, %41 ]
  ret double %.1
}

declare double @w2c_hermes_sqrt(ptr noundef, double noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_R(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 = { "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 = { 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 = { 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