; LLVM IR from TheAlgorithms/C-Plus-Plus :: numerical_methods/durand_kerner_roots.ll (Z5test1v)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::complex" = type { { double, double } }
%"class.std::valarray" = type { i64, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::valarray.0" = type { i64, ptr }
%"class.std::initializer_list.4" = type { ptr, i64 }
%"struct.std::pair" = type { i32, double }

@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@constinit = external hidden constant [3 x double], align 8
@constinit.13 = external hidden constant [2 x %"class.std::complex"], align 8
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [101 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1

; 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 nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_Z18durand_kerner_algoRKSt8valarrayIdEPS_ISt7complexIdEEb(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i1 noundef zeroext) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 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) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::valarray", align 8
  %2 = alloca %"class.std::initializer_list", align 8
  %3 = alloca [3 x double], align 8
  %4 = alloca %"class.std::valarray.0", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::valarray.0", align 8
  %8 = alloca %"class.std::initializer_list.4", align 8
  %9 = alloca [2 x %"class.std::complex"], align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 @constinit, i64 24, i1 false), !tbaa.struct !5
  %18 = getelementptr inbounds %"class.std::initializer_list", ptr %2, i32 0, i32 0
  store ptr %3, ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds %"class.std::initializer_list", ptr %2, i32 0, i32 1
  store i64 3, ptr %19, align 8, !tbaa !13
  %20 = getelementptr inbounds { ptr, i64 }, ptr %2, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8
  %22 = getelementptr inbounds { ptr, i64 }, ptr %2, i32 0, i32 1
  %23 = load i64, ptr %22, align 8
  call void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr %21, i64 %23)
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  invoke void @_ZNSt8valarrayISt7complexIdEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef 2)
          to label %24 unwind label %39

24:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @constinit.13, i64 32, i1 false), !tbaa.struct !14
  %25 = getelementptr inbounds %"class.std::initializer_list.4", ptr %8, i32 0, i32 0
  store ptr %9, ptr %25, align 8, !tbaa !15
  %26 = getelementptr inbounds %"class.std::initializer_list.4", ptr %8, i32 0, i32 1
  store i64 2, ptr %26, align 8, !tbaa !17
  %27 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8
  %29 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %30 = load i64, ptr %29, align 8
  invoke void @_ZNSt8valarrayISt7complexIdEEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr %28, i64 %30)
          to label %31 unwind label %43

31:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !18
  br label %32

32:                                               ; preds = %72, %31
  %33 = load i32, ptr %10, align 4, !tbaa !18
  %34 = sext i32 %33 to i64
  %35 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %36 unwind label %47

36:                                               ; preds = %32
  %37 = icmp ult i64 %34, %35
  br i1 %37, label %51, label %38

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

39:                                               ; preds = %0
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %5, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %6, align 4
  br label %179

43:                                               ; preds = %24
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %5, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %178

47:                                               ; preds = %66, %58, %32
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  br label %79

51:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %52 = call i32 @rand() #8
  %53 = srem i32 %52, 100
  %54 = sitofp i32 %53 to double
  %55 = call i32 @rand() #8
  %56 = srem i32 %55, 100
  %57 = sitofp i32 %56 to double
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %54, double noundef %57)
          to label %58 unwind label %75

58:                                               ; preds = %51
  %59 = load i32, ptr %10, align 4, !tbaa !18
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %60) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %62 = load i32, ptr %10, align 4, !tbaa !18
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %63) #8
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIEd(ptr noundef nonnull align 8 dereferenceable(16) %64, double noundef 5.000000e+01)
          to label %66 unwind label %47

66:                                               ; preds = %58
  %67 = load i32, ptr %10, align 4, !tbaa !18
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %68) #8
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16) %69, double noundef 2.500000e+01)
          to label %71 unwind label %47

71:                                               ; preds = %66
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %10, align 4, !tbaa !18
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %10, align 4, !tbaa !18
  br label %32, !llvm.loop !21

75:                                               ; preds = %51
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %79

79:                                               ; preds = %75, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %177

80:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %81 = invoke { i32, double } @_Z18durand_kerner_algoRKSt8valarrayIdEPS_ISt7complexIdEEb(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %4, i1 noundef zeroext false)
          to label %82 unwind label %94

82:                                               ; preds = %80
  %83 = getelementptr inbounds { i32, double }, ptr %12, i32 0, i32 0
  %84 = extractvalue { i32, double } %81, 0
  store i32 %84, ptr %83, align 8
  %85 = getelementptr inbounds { i32, double }, ptr %12, i32 0, i32 1
  %86 = extractvalue { i32, double } %81, 1
  store double %86, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !18
  br label %87

87:                                               ; preds = %155, %82
  %88 = load i32, ptr %13, align 4, !tbaa !18
  %89 = sext i32 %88 to i64
  %90 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %91 unwind label %98

91:                                               ; preds = %87
  %92 = icmp ult i64 %89, %90
  br i1 %92, label %102, label %93

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

94:                                               ; preds = %173, %171, %167, %165, %161, %159, %80
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %5, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %6, align 4
  br label %176

98:                                               ; preds = %87
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %5, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %6, align 4
  br label %158

102:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  store i8 0, ptr %15, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !18
  br label %103

103:                                              ; preds = %140, %102
  %104 = load i32, ptr %16, align 4, !tbaa !18
  %105 = sext i32 %104 to i64
  %106 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %107 unwind label %110

107:                                              ; preds = %103
  %108 = icmp ult i64 %105, %106
  br i1 %108, label %114, label %109

109:                                              ; preds = %107
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %148

110:                                              ; preds = %103
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %5, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %6, align 4
  br label %147

114:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %115 = load i32, ptr %13, align 4, !tbaa !18
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %116) #8
  %118 = load i32, ptr %16, align 4, !tbaa !18
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %119) #8
  %121 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %117, ptr noundef nonnull align 8 dereferenceable(16) %120)
          to label %122 unwind label %143

122:                                              ; preds = %114
  %123 = getelementptr inbounds %"class.std::complex", ptr %17, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %121, 0
  store double %125, ptr %124, align 8
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %121, 1
  store double %127, ptr %126, align 8
  %128 = invoke noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %129 unwind label %143

129:                                              ; preds = %122
  %130 = invoke noundef double @_ZSt3absd(double noundef %128)
          to label %131 unwind label %143

131:                                              ; preds = %129
  %132 = fcmp olt double %130, 1.000000e-03
  %133 = zext i1 %132 to i32
  %134 = load i8, ptr %15, align 1, !tbaa !23, !range !25, !noundef !26
  %135 = trunc i8 %134 to i1
  %136 = zext i1 %135 to i32
  %137 = or i32 %136, %133
  %138 = icmp ne i32 %137, 0
  %139 = zext i1 %138 to i8
  store i8 %139, ptr %15, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %140

140:                                              ; preds = %131
  %141 = load i32, ptr %16, align 4, !tbaa !18
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %16, align 4, !tbaa !18
  br label %103, !llvm.loop !27

143:                                              ; preds = %129, %122, %114
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %147

147:                                              ; preds = %143, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %158

148:                                              ; preds = %109
  %149 = load i8, ptr %15, align 1, !tbaa !23, !range !25, !noundef !26
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  br label %154

152:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 231, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %151
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %13, align 4, !tbaa !18
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %13, align 4, !tbaa !18
  br label %87, !llvm.loop !28

158:                                              ; preds = %147, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %176

159:                                              ; preds = %93
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
          to label %161 unwind label %94

161:                                              ; preds = %159
  %162 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !29
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %160, i32 noundef %163)
          to label %165 unwind label %94

165:                                              ; preds = %161
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef @.str.17)
          to label %167 unwind label %94

167:                                              ; preds = %165
  %168 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %169 = load double, ptr %168, align 8, !tbaa !32
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %166, double noundef %169)
          to label %171 unwind label %94

171:                                              ; preds = %167
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef @.str.18)
          to label %173 unwind label %94

173:                                              ; preds = %171
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef @.str.8)
          to label %175 unwind label %94

175:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #8
  ret void

176:                                              ; preds = %158, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %177

177:                                              ; preds = %176, %79
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br label %178

178:                                              ; preds = %177, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %179

179:                                              ; preds = %178, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #8
  br label %180

180:                                              ; preds = %179
  %181 = load ptr, ptr %5, align 8
  %182 = load i32, ptr %6, align 4
  %183 = insertvalue { ptr, i32 } poison, ptr %181, 0
  %184 = insertvalue { ptr, i32 } %183, i32 %182, 1
  resume { ptr, i32 } %184
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayISt7complexIdEEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayISt7complexIdEEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare i32 @rand() #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind "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 #7 = { noreturn nounwind "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 #8 = { nounwind }
attributes #9 = { noreturn 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 24, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt16initializer_listIdE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{i64 0, i64 32, !6}
!15 = !{!16, !11, i64 0}
!16 = !{!"_ZTSSt16initializer_listISt7complexIdEE", !11, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{i64 0, i64 16, !6}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = !{!30, !19, i64 0}
!30 = !{!"_ZTSSt4pairIjdE", !19, i64 0, !31, i64 8}
!31 = !{!"double", !7, i64 0}
!32 = !{!30, !31, i64 8}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::complex" = type { { double, double } }
%"class.std::valarray" = type { i64, ptr }
%"class.std::valarray.0" = type { i64, ptr }

@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@constinit = external hidden local_unnamed_addr constant [3 x double], align 8
@constinit.13 = external hidden local_unnamed_addr constant [2 x %"class.std::complex"], align 8
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [101 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1

; 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 nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i32, double } @_Z18durand_kerner_algoRKSt8valarrayIdEPS_ISt7complexIdEEb(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 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) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::valarray", align 8
  %2 = alloca [3 x double], align 8
  %3 = alloca %"class.std::valarray.0", align 8
  %4 = alloca %"class.std::valarray.0", align 8
  %5 = alloca [2 x %"class.std::complex"], align 8
  %6 = alloca %"class.std::complex", align 8
  %7 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) @constinit, i64 24, i1 false), !tbaa.struct !5
  call void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr nonnull %2, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  invoke void @_ZNSt8valarrayISt7complexIdEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef 2)
          to label %8 unwind label %12

8:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) @constinit.13, i64 32, i1 false), !tbaa.struct !9
  invoke void @_ZNSt8valarrayISt7complexIdEEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr nonnull %5, i64 2)
          to label %9 unwind label %14

9:                                                ; preds = %8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  %10 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %9
  %11 = invoke { i32, double } @_Z18durand_kerner_algoRKSt8valarrayIdEPS_ISt7complexIdEEb(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %3, i1 noundef zeroext false)
          to label %29 unwind label %39

12:                                               ; preds = %0
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %69

14:                                               ; preds = %8
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %68

.lr.ph:                                           ; preds = %9, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %9 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %16 = call i32 @rand() #8
  %17 = srem i32 %16, 100
  %18 = sitofp i32 %17 to double
  %19 = call i32 @rand() #8
  %20 = srem i32 %19, 100
  %21 = sitofp i32 %20 to double
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %18, double noundef %21)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv) #8
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIEd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 5.000000e+01)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv) #8
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16) %25, double noundef 2.500000e+01)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %28 = icmp ugt i64 %27, %indvars.iv.next
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !11

29:                                               ; preds = %._crit_edge
  %30 = extractvalue { i32, double } %11, 0
  %31 = extractvalue { i32, double } %11, 1
  %32 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not39 = icmp eq i64 %32, 0
  br i1 %.not39, label %._crit_edge38, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %29
  %33 = getelementptr inbounds i8, ptr %7, i64 8
  br label %.preheader

34:                                               ; preds = %._crit_edge36
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %35 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %36 = icmp ugt i64 %35, %indvars.iv.next45
  br i1 %36, label %.preheader, label %._crit_edge38, !llvm.loop !13

.preheader:                                       ; preds = %.preheader.lr.ph, %34
  %indvars.iv44 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next45, %34 ]
  %37 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not40 = icmp eq i64 %37, 0
  br i1 %.not40, label %._crit_edge36.thread, label %.lr.ph35

._crit_edge38:                                    ; preds = %34, %29
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.16)
          to label %56 unwind label %39

39:                                               ; preds = %64, %62, %60, %58, %56, %._crit_edge38, %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %67

._crit_edge36:                                    ; preds = %48
  br i1 %51, label %34, label %._crit_edge36.thread

.lr.ph35:                                         ; preds = %.preheader, %48
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %48 ], [ 0, %.preheader ]
  %.01833 = phi i1 [ %51, %48 ], [ false, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv44) #8
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv42) #8
  %43 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %44 unwind label %54

44:                                               ; preds = %.lr.ph35
  %45 = extractvalue { double, double } %43, 0
  store double %45, ptr %7, align 8
  %46 = extractvalue { double, double } %43, 1
  store double %46, ptr %33, align 8
  %47 = invoke noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %48 unwind label %54

48:                                               ; preds = %44
  %49 = call noundef double @_ZSt3absd(double noundef %47)
  %50 = fcmp olt double %49, 1.000000e-03
  %51 = or i1 %.01833, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %52 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %53 = icmp ugt i64 %52, %indvars.iv.next43
  br i1 %53, label %.lr.ph35, label %._crit_edge36, !llvm.loop !14

54:                                               ; preds = %44, %.lr.ph35
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %67

._crit_edge36.thread:                             ; preds = %.preheader, %._crit_edge36
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15, i32 noundef 231, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

56:                                               ; preds = %._crit_edge38
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef %30)
          to label %58 unwind label %39

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.17)
          to label %60 unwind label %39

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %59, double noundef %31)
          to label %62 unwind label %39

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.18)
          to label %64 unwind label %39

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.8)
          to label %66 unwind label %39

66:                                               ; preds = %64
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  ret void

67:                                               ; preds = %54, %39
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %40, %39 ]
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %68

68:                                               ; preds = %67, %14
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  br label %69

69:                                               ; preds = %68, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %68 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayISt7complexIdEEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayISt7complexIdEEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEdVEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayISt7complexIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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


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