; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/algorithm/src (dft)

; 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.SIMPLE_MAT = type { i32, i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 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

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @hypercv_dft_frespectrum(ptr noundef %0, ptr noundef %1) #5 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %2
  br label %25

21:                                               ; preds = %2
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

25:                                               ; preds = %20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  br label %33

29:                                               ; preds = %25
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

33:                                               ; preds = %28
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !9
  %40 = icmp eq i32 %36, %39
  br i1 %40, label %41, label %50

41:                                               ; preds = %33
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !12
  %48 = icmp eq i32 %44, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  br label %54

50:                                               ; preds = %41, %33
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !9
  store i32 %57, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !12
  store i32 %60, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %61, i32 0, i32 5
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  store ptr %63, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !14
  store ptr %66, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !13
  br label %67

67:                                               ; preds = %195, %54
  %68 = load i32, ptr %13, align 4, !tbaa !13
  %69 = load i32, ptr %5, align 4, !tbaa !13
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %198

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !13
  br label %73

73:                                               ; preds = %191, %72
  %74 = load i32, ptr %15, align 4, !tbaa !13
  %75 = load i32, ptr %6, align 4, !tbaa !13
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %194

78:                                               ; preds = %73
  store float 0.000000e+00, ptr %9, align 4, !tbaa !15
  store float 0.000000e+00, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !13
  br label %79

79:                                               ; preds = %163, %78
  %80 = load i32, ptr %16, align 4, !tbaa !13
  %81 = load i32, ptr %5, align 4, !tbaa !13
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %166

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %85

85:                                               ; preds = %159, %84
  %86 = load i32, ptr %17, align 4, !tbaa !13
  %87 = load i32, ptr %6, align 4, !tbaa !13
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %162

90:                                               ; preds = %85
  %91 = load i32, ptr %13, align 4, !tbaa !13
  %92 = sitofp i32 %91 to float
  %93 = load i32, ptr %16, align 4, !tbaa !13
  %94 = sitofp i32 %93 to float
  %95 = fmul float %92, %94
  %96 = load i32, ptr %5, align 4, !tbaa !13
  %97 = sitofp i32 %96 to float
  %98 = fdiv float %95, %97
  %99 = load i32, ptr %15, align 4, !tbaa !13
  %100 = sitofp i32 %99 to float
  %101 = load i32, ptr %17, align 4, !tbaa !13
  %102 = sitofp i32 %101 to float
  %103 = fmul float %100, %102
  %104 = load i32, ptr %6, align 4, !tbaa !13
  %105 = sitofp i32 %104 to float
  %106 = fdiv float %103, %105
  %107 = fadd float %98, %106
  store float %107, ptr %11, align 4, !tbaa !15
  %108 = load i32, ptr %16, align 4, !tbaa !13
  %109 = load i32, ptr %17, align 4, !tbaa !13
  %110 = add nsw i32 %108, %109
  %111 = srem i32 %110, 2
  %112 = icmp eq i32 %111, 0
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, i32 1, i32 -1
  store i32 %114, ptr %12, align 4, !tbaa !13
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load i32, ptr %16, align 4, !tbaa !13
  %117 = load i32, ptr %6, align 4, !tbaa !13
  %118 = mul nsw i32 %116, %117
  %119 = load i32, ptr %17, align 4, !tbaa !13
  %120 = add nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %115, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !17
  %124 = zext i8 %123 to i32
  %125 = sitofp i32 %124 to double
  %126 = load float, ptr %11, align 4, !tbaa !15
  %127 = fpext float %126 to double
  %128 = fmul double 0xC01921FB4D12D84A, %127
  %129 = call double @cos(double noundef %128) #7
  %130 = fmul double %125, %129
  %131 = load i32, ptr %12, align 4, !tbaa !13
  %132 = sitofp i32 %131 to double
  %133 = load float, ptr %9, align 4, !tbaa !15
  %134 = fpext float %133 to double
  %135 = call double @llvm.fmuladd.f64(double %130, double %132, double %134)
  %136 = fptrunc double %135 to float
  store float %136, ptr %9, align 4, !tbaa !15
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = load i32, ptr %16, align 4, !tbaa !13
  %139 = load i32, ptr %6, align 4, !tbaa !13
  %140 = mul nsw i32 %138, %139
  %141 = load i32, ptr %17, align 4, !tbaa !13
  %142 = add nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i8, ptr %137, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !17
  %146 = zext i8 %145 to i32
  %147 = sitofp i32 %146 to double
  %148 = load float, ptr %11, align 4, !tbaa !15
  %149 = fpext float %148 to double
  %150 = fmul double 0xC01921FB4D12D84A, %149
  %151 = call double @sin(double noundef %150) #7
  %152 = fmul double %147, %151
  %153 = load i32, ptr %12, align 4, !tbaa !13
  %154 = sitofp i32 %153 to double
  %155 = load float, ptr %10, align 4, !tbaa !15
  %156 = fpext float %155 to double
  %157 = call double @llvm.fmuladd.f64(double %152, double %154, double %156)
  %158 = fptrunc double %157 to float
  store float %158, ptr %10, align 4, !tbaa !15
  br label %159

159:                                              ; preds = %90
  %160 = load i32, ptr %17, align 4, !tbaa !13
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %17, align 4, !tbaa !13
  br label %85, !llvm.loop !18

162:                                              ; preds = %89
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %16, align 4, !tbaa !13
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %16, align 4, !tbaa !13
  br label %79, !llvm.loop !20

166:                                              ; preds = %83
  %167 = load float, ptr %9, align 4, !tbaa !15
  %168 = load float, ptr %9, align 4, !tbaa !15
  %169 = load float, ptr %10, align 4, !tbaa !15
  %170 = load float, ptr %10, align 4, !tbaa !15
  %171 = fmul float %169, %170
  %172 = call float @llvm.fmuladd.f32(float %167, float %168, float %171)
  %173 = fpext float %172 to double
  %174 = call double @sqrt(double noundef %173) #7
  %175 = load i32, ptr %5, align 4, !tbaa !13
  %176 = load i32, ptr %6, align 4, !tbaa !13
  %177 = mul nsw i32 %175, %176
  %178 = sitofp i32 %177 to double
  %179 = call double @sqrt(double noundef %178) #7
  %180 = fdiv double %174, %179
  %181 = fptrunc double %180 to float
  %182 = call zeroext i8 @saturate_cast_float2uchar(float noundef %181)
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load i32, ptr %13, align 4, !tbaa !13
  %185 = load i32, ptr %6, align 4, !tbaa !13
  %186 = mul nsw i32 %184, %185
  %187 = load i32, ptr %15, align 4, !tbaa !13
  %188 = add nsw i32 %186, %187
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i8, ptr %183, i64 %189
  store i8 %182, ptr %190, align 1, !tbaa !17
  br label %191

191:                                              ; preds = %166
  %192 = load i32, ptr %15, align 4, !tbaa !13
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %15, align 4, !tbaa !13
  br label %73, !llvm.loop !21

194:                                              ; preds = %77
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %13, align 4, !tbaa !13
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %13, align 4, !tbaa !13
  br label %67, !llvm.loop !22

198:                                              ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @saturate_cast_float2uchar(float noundef) #5

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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 = { noreturn 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 "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { noreturn nounwind }
attributes #7 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


; 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 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(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: nounwind uwtable
define dso_local void @hypercv_dft_frespectrum(ptr noundef readonly %0, ptr noundef readonly %1) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %7

3:                                                ; preds = %2
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

7:                                                ; preds = %2
  %.not63 = icmp eq ptr %1, null
  br i1 %.not63, label %8, label %12

8:                                                ; preds = %7
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

12:                                               ; preds = %7
  %13 = load i32, ptr %0, align 8, !tbaa !5
  %14 = load i32, ptr %1, align 8, !tbaa !5
  %15 = icmp eq i32 %13, %14
  br i1 %15, label %16, label %22

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp eq i32 %18, %20
  br i1 %21, label %26, label %22

22:                                               ; preds = %16, %12
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

26:                                               ; preds = %16
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = icmp sgt i32 %13, 0
  br i1 %31, label %.preheader65.lr.ph, label %._crit_edge83

.preheader65.lr.ph:                               ; preds = %26
  %32 = icmp sgt i32 %18, 0
  %33 = uitofp nneg i32 %13 to float
  %34 = sitofp i32 %18 to float
  %35 = mul nsw i32 %18, %13
  %36 = sitofp i32 %35 to double
  br i1 %32, label %.preheader65.us.us.preheader, label %._crit_edge83

.preheader65.us.us.preheader:                     ; preds = %.preheader65.lr.ph
  %37 = zext nneg i32 %18 to i64
  %wide.trip.count102 = zext nneg i32 %13 to i64
  br label %.preheader65.us.us

.preheader65.us.us:                               ; preds = %.preheader65.us.us.preheader, %._crit_edge.split.us.split.us.us.us
  %indvars.iv99 = phi i64 [ 0, %.preheader65.us.us.preheader ], [ %indvars.iv.next100, %._crit_edge.split.us.split.us.us.us ]
  %38 = trunc nuw nsw i64 %indvars.iv99 to i32
  %39 = uitofp nneg i32 %38 to float
  %40 = mul nuw nsw i64 %indvars.iv99, %37
  %invariant.gep105 = getelementptr inbounds i8, ptr %30, i64 %40
  br label %.preheader64.us.us.us.us

.preheader64.us.us.us.us:                         ; preds = %._crit_edge73.split.us.us.us.us.us, %.preheader65.us.us
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %._crit_edge73.split.us.us.us.us.us ], [ 0, %.preheader65.us.us ]
  %41 = trunc nuw nsw i64 %indvars.iv94 to i32
  %42 = uitofp nneg i32 %41 to float
  br label %.preheader.us.us.us.us.us

.preheader.us.us.us.us.us:                        ; preds = %._crit_edge.us.us.us.us.us, %.preheader64.us.us.us.us
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %._crit_edge.us.us.us.us.us ], [ 0, %.preheader64.us.us.us.us ]
  %43 = phi <2 x float> [ %76, %._crit_edge.us.us.us.us.us ], [ zeroinitializer, %.preheader64.us.us.us.us ]
  %44 = trunc nuw nsw i64 %indvars.iv89 to i32
  %45 = uitofp nneg i32 %44 to float
  %46 = fmul float %39, %45
  %47 = fdiv float %46, %33
  %48 = mul nuw nsw i64 %indvars.iv89, %37
  %invariant.gep = getelementptr inbounds i8, ptr %28, i64 %48
  br label %49

49:                                               ; preds = %49, %.preheader.us.us.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %49 ], [ 0, %.preheader.us.us.us.us.us ]
  %50 = phi <2 x float> [ %76, %49 ], [ %43, %.preheader.us.us.us.us.us ]
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  %52 = uitofp nneg i32 %51 to float
  %53 = fmul float %42, %52
  %54 = fdiv float %53, %34
  %55 = fadd float %47, %54
  %56 = add nuw nsw i64 %indvars.iv, %indvars.iv89
  %57 = and i64 %56, 1
  %58 = icmp eq i64 %57, 0
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
  %59 = load i8, ptr %gep, align 1, !tbaa !13
  %60 = fpext float %55 to double
  %61 = fmul double %60, 0xC01921FB4D12D84A
  %62 = tail call double @cos(double noundef %61) #7
  %63 = select i1 %58, double 1.000000e+00, double -1.000000e+00
  %64 = fpext <2 x float> %50 to <2 x double>
  %65 = load i8, ptr %gep, align 1, !tbaa !13
  %66 = tail call double @sin(double noundef %61) #7
  %67 = insertelement <2 x i8> poison, i8 %59, i64 0
  %68 = insertelement <2 x i8> %67, i8 %65, i64 1
  %69 = uitofp <2 x i8> %68 to <2 x double>
  %70 = insertelement <2 x double> poison, double %62, i64 0
  %71 = insertelement <2 x double> %70, double %66, i64 1
  %72 = fmul <2 x double> %71, %69
  %73 = insertelement <2 x double> poison, double %63, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> %74, <2 x double> %64)
  %76 = fptrunc <2 x double> %75 to <2 x float>
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %37
  br i1 %exitcond.not, label %._crit_edge.us.us.us.us.us, label %49, !llvm.loop !14

._crit_edge.us.us.us.us.us:                       ; preds = %49
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count102
  br i1 %exitcond93.not, label %._crit_edge73.split.us.us.us.us.us, label %.preheader.us.us.us.us.us, !llvm.loop !16

._crit_edge73.split.us.us.us.us.us:               ; preds = %._crit_edge.us.us.us.us.us
  %77 = fmul <2 x float> %76, %76
  %78 = extractelement <2 x float> %77, i64 1
  %79 = extractelement <2 x float> %76, i64 0
  %80 = tail call float @llvm.fmuladd.f32(float %79, float %79, float %78)
  %81 = fpext float %80 to double
  %sqrt.us.us.us.us = tail call double @llvm.sqrt.f64(double %81)
  %82 = tail call double @sqrt(double noundef %36) #7
  %83 = fdiv double %sqrt.us.us.us.us, %82
  %84 = fptrunc double %83 to float
  %85 = tail call zeroext i8 @saturate_cast_float2uchar(float noundef %84)
  %gep106 = getelementptr inbounds i8, ptr %invariant.gep105, i64 %indvars.iv94
  store i8 %85, ptr %gep106, align 1, !tbaa !13
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %37
  br i1 %exitcond98.not, label %._crit_edge.split.us.split.us.us.us, label %.preheader64.us.us.us.us, !llvm.loop !17

._crit_edge.split.us.split.us.us.us:              ; preds = %._crit_edge73.split.us.us.us.us.us
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count102
  br i1 %exitcond103.not, label %._crit_edge83, label %.preheader65.us.us, !llvm.loop !18

._crit_edge83:                                    ; preds = %._crit_edge.split.us.split.us.us.us, %.preheader65.lr.ph, %26
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @saturate_cast_float2uchar(float noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { nofree 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 #1 = { noreturn 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 24}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass