; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2009-10/starc.ll (Z3cutSt6vectorIiSaIiEE)

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

@poly = external dso_local global %"class.std::vector", align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef, ptr noundef byval(%"class.std::complex") align 16) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9intersectSt7complexIeES0_St6vectorIiSaIiEE(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef byval(%"class.std::complex") align 16, ptr noundef byval(%"class.std::complex") align 16, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3cutSt6vectorIiSaIiEE(ptr noundef %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.3", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::complex", align 16
  %10 = alloca %"class.std::vector.3", align 8
  %11 = alloca i1, align 1
  %12 = alloca %"class.std::complex", align 16
  %13 = alloca %"class.std::complex", align 16
  %14 = alloca %"class.std::complex", align 16
  %15 = alloca %"class.std::complex", align 16
  %16 = alloca %"class.std::vector.3", align 8
  %17 = alloca %"class.std::vector.3", align 8
  %18 = alloca %"class.std::complex", align 16
  %19 = alloca %"class.std::vector.3", align 8
  %20 = alloca i1, align 1
  %21 = alloca %"class.std::complex", align 16
  %22 = alloca %"class.std::complex", align 16
  %23 = alloca %"class.std::complex", align 16
  %24 = alloca %"class.std::complex", align 16
  %25 = alloca %"class.std::vector.3", align 8
  %26 = alloca %"class.std::vector.3", align 8
  %27 = alloca %"class.std::complex", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
  call void @_ZNSt6vectorISt7complexIeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %165, %1
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poly) #5
  %31 = trunc i64 %30 to i32
  %32 = icmp slt i32 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %169

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %35 = load i32, ptr %4, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  %37 = call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poly) #5
  %38 = trunc i64 %37 to i32
  %39 = srem i32 %36, %38
  store i32 %39, ptr %5, align 4, !tbaa !9
  store i1 false, ptr %11, align 1
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %40 unwind label %70

40:                                               ; preds = %34
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %42) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 %43, i64 32, i1 false), !tbaa.struct !11
  %44 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef %6, ptr noundef byval(%"class.std::complex") align 16 %9)
          to label %45 unwind label %74

45:                                               ; preds = %40
  %46 = fcmp ogt x86_fp80 %44, 0xK00000000000000000000
  br i1 %46, label %47, label %55

47:                                               ; preds = %45
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %48 unwind label %74

48:                                               ; preds = %47
  store i1 true, ptr %11, align 1
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %50) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %51, i64 32, i1 false), !tbaa.struct !11
  %52 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef %10, ptr noundef byval(%"class.std::complex") align 16 %12)
          to label %53 unwind label %78

53:                                               ; preds = %48
  %54 = fcmp olt x86_fp80 %52, 0xK00000000000000000000
  br label %55

55:                                               ; preds = %53, %45
  %56 = phi i1 [ false, %45 ], [ %54, %53 ]
  %57 = load i1, ptr %11, align 1
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %59

59:                                               ; preds = %58, %55
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br i1 %56, label %60, label %95

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  %61 = load i32, ptr %4, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %62) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %63, i64 32, i1 false), !tbaa.struct !11
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %65) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %66, i64 32, i1 false), !tbaa.struct !11
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %67 unwind label %86

67:                                               ; preds = %60
  invoke void @_Z9intersectSt7complexIeES0_St6vectorIiSaIiEE(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %13, ptr noundef byval(%"class.std::complex") align 16 %14, ptr noundef byval(%"class.std::complex") align 16 %15, ptr noundef %16)
          to label %68 unwind label %90

68:                                               ; preds = %67
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(32) %13)
          to label %69 unwind label %90

69:                                               ; preds = %68
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %95

70:                                               ; preds = %155, %147, %95, %34
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %168

74:                                               ; preds = %47, %40
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  br label %85

78:                                               ; preds = %48
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  %82 = load i1, ptr %11, align 1
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %84

84:                                               ; preds = %83, %78
  br label %85

85:                                               ; preds = %84, %74
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %168

86:                                               ; preds = %60
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  br label %94

90:                                               ; preds = %68, %67
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  br label %94

94:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %168

95:                                               ; preds = %69, %59
  store i1 false, ptr %20, align 1
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %96 unwind label %70

96:                                               ; preds = %95
  %97 = load i32, ptr %4, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %98) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %99, i64 32, i1 false), !tbaa.struct !11
  %100 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef %17, ptr noundef byval(%"class.std::complex") align 16 %18)
          to label %101 unwind label %126

101:                                              ; preds = %96
  %102 = fcmp olt x86_fp80 %100, 0xK00000000000000000000
  br i1 %102, label %103, label %111

103:                                              ; preds = %101
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %104 unwind label %126

104:                                              ; preds = %103
  store i1 true, ptr %20, align 1
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %106) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %107, i64 32, i1 false), !tbaa.struct !11
  %108 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef %19, ptr noundef byval(%"class.std::complex") align 16 %21)
          to label %109 unwind label %130

109:                                              ; preds = %104
  %110 = fcmp ogt x86_fp80 %108, 0xK00000000000000000000
  br label %111

111:                                              ; preds = %109, %101
  %112 = phi i1 [ false, %101 ], [ %110, %109 ]
  %113 = load i1, ptr %20, align 1
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %115

115:                                              ; preds = %114, %111
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br i1 %112, label %116, label %147

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %117 = load i32, ptr %4, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %118) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %119, i64 32, i1 false), !tbaa.struct !11
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %121) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %122, i64 32, i1 false), !tbaa.struct !11
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %123 unwind label %138

123:                                              ; preds = %116
  invoke void @_Z9intersectSt7complexIeES0_St6vectorIiSaIiEE(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %22, ptr noundef byval(%"class.std::complex") align 16 %23, ptr noundef byval(%"class.std::complex") align 16 %24, ptr noundef %25)
          to label %124 unwind label %142

124:                                              ; preds = %123
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(32) %22)
          to label %125 unwind label %142

125:                                              ; preds = %124
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %147

126:                                              ; preds = %103, %96
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  br label %137

130:                                              ; preds = %104
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  %134 = load i1, ptr %20, align 1
  br i1 %134, label %135, label %136

135:                                              ; preds = %130
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %136

136:                                              ; preds = %135, %130
  br label %137

137:                                              ; preds = %136, %126
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %168

138:                                              ; preds = %116
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %146

142:                                              ; preds = %124, %123
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  br label %146

146:                                              ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %168

147:                                              ; preds = %125, %115
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %148 unwind label %70

148:                                              ; preds = %147
  %149 = load i32, ptr %5, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %150) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %151, i64 32, i1 false), !tbaa.struct !11
  %152 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef %26, ptr noundef byval(%"class.std::complex") align 16 %27)
          to label %153 unwind label %160

153:                                              ; preds = %148
  %154 = fcmp oge x86_fp80 %152, 0xK00000000000000000000
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  br i1 %154, label %155, label %164

155:                                              ; preds = %153
  %156 = load i32, ptr %5, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %157) #5
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(32) %158)
          to label %159 unwind label %70

159:                                              ; preds = %155
  br label %164

160:                                              ; preds = %148
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %7, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %8, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  br label %168

164:                                              ; preds = %159, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %4, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %4, align 4, !tbaa !9
  br label %28, !llvm.loop !13

168:                                              ; preds = %160, %146, %137, %94, %85, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  br label %170

169:                                              ; preds = %33
  call void @_ZSt4swapISt7complexIeESaIS1_EEvRSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) @poly, ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  ret void

170:                                              ; preds = %168
  %171 = load ptr, ptr %7, align 8
  %172 = load i32, ptr %8, align 4
  %173 = insertvalue { ptr, i32 } poison, ptr %171, 0
  %174 = insertvalue { ptr, i32 } %173, i32 %172, 1
  resume { ptr, i32 } %174
}

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

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt7complexIeESaIS1_EEvRSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #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 = !{i64 0, i64 32, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@poly = external dso_local global %"class.std::vector", align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef, ptr noundef byval(%"class.std::complex") align 16) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9intersectSt7complexIeES0_St6vectorIiSaIiEE(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef byval(%"class.std::complex") align 16, ptr noundef byval(%"class.std::complex") align 16, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3cutSt6vectorIiSaIiEE(ptr noundef %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::vector.3", align 8
  %4 = alloca %"class.std::vector.3", align 8
  %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::vector.3", align 8
  %9 = alloca %"class.std::vector.3", align 8
  %10 = alloca %"class.std::vector.3", align 8
  %11 = alloca %"class.std::complex", align 16
  %12 = alloca %"class.std::complex", align 16
  %13 = alloca %"class.std::complex", align 16
  %14 = alloca %"class.std::vector.3", align 8
  %15 = alloca %"class.std::vector.3", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorISt7complexIeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %16 = call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poly) #5
  %17 = trunc i64 %16 to i32
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %93, %1
  call void @_ZSt4swapISt7complexIeESaIS1_EEvRSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) @poly, ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret void

.lr.ph:                                           ; preds = %1, %93
  %indvars.iv = phi i64 [ %indvars.iv.next, %93 ], [ 0, %1 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poly) #5
  %20 = trunc i64 %19 to i32
  %21 = trunc nuw nsw i64 %indvars.iv.next to i32
  %22 = srem i32 %21, %20
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %23 unwind label %41

23:                                               ; preds = %.lr.ph
  %24 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %indvars.iv) #5
  %25 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef nonnull %3, ptr noundef nonnull byval(%"class.std::complex") align 16 %24)
          to label %26 unwind label %43

26:                                               ; preds = %23
  %27 = fcmp ogt x86_fp80 %25, 0xK00000000000000000000
  br i1 %27, label %28, label %.thread35

.thread35:                                        ; preds = %26
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %53

28:                                               ; preds = %26
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %29 unwind label %43

29:                                               ; preds = %28
  %30 = zext nneg i32 %22 to i64
  %31 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %30) #5
  %32 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef nonnull %4, ptr noundef nonnull byval(%"class.std::complex") align 16 %31)
          to label %33 unwind label %45

33:                                               ; preds = %29
  %34 = fcmp olt x86_fp80 %32, 0xK00000000000000000000
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br i1 %34, label %35, label %53

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %36 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %indvars.iv) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %36, i64 32, i1 false), !tbaa.struct !5
  %37 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %30) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 16 dereferenceable(32) %37, i64 32, i1 false), !tbaa.struct !5
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %38 unwind label %48

38:                                               ; preds = %35
  invoke void @_Z9intersectSt7complexIeES0_St6vectorIiSaIiEE(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %5, ptr noundef nonnull byval(%"class.std::complex") align 16 %6, ptr noundef nonnull byval(%"class.std::complex") align 16 %7, ptr noundef nonnull %8)
          to label %39 unwind label %50

39:                                               ; preds = %38
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(32) %5)
          to label %40 unwind label %50

40:                                               ; preds = %39
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %53

41:                                               ; preds = %89, %82, %53, %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %97

43:                                               ; preds = %28, %23
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %29
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %97

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %39, %38
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %52

52:                                               ; preds = %50, %48
  %.pn27 = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %97

53:                                               ; preds = %.thread35, %40, %33
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %54 unwind label %41

54:                                               ; preds = %53
  %55 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %indvars.iv) #5
  %56 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef nonnull %9, ptr noundef nonnull byval(%"class.std::complex") align 16 %55)
          to label %57 unwind label %72

57:                                               ; preds = %54
  %58 = fcmp olt x86_fp80 %56, 0xK00000000000000000000
  br i1 %58, label %59, label %.thread37

.thread37:                                        ; preds = %57
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %82

59:                                               ; preds = %57
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %60 unwind label %72

60:                                               ; preds = %59
  %61 = zext nneg i32 %22 to i64
  %62 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %61) #5
  %63 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef nonnull %10, ptr noundef nonnull byval(%"class.std::complex") align 16 %62)
          to label %64 unwind label %74

64:                                               ; preds = %60
  %65 = fcmp ogt x86_fp80 %63, 0xK00000000000000000000
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br i1 %65, label %66, label %82

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  %67 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %indvars.iv) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) %67, i64 32, i1 false), !tbaa.struct !5
  %68 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %61) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %68, i64 32, i1 false), !tbaa.struct !5
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %69 unwind label %77

69:                                               ; preds = %66
  invoke void @_Z9intersectSt7complexIeES0_St6vectorIiSaIiEE(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %11, ptr noundef nonnull byval(%"class.std::complex") align 16 %12, ptr noundef nonnull byval(%"class.std::complex") align 16 %13, ptr noundef nonnull %14)
          to label %70 unwind label %79

70:                                               ; preds = %69
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %71 unwind label %79

71:                                               ; preds = %70
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %82

72:                                               ; preds = %59, %54
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %76

76:                                               ; preds = %74, %72
  %.pn29 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %97

77:                                               ; preds = %66
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %70, %69
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %81

81:                                               ; preds = %79, %77
  %.pn31 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %97

82:                                               ; preds = %.thread37, %71, %64
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %83 unwind label %41

83:                                               ; preds = %82
  %84 = zext nneg i32 %22 to i64
  %85 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %84) #5
  %86 = invoke noundef x86_fp80 @_Z4evalSt6vectorIiSaIiEESt7complexIeE(ptr noundef nonnull %15, ptr noundef nonnull byval(%"class.std::complex") align 16 %85)
          to label %87 unwind label %91

87:                                               ; preds = %83
  %88 = fcmp ult x86_fp80 %86, 0xK00000000000000000000
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br i1 %88, label %93, label %89

89:                                               ; preds = %87
  %90 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorISt7complexIeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poly, i64 noundef %84) #5
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(32) %90)
          to label %93 unwind label %41

91:                                               ; preds = %83
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %97

93:                                               ; preds = %89, %87
  %94 = call noundef i64 @_ZNKSt6vectorISt7complexIeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poly) #5
  %sext = shl i64 %94, 32
  %95 = ashr exact i64 %sext, 32
  %96 = icmp slt i64 %indvars.iv.next, %95
  br i1 %96, label %.lr.ph, label %._crit_edge, !llvm.loop !9

97:                                               ; preds = %91, %81, %76, %52, %47, %41
  %.pn33 = phi { ptr, i32 } [ %42, %41 ], [ %92, %91 ], [ %.pn31, %81 ], [ %.pn29, %76 ], [ %.pn27, %52 ], [ %.pn, %47 ]
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn33
}

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

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt7complexIeESaIS1_EEvRSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #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 = !{i64 0, i64 32, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass