; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ/4093（FFT+容斥原理）.ll (Z3FFTP7Complexii)

; 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.Complex = type { x86_fp80, x86_fp80 }

@_ZL2pi = external hidden global x86_fp80, align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZplRK7ComplexS1_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmiRK7ComplexS1_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlRK7ComplexS1_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5raderP7Complexi(ptr noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3FFTP7Complexii(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.Complex, align 16
  %10 = alloca i32, align 4
  %11 = alloca %struct.Complex, align 16
  %12 = alloca i32, align 4
  %13 = alloca %struct.Complex, align 16
  %14 = alloca %struct.Complex, align 16
  %15 = alloca %struct.Complex, align 16
  %16 = alloca %struct.Complex, align 16
  %17 = alloca %struct.Complex, align 16
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !9
  call void @_Z5raderP7Complexi(ptr noundef %19, i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 2, ptr %7, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %94, %3
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %97

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = sub nsw i32 0, %27
  %29 = mul nsw i32 %28, 2
  %30 = sitofp i32 %29 to x86_fp80
  %31 = load x86_fp80, ptr @_ZL2pi, align 16, !tbaa !11
  %32 = fmul x86_fp80 %30, %31
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = sitofp i32 %33 to x86_fp80
  %35 = fdiv x86_fp80 %32, %34
  %36 = call noundef x86_fp80 @_ZSt3cose(x86_fp80 noundef %35)
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = sub nsw i32 0, %37
  %39 = mul nsw i32 %38, 2
  %40 = sitofp i32 %39 to x86_fp80
  %41 = load x86_fp80, ptr @_ZL2pi, align 16, !tbaa !11
  %42 = fmul x86_fp80 %40, %41
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = sitofp i32 %43 to x86_fp80
  %45 = fdiv x86_fp80 %42, %44
  %46 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %45)
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %9, x86_fp80 noundef %36, x86_fp80 noundef %46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %89, %26
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %93

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %11, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %53 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %53, ptr %12, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %85, %52
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sdiv i32 %57, 2
  %59 = add nsw i32 %56, %58
  %60 = icmp slt i32 %55, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %54
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %88

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.Complex, ptr %63, i64 %65
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %66, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = sdiv i32 %69, 2
  %71 = add nsw i32 %68, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.Complex, ptr %67, i64 %72
  call void @_ZmlRK7ComplexS1_(ptr dead_on_unwind writable sret(%struct.Complex) align 16 %14, ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %73)
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @_ZplRK7ComplexS1_(ptr dead_on_unwind writable sret(%struct.Complex) align 16 %15, ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %14)
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.Complex, ptr %74, i64 %76
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %15, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  call void @_ZmiRK7ComplexS1_(ptr dead_on_unwind writable sret(%struct.Complex) align 16 %16, ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %14)
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = sdiv i32 %80, 2
  %82 = add nsw i32 %79, %81
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %struct.Complex, ptr %78, i64 %83
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %84, ptr align 16 %16, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @_ZmlRK7ComplexS1_(ptr dead_on_unwind writable sret(%struct.Complex) align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %85

85:                                               ; preds = %62
  %86 = load i32, ptr %12, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %12, align 4, !tbaa !9
  br label %54, !llvm.loop !14

88:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = add nsw i32 %91, %90
  store i32 %92, ptr %10, align 4, !tbaa !9
  br label %47, !llvm.loop !16

93:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = shl i32 %95, 1
  store i32 %96, ptr %7, align 4, !tbaa !9
  br label %21, !llvm.loop !17

97:                                               ; preds = %25
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = icmp eq i32 %98, -1
  br i1 %99, label %100, label %120

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %116, %100
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = load i32, ptr %5, align 4, !tbaa !9
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %119

106:                                              ; preds = %101
  %107 = load i32, ptr %5, align 4, !tbaa !9
  %108 = sitofp i32 %107 to x86_fp80
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.Complex, ptr %109, i64 %111
  %113 = getelementptr inbounds %struct.Complex, ptr %112, i32 0, i32 0
  %114 = load x86_fp80, ptr %113, align 16, !tbaa !18
  %115 = fdiv x86_fp80 %114, %108
  store x86_fp80 %115, ptr %113, align 16, !tbaa !18
  br label %116

116:                                              ; preds = %106
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %18, align 4, !tbaa !9
  br label %101, !llvm.loop !20

119:                                              ; preds = %105
  br label %120

120:                                              ; preds = %119, %97
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3cose(x86_fp80 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef) #3

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !7, i64 0}
!13 = !{i64 0, i64 16, !11, i64 16, i64 16, !11}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !12, i64 0}
!19 = !{!"_ZTS7Complex", !12, i64 0, !12, i64 16}
!20 = distinct !{!20, !15}


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

%struct.Complex = type { x86_fp80, x86_fp80 }

@_ZL2pi = external hidden local_unnamed_addr global x86_fp80, align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZplRK7ComplexS1_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmiRK7ComplexS1_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZmlRK7ComplexS1_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5raderP7Complexi(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3FFTP7Complexii(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.Complex, align 16
  %5 = alloca %struct.Complex, align 16
  %6 = alloca %struct.Complex, align 16
  %7 = alloca %struct.Complex, align 16
  %8 = alloca %struct.Complex, align 16
  %9 = alloca %struct.Complex, align 16
  %10 = alloca %struct.Complex, align 16
  tail call void @_Z5raderP7Complexi(ptr noundef %0, i32 noundef %1)
  %.not43 = icmp slt i32 %1, 2
  br i1 %.not43, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %3
  %.neg = mul i32 %2, -2
  %11 = sitofp i32 %.neg to x86_fp80
  %12 = zext nneg i32 %1 to i64
  br label %.lr.ph41.us

.lr.ph41.us:                                      ; preds = %._crit_edge42.us, %.lr.ph46
  %.03644.us = phi i32 [ 2, %.lr.ph46 ], [ %31, %._crit_edge42.us ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %13 = load x86_fp80, ptr @_ZL2pi, align 16, !tbaa !5
  %14 = fmul x86_fp80 %13, %11
  %15 = sitofp i32 %.03644.us to x86_fp80
  %16 = fdiv x86_fp80 %14, %15
  %17 = call noundef x86_fp80 @_ZSt3cose(x86_fp80 noundef %16)
  %18 = load x86_fp80, ptr @_ZL2pi, align 16, !tbaa !5
  %19 = fmul x86_fp80 %18, %11
  %20 = fdiv x86_fp80 %19, %15
  %21 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %20)
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %4, x86_fp80 noundef %17, x86_fp80 noundef %21)
  %22 = ashr exact i32 %.03644.us, 1
  %23 = sext i32 %.03644.us to i64
  %24 = sext i32 %22 to i64
  %25 = icmp sgt i32 %22, 0
  %invariant.gep = getelementptr %struct.Complex, ptr %0, i64 %24
  br label %26

26:                                               ; preds = %.lr.ph41.us, %._crit_edge.us
  %indvars.iv = phi i64 [ 0, %.lr.ph41.us ], [ %indvars.iv.next, %._crit_edge.us ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %5, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %27 = add nsw i64 %indvars.iv, %24
  br i1 %25, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %.lr.ph.us, %26
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  %indvars.iv.next = add nsw i64 %indvars.iv, %23
  %28 = icmp slt i64 %indvars.iv.next, %12
  br i1 %28, label %26, label %._crit_edge42.us, !llvm.loop !9

.lr.ph.us:                                        ; preds = %26, %.lr.ph.us
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %.lr.ph.us ], [ %indvars.iv, %26 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %29 = getelementptr inbounds %struct.Complex, ptr %0, i64 %indvars.iv49
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %29, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  %gep = getelementptr %struct.Complex, ptr %invariant.gep, i64 %indvars.iv49
  call void @_ZmlRK7ComplexS1_(ptr dead_on_unwind nonnull writable sret(%struct.Complex) align 16 %7, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %gep)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @_ZplRK7ComplexS1_(ptr dead_on_unwind nonnull writable sret(%struct.Complex) align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %29, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @_ZmiRK7ComplexS1_(ptr dead_on_unwind nonnull writable sret(%struct.Complex) align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %gep, ptr noundef nonnull align 16 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @_ZmlRK7ComplexS1_(ptr dead_on_unwind nonnull writable sret(%struct.Complex) align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %10, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  %indvars.iv.next50 = add nsw i64 %indvars.iv49, 1
  %30 = icmp slt i64 %indvars.iv.next50, %27
  br i1 %30, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !12

._crit_edge42.us:                                 ; preds = %._crit_edge.us
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  %31 = shl i32 %.03644.us, 1
  %.not.us = icmp sgt i32 %31, %1
  br i1 %.not.us, label %._crit_edge47, label %.lr.ph41.us, !llvm.loop !13

._crit_edge47:                                    ; preds = %._crit_edge42.us, %3
  %32 = icmp eq i32 %2, -1
  %33 = icmp sgt i32 %1, 0
  %or.cond = and i1 %32, %33
  br i1 %or.cond, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %._crit_edge47
  %34 = uitofp nneg i32 %1 to x86_fp80
  %wide.trip.count = zext nneg i32 %1 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %35 = icmp ult i32 %1, 4
  br i1 %35, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %36

36:                                               ; preds = %36, %.lr.ph.new
  %indvars.iv53 = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next54.3, %36 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %36 ]
  %37 = getelementptr inbounds %struct.Complex, ptr %0, i64 %indvars.iv53
  %38 = load x86_fp80, ptr %37, align 16, !tbaa !14
  %39 = fdiv x86_fp80 %38, %34
  store x86_fp80 %39, ptr %37, align 16, !tbaa !14
  %indvars.iv.next54 = or disjoint i64 %indvars.iv53, 1
  %40 = getelementptr inbounds %struct.Complex, ptr %0, i64 %indvars.iv.next54
  %41 = load x86_fp80, ptr %40, align 16, !tbaa !14
  %42 = fdiv x86_fp80 %41, %34
  store x86_fp80 %42, ptr %40, align 16, !tbaa !14
  %indvars.iv.next54.1 = or disjoint i64 %indvars.iv53, 2
  %43 = getelementptr inbounds %struct.Complex, ptr %0, i64 %indvars.iv.next54.1
  %44 = load x86_fp80, ptr %43, align 16, !tbaa !14
  %45 = fdiv x86_fp80 %44, %34
  store x86_fp80 %45, ptr %43, align 16, !tbaa !14
  %indvars.iv.next54.2 = or disjoint i64 %indvars.iv53, 3
  %46 = getelementptr inbounds %struct.Complex, ptr %0, i64 %indvars.iv.next54.2
  %47 = load x86_fp80, ptr %46, align 16, !tbaa !14
  %48 = fdiv x86_fp80 %47, %34
  store x86_fp80 %48, ptr %46, align 16, !tbaa !14
  %indvars.iv.next54.3 = add nuw nsw i64 %indvars.iv53, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %36, !llvm.loop !16

.loopexit.loopexit.unr-lcssa:                     ; preds = %36, %.lr.ph
  %indvars.iv53.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next54.3, %36 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv53.epil = phi i64 [ %indvars.iv.next54.epil, %.epil.preheader ], [ %indvars.iv53.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %49 = getelementptr inbounds %struct.Complex, ptr %0, i64 %indvars.iv53.epil
  %50 = load x86_fp80, ptr %49, align 16, !tbaa !14
  %51 = fdiv x86_fp80 %50, %34
  store x86_fp80 %51, ptr %49, align 16, !tbaa !14
  %indvars.iv.next54.epil = add nuw nsw i64 %indvars.iv53.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !17

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge47
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3cose(x86_fp80 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 16, !5, i64 16, i64 16, !5}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS7Complex", !6, i64 0, !6, i64 16}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass