; LLVM IR from TheAlgorithms/C-Plus-Plus :: numerical_methods/qr_eigen_values.ll (Z5test2v)

; 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::valarray.0" = type { i64, ptr }
%"class.std::valarray" = type { i64, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::initializer_list.1" = type { ptr, i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@constinit = external hidden constant [5 x double], align 8
@constinit.15 = external hidden constant [5 x double], align 8
@constinit.16 = external hidden constant [5 x double], align 8
@constinit.17 = external hidden constant [5 x double], align 8
@constinit.18 = external hidden constant [5 x double], align 8
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._Z5test2v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12qr_algorithm12eigen_valuesEPSt8valarrayIS0_IdEEb(ptr dead_on_unwind noalias writable sret(%"class.std::valarray.0") align 8, ptr noundef, i1 noundef zeroext) #2

declare i32 @__gxx_personality_v0(...)

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

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

; 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN12qr_algorithmlsIdEERSoS1_RKSt8valarrayIS2_IT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #2

; 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 @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; 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 @_ZNSt8valarrayIS_IdEEC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) unnamed_addr #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

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

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

30:                                               ; preds = %0
  %31 = getelementptr inbounds %"class.std::valarray.0", ptr %3, i64 1
  store ptr %31, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 @constinit.15, i64 40, i1 false), !tbaa.struct !5
  %32 = getelementptr inbounds %"class.std::initializer_list.1", ptr %9, i32 0, i32 0
  store ptr %10, ptr %32, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.std::initializer_list.1", ptr %9, i32 0, i32 1
  store i64 5, ptr %33, align 8, !tbaa !13
  %34 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8
  %36 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %37 = load i64, ptr %36, align 8
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr %35, i64 %37)
          to label %38 unwind label %105

38:                                               ; preds = %30
  %39 = getelementptr inbounds %"class.std::valarray.0", ptr %3, i64 2
  store ptr %39, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 @constinit.16, i64 40, i1 false), !tbaa.struct !5
  %40 = getelementptr inbounds %"class.std::initializer_list.1", ptr %11, i32 0, i32 0
  store ptr %12, ptr %40, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.std::initializer_list.1", ptr %11, i32 0, i32 1
  store i64 5, ptr %41, align 8, !tbaa !13
  %42 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %45 = load i64, ptr %44, align 8
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr %43, i64 %45)
          to label %46 unwind label %109

46:                                               ; preds = %38
  %47 = getelementptr inbounds %"class.std::valarray.0", ptr %3, i64 3
  store ptr %47, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 @constinit.17, i64 40, i1 false), !tbaa.struct !5
  %48 = getelementptr inbounds %"class.std::initializer_list.1", ptr %13, i32 0, i32 0
  store ptr %14, ptr %48, align 8, !tbaa !9
  %49 = getelementptr inbounds %"class.std::initializer_list.1", ptr %13, i32 0, i32 1
  store i64 5, ptr %49, align 8, !tbaa !13
  %50 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %53 = load i64, ptr %52, align 8
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr %51, i64 %53)
          to label %54 unwind label %113

54:                                               ; preds = %46
  %55 = getelementptr inbounds %"class.std::valarray.0", ptr %3, i64 4
  store ptr %55, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @constinit.18, i64 40, i1 false), !tbaa.struct !5
  %56 = getelementptr inbounds %"class.std::initializer_list.1", ptr %15, i32 0, i32 0
  store ptr %16, ptr %56, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.std::initializer_list.1", ptr %15, i32 0, i32 1
  store i64 5, ptr %57, align 8, !tbaa !13
  %58 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %61 = load i64, ptr %60, align 8
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr %59, i64 %61)
          to label %62 unwind label %117

62:                                               ; preds = %54
  store i1 false, ptr %17, align 1
  %63 = getelementptr inbounds %"class.std::initializer_list", ptr %2, i32 0, i32 0
  store ptr %3, ptr %63, align 8, !tbaa !14
  %64 = getelementptr inbounds %"class.std::initializer_list", ptr %2, i32 0, i32 1
  store i64 5, ptr %64, align 8, !tbaa !16
  %65 = getelementptr inbounds { ptr, i64 }, ptr %2, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i64 }, ptr %2, i32 0, i32 1
  %68 = load i64, ptr %67, align 8
  invoke void @_ZNSt8valarrayIS_IdEEC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr %66, i64 %68)
          to label %69 unwind label %121

69:                                               ; preds = %62
  %70 = getelementptr inbounds [5 x %"class.std::valarray.0"], ptr %3, i32 0, i32 0
  %71 = getelementptr inbounds %"class.std::valarray.0", ptr %70, i64 5
  br label %72

72:                                               ; preds = %72, %69
  %73 = phi ptr [ %71, %69 ], [ %74, %72 ]
  %74 = getelementptr inbounds %"class.std::valarray.0", ptr %73, i64 -1
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %74) #8
  %75 = icmp eq ptr %74, %70
  br i1 %75, label %76, label %72

76:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #8
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 40, i1 false)
  %77 = getelementptr inbounds [5 x double], ptr %18, i32 0, i32 0
  store double 0x40228D8EC95BFF04, ptr %77, align 16
  %78 = getelementptr inbounds [5 x double], ptr %18, i32 0, i32 1
  store double -9.269480e+00, ptr %78, align 8
  %79 = getelementptr inbounds [5 x double], ptr %18, i32 0, i32 2
  store double 2.018100e+00, ptr %79, align 16
  %80 = getelementptr inbounds [5 x double], ptr %18, i32 0, i32 3
  store double -1.035160e+00, ptr %80, align 8
  %81 = getelementptr inbounds [5 x double], ptr %18, i32 0, i32 4
  store double -5.989940e+00, ptr %81, align 16
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
          to label %83 unwind label %147

83:                                               ; preds = %76
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %85 unwind label %147

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  invoke void @_ZN12qr_algorithm12eigen_valuesEPSt8valarrayIS0_IdEEb(ptr dead_on_unwind writable sret(%"class.std::valarray.0") align 8 %19, ptr noundef %1, i1 noundef zeroext false)
          to label %86 unwind label %151

86:                                               ; preds = %85
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12qr_algorithmlsIdEERSoS1_RKSt8valarrayIS2_IT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %88 unwind label %155

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @.str.1)
          to label %90 unwind label %155

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef @.str.20)
          to label %92 unwind label %155

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12qr_algorithmlsIdEERSoS1_RKSt8valarrayIT_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %94 unwind label %155

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @.str.1)
          to label %96 unwind label %155

96:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !17
  br label %97

97:                                               ; preds = %229, %96
  %98 = load i32, ptr %20, align 4, !tbaa !17
  %99 = icmp slt i32 %98, 5
  br i1 %99, label %159, label %100

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

101:                                              ; preds = %0
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %136

105:                                              ; preds = %30
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  br label %135

109:                                              ; preds = %38
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %7, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %8, align 4
  br label %134

113:                                              ; preds = %46
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %7, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %8, align 4
  br label %133

117:                                              ; preds = %54
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %132

121:                                              ; preds = %62
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  %125 = getelementptr inbounds [5 x %"class.std::valarray.0"], ptr %3, i32 0, i32 0
  %126 = getelementptr inbounds %"class.std::valarray.0", ptr %125, i64 5
  br label %127

127:                                              ; preds = %127, %121
  %128 = phi ptr [ %126, %121 ], [ %129, %127 ]
  %129 = getelementptr inbounds %"class.std::valarray.0", ptr %128, i64 -1
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %129) #8
  %130 = icmp eq ptr %129, %125
  br i1 %130, label %131, label %127

131:                                              ; preds = %127
  br label %132

132:                                              ; preds = %131, %117
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  br label %133

133:                                              ; preds = %132, %113
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  br label %134

134:                                              ; preds = %133, %109
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #8
  br label %135

135:                                              ; preds = %134, %105
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #8
  br label %136

136:                                              ; preds = %135, %101
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #8
  %137 = load i1, ptr %17, align 1
  br i1 %137, label %138, label %146

138:                                              ; preds = %136
  %139 = load ptr, ptr %4, align 8
  %140 = icmp eq ptr %3, %139
  br i1 %140, label %145, label %141

141:                                              ; preds = %141, %138
  %142 = phi ptr [ %139, %138 ], [ %143, %141 ]
  %143 = getelementptr inbounds %"class.std::valarray.0", ptr %142, i64 -1
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %143) #8
  %144 = icmp eq ptr %143, %3
  br i1 %144, label %145, label %141

145:                                              ; preds = %141, %138
  br label %146

146:                                              ; preds = %145, %136
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #8
  br label %244

147:                                              ; preds = %83, %76
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  br label %243

151:                                              ; preds = %85
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %7, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %8, align 4
  br label %242

155:                                              ; preds = %238, %94, %92, %90, %88, %86
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %241

159:                                              ; preds = %97
  %160 = load i32, ptr %20, align 4, !tbaa !17
  %161 = add nsw i32 %160, 1
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %161)
          to label %163 unwind label %184

163:                                              ; preds = %159
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @.str.21)
          to label %165 unwind label %184

165:                                              ; preds = %163
  %166 = load i32, ptr %20, align 4, !tbaa !17
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [5 x double], ptr %18, i64 0, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !19
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %164, double noundef %169)
          to label %171 unwind label %184

171:                                              ; preds = %165
  %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.8)
          to label %173 unwind label %184

173:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  store i8 0, ptr %22, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !17
  br label %174

174:                                              ; preds = %217, %173
  %175 = load i32, ptr %23, align 4, !tbaa !17
  %176 = icmp slt i32 %175, 5
  br i1 %176, label %177, label %181

177:                                              ; preds = %174
  %178 = load i8, ptr %22, align 1, !tbaa !21, !range !23, !noundef !24
  %179 = trunc i8 %178 to i1
  %180 = xor i1 %179, true
  br label %181

181:                                              ; preds = %177, %174
  %182 = phi i1 [ false, %174 ], [ %180, %177 ]
  br i1 %182, label %188, label %183

183:                                              ; preds = %181
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %220

184:                                              ; preds = %171, %165, %163, %159
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %7, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %8, align 4
  br label %237

188:                                              ; preds = %181
  %189 = load i32, ptr %20, align 4, !tbaa !17
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [5 x double], ptr %18, i64 0, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !19
  %193 = load i32, ptr %23, align 4, !tbaa !17
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %194) #8
  %196 = load double, ptr %195, align 8, !tbaa !19
  %197 = fsub double %192, %196
  %198 = invoke noundef double @_ZSt3absd(double noundef %197)
          to label %199 unwind label %212

199:                                              ; preds = %188
  %200 = fcmp olt double %198, 1.000000e-01
  br i1 %200, label %201, label %216

201:                                              ; preds = %199
  store i8 1, ptr %22, align 1, !tbaa !21
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
          to label %203 unwind label %212

203:                                              ; preds = %201
  %204 = load i32, ptr %23, align 4, !tbaa !17
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %205) #8
  %207 = load double, ptr %206, align 8, !tbaa !19
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %202, double noundef %207)
          to label %209 unwind label %212

209:                                              ; preds = %203
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @.str.10)
          to label %211 unwind label %212

211:                                              ; preds = %209
  br label %216

212:                                              ; preds = %209, %203, %201, %188
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %7, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %236

216:                                              ; preds = %211, %199
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %23, align 4, !tbaa !17
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %23, align 4, !tbaa !17
  br label %174, !llvm.loop !25

220:                                              ; preds = %183
  %221 = load i8, ptr %22, align 1, !tbaa !21, !range !23, !noundef !24
  %222 = trunc i8 %221 to i1
  br i1 %222, label %223, label %224

223:                                              ; preds = %220
  br label %226

224:                                              ; preds = %220
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 234, ptr noundef @__PRETTY_FUNCTION__._Z5test2v) #9
  unreachable

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %223
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
          to label %228 unwind label %232

228:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %20, align 4, !tbaa !17
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %20, align 4, !tbaa !17
  br label %97, !llvm.loop !27

232:                                              ; preds = %226
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %7, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %8, align 4
  br label %236

236:                                              ; preds = %232, %212
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %237

237:                                              ; preds = %236, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %241

238:                                              ; preds = %100
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.22)
          to label %240 unwind label %155

240:                                              ; preds = %238
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #8
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #8
  ret void

241:                                              ; preds = %237, %155
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  br label %242

242:                                              ; preds = %241, %151
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %243

243:                                              ; preds = %242, %147
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #8
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  br label %244

244:                                              ; preds = %243, %146
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #8
  br label %245

245:                                              ; preds = %244
  %246 = load ptr, ptr %7, align 8
  %247 = load i32, ptr %8, align 4
  %248 = insertvalue { ptr, i32 } poison, ptr %246, 0
  %249 = insertvalue { ptr, i32 } %248, i32 %247, 1
  resume { ptr, i32 } %249
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 40, !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 = !{!15, !11, i64 0}
!15 = !{!"_ZTSSt16initializer_listISt8valarrayIdEE", !11, i64 0, !12, i64 8}
!16 = !{!15, !12, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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::valarray.0" = type { i64, ptr }
%"class.std::valarray" = type { i64, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [5 x double], align 8
@constinit.15 = external hidden local_unnamed_addr constant [5 x double], align 8
@constinit.16 = external hidden local_unnamed_addr constant [5 x double], align 8
@constinit.17 = external hidden local_unnamed_addr constant [5 x double], align 8
@constinit.18 = external hidden local_unnamed_addr constant [5 x double], align 8
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._Z5test2v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12qr_algorithm12eigen_valuesEPSt8valarrayIS0_IdEEb(ptr dead_on_unwind noalias writable sret(%"class.std::valarray.0") align 8, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN12qr_algorithmlsIdEERSoS1_RKSt8valarrayIS2_IT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; 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 @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; 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 @_ZNSt8valarrayIS_IdEEC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) unnamed_addr #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

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

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

10:                                               ; preds = %0
  %11 = getelementptr inbounds i8, ptr %2, i64 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) @constinit.15, i64 40, i1 false), !tbaa.struct !5
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr nonnull %4, i64 5)
          to label %12 unwind label %.thread77

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %2, i64 32
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) @constinit.16, i64 40, i1 false), !tbaa.struct !5
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr nonnull %5, i64 5)
          to label %14 unwind label %.thread83

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %2, i64 48
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) @constinit.17, i64 40, i1 false), !tbaa.struct !5
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr nonnull %6, i64 5)
          to label %16 unwind label %.thread87

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %2, i64 64
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) @constinit.18, i64 40, i1 false), !tbaa.struct !5
  invoke void @_ZNSt8valarrayIdEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr nonnull %7, i64 5)
          to label %18 unwind label %51

18:                                               ; preds = %16
  invoke void @_ZNSt8valarrayIS_IdEEC2ESt16initializer_listIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr nonnull %2, i64 5)
          to label %19 unwind label %.thread91

19:                                               ; preds = %18
  %20 = getelementptr inbounds i8, ptr %2, i64 64
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  %21 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  %22 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  %23 = getelementptr inbounds i8, ptr %2, i64 16
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  store <2 x double> <double 0x40228D8EC95BFF04, double -9.269480e+00>, ptr %8, align 16
  %24 = getelementptr inbounds i8, ptr %8, i64 16
  store <2 x double> <double 2.018100e+00, double -1.035160e+00>, ptr %24, align 16
  %25 = getelementptr inbounds i8, ptr %8, i64 32
  store double -5.989940e+00, ptr %25, align 16
  %26 = 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.19)
          to label %27 unwind label %56

27:                                               ; preds = %19
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %29 unwind label %56

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZN12qr_algorithm12eigen_valuesEPSt8valarrayIS0_IdEEb(ptr dead_on_unwind nonnull writable sret(%"class.std::valarray.0") align 8 %9, ptr noundef nonnull %1, i1 noundef zeroext false)
          to label %30 unwind label %58

30:                                               ; preds = %29
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12qr_algorithmlsIdEERSoS1_RKSt8valarrayIS2_IT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %32 unwind label %60

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @.str.1)
          to label %34 unwind label %60

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.20)
          to label %36 unwind label %60

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12qr_algorithmlsIdEERSoS1_RKSt8valarrayIT_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %38 unwind label %60

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @.str.1)
          to label %.preheader68 unwind label %60

.preheader68:                                     ; preds = %38, %91
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %91 ], [ 0, %38 ]
  %exitcond.not = icmp eq i64 %indvars.iv74, 5
  br i1 %exitcond.not, label %40, label %62

40:                                               ; preds = %.preheader68
  %41 = 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.22)
          to label %95 unwind label %60

.thread:                                          ; preds = %0
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %.loopexit

.thread77:                                        ; preds = %10
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %.preheader69.preheader

.thread83:                                        ; preds = %12
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %.preheader69.preheader

.thread87:                                        ; preds = %14
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %.preheader69.preheader

.thread91:                                        ; preds = %18
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = getelementptr inbounds i8, ptr %2, i64 64
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #7
  %48 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #7
  %49 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %49) #7
  %50 = getelementptr inbounds i8, ptr %2, i64 16
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #7
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %.loopexit

51:                                               ; preds = %16
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %.preheader69.preheader

.preheader69.preheader:                           ; preds = %51, %.thread87, %.thread83, %.thread77
  %.23182 = phi ptr [ %11, %.thread77 ], [ %17, %51 ], [ %13, %.thread83 ], [ %15, %.thread87 ]
  %.pn.pn.pn.pn81 = phi { ptr, i32 } [ %43, %.thread77 ], [ %52, %51 ], [ %44, %.thread83 ], [ %45, %.thread87 ]
  br label %.preheader69

.preheader69:                                     ; preds = %.preheader69.preheader, %.preheader69
  %53 = phi ptr [ %54, %.preheader69 ], [ %.23182, %.preheader69.preheader ]
  %54 = getelementptr inbounds i8, ptr %53, i64 -16
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %54) #7
  %55 = icmp eq ptr %54, %2
  br i1 %55, label %.loopexit, label %.preheader69

.loopexit:                                        ; preds = %.preheader69, %.thread91, %.thread
  %.pn.pn.pn.pn.pn67 = phi { ptr, i32 } [ %42, %.thread ], [ %46, %.thread91 ], [ %.pn.pn.pn.pn81, %.preheader69 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #7
  br label %99

56:                                               ; preds = %27, %19
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %98

58:                                               ; preds = %29
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %97

60:                                               ; preds = %40, %38, %36, %34, %32, %30
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %96

62:                                               ; preds = %.preheader68
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %63 = trunc nuw nsw i64 %indvars.iv.next75 to i32
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %63)
          to label %65 unwind label %73

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

67:                                               ; preds = %65
  %68 = getelementptr inbounds [5 x double], ptr %8, i64 0, i64 %indvars.iv74
  %69 = load double, ptr %68, align 8, !tbaa !9
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %66, double noundef %69)
          to label %71 unwind label %73

71:                                               ; preds = %67
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.8)
          to label %.preheader unwind label %73

73:                                               ; preds = %71, %67, %65, %62
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %96

.preheader:                                       ; preds = %71, %.thread93
  %indvars.iv = phi i64 [ %indvars.iv.next94, %.thread93 ], [ 0, %71 ]
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #7
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = fsub double %69, %76
  %78 = call noundef double @_ZSt3absd(double noundef %77)
  %79 = fcmp olt double %78, 1.000000e-01
  br i1 %79, label %80, label %.thread93

80:                                               ; preds = %.preheader
  %81 = 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.9)
          to label %82 unwind label %88

82:                                               ; preds = %80
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #7
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %81, double noundef %84)
          to label %86 unwind label %88

86:                                               ; preds = %82
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @.str.10)
          to label %91 unwind label %88

88:                                               ; preds = %86, %82, %80
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %96

.thread93:                                        ; preds = %.preheader
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv, 1
  %90 = icmp ugt i64 %indvars.iv, 3
  %.not5595 = or i1 %90, %79
  br i1 %.not5595, label %.thread96, label %.preheader, !llvm.loop !11

.thread96:                                        ; preds = %.thread93
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 234, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test2v) #8
  unreachable

91:                                               ; preds = %86
  %92 = 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.13)
          to label %.preheader68 unwind label %93, !llvm.loop !13

93:                                               ; preds = %91
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %96

95:                                               ; preds = %40
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  ret void

96:                                               ; preds = %73, %93, %88, %60
  %.pn56.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %74, %73 ], [ %89, %88 ], [ %94, %93 ]
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %97

97:                                               ; preds = %96, %58
  %.pn56.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn, %96 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %98

98:                                               ; preds = %97, %56
  %.pn56.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn, %97 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #7
  br label %99

99:                                               ; preds = %98, %.loopexit
  %.pn56.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn, %98 ], [ %.pn.pn.pn.pn.pn67, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn56.pn.pn.pn.pn.pn
}

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

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


; Effective O3 passes: ADCEPass,AggressiveInstCombinePass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass