; LLVM IR from kkumatani/distant_speech_recognition :: btk20_src/matrix/blas1_c.ll (Z5csrotiPSt7complexIfEiS1_iff)

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

%"class.std::complex" = type { { float, float } }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5csrotiPSt7complexIfEiS1_iff(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, float noundef %5, float noundef %6) #5 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"class.std::complex", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::complex", align 4
  %21 = alloca %"class.std::complex", align 4
  %22 = alloca %"class.std::complex", align 4
  %23 = alloca %"class.std::complex", align 4
  %24 = alloca %"class.std::complex", align 4
  %25 = alloca %"class.std::complex", align 4
  %26 = alloca %"class.std::complex", align 4
  %27 = alloca %"class.std::complex", align 4
  %28 = alloca %"class.std::complex", align 4
  %29 = alloca %"class.std::complex", align 4
  %30 = alloca %"class.std::complex", align 4
  %31 = alloca %"class.std::complex", align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !5
  store float %5, ptr %13, align 4, !tbaa !11
  store float %6, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = icmp sle i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %7
  store i32 1, ptr %19, align 4
  br label %160

35:                                               ; preds = %7
  %36 = load i32, ptr %10, align 4, !tbaa !5
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %87

38:                                               ; preds = %35
  %39 = load i32, ptr %12, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %87

41:                                               ; preds = %38
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %83, %41
  %43 = load i32, ptr %16, align 4, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %46, label %86

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %47 = load ptr, ptr %9, align 8, !tbaa !9
  %48 = load i32, ptr %16, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %"class.std::complex", ptr %47, i64 %49
  %51 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(8) %50)
  %52 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  store <2 x float> %51, ptr %52, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %53 = load ptr, ptr %11, align 8, !tbaa !9
  %54 = load i32, ptr %16, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %"class.std::complex", ptr %53, i64 %55
  %57 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(8) %56)
  %58 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  store <2 x float> %57, ptr %58, align 4
  %59 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %22)
  %60 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  store <2 x float> %59, ptr %60, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %61 = load ptr, ptr %11, align 8, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %"class.std::complex", ptr %61, i64 %63
  %65 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(8) %64)
  %66 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  store <2 x float> %65, ptr %66, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %67 = load ptr, ptr %9, align 8, !tbaa !9
  %68 = load i32, ptr %16, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %"class.std::complex", ptr %67, i64 %69
  %71 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(8) %70)
  %72 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  store <2 x float> %71, ptr %72, align 4
  %73 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %25)
  %74 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  store <2 x float> %73, ptr %74, align 4
  %75 = load ptr, ptr %11, align 8, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %"class.std::complex", ptr %75, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %79 = load ptr, ptr %9, align 8, !tbaa !9
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %"class.std::complex", ptr %79, i64 %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !13
  br label %83

83:                                               ; preds = %46
  %84 = load i32, ptr %16, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %16, align 4, !tbaa !5
  br label %42, !llvm.loop !15

86:                                               ; preds = %42
  br label %159

87:                                               ; preds = %38, %35
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = icmp sle i32 0, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %97

91:                                               ; preds = %87
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = sub nsw i32 0, %92
  %94 = add nsw i32 %93, 1
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = mul nsw i32 %94, %95
  store i32 %96, ptr %17, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %91, %90
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = icmp sle i32 0, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %107

101:                                              ; preds = %97
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = sub nsw i32 0, %102
  %104 = add nsw i32 %103, 1
  %105 = load i32, ptr %12, align 4, !tbaa !5
  %106 = mul nsw i32 %104, %105
  store i32 %106, ptr %18, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %101, %100
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %155, %107
  %109 = load i32, ptr %16, align 4, !tbaa !5
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %112, label %158

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %113 = load ptr, ptr %9, align 8, !tbaa !9
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %"class.std::complex", ptr %113, i64 %115
  %117 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(8) %116)
  %118 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  store <2 x float> %117, ptr %118, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %119 = load ptr, ptr %11, align 8, !tbaa !9
  %120 = load i32, ptr %18, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %"class.std::complex", ptr %119, i64 %121
  %123 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(8) %122)
  %124 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  store <2 x float> %123, ptr %124, align 4
  %125 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %28)
  %126 = getelementptr inbounds %"class.std::complex", ptr %26, i32 0, i32 0
  store <2 x float> %125, ptr %126, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %127 = load ptr, ptr %11, align 8, !tbaa !9
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %"class.std::complex", ptr %127, i64 %129
  %131 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(8) %130)
  %132 = getelementptr inbounds %"class.std::complex", ptr %30, i32 0, i32 0
  store <2 x float> %131, ptr %132, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %133 = load ptr, ptr %9, align 8, !tbaa !9
  %134 = load i32, ptr %17, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds %"class.std::complex", ptr %133, i64 %135
  %137 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(8) %136)
  %138 = getelementptr inbounds %"class.std::complex", ptr %31, i32 0, i32 0
  store <2 x float> %137, ptr %138, align 4
  %139 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %31)
  %140 = getelementptr inbounds %"class.std::complex", ptr %29, i32 0, i32 0
  store <2 x float> %139, ptr %140, align 4
  %141 = load ptr, ptr %11, align 8, !tbaa !9
  %142 = load i32, ptr %18, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %"class.std::complex", ptr %141, i64 %143
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %144, ptr align 4 %29, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  %145 = load ptr, ptr %9, align 8, !tbaa !9
  %146 = load i32, ptr %17, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %"class.std::complex", ptr %145, i64 %147
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %148, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !13
  %149 = load i32, ptr %17, align 4, !tbaa !5
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = add nsw i32 %149, %150
  store i32 %151, ptr %17, align 4, !tbaa !5
  %152 = load i32, ptr %18, align 4, !tbaa !5
  %153 = load i32, ptr %12, align 4, !tbaa !5
  %154 = add nsw i32 %152, %153
  store i32 %154, ptr %18, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %112
  %156 = load i32, ptr %16, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %16, align 4, !tbaa !5
  br label %108, !llvm.loop !17

158:                                              ; preds = %108
  br label %159

159:                                              ; preds = %158, %86
  store i32 1, ptr %19, align 4
  br label %160

160:                                              ; preds = %159, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 8, !14}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

%"class.std::complex" = type { { float, float } }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5csrotiPSt7complexIfEiS1_iff(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, float noundef %5, float noundef %6) local_unnamed_addr #4 {
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca %"class.std::complex", align 8
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.std::complex", align 8
  store float %5, ptr %8, align 4, !tbaa !5
  store float %6, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %19 = icmp slt i32 %0, 1
  br i1 %19, label %.loopexit, label %20

20:                                               ; preds = %7
  %21 = icmp eq i32 %2, 1
  %22 = icmp eq i32 %4, 1
  %or.cond = and i1 %21, %22
  br i1 %or.cond, label %.lr.ph59.preheader, label %.lr.ph.preheader

.lr.ph59.preheader:                               ; preds = %20
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph59

.lr.ph59:                                         ; preds = %.lr.ph59.preheader, %.lr.ph59
  %indvars.iv66 = phi i64 [ 0, %.lr.ph59.preheader ], [ %indvars.iv.next67, %.lr.ph59 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %23 = getelementptr inbounds %"class.std::complex", ptr %1, i64 %indvars.iv66
  %24 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %24, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %25 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %indvars.iv66
  %26 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %26, ptr %12, align 8
  %27 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %27, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %28 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %28, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %29 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %29, ptr %14, align 8
  %30 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %30, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  %31 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %31, ptr %23, align 4, !tbaa !9
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count
  br i1 %exitcond69.not, label %.loopexit, label %.lr.ph59, !llvm.loop !10

.lr.ph.preheader:                                 ; preds = %20
  %.inv53 = icmp slt i32 %4, 0
  %32 = sub nsw i32 1, %0
  %33 = mul nsw i32 %32, %4
  %.048 = select i1 %.inv53, i32 %33, i32 0
  %.inv = icmp slt i32 %2, 0
  %34 = mul nsw i32 %32, %2
  %.046 = select i1 %.inv, i32 %34, i32 0
  %35 = sext i32 %.046 to i64
  %36 = sext i32 %2 to i64
  %37 = sext i32 %.048 to i64
  %38 = sext i32 %4 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv61 = phi i64 [ %37, %.lr.ph.preheader ], [ %indvars.iv.next62, %.lr.ph ]
  %indvars.iv = phi i64 [ %35, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.157 = phi i32 [ 0, %.lr.ph.preheader ], [ %48, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %39 = getelementptr inbounds %"class.std::complex", ptr %1, i64 %indvars.iv
  %40 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %40, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %41 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %indvars.iv61
  %42 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(8) %41)
  store <2 x float> %42, ptr %16, align 8
  %43 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %43, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %44 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(8) %41)
  store <2 x float> %44, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %45 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %45, ptr %18, align 8
  %46 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %46, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  %47 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %47, ptr %39, align 4, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, %36
  %indvars.iv.next62 = add nsw i64 %indvars.iv61, %38
  %48 = add nuw nsw i32 %.157, 1
  %exitcond.not = icmp eq i32 %48, %0
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph59, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 uwtable "min-legal-vector-width"="64" "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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass