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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

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

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

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

43:                                               ; preds = %2
  %44 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %44, ptr %7, align 4, !tbaa !11
  store i32 1045430272, ptr %8, align 4, !tbaa !11
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = load i32, ptr %8, align 4, !tbaa !11
  %47 = icmp ult i32 %45, %46
  %48 = zext i1 %47 to i32
  store i32 %48, ptr %7, align 4, !tbaa !11
  %49 = load i32, ptr %7, align 4, !tbaa !11
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %43
  br label %172

52:                                               ; preds = %43
  %53 = load double, ptr %4, align 8, !tbaa !9
  store double %53, ptr %12, align 8, !tbaa !9
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !11
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = load double, ptr %12, align 8, !tbaa !9
  %56 = load double, ptr %13, align 8, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !11
  %58 = call double @w2c_hermes_0x5F_sin(ptr noundef %54, double noundef %55, double noundef %56, i32 noundef %57)
  store double %58, ptr %12, align 8, !tbaa !9
  %59 = load double, ptr %12, align 8, !tbaa !9
  store double %59, ptr %4, align 8, !tbaa !9
  br label %172

60:                                               ; preds = %2
  %61 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %61, ptr %7, align 4, !tbaa !11
  store i32 2146435072, ptr %8, align 4, !tbaa !11
  %62 = load i32, ptr %7, align 4, !tbaa !11
  %63 = load i32, ptr %8, align 4, !tbaa !11
  %64 = icmp uge i32 %62, %63
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %7, align 4, !tbaa !11
  %66 = load i32, ptr %7, align 4, !tbaa !11
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %60
  %69 = load double, ptr %4, align 8, !tbaa !9
  store double %69, ptr %12, align 8, !tbaa !9
  %70 = load double, ptr %4, align 8, !tbaa !9
  store double %70, ptr %13, align 8, !tbaa !9
  %71 = load double, ptr %13, align 8, !tbaa !9
  %72 = load double, ptr %12, align 8, !tbaa !9
  %73 = fsub double %72, %71
  store double %73, ptr %12, align 8, !tbaa !9
  %74 = load double, ptr %12, align 8, !tbaa !9
  store double %74, ptr %4, align 8, !tbaa !9
  br label %172

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

86:                                               ; preds = %75
  br label %90

87:                                               ; preds = %75
  br label %110

88:                                               ; preds = %75
  br label %129

89:                                               ; preds = %75
  br label %151

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

110:                                              ; preds = %87
  %111 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %111, ptr %7, align 4, !tbaa !11
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %7, align 4, !tbaa !11
  %115 = zext i32 %114 to i64
  %116 = call double @f64_load(ptr noundef %113, i64 noundef %115)
  store double %116, ptr %12, align 8, !tbaa !9
  %117 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %117, ptr %8, align 4, !tbaa !11
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %8, align 4, !tbaa !11
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 8
  %123 = call double @f64_load(ptr noundef %119, i64 noundef %122)
  store double %123, ptr %13, align 8, !tbaa !9
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load double, ptr %12, align 8, !tbaa !9
  %126 = load double, ptr %13, align 8, !tbaa !9
  %127 = call double @w2c_hermes_0x5F_cos(ptr noundef %124, double noundef %125, double noundef %126)
  store double %127, ptr %12, align 8, !tbaa !9
  %128 = load double, ptr %12, align 8, !tbaa !9
  store double %128, ptr %4, align 8, !tbaa !9
  br label %172

129:                                              ; preds = %88
  %130 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %130, ptr %7, align 4, !tbaa !11
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %7, align 4, !tbaa !11
  %134 = zext i32 %133 to i64
  %135 = call double @f64_load(ptr noundef %132, i64 noundef %134)
  store double %135, ptr %12, align 8, !tbaa !9
  %136 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %136, ptr %8, align 4, !tbaa !11
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %8, align 4, !tbaa !11
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 8
  %142 = call double @f64_load(ptr noundef %138, i64 noundef %141)
  store double %142, ptr %13, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !11
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = load double, ptr %12, align 8, !tbaa !9
  %145 = load double, ptr %13, align 8, !tbaa !9
  %146 = load i32, ptr %9, align 4, !tbaa !11
  %147 = call double @w2c_hermes_0x5F_sin(ptr noundef %143, double noundef %144, double noundef %145, i32 noundef %146)
  store double %147, ptr %12, align 8, !tbaa !9
  %148 = load double, ptr %12, align 8, !tbaa !9
  %149 = fneg double %148
  store double %149, ptr %12, align 8, !tbaa !9
  %150 = load double, ptr %12, align 8, !tbaa !9
  store double %150, ptr %4, align 8, !tbaa !9
  br label %172

151:                                              ; preds = %89
  %152 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %152, ptr %7, align 4, !tbaa !11
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %7, align 4, !tbaa !11
  %156 = zext i32 %155 to i64
  %157 = call double @f64_load(ptr noundef %154, i64 noundef %156)
  store double %157, ptr %12, align 8, !tbaa !9
  %158 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %158, ptr %8, align 4, !tbaa !11
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %8, align 4, !tbaa !11
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 8
  %164 = call double @f64_load(ptr noundef %160, i64 noundef %163)
  store double %164, ptr %13, align 8, !tbaa !9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = load double, ptr %12, align 8, !tbaa !9
  %167 = load double, ptr %13, align 8, !tbaa !9
  %168 = call double @w2c_hermes_0x5F_cos(ptr noundef %165, double noundef %166, double noundef %167)
  store double %168, ptr %12, align 8, !tbaa !9
  %169 = load double, ptr %12, align 8, !tbaa !9
  %170 = fneg double %169
  store double %170, ptr %12, align 8, !tbaa !9
  %171 = load double, ptr %12, align 8, !tbaa !9
  store double %171, ptr %4, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %151, %129, %110, %90, %68, %52, %51
  %173 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %173, ptr %7, align 4, !tbaa !11
  store i32 16, ptr %8, align 4, !tbaa !11
  %174 = load i32, ptr %8, align 4, !tbaa !11
  %175 = load i32, ptr %7, align 4, !tbaa !11
  %176 = add i32 %175, %174
  store i32 %176, ptr %7, align 4, !tbaa !11
  %177 = load i32, ptr %7, align 4, !tbaa !11
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 3
  store i32 %177, ptr %179, align 8, !tbaa !13
  %180 = load double, ptr %4, align 8, !tbaa !9
  store double %180, ptr %12, align 8, !tbaa !9
  %181 = load double, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 %181
}

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

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

declare double @w2c_hermes_0x5F_cos(ptr noundef, double noundef, double noundef) #3

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_sin(ptr noundef %0, double noundef %1) local_unnamed_addr #1 {
  %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, 1045430272
  br i1 %12, label %37, label %13

13:                                               ; preds = %11
  %14 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %1, double noundef 0.000000e+00, i32 noundef 0) #3
  br label %37

15:                                               ; preds = %2
  %16 = icmp ugt i32 %9, 2146435071
  br i1 %16, label %17, label %19

17:                                               ; preds = %15
  %18 = fsub double %1, %1
  br label %37

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

27:                                               ; preds = %19
  %28 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %24, double noundef %26, i32 noundef 1) #3
  br label %37

29:                                               ; preds = %19
  %30 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %24, double noundef %26) #3
  br label %37

31:                                               ; preds = %19
  %32 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %24, double noundef %26, i32 noundef 1) #3
  %33 = fneg double %32
  br label %37

default.unreachable:                              ; preds = %19
  unreachable

34:                                               ; preds = %19
  %35 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %24, double noundef %26) #3
  %36 = fneg double %35
  br label %37

37:                                               ; preds = %11, %34, %31, %29, %27, %17, %13
  %.0 = phi double [ %1, %11 ], [ %14, %13 ], [ %18, %17 ], [ %36, %34 ], [ %33, %31 ], [ %30, %29 ], [ %28, %27 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret double %.0
}

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

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

declare double @w2c_hermes_0x5F_cos(ptr noundef, double noundef, double noundef) local_unnamed_addr #2

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

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

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