; 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_cos(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 double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.w2c_hermes, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !13
  store i32 %17, ptr %8, align 4, !tbaa !11
  store i32 16, ptr %9, align 4, !tbaa !11
  %18 = load i32, ptr %9, align 4, !tbaa !11
  %19 = load i32, ptr %8, align 4, !tbaa !11
  %20 = sub i32 %19, %18
  store i32 %20, ptr %8, align 4, !tbaa !11
  %21 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %21, ptr %5, align 4, !tbaa !11
  %22 = load i32, ptr %8, align 4, !tbaa !11
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  store i32 %22, ptr %24, align 8, !tbaa !13
  %25 = load double, ptr %4, align 8, !tbaa !9
  store double %25, ptr %13, align 8, !tbaa !9
  %26 = load double, ptr %13, align 8, !tbaa !9
  %27 = call i64 @i64_reinterpret_f64(double noundef %26)
  store i64 %27, ptr %11, align 8, !tbaa !19
  store i64 32, ptr %12, align 8, !tbaa !19
  %28 = load i64, ptr %12, align 8, !tbaa !19
  %29 = and i64 %28, 63
  %30 = load i64, ptr %11, align 8, !tbaa !19
  %31 = lshr i64 %30, %29
  store i64 %31, ptr %11, align 8, !tbaa !19
  %32 = load i64, ptr %11, align 8, !tbaa !19
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %8, align 4, !tbaa !11
  store i32 2147483647, ptr %9, align 4, !tbaa !11
  %34 = load i32, ptr %9, align 4, !tbaa !11
  %35 = load i32, ptr %8, align 4, !tbaa !11
  %36 = and i32 %35, %34
  store i32 %36, ptr %8, align 4, !tbaa !11
  %37 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %37, ptr %6, align 4, !tbaa !11
  store i32 1072243195, ptr %9, align 4, !tbaa !11
  %38 = load i32, ptr %8, align 4, !tbaa !11
  %39 = load i32, ptr %9, align 4, !tbaa !11
  %40 = icmp ule i32 %38, %39
  %41 = zext i1 %40 to i32
  store i32 %41, ptr %8, align 4, !tbaa !11
  %42 = load i32, ptr %8, align 4, !tbaa !11
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %60

44:                                               ; preds = %2
  store double 1.000000e+00, ptr %13, align 8, !tbaa !9
  %45 = load double, ptr %13, align 8, !tbaa !9
  store double %45, ptr %7, align 8, !tbaa !9
  %46 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %46, ptr %9, align 4, !tbaa !11
  store i32 1044816030, ptr %10, align 4, !tbaa !11
  %47 = load i32, ptr %9, align 4, !tbaa !11
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = icmp ult i32 %47, %48
  %50 = zext i1 %49 to i32
  store i32 %50, ptr %9, align 4, !tbaa !11
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %44
  br label %167

54:                                               ; preds = %44
  %55 = load double, ptr %4, align 8, !tbaa !9
  store double %55, ptr %13, align 8, !tbaa !9
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = load double, ptr %13, align 8, !tbaa !9
  %58 = load double, ptr %14, align 8, !tbaa !9
  %59 = call double @w2c_hermes_0x5F_cos(ptr noundef %56, double noundef %57, double noundef %58)
  store double %59, ptr %13, align 8, !tbaa !9
  br label %167

60:                                               ; preds = %2
  %61 = load double, ptr %4, align 8, !tbaa !9
  store double %61, ptr %13, align 8, !tbaa !9
  %62 = load double, ptr %4, align 8, !tbaa !9
  store double %62, ptr %14, align 8, !tbaa !9
  %63 = load double, ptr %14, align 8, !tbaa !9
  %64 = load double, ptr %13, align 8, !tbaa !9
  %65 = fsub double %64, %63
  store double %65, ptr %13, align 8, !tbaa !9
  %66 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %66, ptr %9, align 4, !tbaa !11
  store i32 2146435072, ptr %10, align 4, !tbaa !11
  %67 = load i32, ptr %9, align 4, !tbaa !11
  %68 = load i32, ptr %10, align 4, !tbaa !11
  %69 = icmp uge i32 %67, %68
  %70 = zext i1 %69 to i32
  store i32 %70, ptr %9, align 4, !tbaa !11
  %71 = load i32, ptr %9, align 4, !tbaa !11
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %60
  br label %167

74:                                               ; preds = %60
  %75 = load double, ptr %4, align 8, !tbaa !9
  store double %75, ptr %13, align 8, !tbaa !9
  %76 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %76, ptr %9, align 4, !tbaa !11
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = load double, ptr %13, align 8, !tbaa !9
  %79 = load i32, ptr %9, align 4, !tbaa !11
  %80 = call i32 @w2c_hermes_0x5F_rem_pio2(ptr noundef %77, double noundef %78, i32 noundef %79)
  store i32 %80, ptr %8, align 4, !tbaa !11
  store i32 3, ptr %9, align 4, !tbaa !11
  %81 = load i32, ptr %9, align 4, !tbaa !11
  %82 = load i32, ptr %8, align 4, !tbaa !11
  %83 = and i32 %82, %81
  store i32 %83, ptr %8, align 4, !tbaa !11
  %84 = load i32, ptr %8, align 4, !tbaa !11
  switch i32 %84, label %88 [
    i32 0, label %85
    i32 1, label %86
    i32 2, label %87
  ]

85:                                               ; preds = %74
  br label %89

86:                                               ; preds = %74
  br label %107

87:                                               ; preds = %74
  br label %128

88:                                               ; preds = %74
  br label %148

89:                                               ; preds = %85
  %90 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %90, ptr %8, align 4, !tbaa !11
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %8, align 4, !tbaa !11
  %94 = zext i32 %93 to i64
  %95 = call double @f64_load(ptr noundef %92, i64 noundef %94)
  store double %95, ptr %13, align 8, !tbaa !9
  %96 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %96, ptr %9, align 4, !tbaa !11
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %9, align 4, !tbaa !11
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 8
  %102 = call double @f64_load(ptr noundef %98, i64 noundef %101)
  store double %102, ptr %14, align 8, !tbaa !9
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = load double, ptr %13, align 8, !tbaa !9
  %105 = load double, ptr %14, align 8, !tbaa !9
  %106 = call double @w2c_hermes_0x5F_cos(ptr noundef %103, double noundef %104, double noundef %105)
  store double %106, ptr %13, align 8, !tbaa !9
  br label %167

107:                                              ; preds = %86
  %108 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %108, ptr %8, align 4, !tbaa !11
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %8, align 4, !tbaa !11
  %112 = zext i32 %111 to i64
  %113 = call double @f64_load(ptr noundef %110, i64 noundef %112)
  store double %113, ptr %13, align 8, !tbaa !9
  %114 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %114, ptr %9, align 4, !tbaa !11
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %9, align 4, !tbaa !11
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 8
  %120 = call double @f64_load(ptr noundef %116, i64 noundef %119)
  store double %120, ptr %14, align 8, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !11
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = load double, ptr %13, align 8, !tbaa !9
  %123 = load double, ptr %14, align 8, !tbaa !9
  %124 = load i32, ptr %10, align 4, !tbaa !11
  %125 = call double @w2c_hermes_0x5F_sin(ptr noundef %121, double noundef %122, double noundef %123, i32 noundef %124)
  store double %125, ptr %13, align 8, !tbaa !9
  %126 = load double, ptr %13, align 8, !tbaa !9
  %127 = fneg double %126
  store double %127, ptr %13, align 8, !tbaa !9
  br label %167

128:                                              ; preds = %87
  %129 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %129, ptr %8, align 4, !tbaa !11
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %8, align 4, !tbaa !11
  %133 = zext i32 %132 to i64
  %134 = call double @f64_load(ptr noundef %131, i64 noundef %133)
  store double %134, ptr %13, align 8, !tbaa !9
  %135 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %135, ptr %9, 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 %9, align 4, !tbaa !11
  %139 = zext i32 %138 to i64
  %140 = add i64 %139, 8
  %141 = call double @f64_load(ptr noundef %137, i64 noundef %140)
  store double %141, ptr %14, align 8, !tbaa !9
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = load double, ptr %13, align 8, !tbaa !9
  %144 = load double, ptr %14, align 8, !tbaa !9
  %145 = call double @w2c_hermes_0x5F_cos(ptr noundef %142, double noundef %143, double noundef %144)
  store double %145, ptr %13, align 8, !tbaa !9
  %146 = load double, ptr %13, align 8, !tbaa !9
  %147 = fneg double %146
  store double %147, ptr %13, align 8, !tbaa !9
  br label %167

148:                                              ; preds = %88
  %149 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %149, ptr %8, align 4, !tbaa !11
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %8, align 4, !tbaa !11
  %153 = zext i32 %152 to i64
  %154 = call double @f64_load(ptr noundef %151, i64 noundef %153)
  store double %154, ptr %13, align 8, !tbaa !9
  %155 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %155, ptr %9, align 4, !tbaa !11
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %9, align 4, !tbaa !11
  %159 = zext i32 %158 to i64
  %160 = add i64 %159, 8
  %161 = call double @f64_load(ptr noundef %157, i64 noundef %160)
  store double %161, ptr %14, align 8, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !11
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = load double, ptr %13, align 8, !tbaa !9
  %164 = load double, ptr %14, align 8, !tbaa !9
  %165 = load i32, ptr %10, align 4, !tbaa !11
  %166 = call double @w2c_hermes_0x5F_sin(ptr noundef %162, double noundef %163, double noundef %164, i32 noundef %165)
  store double %166, ptr %13, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %148, %128, %107, %89, %73, %54, %53
  %168 = load double, ptr %13, align 8, !tbaa !9
  store double %168, ptr %7, align 8, !tbaa !9
  %169 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %169, ptr %8, align 4, !tbaa !11
  store i32 16, ptr %9, align 4, !tbaa !11
  %170 = load i32, ptr %9, align 4, !tbaa !11
  %171 = load i32, ptr %8, align 4, !tbaa !11
  %172 = add i32 %171, %170
  store i32 %172, ptr %8, align 4, !tbaa !11
  %173 = load i32, ptr %8, align 4, !tbaa !11
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 3
  store i32 %173, ptr %175, align 8, !tbaa !13
  %176 = load double, ptr %7, align 8, !tbaa !9
  store double %176, ptr %13, align 8, !tbaa !9
  %177 = load double, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret double %177
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_0x5F_sin(ptr noundef, double noundef, double noundef, i32 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 = { 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, !12, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !15, i64 40, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!19 = !{!16, !16, 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_cos(ptr noundef %0, double noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -16
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %7 = lshr i64 %6, 32
  %8 = trunc nuw i64 %7 to i32
  %9 = and i32 %8, 2147483647
  %10 = icmp ult i32 %9, 1072243196
  br i1 %10, label %11, label %15

11:                                               ; preds = %2
  %12 = icmp ult i32 %9, 1044816030
  br i1 %12, label %36, label %13

13:                                               ; preds = %11
  %14 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %1, double noundef 0.000000e+00)
  br label %36

15:                                               ; preds = %2
  %16 = fsub double %1, %1
  %17 = icmp ugt i32 %9, 2146435071
  br i1 %17, label %36, label %18

18:                                               ; preds = %15
  %19 = tail call i32 @w2c_hermes_0x5F_rem_pio2(ptr noundef nonnull %0, double noundef %1, i32 noundef %5)
  %20 = and i32 %19, 3
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = zext i32 %5 to i64
  %23 = tail call double @f64_load(ptr noundef nonnull %21, i64 noundef %22)
  %24 = add nuw nsw i64 %22, 8
  %25 = tail call double @f64_load(ptr noundef nonnull %21, i64 noundef %24)
  switch i32 %20, label %default.unreachable [
    i32 0, label %26
    i32 1, label %28
    i32 2, label %31
    i32 3, label %34
  ]

26:                                               ; preds = %18
  %27 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %23, double noundef %25)
  br label %36

28:                                               ; preds = %18
  %29 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %23, double noundef %25, i32 noundef 1)
  %30 = fneg double %29
  br label %36

31:                                               ; preds = %18
  %32 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %23, double noundef %25)
  %33 = fneg double %32
  br label %36

default.unreachable:                              ; preds = %18
  unreachable

34:                                               ; preds = %18
  %35 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %23, double noundef %25, i32 noundef 1)
  br label %36

36:                                               ; preds = %15, %11, %34, %31, %28, %26, %13
  %.0 = phi double [ 1.000000e+00, %11 ], [ %14, %13 ], [ %16, %15 ], [ %35, %34 ], [ %33, %31 ], [ %30, %28 ], [ %27, %26 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret double %.0
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_0x5F_sin(ptr noundef, double noundef, double noundef, i32 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" }

!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, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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