; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/VFMUL/mul.ll (Z3fftRSt6vectorISt7complexIeESaIS1_EEb)

; 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 { { x86_fp80, x86_fp80 } }

@PI = external dso_local global x86_fp80, align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3revxx(i64 noundef, i64 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca x86_fp80, align 16
  %11 = alloca %"class.std::complex", align 16
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::complex", align 16
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::complex", align 16
  %16 = alloca %"class.std::complex", align 16
  %17 = alloca %"class.std::complex", align 16
  %18 = alloca %"class.std::complex", align 16
  %19 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %20 = zext i1 %1 to i8
  store i8 %20, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store i64 %22, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %23

23:                                               ; preds = %30, %2
  %24 = load i64, ptr %6, align 8, !tbaa !11
  %25 = trunc i64 %24 to i32
  %26 = shl i32 1, %25
  %27 = sext i32 %26 to i64
  %28 = load i64, ptr %5, align 8, !tbaa !11
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %30, label %33

30:                                               ; preds = %23
  %31 = load i64, ptr %6, align 8, !tbaa !11
  %32 = add nsw i64 %31, 1
  store i64 %32, ptr %6, align 8, !tbaa !11
  br label %23, !llvm.loop !13

33:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %55, %33
  %35 = load i64, ptr %7, align 8, !tbaa !11
  %36 = load i64, ptr %5, align 8, !tbaa !11
  %37 = icmp slt i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %58

39:                                               ; preds = %34
  %40 = load i64, ptr %7, align 8, !tbaa !11
  %41 = load i64, ptr %7, align 8, !tbaa !11
  %42 = load i64, ptr %6, align 8, !tbaa !11
  %43 = call noundef i64 @_Z3revxx(i64 noundef %41, i64 noundef %42)
  %44 = icmp slt i64 %40, %43
  br i1 %44, label %45, label %54

45:                                               ; preds = %39
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load i64, ptr %7, align 8, !tbaa !11
  %48 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %47) #6
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = load i64, ptr %7, align 8, !tbaa !11
  %51 = load i64, ptr %6, align 8, !tbaa !11
  %52 = call noundef i64 @_Z3revxx(i64 noundef %50, i64 noundef %51)
  %53 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %52) #6
  call void @_ZSt4swapISt7complexIeEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 16 dereferenceable(32) %48, ptr noundef nonnull align 16 dereferenceable(32) %53) #6
  br label %54

54:                                               ; preds = %45, %39
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %7, align 8, !tbaa !11
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %7, align 8, !tbaa !11
  br label %34, !llvm.loop !15

58:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 2, ptr %8, align 8, !tbaa !11
  br label %59

59:                                               ; preds = %129, %58
  %60 = load i64, ptr %8, align 8, !tbaa !11
  %61 = load i64, ptr %5, align 8, !tbaa !11
  %62 = icmp sle i64 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %132

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %65 = load x86_fp80, ptr @PI, align 16, !tbaa !16
  %66 = fmul x86_fp80 0xK40008000000000000000, %65
  %67 = load i64, ptr %8, align 8, !tbaa !11
  %68 = sitofp i64 %67 to x86_fp80
  %69 = fdiv x86_fp80 %66, %68
  %70 = load i8, ptr %4, align 1, !tbaa !9, !range !18, !noundef !19
  %71 = trunc i8 %70 to i1
  %72 = zext i1 %71 to i64
  %73 = select i1 %71, i32 -1, i32 1
  %74 = sitofp i32 %73 to x86_fp80
  %75 = fmul x86_fp80 %69, %74
  store x86_fp80 %75, ptr %10, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  %76 = load x86_fp80, ptr %10, align 16, !tbaa !16
  %77 = call noundef x86_fp80 @_ZSt3cose(x86_fp80 noundef %76)
  %78 = load x86_fp80, ptr %10, align 16, !tbaa !16
  %79 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %78)
  call void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %11, x86_fp80 noundef %77, x86_fp80 noundef %79)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %124, %64
  %81 = load i64, ptr %12, align 8, !tbaa !11
  %82 = load i64, ptr %5, align 8, !tbaa !11
  %83 = icmp slt i64 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %128

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %13, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %86

86:                                               ; preds = %120, %85
  %87 = load i64, ptr %14, align 8, !tbaa !11
  %88 = load i64, ptr %8, align 8, !tbaa !11
  %89 = sdiv i64 %88, 2
  %90 = icmp slt i64 %87, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %86
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %123

92:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load i64, ptr %12, align 8, !tbaa !11
  %95 = load i64, ptr %14, align 8, !tbaa !11
  %96 = add nsw i64 %94, %95
  %97 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %96) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %97, i64 32, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = load i64, ptr %12, align 8, !tbaa !11
  %100 = load i64, ptr %14, align 8, !tbaa !11
  %101 = add nsw i64 %99, %100
  %102 = load i64, ptr %8, align 8, !tbaa !11
  %103 = sdiv i64 %102, 2
  %104 = add nsw i64 %101, %103
  %105 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %104) #6
  call void @_ZStmlIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %16, ptr noundef nonnull align 16 dereferenceable(32) %105, ptr noundef nonnull align 16 dereferenceable(32) %13)
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %15, ptr noundef nonnull align 16 dereferenceable(32) %16)
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = load i64, ptr %12, align 8, !tbaa !11
  %108 = load i64, ptr %14, align 8, !tbaa !11
  %109 = add nsw i64 %107, %108
  %110 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %109) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %110, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %18, ptr noundef nonnull align 16 dereferenceable(32) %15, ptr noundef nonnull align 16 dereferenceable(32) %16)
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = load i64, ptr %12, align 8, !tbaa !11
  %113 = load i64, ptr %14, align 8, !tbaa !11
  %114 = add nsw i64 %112, %113
  %115 = load i64, ptr %8, align 8, !tbaa !11
  %116 = sdiv i64 %115, 2
  %117 = add nsw i64 %114, %116
  %118 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %117) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %118, ptr align 16 %18, i64 32, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  %119 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEmLIeEERS0_RKS_IT_E(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %11)
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %120

120:                                              ; preds = %92
  %121 = load i64, ptr %14, align 8, !tbaa !11
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %14, align 8, !tbaa !11
  br label %86, !llvm.loop !22

123:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %124

124:                                              ; preds = %123
  %125 = load i64, ptr %8, align 8, !tbaa !11
  %126 = load i64, ptr %12, align 8, !tbaa !11
  %127 = add nsw i64 %126, %125
  store i64 %127, ptr %12, align 8, !tbaa !11
  br label %80, !llvm.loop !23

128:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %8, align 8, !tbaa !11
  %131 = shl i64 %130, 1
  store i64 %131, ptr %8, align 8, !tbaa !11
  br label %59, !llvm.loop !24

132:                                              ; preds = %63
  %133 = load i8, ptr %4, align 1, !tbaa !9, !range !18, !noundef !19
  %134 = trunc i8 %133 to i1
  br i1 %134, label %135, label %152

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %148, %135
  %137 = load i64, ptr %19, align 8, !tbaa !11
  %138 = load i64, ptr %5, align 8, !tbaa !11
  %139 = icmp slt i64 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 16, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %151

141:                                              ; preds = %136
  %142 = load i64, ptr %5, align 8, !tbaa !11
  %143 = sitofp i64 %142 to x86_fp80
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = load i64, ptr %19, align 8, !tbaa !11
  %146 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %145) #6
  %147 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEdVEe(ptr noundef nonnull align 16 dereferenceable(32) %146, x86_fp80 noundef %143)
  br label %148

148:                                              ; preds = %141
  %149 = load i64, ptr %19, align 8, !tbaa !11
  %150 = add nsw i64 %149, 1
  store i64 %150, ptr %19, align 8, !tbaa !11
  br label %136, !llvm.loop !25

151:                                              ; preds = %140
  br label %152

152:                                              ; preds = %151, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt7complexIeEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #0 align 2

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStmlIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEmLIeEERS0_RKS_IT_E(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEdVEe(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { inlinehint 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"long double", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{i64 0, i64 32, !21}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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 { { x86_fp80, x86_fp80 } }

@PI = external dso_local local_unnamed_addr global x86_fp80, align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3revxx(i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %0, i1 noundef zeroext %1) local_unnamed_addr #2 {
  %3 = alloca %"class.std::complex", align 16
  %4 = alloca %"class.std::complex", align 16
  %5 = alloca %"class.std::complex", align 16
  %6 = alloca %"class.std::complex", align 16
  %7 = alloca %"class.std::complex", align 16
  %8 = alloca %"class.std::complex", align 16
  %9 = tail call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %10

10:                                               ; preds = %10, %2
  %.051 = phi i64 [ 0, %2 ], [ %15, %10 ]
  %11 = trunc i64 %.051 to i32
  %12 = shl nuw i32 1, %11
  %13 = sext i32 %12 to i64
  %14 = icmp sgt i64 %9, %13
  %15 = add nuw nsw i64 %.051, 1
  br i1 %14, label %10, label %.preheader57, !llvm.loop !5

.preheader57:                                     ; preds = %10
  %16 = icmp sgt i64 %9, 0
  br i1 %16, label %.lr.ph, label %.loopexit

.preheader56:                                     ; preds = %47
  %.not65 = icmp eq i64 %9, 1
  br i1 %.not65, label %._crit_edge, label %.lr.ph63.us

.lr.ph63.us:                                      ; preds = %.preheader56, %._crit_edge64.us
  %.05366.us = phi i64 [ %29, %._crit_edge64.us ], [ 2, %.preheader56 ]
  %17 = load x86_fp80, ptr @PI, align 16, !tbaa !7
  %18 = fmul x86_fp80 %17, 0xK40008000000000000000
  %19 = sitofp i64 %.05366.us to x86_fp80
  %20 = fdiv x86_fp80 %18, %19
  %21 = fneg x86_fp80 %20
  %22 = select i1 %1, x86_fp80 %21, x86_fp80 %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  %23 = call noundef x86_fp80 @_ZSt3cose(x86_fp80 noundef %22)
  %24 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %22)
  call void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %3, x86_fp80 noundef %23, x86_fp80 noundef %24)
  %25 = ashr exact i64 %.05366.us, 1
  %26 = icmp sgt i64 %25, 0
  br i1 %26, label %.lr.ph60.us.us, label %.lr.ph63.split.us71

.lr.ph63.split.us71:                              ; preds = %.lr.ph63.us, %.lr.ph63.split.us71
  %.05061.us69 = phi i64 [ %27, %.lr.ph63.split.us71 ], [ 0, %.lr.ph63.us ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %4, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %27 = add nsw i64 %.05061.us69, %.05366.us
  %28 = icmp slt i64 %27, %9
  br i1 %28, label %.lr.ph63.split.us71, label %._crit_edge64.us, !llvm.loop !11

._crit_edge64.us:                                 ; preds = %.lr.ph63.split.us71, %._crit_edge.us.us
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  %29 = shl i64 %.05366.us, 1
  %.not.us = icmp sgt i64 %29, %9
  br i1 %.not.us, label %._crit_edge, label %.lr.ph63.us, !llvm.loop !12

.lr.ph60.us.us:                                   ; preds = %.lr.ph63.us, %._crit_edge.us.us
  %.05061.us.us = phi i64 [ %39, %._crit_edge.us.us ], [ 0, %.lr.ph63.us ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %4, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  br label %30

30:                                               ; preds = %30, %.lr.ph60.us.us
  %.04959.us.us = phi i64 [ 0, %.lr.ph60.us.us ], [ %38, %30 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %31 = add nsw i64 %.04959.us.us, %.05061.us.us
  %32 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %31) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %32, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %33 = add nsw i64 %31, %25
  %34 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %33) #6
  call void @_ZStmlIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %34, ptr noundef nonnull align 16 dereferenceable(32) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %7, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %6)
  %35 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %31) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %35, ptr noundef nonnull align 16 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %6)
  %36 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %33) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %36, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  %37 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEmLIeEERS0_RKS_IT_E(ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(32) %3)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  %38 = add nuw nsw i64 %.04959.us.us, 1
  %exitcond77.not = icmp eq i64 %38, %25
  br i1 %exitcond77.not, label %._crit_edge.us.us, label %30, !llvm.loop !15

._crit_edge.us.us:                                ; preds = %30
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %39 = add nsw i64 %.05061.us.us, %.05366.us
  %40 = icmp slt i64 %39, %9
  br i1 %40, label %.lr.ph60.us.us, label %._crit_edge64.us, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader57, %47
  %.05258 = phi i64 [ %48, %47 ], [ 0, %.preheader57 ]
  %41 = tail call noundef i64 @_Z3revxx(i64 noundef %.05258, i64 noundef %.051)
  %42 = icmp slt i64 %.05258, %41
  br i1 %42, label %43, label %47

43:                                               ; preds = %.lr.ph
  %44 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05258) #6
  %45 = tail call noundef i64 @_Z3revxx(i64 noundef %.05258, i64 noundef %.051)
  %46 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %45) #6
  tail call void @_ZSt4swapISt7complexIeEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 16 dereferenceable(32) %44, ptr noundef nonnull align 16 dereferenceable(32) %46) #6
  br label %47

47:                                               ; preds = %.lr.ph, %43
  %48 = add nuw nsw i64 %.05258, 1
  %exitcond.not = icmp eq i64 %48, %9
  br i1 %exitcond.not, label %.preheader56, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge64.us, %.preheader56
  %or.cond = and i1 %16, %1
  br i1 %or.cond, label %.lr.ph75, label %.loopexit

.lr.ph75:                                         ; preds = %._crit_edge
  %49 = uitofp nneg i64 %9 to x86_fp80
  br label %50

50:                                               ; preds = %.lr.ph75, %50
  %.074 = phi i64 [ 0, %.lr.ph75 ], [ %53, %50 ]
  %51 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.074) #6
  %52 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEdVEe(ptr noundef nonnull align 16 dereferenceable(32) %51, x86_fp80 noundef %49)
  %53 = add nuw nsw i64 %.074, 1
  %exitcond78.not = icmp eq i64 %53, %9
  br i1 %exitcond78.not, label %.loopexit, label %50, !llvm.loop !17

.loopexit:                                        ; preds = %50, %.preheader57, %._crit_edge
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt7complexIeEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; 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 nounwind uwtable
declare dso_local void @_ZNSt7complexIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #0 align 2

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStmlIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEmLIeEERS0_RKS_IT_E(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEdVEe(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { inlinehint 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"long double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = !{i64 0, i64 32, !14}
!14 = !{!9, !9, i64 0}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}


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