; 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.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 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 uwtable
define dso_local void @hypercv_dft_uchar(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %29

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %29

25:                                               ; preds = %22
  %26 = load ptr, ptr %6, 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, %22, %3
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

33:                                               ; preds = %28
  %34 = load ptr, ptr %4, 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 %5, 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 %66

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

49:                                               ; preds = %41
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = icmp eq i32 %52, %55
  br i1 %56, label %57, label %66

57:                                               ; preds = %49
  %58 = load ptr, ptr %4, 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
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !12
  %64 = icmp eq i32 %60, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %57
  br label %70

66:                                               ; preds = %57, %49, %41, %33
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

70:                                               ; preds = %65
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %72, align 8, !tbaa !13
  %74 = icmp eq i32 %73, 4
  br i1 %74, label %75, label %81

75:                                               ; preds = %70
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !13
  %79 = icmp eq i32 %78, 4
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  br label %85

81:                                               ; preds = %75, %70
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

85:                                               ; preds = %80
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %86, i32 0, i32 3
  %88 = load i32, ptr %87, align 4, !tbaa !14
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 4, !tbaa !14
  %92 = icmp eq i32 %88, %91
  br i1 %92, label %93, label %107

93:                                               ; preds = %85
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !14
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %97, i32 0, i32 3
  %99 = load i32, ptr %98, align 4, !tbaa !14
  %100 = icmp eq i32 %96, %99
  br i1 %100, label %101, label %107

101:                                              ; preds = %93
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %103, align 4, !tbaa !14
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %101
  br label %111

107:                                              ; preds = %101, %93, %85
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #6
  unreachable

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 8, !tbaa !9
  store i32 %114, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !12
  store i32 %117, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %118, i32 0, i32 5
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  store ptr %120, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %121, i32 0, i32 5
  %123 = load ptr, ptr %122, align 8, !tbaa !16
  store ptr %123, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %124, i32 0, i32 5
  %126 = load ptr, ptr %125, align 8, !tbaa !16
  store ptr %126, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !15
  br label %127

127:                                              ; preds = %236, %111
  %128 = load i32, ptr %15, align 4, !tbaa !15
  %129 = load i32, ptr %10, align 4, !tbaa !15
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %239

132:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !15
  br label %133

133:                                              ; preds = %232, %132
  %134 = load i32, ptr %17, align 4, !tbaa !15
  %135 = load i32, ptr %11, align 4, !tbaa !15
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %235

138:                                              ; preds = %133
  store float 0.000000e+00, ptr %7, align 4, !tbaa !17
  store float 0.000000e+00, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !15
  br label %139

139:                                              ; preds = %210, %138
  %140 = load i32, ptr %18, align 4, !tbaa !15
  %141 = load i32, ptr %10, align 4, !tbaa !15
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %213

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !15
  br label %145

145:                                              ; preds = %206, %144
  %146 = load i32, ptr %19, align 4, !tbaa !15
  %147 = load i32, ptr %11, align 4, !tbaa !15
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %209

150:                                              ; preds = %145
  %151 = load i32, ptr %15, align 4, !tbaa !15
  %152 = sitofp i32 %151 to float
  %153 = load i32, ptr %18, align 4, !tbaa !15
  %154 = sitofp i32 %153 to float
  %155 = fmul float %152, %154
  %156 = load i32, ptr %10, align 4, !tbaa !15
  %157 = sitofp i32 %156 to float
  %158 = fdiv float %155, %157
  %159 = load i32, ptr %17, align 4, !tbaa !15
  %160 = sitofp i32 %159 to float
  %161 = load i32, ptr %19, align 4, !tbaa !15
  %162 = sitofp i32 %161 to float
  %163 = fmul float %160, %162
  %164 = load i32, ptr %11, align 4, !tbaa !15
  %165 = sitofp i32 %164 to float
  %166 = fdiv float %163, %165
  %167 = fadd float %158, %166
  store float %167, ptr %9, align 4, !tbaa !17
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  %169 = load i32, ptr %18, align 4, !tbaa !15
  %170 = load i32, ptr %11, align 4, !tbaa !15
  %171 = mul nsw i32 %169, %170
  %172 = load i32, ptr %19, align 4, !tbaa !15
  %173 = add nsw i32 %171, %172
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i8, ptr %168, i64 %174
  %176 = load i8, ptr %175, align 1, !tbaa !19
  %177 = zext i8 %176 to i32
  %178 = sitofp i32 %177 to double
  %179 = load float, ptr %9, align 4, !tbaa !17
  %180 = fpext float %179 to double
  %181 = fmul double 0xC01921FB4D12D84A, %180
  %182 = call double @cos(double noundef %181) #7
  %183 = load float, ptr %7, align 4, !tbaa !17
  %184 = fpext float %183 to double
  %185 = call double @llvm.fmuladd.f64(double %178, double %182, double %184)
  %186 = fptrunc double %185 to float
  store float %186, ptr %7, align 4, !tbaa !17
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  %188 = load i32, ptr %18, align 4, !tbaa !15
  %189 = load i32, ptr %11, align 4, !tbaa !15
  %190 = mul nsw i32 %188, %189
  %191 = load i32, ptr %19, align 4, !tbaa !15
  %192 = add nsw i32 %190, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %187, i64 %193
  %195 = load i8, ptr %194, align 1, !tbaa !19
  %196 = zext i8 %195 to i32
  %197 = sitofp i32 %196 to double
  %198 = load float, ptr %9, align 4, !tbaa !17
  %199 = fpext float %198 to double
  %200 = fmul double 0xC01921FB4D12D84A, %199
  %201 = call double @sin(double noundef %200) #7
  %202 = load float, ptr %8, align 4, !tbaa !17
  %203 = fpext float %202 to double
  %204 = call double @llvm.fmuladd.f64(double %197, double %201, double %203)
  %205 = fptrunc double %204 to float
  store float %205, ptr %8, align 4, !tbaa !17
  br label %206

206:                                              ; preds = %150
  %207 = load i32, ptr %19, align 4, !tbaa !15
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %19, align 4, !tbaa !15
  br label %145, !llvm.loop !20

209:                                              ; preds = %149
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %18, align 4, !tbaa !15
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %18, align 4, !tbaa !15
  br label %139, !llvm.loop !22

213:                                              ; preds = %143
  %214 = load float, ptr %7, align 4, !tbaa !17
  %215 = load ptr, ptr %14, align 8, !tbaa !5
  %216 = load i32, ptr %15, align 4, !tbaa !15
  %217 = load i32, ptr %11, align 4, !tbaa !15
  %218 = mul nsw i32 %216, %217
  %219 = load i32, ptr %17, align 4, !tbaa !15
  %220 = add nsw i32 %218, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %215, i64 %221
  store float %214, ptr %222, align 4, !tbaa !17
  %223 = load float, ptr %8, align 4, !tbaa !17
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = load i32, ptr %15, align 4, !tbaa !15
  %226 = load i32, ptr %11, align 4, !tbaa !15
  %227 = mul nsw i32 %225, %226
  %228 = load i32, ptr %17, align 4, !tbaa !15
  %229 = add nsw i32 %227, %228
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %224, i64 %230
  store float %223, ptr %231, align 4, !tbaa !17
  br label %232

232:                                              ; preds = %213
  %233 = load i32, ptr %17, align 4, !tbaa !15
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %17, align 4, !tbaa !15
  br label %133, !llvm.loop !23

235:                                              ; preds = %137
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %15, align 4, !tbaa !15
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %15, align 4, !tbaa !15
  br label %127, !llvm.loop !24

239:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void
}

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

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

; Function Attrs: nounwind
declare double @sin(double noundef) #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 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 "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 #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, !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 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 12}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 24}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 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: nounwind uwtable
define dso_local void @hypercv_dft_uchar(ptr noundef readonly %0, ptr noundef readonly %1, ptr noundef readonly %2) local_unnamed_addr #2 {
  %4 = icmp ne ptr %0, null
  %5 = icmp ne ptr %1, null
  %or.cond = and i1 %4, %5
  %6 = icmp ne ptr %2, null
  %or.cond3 = and i1 %or.cond, %6
  br i1 %or.cond3, label %11, label %7

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

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

15:                                               ; preds = %11
  %16 = load i32, ptr %2, align 8, !tbaa !5
  %17 = icmp eq i32 %12, %16
  br i1 %17, label %18, label %28

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %1, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp eq i32 %20, %22
  br i1 %23, label %24, label %28

24:                                               ; preds = %18
  %25 = getelementptr inbounds i8, ptr %2, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = icmp eq i32 %20, %26
  br i1 %27, label %32, label %28

28:                                               ; preds = %24, %18, %15, %11
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #5
  unreachable

32:                                               ; preds = %24
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !12
  %35 = icmp eq i32 %34, 4
  br i1 %35, label %36, label %40

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %2, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !12
  %39 = icmp eq i32 %38, 4
  br i1 %39, label %44, label %40

40:                                               ; preds = %36, %32
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #5
  unreachable

44:                                               ; preds = %36
  %45 = getelementptr inbounds i8, ptr %0, i64 12
  %46 = load i32, ptr %45, align 4, !tbaa !13
  %47 = getelementptr inbounds i8, ptr %1, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !13
  %49 = icmp eq i32 %46, %48
  br i1 %49, label %50, label %55

50:                                               ; preds = %44
  %51 = getelementptr inbounds i8, ptr %2, i64 12
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = icmp eq i32 %46, 1
  %54 = icmp eq i32 %52, 1
  %or.cond77 = and i1 %53, %54
  br i1 %or.cond77, label %59, label %55

55:                                               ; preds = %50, %44
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #5
  unreachable

59:                                               ; preds = %50
  %60 = getelementptr inbounds i8, ptr %0, i64 24
  %61 = load ptr, ptr %60, align 8, !tbaa !14
  %62 = getelementptr inbounds i8, ptr %2, i64 24
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %1, i64 24
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  %66 = icmp sgt i32 %12, 0
  br i1 %66, label %.preheader79.lr.ph, label %._crit_edge97

.preheader79.lr.ph:                               ; preds = %59
  %67 = icmp sgt i32 %20, 0
  %68 = uitofp nneg i32 %12 to float
  %69 = sitofp i32 %20 to float
  br i1 %67, label %.preheader79.us.us.preheader, label %._crit_edge97

.preheader79.us.us.preheader:                     ; preds = %.preheader79.lr.ph
  %70 = zext nneg i32 %20 to i64
  %wide.trip.count116 = zext nneg i32 %12 to i64
  br label %.preheader79.us.us

.preheader79.us.us:                               ; preds = %.preheader79.us.us.preheader, %._crit_edge.split.us.split.us.us.us
  %indvars.iv113 = phi i64 [ 0, %.preheader79.us.us.preheader ], [ %indvars.iv.next114, %._crit_edge.split.us.split.us.us.us ]
  %71 = trunc nuw nsw i64 %indvars.iv113 to i32
  %72 = uitofp nneg i32 %71 to float
  %73 = mul nuw nsw i64 %indvars.iv113, %70
  br label %.preheader78.us.us.us.us

.preheader78.us.us.us.us:                         ; preds = %._crit_edge87.split.us.us.us.us.us, %.preheader79.us.us
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %._crit_edge87.split.us.us.us.us.us ], [ 0, %.preheader79.us.us ]
  %74 = trunc nuw nsw i64 %indvars.iv108 to i32
  %75 = uitofp nneg i32 %74 to float
  br label %.preheader.us.us.us.us.us

.preheader.us.us.us.us.us:                        ; preds = %._crit_edge.us.us.us.us.us, %.preheader78.us.us.us.us
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %._crit_edge.us.us.us.us.us ], [ 0, %.preheader78.us.us.us.us ]
  %76 = phi <2 x float> [ %102, %._crit_edge.us.us.us.us.us ], [ zeroinitializer, %.preheader78.us.us.us.us ]
  %77 = trunc nuw nsw i64 %indvars.iv103 to i32
  %78 = uitofp nneg i32 %77 to float
  %79 = fmul float %72, %78
  %80 = fdiv float %79, %68
  %81 = mul nuw nsw i64 %indvars.iv103, %70
  %invariant.gep = getelementptr inbounds i8, ptr %61, i64 %81
  br label %82

82:                                               ; preds = %82, %.preheader.us.us.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %82 ], [ 0, %.preheader.us.us.us.us.us ]
  %83 = phi <2 x float> [ %102, %82 ], [ %76, %.preheader.us.us.us.us.us ]
  %84 = trunc nuw nsw i64 %indvars.iv to i32
  %85 = uitofp nneg i32 %84 to float
  %86 = fmul float %75, %85
  %87 = fdiv float %86, %69
  %88 = fadd float %80, %87
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
  %89 = load i8, ptr %gep, align 1, !tbaa !15
  %90 = fpext float %88 to double
  %91 = fmul double %90, 0xC01921FB4D12D84A
  %92 = tail call double @cos(double noundef %91) #6
  %93 = fpext <2 x float> %83 to <2 x double>
  %94 = load i8, ptr %gep, align 1, !tbaa !15
  %95 = tail call double @sin(double noundef %91) #6
  %96 = insertelement <2 x i8> poison, i8 %89, i64 0
  %97 = insertelement <2 x i8> %96, i8 %94, i64 1
  %98 = uitofp <2 x i8> %97 to <2 x double>
  %99 = insertelement <2 x double> poison, double %92, i64 0
  %100 = insertelement <2 x double> %99, double %95, i64 1
  %101 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %98, <2 x double> %100, <2 x double> %93)
  %102 = fptrunc <2 x double> %101 to <2 x float>
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %70
  br i1 %exitcond.not, label %._crit_edge.us.us.us.us.us, label %82, !llvm.loop !16

._crit_edge.us.us.us.us.us:                       ; preds = %82
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count116
  br i1 %exitcond107.not, label %._crit_edge87.split.us.us.us.us.us, label %.preheader.us.us.us.us.us, !llvm.loop !18

._crit_edge87.split.us.us.us.us.us:               ; preds = %._crit_edge.us.us.us.us.us
  %103 = add nuw nsw i64 %indvars.iv108, %73
  %104 = getelementptr inbounds float, ptr %65, i64 %103
  %105 = extractelement <2 x float> %102, i64 0
  store float %105, ptr %104, align 4, !tbaa !19
  %106 = getelementptr inbounds float, ptr %63, i64 %103
  %107 = extractelement <2 x float> %102, i64 1
  store float %107, ptr %106, align 4, !tbaa !19
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next109, %70
  br i1 %exitcond112.not, label %._crit_edge.split.us.split.us.us.us, label %.preheader78.us.us.us.us, !llvm.loop !21

._crit_edge.split.us.split.us.us.us:              ; preds = %._crit_edge87.split.us.us.us.us.us
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count116
  br i1 %exitcond117.not, label %._crit_edge97, label %.preheader79.us.us, !llvm.loop !22

._crit_edge97:                                    ; preds = %._crit_edge.split.us.split.us.us.us, %.preheader79.lr.ph, %59
  ret void
}

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

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

; 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>) #4

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


; Effective O3 passes: 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