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

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

@BASE = external dso_local global i64, align 8

; 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: mustprogress uwtable
declare dso_local void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #1

; 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) #2 align 2

; 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)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8multiplyRKSt6vectorIxSaIxEES3_RS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  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
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call ptr @_ZNKSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call ptr @_ZNKSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @_ZNSaISt7complexIeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EEC2IN9__gnu_cxx17__normal_iteratorIPKxS_IxSaIxEEEEvEET_SC_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %31, ptr %33, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %34 unwind label %59

34:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call ptr @_ZNKSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call ptr @_ZNKSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @_ZNSaISt7complexIeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EEC2IN9__gnu_cxx17__normal_iteratorIPKxS_IxSaIxEEEEvEET_SC_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr %42, ptr %44, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %45 unwind label %63

45:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %56, %45
  %47 = load i64, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #4
  store i64 %49, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #4
  store i64 %51, ptr %19, align 8, !tbaa !9
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %53 unwind label %67

53:                                               ; preds = %46
  %54 = load i64, ptr %52, align 8, !tbaa !9
  %55 = icmp ult i64 %47, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br i1 %55, label %56, label %71

56:                                               ; preds = %53
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = shl i64 %57, 1
  store i64 %58, ptr %17, align 8, !tbaa !9
  br label %46, !llvm.loop !11

59:                                               ; preds = %3
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %11, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  br label %163

63:                                               ; preds = %34
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %11, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %162

67:                                               ; preds = %46
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %11, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %161

71:                                               ; preds = %53
  %72 = load i64, ptr %17, align 8, !tbaa !9
  %73 = shl i64 %72, 1
  store i64 %73, ptr %17, align 8, !tbaa !9
  %74 = load i64, ptr %17, align 8, !tbaa !9
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %74)
          to label %75 unwind label %85

75:                                               ; preds = %71
  %76 = load i64, ptr %17, align 8, !tbaa !9
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %76)
          to label %77 unwind label %85

77:                                               ; preds = %75
  invoke void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %7, i1 noundef zeroext false)
          to label %78 unwind label %85

78:                                               ; preds = %77
  invoke void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %13, i1 noundef zeroext false)
          to label %79 unwind label %85

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %96, %79
  %81 = load i64, ptr %20, align 8, !tbaa !9
  %82 = load i64, ptr %17, align 8, !tbaa !9
  %83 = icmp ult i64 %81, %82
  br i1 %83, label %89, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %103

85:                                               ; preds = %103, %78, %77, %75, %71
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %11, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %12, align 4
  br label %161

89:                                               ; preds = %80
  %90 = load i64, ptr %20, align 8, !tbaa !9
  %91 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %90) #4
  %92 = load i64, ptr %20, align 8, !tbaa !9
  %93 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %92) #4
  %94 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEmLIeEERS0_RKS_IT_E(ptr noundef nonnull align 16 dereferenceable(32) %93, ptr noundef nonnull align 16 dereferenceable(32) %91)
          to label %95 unwind label %99

95:                                               ; preds = %89
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %20, align 8, !tbaa !9
  %98 = add i64 %97, 1
  store i64 %98, ptr %20, align 8, !tbaa !9
  br label %80, !llvm.loop !13

99:                                               ; preds = %89
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %11, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %161

103:                                              ; preds = %84
  invoke void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %7, i1 noundef zeroext true)
          to label %104 unwind label %85

104:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store i64 0, ptr %21, align 8, !tbaa !14
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load i64, ptr %17, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %106)
          to label %107 unwind label %113

107:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %127, %107
  %109 = load i64, ptr %22, align 8, !tbaa !9
  %110 = load i64, ptr %17, align 8, !tbaa !9
  %111 = icmp ult i64 %109, %110
  br i1 %111, label %117, label %112

112:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %134

113:                                              ; preds = %104
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %11, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %12, align 4
  br label %160

117:                                              ; preds = %108
  %118 = load i64, ptr %22, align 8, !tbaa !9
  %119 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %118) #4
  %120 = invoke noundef x86_fp80 @_ZNKSt7complexIeE4realB5cxx11Ev(ptr noundef nonnull align 16 dereferenceable(32) %119)
          to label %121 unwind label %130

121:                                              ; preds = %117
  %122 = fadd x86_fp80 %120, 0xK3FFE8000000000000000
  %123 = fptosi x86_fp80 %122 to i64
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i64, ptr %22, align 8, !tbaa !9
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %125) #4
  store i64 %123, ptr %126, align 8, !tbaa !14
  br label %127

127:                                              ; preds = %121
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = add i64 %128, 1
  store i64 %129, ptr %22, align 8, !tbaa !9
  br label %108, !llvm.loop !16

130:                                              ; preds = %117
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %160

134:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %156, %134
  %136 = load i64, ptr %23, align 8, !tbaa !9
  %137 = load i64, ptr %17, align 8, !tbaa !9
  %138 = icmp ult i64 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %159

140:                                              ; preds = %135
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i64, ptr %23, align 8, !tbaa !9
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %142) #4
  %144 = load i64, ptr %143, align 8, !tbaa !14
  %145 = load i64, ptr %21, align 8, !tbaa !14
  %146 = add nsw i64 %145, %144
  store i64 %146, ptr %21, align 8, !tbaa !14
  %147 = load i64, ptr %21, align 8, !tbaa !14
  %148 = load i64, ptr @BASE, align 8, !tbaa !14
  %149 = srem i64 %147, %148
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load i64, ptr %23, align 8, !tbaa !9
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %151) #4
  store i64 %149, ptr %152, align 8, !tbaa !14
  %153 = load i64, ptr @BASE, align 8, !tbaa !14
  %154 = load i64, ptr %21, align 8, !tbaa !14
  %155 = sdiv i64 %154, %153
  store i64 %155, ptr %21, align 8, !tbaa !14
  br label %156

156:                                              ; preds = %140
  %157 = load i64, ptr %23, align 8, !tbaa !9
  %158 = add i64 %157, 1
  store i64 %158, ptr %23, align 8, !tbaa !9
  br label %135, !llvm.loop !17

159:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  ret void

160:                                              ; preds = %130, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %161

161:                                              ; preds = %160, %99, %85, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  br label %162

162:                                              ; preds = %161, %63
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %163

163:                                              ; preds = %162, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %11, align 8
  %166 = load i32, ptr %12, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt7complexIeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EEC2IN9__gnu_cxx17__normal_iteratorIPKxS_IxSaIxEEEEvEET_SC_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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"="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 }

!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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@BASE = external dso_local local_unnamed_addr global i64, align 8

; 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: mustprogress uwtable
declare dso_local void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #1

; 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 #2 align 2

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8multiplyRKSt6vectorIxSaIxEES3_RS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %10 = tail call ptr @_ZNKSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %11 = tail call ptr @_ZNKSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaISt7complexIeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EEC2IN9__gnu_cxx17__normal_iteratorIPKxS_IxSaIxEEEEvEET_SC_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %10, ptr %11, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %12 unwind label %23

12:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %13 = call ptr @_ZNKSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %14 = call ptr @_ZNKSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaISt7complexIeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EEC2IN9__gnu_cxx17__normal_iteratorIPKxS_IxSaIxEEEEvEET_SC_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr %13, ptr %14, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %15 unwind label %25

15:                                               ; preds = %12
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  br label %16

16:                                               ; preds = %16, %15
  %.041 = phi i64 [ 1, %15 ], [ %22, %16 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %17 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  store i64 %17, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %18 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store i64 %18, ptr %9, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = icmp ult i64 %.041, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %22 = shl i64 %.041, 1
  br i1 %21, label %16, label %27, !llvm.loop !9

23:                                               ; preds = %3
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %57

25:                                               ; preds = %12
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  br label %56

27:                                               ; preds = %16
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %22)
          to label %28 unwind label %31

28:                                               ; preds = %27
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %22)
          to label %29 unwind label %31

29:                                               ; preds = %28
  invoke void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %4, i1 noundef zeroext false)
          to label %30 unwind label %31

30:                                               ; preds = %29
  invoke void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %6, i1 noundef zeroext false)
          to label %.preheader51 unwind label %31

.preheader51:                                     ; preds = %30
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader51
  invoke void @_Z3fftRSt6vectorISt7complexIeESaIS1_EEb(ptr noundef nonnull align 8 dereferenceable(24) %4, i1 noundef zeroext true)
          to label %37 unwind label %31

31:                                               ; preds = %._crit_edge, %30, %29, %28, %27
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %55

.lr.ph:                                           ; preds = %.preheader51, %.lr.ph
  %.04052 = phi i64 [ %36, %.lr.ph ], [ 0, %.preheader51 ]
  %33 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.04052) #4
  %34 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.04052) #4
  %35 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt7complexIeEmLIeEERS0_RKS_IT_E(ptr noundef nonnull align 16 dereferenceable(32) %34, ptr noundef nonnull align 16 dereferenceable(32) %33)
  %36 = add nuw i64 %.04052, 1
  %exitcond.not = icmp eq i64 %36, %22
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

37:                                               ; preds = %._crit_edge
  invoke void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %22)
          to label %.preheader50 unwind label %38

.preheader50:                                     ; preds = %37
  br i1 %.not, label %._crit_edge58, label %.lr.ph54

38:                                               ; preds = %37
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %55

.lr.ph54:                                         ; preds = %.preheader50, %.lr.ph54
  %.03853 = phi i64 [ %45, %.lr.ph54 ], [ 0, %.preheader50 ]
  %40 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.03853) #4
  %41 = call noundef x86_fp80 @_ZNKSt7complexIeE4realB5cxx11Ev(ptr noundef nonnull align 16 dereferenceable(32) %40)
  %42 = fadd x86_fp80 %41, 0xK3FFE8000000000000000
  %43 = fptosi x86_fp80 %42 to i64
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03853) #4
  store i64 %43, ptr %44, align 8, !tbaa !12
  %45 = add nuw i64 %.03853, 1
  %exitcond61.not = icmp eq i64 %45, %22
  br i1 %exitcond61.not, label %.lr.ph57, label %.lr.ph54, !llvm.loop !14

._crit_edge58:                                    ; preds = %.lr.ph57, %.preheader50
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret void

.lr.ph57:                                         ; preds = %.lr.ph54, %.lr.ph57
  %.056 = phi i64 [ %54, %.lr.ph57 ], [ 0, %.lr.ph54 ]
  %.03955 = phi i64 [ %53, %.lr.ph57 ], [ 0, %.lr.ph54 ]
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.056) #4
  %47 = load i64, ptr %46, align 8, !tbaa !12
  %48 = add nsw i64 %47, %.03955
  %49 = load i64, ptr @BASE, align 8, !tbaa !12
  %50 = srem i64 %48, %49
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.056) #4
  store i64 %50, ptr %51, align 8, !tbaa !12
  %52 = load i64, ptr @BASE, align 8, !tbaa !12
  %53 = sdiv i64 %48, %52
  %54 = add nuw i64 %.056, 1
  %exitcond62.not = icmp eq i64 %54, %22
  br i1 %exitcond62.not, label %._crit_edge58, label %.lr.ph57, !llvm.loop !15

55:                                               ; preds = %38, %31
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %32, %31 ]
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %56

56:                                               ; preds = %55, %25
  %.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %57

57:                                               ; preds = %56, %23
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %56 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt7complexIeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EEC2IN9__gnu_cxx17__normal_iteratorIPKxS_IxSaIxEEEEvEET_SC_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt7complexIeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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"="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 }

!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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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