; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (nonlinear)

; 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.nonlinear = type { i32, i32, i32, double, double, double, i16, i32, i32, i32, ptr, i16, i16, i32, i32, i32, i32, i32, i16, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i16, [2048 x i8] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [53 x i8], align 1
@__func__.nonlinear_hmcode_window_nfw = external hidden unnamed_addr constant [28 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind
declare double @log(double noundef) #2

; Function Attrs: nounwind
declare double @sin(double noundef) #2

; Function Attrs: nounwind
declare double @cos(double noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @nonlinear_hmcode_window_nfw(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #3 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca [2048 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca [2048 x i8], align 16
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  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
  %25 = load double, ptr %8, align 8, !tbaa !9
  %26 = load double, ptr %9, align 8, !tbaa !9
  %27 = fmul double %25, %26
  %28 = load double, ptr %10, align 8, !tbaa !9
  %29 = fdiv double %27, %28
  store double %29, ptr %16, align 8, !tbaa !9
  %30 = load double, ptr %16, align 8, !tbaa !9
  %31 = load double, ptr %10, align 8, !tbaa !9
  %32 = fadd double 1.000000e+00, %31
  %33 = fmul double %30, %32
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.nonlinear, ptr %34, i32 0, i32 45
  %36 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  %37 = call i32 @sine_integral(double noundef %33, ptr noundef %13, ptr noundef %36)
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %48

39:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #4
  %40 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.nonlinear, ptr %41, i32 0, i32 45
  %43 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %40, ptr noundef @.str.4, ptr noundef @.str.215, ptr noundef %43)
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nonlinear, ptr %44, i32 0, i32 45
  %46 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  %47 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %46, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4117, ptr noundef %47)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %139

48:                                               ; preds = %5
  %49 = load double, ptr %16, align 8, !tbaa !9
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.nonlinear, ptr %50, i32 0, i32 45
  %52 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %53 = call i32 @sine_integral(double noundef %49, ptr noundef %12, ptr noundef %52)
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %64

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #4
  %56 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nonlinear, ptr %57, i32 0, i32 45
  %59 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %56, ptr noundef @.str.4, ptr noundef @.str.216, ptr noundef %59)
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.nonlinear, ptr %60, i32 0, i32 45
  %62 = getelementptr inbounds [2048 x i8], ptr %61, i64 0, i64 0
  %63 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %62, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4124, ptr noundef %63)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %139

64:                                               ; preds = %48
  %65 = load double, ptr %16, align 8, !tbaa !9
  %66 = load double, ptr %10, align 8, !tbaa !9
  %67 = fadd double 1.000000e+00, %66
  %68 = fmul double %65, %67
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.nonlinear, ptr %69, i32 0, i32 45
  %71 = getelementptr inbounds [2048 x i8], ptr %70, i64 0, i64 0
  %72 = call i32 @cosine_integral(double noundef %68, ptr noundef %15, ptr noundef %71)
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %83

74:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #4
  %75 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.nonlinear, ptr %76, i32 0, i32 45
  %78 = getelementptr inbounds [2048 x i8], ptr %77, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %75, ptr noundef @.str.4, ptr noundef @.str.217, ptr noundef %78)
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.nonlinear, ptr %79, i32 0, i32 45
  %81 = getelementptr inbounds [2048 x i8], ptr %80, i64 0, i64 0
  %82 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %81, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4131, ptr noundef %82)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %139

83:                                               ; preds = %64
  %84 = load double, ptr %16, align 8, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.nonlinear, ptr %85, i32 0, i32 45
  %87 = getelementptr inbounds [2048 x i8], ptr %86, i64 0, i64 0
  %88 = call i32 @cosine_integral(double noundef %84, ptr noundef %14, ptr noundef %87)
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %90, label %99

90:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #4
  %91 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.nonlinear, ptr %92, i32 0, i32 45
  %94 = getelementptr inbounds [2048 x i8], ptr %93, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %91, ptr noundef @.str.4, ptr noundef @.str.218, ptr noundef %94)
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.nonlinear, ptr %95, i32 0, i32 45
  %97 = getelementptr inbounds [2048 x i8], ptr %96, i64 0, i64 0
  %98 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %97, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4138, ptr noundef %98)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #4
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %139

99:                                               ; preds = %83
  %100 = load double, ptr %16, align 8, !tbaa !9
  %101 = call double @cos(double noundef %100) #4
  %102 = load double, ptr %15, align 8, !tbaa !9
  %103 = load double, ptr %14, align 8, !tbaa !9
  %104 = fsub double %102, %103
  %105 = fmul double %101, %104
  store double %105, ptr %17, align 8, !tbaa !9
  %106 = load double, ptr %16, align 8, !tbaa !9
  %107 = call double @sin(double noundef %106) #4
  %108 = load double, ptr %13, align 8, !tbaa !9
  %109 = load double, ptr %12, align 8, !tbaa !9
  %110 = fsub double %108, %109
  %111 = fmul double %107, %110
  store double %111, ptr %18, align 8, !tbaa !9
  %112 = load double, ptr %16, align 8, !tbaa !9
  %113 = load double, ptr %10, align 8, !tbaa !9
  %114 = fmul double %112, %113
  %115 = call double @sin(double noundef %114) #4
  %116 = load double, ptr %16, align 8, !tbaa !9
  %117 = load double, ptr %10, align 8, !tbaa !9
  %118 = fadd double 1.000000e+00, %117
  %119 = fmul double %116, %118
  %120 = fdiv double %115, %119
  store double %120, ptr %19, align 8, !tbaa !9
  %121 = load double, ptr %17, align 8, !tbaa !9
  %122 = load double, ptr %18, align 8, !tbaa !9
  %123 = fadd double %121, %122
  %124 = load double, ptr %19, align 8, !tbaa !9
  %125 = fsub double %123, %124
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  store double %125, ptr %126, align 8, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = load double, ptr %10, align 8, !tbaa !9
  %130 = fadd double 1.000000e+00, %129
  %131 = call double @log(double noundef %130) #4
  %132 = load double, ptr %10, align 8, !tbaa !9
  %133 = load double, ptr %10, align 8, !tbaa !9
  %134 = fadd double 1.000000e+00, %133
  %135 = fdiv double %132, %134
  %136 = fsub double %131, %135
  %137 = fdiv double %128, %136
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  store double %137, ptr %138, align 8, !tbaa !9
  store i32 0, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %139

139:                                              ; preds = %99, %90, %74, %55, %39
  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
  %140 = load i32, ptr %6, align 4
  ret i32 %140
}

declare i32 @sine_integral(double noundef, ptr noundef, ptr noundef) #1

declare i32 @cosine_integral(double noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "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 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}


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

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [53 x i8], align 1
@__func__.nonlinear_hmcode_window_nfw = external hidden unnamed_addr constant [28 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_hmcode_window_nfw(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #3 {
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %14 = fmul double %1, %2
  %15 = fdiv double %14, %3
  %16 = fadd double %3, 1.000000e+00
  %17 = fmul double %15, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 266
  %19 = call i32 @sine_integral(double noundef %17, ptr noundef nonnull %7, ptr noundef nonnull %18) #4
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %22

21:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.215, ptr noundef nonnull %18) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4117, ptr noundef nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #4
  br label %60

22:                                               ; preds = %5
  %23 = call i32 @sine_integral(double noundef %15, ptr noundef nonnull %6, ptr noundef nonnull %18) #4
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.216, ptr noundef nonnull %18) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4124, ptr noundef nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #4
  br label %60

26:                                               ; preds = %22
  %27 = call i32 @cosine_integral(double noundef %17, ptr noundef nonnull %9, ptr noundef nonnull %18) #4
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.217, ptr noundef nonnull %18) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4131, ptr noundef nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #4
  br label %60

30:                                               ; preds = %26
  %31 = call i32 @cosine_integral(double noundef %15, ptr noundef nonnull %8, ptr noundef nonnull %18) #4
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.218, ptr noundef nonnull %18) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_window_nfw, i32 noundef 4138, ptr noundef nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #4
  br label %60

34:                                               ; preds = %30
  %35 = call double @cos(double noundef %15) #4
  %36 = load double, ptr %9, align 8, !tbaa !5
  %37 = load double, ptr %8, align 8, !tbaa !5
  %38 = fsub double %36, %37
  %39 = fmul double %35, %38
  %40 = call double @sin(double noundef %15) #4
  %41 = load double, ptr %7, align 8, !tbaa !5
  %42 = load double, ptr %6, align 8, !tbaa !5
  %43 = fsub double %41, %42
  %44 = fmul double %40, %43
  %45 = fmul double %15, %3
  %46 = call double @sin(double noundef %45) #4
  %47 = fadd double %39, %44
  %48 = call double @log(double noundef %16) #4
  %49 = insertelement <2 x double> poison, double %46, i64 0
  %50 = insertelement <2 x double> %49, double %3, i64 1
  %51 = insertelement <2 x double> poison, double %17, i64 0
  %52 = insertelement <2 x double> %51, double %16, i64 1
  %53 = fdiv <2 x double> %50, %52
  %54 = insertelement <2 x double> poison, double %47, i64 0
  %55 = insertelement <2 x double> %54, double %48, i64 1
  %56 = fsub <2 x double> %55, %53
  %57 = extractelement <2 x double> %56, i64 0
  %58 = extractelement <2 x double> %56, i64 1
  %59 = fdiv double %57, %58
  store double %59, ptr %4, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %34, %33, %29, %25, %21
  %.0 = phi i32 [ 1, %21 ], [ 1, %25 ], [ 1, %29 ], [ 1, %33 ], [ 0, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret i32 %.0
}

declare i32 @sine_integral(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @cosine_integral(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nounwind willreturn memory(write) "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 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass