; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libOrsa (orsa_model)

; 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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl" }
%"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl" = type { %"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.orsa::OrsaModel::ErrorIndex" = type { double, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.15" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.16" = type { ptr }
%"class.orsa::OrsaModel" = type <{ ptr, %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", [2 x double], i8, [7 x i8] }>
%"class.libNumerics::matrix" = type { ptr, i32, i32, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, i64 } @_ZNK4orsa9OrsaModel7bestNFAERKSt6vectorINS0_10ErrorIndexESaIS2_EEddRKS1_IfSaIfEESA_(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16), double noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare double @log10(double noundef) #3

; 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 dso_local noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121), double noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK4orsa9OrsaModel4orsaERSt6vectorIiSaIiEEmPdPN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i1 noundef zeroext %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca %"class.std::vector.5", align 8
  %19 = alloca %"class.std::allocator.7", align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector.0", align 8
  %23 = alloca %"class.std::allocator.2", align 1
  %24 = alloca %"class.std::vector.0", align 8
  %25 = alloca %"class.std::allocator.2", align 1
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca %"class.std::vector.10", align 8
  %29 = alloca %"class.std::vector.10", align 8
  %30 = alloca i64, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca %"class.std::vector", align 8
  %36 = alloca i8, align 1
  %37 = alloca i64, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca double, align 8
  %41 = alloca %"struct.orsa::OrsaModel::ErrorIndex", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca %"struct.orsa::OrsaModel::ErrorIndex", align 8
  %45 = alloca i32, align 4
  %46 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  %49 = zext i1 %5 to i8
  store i8 %49, ptr %13, align 1, !tbaa !11
  %50 = load ptr, ptr %8, align 8
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %52 = load ptr, ptr %50, align 8, !tbaa !13
  %53 = getelementptr inbounds ptr, ptr %52, i64 2
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef i32 %54(ptr noundef nonnull align 8 dereferenceable(121) %50)
  store i32 %55, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %56 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %50, i32 0, i32 1
  %57 = call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
  store i32 %57, ptr %15, align 4, !tbaa !15
  %58 = load i32, ptr %15, align 4, !tbaa !15
  %59 = load i32, ptr %14, align 4, !tbaa !15
  %60 = icmp sle i32 %58, %59
  br i1 %60, label %61, label %63

61:                                               ; preds = %6
  %62 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  store double %62, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %472

63:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %82

66:                                               ; preds = %63
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load double, ptr %67, align 8, !tbaa !17
  %69 = fcmp ogt double %68, 0.000000e+00
  br i1 %69, label %70, label %82

70:                                               ; preds = %66
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load double, ptr %71, align 8, !tbaa !17
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load double, ptr %73, align 8, !tbaa !17
  %75 = fmul double %72, %74
  %76 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %50, i32 0, i32 4
  %77 = call noundef double @_ZNK11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %76, i32 noundef 0, i32 noundef 0)
  %78 = fmul double %75, %77
  %79 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %50, i32 0, i32 4
  %80 = call noundef double @_ZNK11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %79, i32 noundef 0, i32 noundef 0)
  %81 = fmul double %78, %80
  br label %84

82:                                               ; preds = %66, %63
  %83 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  br label %84

84:                                               ; preds = %82, %70
  %85 = phi double [ %81, %70 ], [ %83, %82 ]
  store double %85, ptr %17, align 8, !tbaa !17
  %86 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %99

88:                                               ; preds = %84
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load double, ptr %89, align 8, !tbaa !17
  %91 = fcmp une double %90, 0.000000e+00
  br i1 %91, label %92, label %98

92:                                               ; preds = %88
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load double, ptr %94, align 8, !tbaa !17
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %93, double noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %98

98:                                               ; preds = %92, %88
  br label %99

99:                                               ; preds = %98, %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  %100 = load i32, ptr %15, align 4, !tbaa !15
  %101 = sext i32 %100 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  call void @_ZNSaIN4orsa9OrsaModel10ErrorIndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %101, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %102 unwind label %114

102:                                              ; preds = %99
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  %103 = load i32, ptr %14, align 4, !tbaa !15
  %104 = sext i32 %103 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %104, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %105 unwind label %118

105:                                              ; preds = %102
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  %106 = load i32, ptr %15, align 4, !tbaa !15
  %107 = sext i32 %106 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %107, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %108 unwind label %122

108:                                              ; preds = %105
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !15
  br label %109

109:                                              ; preds = %131, %108
  %110 = load i32, ptr %26, align 4, !tbaa !15
  %111 = load i32, ptr %15, align 4, !tbaa !15
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %126, label %113

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

114:                                              ; preds = %99
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %20, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %471

118:                                              ; preds = %102
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %20, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %470

122:                                              ; preds = %105
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %20, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %469

126:                                              ; preds = %109
  %127 = load i32, ptr %26, align 4, !tbaa !15
  %128 = load i32, ptr %26, align 4, !tbaa !15
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %129) #8
  store i32 %127, ptr %130, align 4, !tbaa !15
  br label %131

131:                                              ; preds = %126
  %132 = load i32, ptr %26, align 4, !tbaa !15
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %26, align 4, !tbaa !15
  br label %109, !llvm.loop !21

134:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %135 = load ptr, ptr %50, align 8, !tbaa !13
  %136 = getelementptr inbounds ptr, ptr %135, i64 3
  %137 = load ptr, ptr %136, align 8
  %138 = invoke noundef i32 %137(ptr noundef nonnull align 8 dereferenceable(121) %50)
          to label %139 unwind label %163

139:                                              ; preds = %134
  %140 = sitofp i32 %138 to double
  %141 = load i32, ptr %15, align 4, !tbaa !15
  %142 = load i32, ptr %14, align 4, !tbaa !15
  %143 = sub nsw i32 %141, %142
  %144 = sitofp i32 %143 to double
  %145 = fmul double %140, %144
  %146 = call double @log10(double noundef %145) #8
  store double %146, ptr %27, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %147 = load i32, ptr %15, align 4, !tbaa !15
  invoke void @_ZN4orsaL14makelogcombi_nEiRSt6vectorIfSaIfEE(i32 noundef %147, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %148 unwind label %167

148:                                              ; preds = %139
  %149 = load i32, ptr %14, align 4, !tbaa !15
  %150 = load i32, ptr %15, align 4, !tbaa !15
  invoke void @_ZN4orsaL14makelogcombi_kEiiRSt6vectorIfSaIfEE(i32 noundef %149, i32 noundef %150, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %151 unwind label %167

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %152 = load i64, ptr %10, align 8, !tbaa !9
  %153 = udiv i64 %152, 10
  store i64 %153, ptr %30, align 8, !tbaa !9
  %154 = load i64, ptr %30, align 8, !tbaa !9
  %155 = load i64, ptr %10, align 8, !tbaa !9
  %156 = sub i64 %155, %154
  store i64 %156, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %157 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  store double %157, ptr %31, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store double 0.000000e+00, ptr %32, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  store i64 0, ptr %34, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %415, %151
  %159 = load i64, ptr %34, align 8, !tbaa !9
  %160 = load i64, ptr %10, align 8, !tbaa !9
  %161 = icmp ult i64 %159, %160
  br i1 %161, label %171, label %162

162:                                              ; preds = %158
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %421

163:                                              ; preds = %134
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %20, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %21, align 4
  br label %468

167:                                              ; preds = %148, %139
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %20, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %21, align 4
  br label %467

171:                                              ; preds = %158
  %172 = load i32, ptr %14, align 4, !tbaa !15
  invoke void @_ZN4orsaL13UniformSampleEiRKSt6vectorIiSaIiEEPS2_(i32 noundef %172, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef %22)
          to label %173 unwind label %183

173:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  %174 = load ptr, ptr %50, align 8, !tbaa !13
  %175 = getelementptr inbounds ptr, ptr %174, i64 6
  %176 = load ptr, ptr %175, align 8
  invoke void %176(ptr noundef nonnull align 8 dereferenceable(121) %50, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef %35)
          to label %177 unwind label %187

177:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #8
  store i8 0, ptr %36, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  store i64 0, ptr %37, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %370, %177
  %179 = load i64, ptr %37, align 8, !tbaa !9
  %180 = call noundef i64 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  %181 = icmp ult i64 %179, %180
  br i1 %181, label %191, label %182

182:                                              ; preds = %178
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %375

183:                                              ; preds = %171
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %20, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %21, align 4
  br label %420

187:                                              ; preds = %173
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %20, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %21, align 4
  br label %419

191:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !15
  br label %192

192:                                              ; preds = %213, %191
  %193 = load i32, ptr %38, align 4, !tbaa !15
  %194 = load i32, ptr %15, align 4, !tbaa !15
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %225

197:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %198 = load i64, ptr %37, align 8, !tbaa !9
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %198) #8
  %200 = load i32, ptr %38, align 4, !tbaa !15
  %201 = load ptr, ptr %50, align 8, !tbaa !13
  %202 = getelementptr inbounds ptr, ptr %201, i64 5
  %203 = load ptr, ptr %202, align 8
  %204 = invoke noundef double %203(ptr noundef nonnull align 8 dereferenceable(121) %50, ptr noundef nonnull align 8 dereferenceable(24) %199, i32 noundef %200, ptr noundef %39)
          to label %205 unwind label %216

205:                                              ; preds = %197
  store double %204, ptr %40, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  %206 = load double, ptr %40, align 8, !tbaa !17
  %207 = load i32, ptr %38, align 4, !tbaa !15
  %208 = load i32, ptr %39, align 4, !tbaa !15
  invoke void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16) %41, double noundef %206, i32 noundef %207, i32 noundef %208)
          to label %209 unwind label %220

209:                                              ; preds = %205
  %210 = load i32, ptr %38, align 4, !tbaa !15
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %211) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %212, ptr align 8 %41, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %213

213:                                              ; preds = %209
  %214 = load i32, ptr %38, align 4, !tbaa !15
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %38, align 4, !tbaa !15
  br label %192, !llvm.loop !24

216:                                              ; preds = %197
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %20, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %21, align 4
  br label %224

220:                                              ; preds = %205
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %20, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br label %224

224:                                              ; preds = %220, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %374

225:                                              ; preds = %196
  %226 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  %228 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %229 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %228, ptr %229, align 8
  %230 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4orsa9OrsaModel10ErrorIndexESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %231, ptr %233)
          to label %234 unwind label %263

234:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  %235 = load double, ptr %27, align 8, !tbaa !17
  %236 = load double, ptr %17, align 8, !tbaa !17
  %237 = invoke { double, i64 } @_ZNK4orsa9OrsaModel7bestNFAERKSt6vectorINS0_10ErrorIndexESaIS2_EEddRKS1_IfSaIfEESA_(ptr noundef nonnull align 8 dereferenceable(121) %50, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %235, double noundef %236, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %238 unwind label %267

238:                                              ; preds = %234
  %239 = getelementptr inbounds { double, i64 }, ptr %44, i32 0, i32 0
  %240 = extractvalue { double, i64 } %237, 0
  store double %240, ptr %239, align 8
  %241 = getelementptr inbounds { double, i64 }, ptr %44, i32 0, i32 1
  %242 = extractvalue { double, i64 } %237, 1
  store i64 %242, ptr %241, align 8
  %243 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 0
  %244 = load double, ptr %243, align 8, !tbaa !25
  %245 = load double, ptr %31, align 8, !tbaa !17
  %246 = fcmp olt double %244, %245
  br i1 %246, label %247, label %369

247:                                              ; preds = %238
  store i8 1, ptr %36, align 1, !tbaa !11
  %248 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 0
  %249 = load double, ptr %248, align 8, !tbaa !25
  store double %249, ptr %31, align 8, !tbaa !17
  %250 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 2
  %251 = load i32, ptr %250, align 4, !tbaa !27
  store i32 %251, ptr %33, align 4, !tbaa !15
  %252 = load ptr, ptr %9, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 1
  %254 = load i32, ptr %253, align 8, !tbaa !28
  %255 = sext i32 %254 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %255)
          to label %256 unwind label %267

256:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 0, ptr %45, align 4, !tbaa !15
  br label %257

257:                                              ; preds = %281, %256
  %258 = load i32, ptr %45, align 4, !tbaa !15
  %259 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 1
  %260 = load i32, ptr %259, align 8, !tbaa !28
  %261 = icmp slt i32 %258, %260
  br i1 %261, label %271, label %262

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

263:                                              ; preds = %225
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %20, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %21, align 4
  br label %374

267:                                              ; preds = %365, %363, %337, %335, %328, %326, %324, %320, %318, %314, %312, %309, %307, %298, %247, %234
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %20, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %21, align 4
  br label %373

271:                                              ; preds = %257
  %272 = load i32, ptr %45, align 4, !tbaa !15
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %273) #8
  %275 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %274, i32 0, i32 1
  %276 = load i32, ptr %275, align 8, !tbaa !28
  %277 = load ptr, ptr %9, align 8, !tbaa !5
  %278 = load i32, ptr %45, align 4, !tbaa !15
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %279) #8
  store i32 %276, ptr %280, align 4, !tbaa !15
  br label %281

281:                                              ; preds = %271
  %282 = load i32, ptr %45, align 4, !tbaa !15
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %45, align 4, !tbaa !15
  br label %257, !llvm.loop !29

284:                                              ; preds = %262
  %285 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 1
  %286 = load i32, ptr %285, align 8, !tbaa !28
  %287 = sub nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %288) #8
  %290 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %289, i32 0, i32 0
  %291 = load double, ptr %290, align 8, !tbaa !25
  store double %291, ptr %32, align 8, !tbaa !17
  %292 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 0
  %293 = load double, ptr %292, align 8, !tbaa !25
  %294 = fcmp olt double %293, 0.000000e+00
  br i1 %294, label %295, label %304

295:                                              ; preds = %284
  %296 = load ptr, ptr %12, align 8, !tbaa !5
  %297 = icmp ne ptr %296, null
  br i1 %297, label %298, label %304

298:                                              ; preds = %295
  %299 = load i64, ptr %37, align 8, !tbaa !9
  %300 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %299) #8
  %301 = load ptr, ptr %12, align 8, !tbaa !5
  %302 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6matrixIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %301, ptr noundef nonnull align 8 dereferenceable(24) %300)
          to label %303 unwind label %267

303:                                              ; preds = %298
  br label %304

304:                                              ; preds = %303, %295, %284
  %305 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %306 = trunc i8 %305 to i1
  br i1 %306, label %307, label %368

307:                                              ; preds = %304
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %309 unwind label %267

309:                                              ; preds = %307
  %310 = load double, ptr %31, align 8, !tbaa !17
  %311 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %308, double noundef %310)
          to label %312 unwind label %267

312:                                              ; preds = %309
  %313 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %311, ptr noundef @.str.6)
          to label %314 unwind label %267

314:                                              ; preds = %312
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %315) #8
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %313, i64 noundef %316)
          to label %318 unwind label %267

318:                                              ; preds = %314
  %319 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %317, ptr noundef @.str.7)
          to label %320 unwind label %267

320:                                              ; preds = %318
  %321 = load double, ptr %32, align 8, !tbaa !17
  %322 = load i32, ptr %33, align 4, !tbaa !15
  %323 = invoke noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121) %50, double noundef %321, i32 noundef %322)
          to label %324 unwind label %267

324:                                              ; preds = %320
  %325 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %319, double noundef %323)
          to label %326 unwind label %267

326:                                              ; preds = %324
  %327 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %325, ptr noundef @.str.8)
          to label %328 unwind label %267

328:                                              ; preds = %326
  %329 = load i64, ptr %34, align 8, !tbaa !9
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %327, i64 noundef %329)
          to label %331 unwind label %267

331:                                              ; preds = %328
  %332 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %44, i32 0, i32 0
  %333 = load double, ptr %332, align 8, !tbaa !25
  %334 = fcmp olt double %333, 0.000000e+00
  br i1 %334, label %335, label %363

335:                                              ; preds = %331
  %336 = 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 %337 unwind label %267

337:                                              ; preds = %335
  %338 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %339 = load i32, ptr %338, align 4, !tbaa !15
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %336, i32 noundef %339)
          to label %341 unwind label %267

341:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %342 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %343 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %47, i32 0, i32 0
  store ptr %342, ptr %343, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  br label %345

345:                                              ; preds = %356, %341
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %346 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %347 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %48, i32 0, i32 0
  store ptr %346, ptr %347, align 8
  %348 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T1_EERKNS7_IT0_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br i1 %348, label %349, label %362

349:                                              ; preds = %345
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 44)
          to label %351 unwind label %358

351:                                              ; preds = %349
  %352 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  %353 = load i32, ptr %352, align 4, !tbaa !15
  %354 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %350, i32 noundef %353)
          to label %355 unwind label %358

355:                                              ; preds = %351
  br label %356

356:                                              ; preds = %355
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  br label %345, !llvm.loop !30

358:                                              ; preds = %351, %349
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %20, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %373

362:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %363

363:                                              ; preds = %362, %331
  %364 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %365 unwind label %267

365:                                              ; preds = %363
  %366 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %364, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %367 unwind label %267

367:                                              ; preds = %365
  br label %368

368:                                              ; preds = %367, %304
  br label %369

369:                                              ; preds = %368, %238
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  br label %370

370:                                              ; preds = %369
  %371 = load i64, ptr %37, align 8, !tbaa !9
  %372 = add i64 %371, 1
  store i64 %372, ptr %37, align 8, !tbaa !9
  br label %178, !llvm.loop !31

373:                                              ; preds = %358, %267
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  br label %374

374:                                              ; preds = %373, %263, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %418

375:                                              ; preds = %182
  %376 = load i8, ptr %36, align 1, !tbaa !11, !range !19, !noundef !20
  %377 = trunc i8 %376 to i1
  br i1 %377, label %378, label %381

378:                                              ; preds = %375
  %379 = load double, ptr %31, align 8, !tbaa !17
  %380 = fcmp olt double %379, 0.000000e+00
  br i1 %380, label %389, label %381

381:                                              ; preds = %378, %375
  %382 = load i64, ptr %34, align 8, !tbaa !9
  %383 = add i64 %382, 1
  %384 = load i64, ptr %10, align 8, !tbaa !9
  %385 = icmp eq i64 %383, %384
  br i1 %385, label %386, label %414

386:                                              ; preds = %381
  %387 = load i64, ptr %30, align 8, !tbaa !9
  %388 = icmp ne i64 %387, 0
  br i1 %388, label %389, label %414

389:                                              ; preds = %386, %378
  %390 = load ptr, ptr %9, align 8, !tbaa !5
  %391 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %390) #8
  br i1 %391, label %392, label %397

392:                                              ; preds = %389
  %393 = load i64, ptr %10, align 8, !tbaa !9
  %394 = add i64 %393, 1
  store i64 %394, ptr %10, align 8, !tbaa !9
  %395 = load i64, ptr %30, align 8, !tbaa !9
  %396 = add i64 %395, -1
  store i64 %396, ptr %30, align 8, !tbaa !9
  br label %413

397:                                              ; preds = %389
  %398 = load ptr, ptr %9, align 8, !tbaa !5
  %399 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %398)
          to label %400 unwind label %408

400:                                              ; preds = %397
  %401 = load i64, ptr %30, align 8, !tbaa !9
  %402 = icmp ne i64 %401, 0
  br i1 %402, label %403, label %412

403:                                              ; preds = %400
  %404 = load i64, ptr %34, align 8, !tbaa !9
  %405 = add i64 %404, 1
  %406 = load i64, ptr %30, align 8, !tbaa !9
  %407 = add i64 %405, %406
  store i64 %407, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %412

408:                                              ; preds = %397
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %20, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %21, align 4
  br label %418

412:                                              ; preds = %403, %400
  br label %413

413:                                              ; preds = %412, %392
  br label %414

414:                                              ; preds = %413, %386, %381
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #8
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  br label %415

415:                                              ; preds = %414
  %416 = load i64, ptr %34, align 8, !tbaa !9
  %417 = add i64 %416, 1
  store i64 %417, ptr %34, align 8, !tbaa !9
  br label %158, !llvm.loop !32

418:                                              ; preds = %408, %374
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #8
  br label %419

419:                                              ; preds = %418, %187
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  br label %420

420:                                              ; preds = %419, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %466

421:                                              ; preds = %162
  %422 = load double, ptr %31, align 8, !tbaa !17
  %423 = fcmp oge double %422, 0.000000e+00
  br i1 %423, label %424, label %426

424:                                              ; preds = %421
  %425 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %425) #8
  br label %426

426:                                              ; preds = %424, %421
  %427 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %50, i32 0, i32 6
  %428 = load i8, ptr %427, align 8, !tbaa !33, !range !19, !noundef !20
  %429 = trunc i8 %428 to i1
  br i1 %429, label %430, label %443

430:                                              ; preds = %426
  %431 = load double, ptr %27, align 8, !tbaa !17
  %432 = load double, ptr %17, align 8, !tbaa !17
  %433 = load double, ptr %31, align 8, !tbaa !17
  %434 = load ptr, ptr %12, align 8, !tbaa !5
  %435 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %436 = trunc i8 %435 to i1
  %437 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNK4orsa9OrsaModel22refineUntilConvergenceERKSt6vectorIfSaIfEES5_dddPN11libNumerics6matrixIdEEbRS1_IiSaIiEERdRi(ptr noundef nonnull align 8 dereferenceable(121) %50, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29, double noundef %431, double noundef %432, double noundef %433, ptr noundef %434, i1 noundef zeroext %436, ptr noundef nonnull align 8 dereferenceable(24) %437, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %438 unwind label %439

438:                                              ; preds = %430
  br label %443

439:                                              ; preds = %458, %446, %430
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %20, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %21, align 4
  br label %466

443:                                              ; preds = %438, %426
  %444 = load ptr, ptr %11, align 8, !tbaa !5
  %445 = icmp ne ptr %444, null
  br i1 %445, label %446, label %452

446:                                              ; preds = %443
  %447 = load double, ptr %32, align 8, !tbaa !17
  %448 = load i32, ptr %33, align 4, !tbaa !15
  %449 = invoke noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121) %50, double noundef %447, i32 noundef %448)
          to label %450 unwind label %439

450:                                              ; preds = %446
  %451 = load ptr, ptr %11, align 8, !tbaa !5
  store double %449, ptr %451, align 8, !tbaa !17
  br label %452

452:                                              ; preds = %450, %443
  %453 = load ptr, ptr %12, align 8, !tbaa !5
  %454 = icmp ne ptr %453, null
  br i1 %454, label %455, label %464

455:                                              ; preds = %452
  %456 = load ptr, ptr %9, align 8, !tbaa !5
  %457 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %456) #8
  br i1 %457, label %464, label %458

458:                                              ; preds = %455
  %459 = load ptr, ptr %12, align 8, !tbaa !5
  %460 = load ptr, ptr %50, align 8, !tbaa !13
  %461 = getelementptr inbounds ptr, ptr %460, i64 7
  %462 = load ptr, ptr %461, align 8
  invoke void %462(ptr noundef nonnull align 8 dereferenceable(121) %50, ptr noundef %459)
          to label %463 unwind label %439

463:                                              ; preds = %458
  br label %464

464:                                              ; preds = %463, %455, %452
  %465 = load double, ptr %31, align 8, !tbaa !17
  store double %465, ptr %7, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %472

466:                                              ; preds = %439, %420
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %467

467:                                              ; preds = %466, %167
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br label %468

468:                                              ; preds = %467, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br label %469

469:                                              ; preds = %468, %122
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %470

470:                                              ; preds = %469, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %471

471:                                              ; preds = %470, %114
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %474

472:                                              ; preds = %464, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %473 = load double, ptr %7, align 8
  ret double %473

474:                                              ; preds = %471
  %475 = load ptr, ptr %20, align 8
  %476 = load i32, ptr %21, align 4
  %477 = insertvalue { ptr, i32 } poison, ptr %475, 0
  %478 = insertvalue { ptr, i32 } %477, i32 %476, 1
  resume { ptr, i32 } %478
}

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

; 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) #6

; 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: 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)) #6

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4orsaL14makelogcombi_nEiRSt6vectorIfSaIfEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4orsaL14makelogcombi_kEiiRSt6vectorIfSaIfEE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4orsaL13UniformSampleEiRKSt6vectorIiSaIiEEPS2_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4orsa9OrsaModel10ErrorIndexESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr, ptr) #6

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T1_EERKNS7_IT0_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4orsa9OrsaModel22refineUntilConvergenceERKSt6vectorIfSaIfEES5_dddPN11libNumerics6matrixIdEEbRS1_IiSaIiEERdRi(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef, ptr noundef, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { "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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{i64 0, i64 8, !17, i64 8, i64 4, !15, i64 12, i64 4, !15}
!24 = distinct !{!24, !22}
!25 = !{!26, !18, i64 0}
!26 = !{!"_ZTSN4orsa9OrsaModel10ErrorIndexE", !18, i64 0, !16, i64 8, !16, i64 12}
!27 = !{!26, !16, i64 12}
!28 = !{!26, !16, i64 8}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}
!33 = !{!34, !12, i64 120}
!34 = !{!"_ZTSN4orsa9OrsaModelE", !35, i64 8, !35, i64 32, !35, i64 56, !35, i64 80, !7, i64 104, !12, i64 120}
!35 = !{!"_ZTSN11libNumerics6matrixIdEE", !16, i64 8, !16, i64 12, !6, i64 16}


; 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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl" }
%"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl" = type { %"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<orsa::OrsaModel::ErrorIndex, std::allocator<orsa::OrsaModel::ErrorIndex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libNumerics::matrix<double>, std::allocator<libNumerics::matrix<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.orsa::OrsaModel::ErrorIndex" = type { double, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.15" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.16" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, i64 } @_ZNK4orsa9OrsaModel7bestNFAERKSt6vectorINS0_10ErrorIndexESaIS2_EEddRKS1_IfSaIfEESA_(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16), double noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log10(double noundef) local_unnamed_addr #3

; 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 dso_local noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121), double noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK4orsa9OrsaModel4orsaERSt6vectorIiSaIiEEmPdPN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i1 noundef zeroext %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca %"class.std::allocator.7", align 1
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca %"class.std::allocator.2", align 1
  %13 = alloca %"class.std::vector.10", align 8
  %14 = alloca %"class.std::vector.10", align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.orsa::OrsaModel::ErrorIndex", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %23 = load ptr, ptr %0, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef i32 %25(ptr noundef nonnull align 8 dereferenceable(121) %0)
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %.not = icmp sgt i32 %28, %26
  br i1 %.not, label %31, label %29

29:                                               ; preds = %6
  %30 = tail call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  br label %237

31:                                               ; preds = %6
  %.not133 = icmp eq ptr %3, null
  br i1 %.not133, label %42, label %32

32:                                               ; preds = %31
  %33 = load double, ptr %3, align 8, !tbaa !8
  %34 = fcmp ogt double %33, 0.000000e+00
  br i1 %34, label %35, label %42

35:                                               ; preds = %32
  %36 = fmul double %33, %33
  %37 = getelementptr inbounds i8, ptr %0, i64 80
  %38 = tail call noundef double @_ZNK11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %37, i32 noundef 0, i32 noundef 0)
  %39 = fmul double %36, %38
  %40 = tail call noundef double @_ZNK11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %37, i32 noundef 0, i32 noundef 0)
  %41 = fmul double %39, %40
  br label %44

42:                                               ; preds = %32, %31
  %43 = tail call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  br label %44

44:                                               ; preds = %42, %35
  %45 = phi double [ %41, %35 ], [ %43, %42 ]
  br i1 %5, label %46, label %54

46:                                               ; preds = %44
  %47 = load double, ptr %3, align 8, !tbaa !8
  %48 = fcmp une double %47, 0.000000e+00
  br i1 %48, label %49, label %54

49:                                               ; preds = %46
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %51 = load double, ptr %3, align 8, !tbaa !8
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %50, double noundef %51)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %54

54:                                               ; preds = %46, %49, %44
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  %55 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaIN4orsa9OrsaModel10ErrorIndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %56 unwind label %65

56:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %57 = sext i32 %26 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %57, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %58 unwind label %67

58:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %59 unwind label %69

59:                                               ; preds = %58
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  %60 = icmp sgt i32 %28, 0
  br i1 %60, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %59
  %wide.trip.count = zext nneg i32 %28 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %59
  %61 = load ptr, ptr %0, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 24
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef i32 %63(ptr noundef nonnull align 8 dereferenceable(121) %0)
          to label %73 unwind label %86

65:                                               ; preds = %54
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br label %236

67:                                               ; preds = %56
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  br label %235

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  br label %234

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #8
  %72 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %72, ptr %71, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

73:                                               ; preds = %._crit_edge
  %74 = sitofp i32 %64 to double
  %75 = sub nsw i32 %28, %26
  %76 = sitofp i32 %75 to double
  %77 = fmul double %76, %74
  %78 = call double @log10(double noundef %77) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  invoke void @_ZN4orsaL14makelogcombi_nEiRSt6vectorIfSaIfEE(i32 noundef %28, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %79 unwind label %88

79:                                               ; preds = %73
  invoke void @_ZN4orsaL14makelogcombi_kEiiRSt6vectorIfSaIfEE(i32 noundef %26, i32 noundef %28, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %80 unwind label %88

80:                                               ; preds = %79
  %81 = udiv i64 %2, 10
  %82 = sub i64 %2, %81
  %83 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  store double 0.000000e+00, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !11
  %.not190 = icmp eq i64 %82, 0
  br i1 %.not190, label %._crit_edge188, label %.lr.ph187

.lr.ph187:                                        ; preds = %80
  %84 = icmp ne ptr %4, null
  %wide.trip.count197 = zext nneg i32 %28 to i64
  br label %90

._crit_edge188:                                   ; preds = %205, %80
  %.0119.lcssa = phi double [ %83, %80 ], [ %.1120.lcssa207, %205 ]
  %85 = fcmp ult double %.0119.lcssa, 0.000000e+00
  br i1 %85, label %210, label %209

86:                                               ; preds = %._crit_edge
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %233

88:                                               ; preds = %79, %73
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %232

90:                                               ; preds = %.lr.ph187, %205
  %.0100185 = phi i64 [ %82, %.lr.ph187 ], [ %.1, %205 ]
  %.0118184 = phi i64 [ 0, %.lr.ph187 ], [ %206, %205 ]
  %.0119183 = phi double [ %83, %.lr.ph187 ], [ %.1120.lcssa207, %205 ]
  %.0122182 = phi i64 [ %81, %.lr.ph187 ], [ %.1123, %205 ]
  invoke void @_ZN4orsaL13UniformSampleEiRKSt6vectorIiSaIiEEPS2_(i32 noundef %26, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull %9)
          to label %91 unwind label %97

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %92 = load ptr, ptr %0, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 48
  %94 = load ptr, ptr %93, align 8
  invoke void %94(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull %17)
          to label %.preheader150 unwind label %99

.preheader150:                                    ; preds = %91
  %95 = call noundef i64 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %.not191 = icmp eq i64 %95, 0
  br i1 %.not191, label %._crit_edge180.thread, label %.preheader149

.preheader149:                                    ; preds = %.preheader150, %185
  %.0115178 = phi i64 [ %186, %185 ], [ 0, %.preheader150 ]
  %.0116177 = phi i1 [ %.1117, %185 ], [ false, %.preheader150 ]
  %.1120176 = phi double [ %.2121, %185 ], [ %.0119183, %.preheader150 ]
  br i1 %60, label %.lr.ph168, label %._crit_edge169

._crit_edge180:                                   ; preds = %185
  %96 = fcmp olt double %.2121, 0.000000e+00
  %or.cond3 = select i1 %.1117, i1 %96, i1 false
  br i1 %or.cond3, label %192, label %._crit_edge180.thread

97:                                               ; preds = %90
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %231

99:                                               ; preds = %91
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %208

._crit_edge169:                                   ; preds = %109, %.preheader149
  %101 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %102 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4orsa9OrsaModel10ErrorIndexESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %101, ptr %102)
          to label %114 unwind label %127

.lr.ph168:                                        ; preds = %.preheader149, %109
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %109 ], [ 0, %.preheader149 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.0115178) #8
  %104 = load ptr, ptr %0, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 40
  %106 = load ptr, ptr %105, align 8
  %107 = trunc nuw nsw i64 %indvars.iv194 to i32
  %108 = invoke noundef double %106(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %103, i32 noundef %107, ptr noundef nonnull %18)
          to label %109 unwind label %112

109:                                              ; preds = %.lr.ph168
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  %110 = load i32, ptr %18, align 4, !tbaa !11
  call void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %108, i32 noundef %107, i32 noundef %110)
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv194) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %111, ptr noundef nonnull align 8 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %._crit_edge169, label %.lr.ph168, !llvm.loop !16

112:                                              ; preds = %.lr.ph168
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %208

114:                                              ; preds = %._crit_edge169
  %115 = invoke { double, i64 } @_ZNK4orsa9OrsaModel7bestNFAERKSt6vectorINS0_10ErrorIndexESaIS2_EEddRKS1_IfSaIfEESA_(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef %78, double noundef %45, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %116 unwind label %129

116:                                              ; preds = %114
  %117 = extractvalue { double, i64 } %115, 0
  %118 = fcmp olt double %117, %.1120176
  br i1 %118, label %119, label %185

119:                                              ; preds = %116
  %120 = extractvalue { double, i64 } %115, 1
  %.sroa.8.12.extract.shift = lshr i64 %120, 32
  %.sroa.8.12.extract.trunc = trunc nuw i64 %.sroa.8.12.extract.shift to i32
  store i32 %.sroa.8.12.extract.trunc, ptr %16, align 4, !tbaa !11
  %sext = shl i64 %120, 32
  %121 = ashr exact i64 %sext, 32
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %121)
          to label %.preheader unwind label %129

.preheader:                                       ; preds = %119
  %.sroa.8.8.extract.trunc = trunc i64 %120 to i32
  %122 = icmp sgt i32 %.sroa.8.8.extract.trunc, 0
  br i1 %122, label %.lr.ph171.preheader, label %._crit_edge172

.lr.ph171.preheader:                              ; preds = %.preheader
  %wide.trip.count202 = and i64 %120, 2147483647
  br label %.lr.ph171

._crit_edge172:                                   ; preds = %.lr.ph171, %.preheader
  %sext136 = add i64 %sext, -4294967296
  %123 = ashr exact i64 %sext136, 32
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %123) #8
  %125 = load double, ptr %124, align 8, !tbaa !17
  store double %125, ptr %15, align 8, !tbaa !8
  %126 = fcmp olt double %117, 0.000000e+00
  %or.cond = and i1 %84, %126
  br i1 %or.cond, label %135, label %138

127:                                              ; preds = %._crit_edge169
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %208

129:                                              ; preds = %183, %181, %161, %159, %156, %154, %152, %150, %148, %145, %143, %141, %139, %135, %119, %114
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %208

.lr.ph171:                                        ; preds = %.lr.ph171.preheader, %.lr.ph171
  %indvars.iv199 = phi i64 [ 0, %.lr.ph171.preheader ], [ %indvars.iv.next200, %.lr.ph171 ]
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv199) #8
  %132 = getelementptr inbounds i8, ptr %131, i64 8
  %133 = load i32, ptr %132, align 8, !tbaa !19
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv199) #8
  store i32 %133, ptr %134, align 4, !tbaa !11
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %._crit_edge172, label %.lr.ph171, !llvm.loop !20

135:                                              ; preds = %._crit_edge172
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.0115178) #8
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6matrixIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %136)
          to label %138 unwind label %129

138:                                              ; preds = %135, %._crit_edge172
  br i1 %5, label %139, label %185

139:                                              ; preds = %138
  %140 = 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.5)
          to label %141 unwind label %129

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %140, double noundef %117)
          to label %143 unwind label %129

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @.str.6)
          to label %145 unwind label %129

145:                                              ; preds = %143
  %146 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %144, i64 noundef %146)
          to label %148 unwind label %129

148:                                              ; preds = %145
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull @.str.7)
          to label %150 unwind label %129

150:                                              ; preds = %148
  %151 = invoke noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121) %0, double noundef %125, i32 noundef %.sroa.8.12.extract.trunc)
          to label %152 unwind label %129

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %149, double noundef %151)
          to label %154 unwind label %129

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @.str.8)
          to label %156 unwind label %129

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %155, i64 noundef %.0118184)
          to label %158 unwind label %129

158:                                              ; preds = %156
  br i1 %126, label %159, label %181

159:                                              ; preds = %158
  %160 = 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 %161 unwind label %129

161:                                              ; preds = %159
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %160, i32 noundef %163)
          to label %165 unwind label %129

165:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %166 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %166, ptr %21, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %168 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %168, ptr %22, align 8
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T1_EERKNS7_IT0_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  br i1 %169, label %.lr.ph174, label %._crit_edge175

.lr.ph174:                                        ; preds = %165, %175
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 44)
          to label %171 unwind label %179

171:                                              ; preds = %.lr.ph174
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %173 = load i32, ptr %172, align 4, !tbaa !11
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %170, i32 noundef %173)
          to label %175 unwind label %179

175:                                              ; preds = %171
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %177 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %177, ptr %22, align 8
  %178 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T1_EERKNS7_IT0_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  br i1 %178, label %.lr.ph174, label %._crit_edge175, !llvm.loop !21

179:                                              ; preds = %171, %.lr.ph174
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  br label %208

._crit_edge175:                                   ; preds = %175, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  br label %181

181:                                              ; preds = %._crit_edge175, %158
  %182 = 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.10)
          to label %183 unwind label %129

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %185 unwind label %129

185:                                              ; preds = %138, %183, %116
  %.2121 = phi double [ %117, %183 ], [ %117, %138 ], [ %.1120176, %116 ]
  %.1117 = phi i1 [ true, %183 ], [ true, %138 ], [ %.0116177, %116 ]
  %186 = add nuw i64 %.0115178, 1
  %187 = call noundef i64 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %188 = icmp ult i64 %186, %187
  br i1 %188, label %.preheader149, label %._crit_edge180, !llvm.loop !22

._crit_edge180.thread:                            ; preds = %.preheader150, %._crit_edge180
  %.1120.lcssa209 = phi double [ %.2121, %._crit_edge180 ], [ %.0119183, %.preheader150 ]
  %189 = add nuw i64 %.0118184, 1
  %190 = icmp eq i64 %189, %.0100185
  %191 = icmp ne i64 %.0122182, 0
  %or.cond5 = select i1 %190, i1 %191, i1 false
  br i1 %or.cond5, label %192, label %205

192:                                              ; preds = %._crit_edge180.thread, %._crit_edge180
  %.1120.lcssa208 = phi double [ %.1120.lcssa209, %._crit_edge180.thread ], [ %.2121, %._crit_edge180 ]
  %193 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  br i1 %193, label %194, label %197

194:                                              ; preds = %192
  %195 = add i64 %.0100185, 1
  %196 = add i64 %.0122182, -1
  br label %205

197:                                              ; preds = %192
  %198 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %199 unwind label %203

199:                                              ; preds = %197
  %.not135 = icmp eq i64 %.0122182, 0
  br i1 %.not135, label %205, label %200

200:                                              ; preds = %199
  %201 = add nuw i64 %.0118184, 1
  %202 = add i64 %201, %.0122182
  br label %205

203:                                              ; preds = %197
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %208

205:                                              ; preds = %194, %200, %199, %._crit_edge180.thread
  %.1120.lcssa207 = phi double [ %.1120.lcssa208, %194 ], [ %.1120.lcssa208, %200 ], [ %.1120.lcssa208, %199 ], [ %.1120.lcssa209, %._crit_edge180.thread ]
  %.1123 = phi i64 [ %196, %194 ], [ 0, %200 ], [ 0, %199 ], [ %.0122182, %._crit_edge180.thread ]
  %.1 = phi i64 [ %195, %194 ], [ %202, %200 ], [ %.0100185, %199 ], [ %.0100185, %._crit_edge180.thread ]
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  %206 = add nuw i64 %.0118184, 1
  %207 = icmp ult i64 %206, %.1
  br i1 %207, label %90, label %._crit_edge188, !llvm.loop !23

208:                                              ; preds = %203, %129, %179, %127, %112, %99
  %.pn138.pn.pn = phi { ptr, i32 } [ %100, %99 ], [ %204, %203 ], [ %113, %112 ], [ %128, %127 ], [ %180, %179 ], [ %130, %129 ]
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %231

209:                                              ; preds = %._crit_edge188
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  br label %210

210:                                              ; preds = %209, %._crit_edge188
  %211 = getelementptr inbounds i8, ptr %0, i64 120
  %212 = load i8, ptr %211, align 8, !tbaa !24, !range !29, !noundef !30
  %213 = trunc nuw i8 %212 to i1
  br i1 %213, label %214, label %217

214:                                              ; preds = %210
  invoke void @_ZNK4orsa9OrsaModel22refineUntilConvergenceERKSt6vectorIfSaIfEES5_dddPN11libNumerics6matrixIdEEbRS1_IiSaIiEERdRi(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef %78, double noundef %45, double noundef %.0119.lcssa, ptr noundef %4, i1 noundef zeroext %5, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %217 unwind label %215

215:                                              ; preds = %226, %218, %214
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %231

217:                                              ; preds = %214, %210
  br i1 %.not133, label %223, label %218

218:                                              ; preds = %217
  %219 = load double, ptr %15, align 8, !tbaa !8
  %220 = load i32, ptr %16, align 4, !tbaa !11
  %221 = invoke noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121) %0, double noundef %219, i32 noundef %220)
          to label %222 unwind label %215

222:                                              ; preds = %218
  store double %221, ptr %3, align 8, !tbaa !8
  br label %223

223:                                              ; preds = %222, %217
  %.not134 = icmp eq ptr %4, null
  br i1 %.not134, label %230, label %224

224:                                              ; preds = %223
  %225 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  br i1 %225, label %230, label %226

226:                                              ; preds = %224
  %227 = load ptr, ptr %0, align 8, !tbaa !5
  %228 = getelementptr inbounds i8, ptr %227, i64 56
  %229 = load ptr, ptr %228, align 8
  invoke void %229(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull %4)
          to label %230 unwind label %215

230:                                              ; preds = %226, %224, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %237

231:                                              ; preds = %97, %208, %215
  %.pn138.pn.pn.pn.pn = phi { ptr, i32 } [ %216, %215 ], [ %.pn138.pn.pn, %208 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %232

232:                                              ; preds = %231, %88
  %.pn138.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn138.pn.pn.pn.pn, %231 ], [ %89, %88 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  br label %233

233:                                              ; preds = %232, %86
  %.pn138.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn138.pn.pn.pn.pn.pn, %232 ], [ %87, %86 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %234

234:                                              ; preds = %233, %69
  %.pn138.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn138.pn.pn.pn.pn.pn.pn, %233 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %235

235:                                              ; preds = %234, %67
  %.pn138.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn138.pn.pn.pn.pn.pn.pn.pn, %234 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %236

236:                                              ; preds = %235, %65
  %.pn138.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn138.pn.pn.pn.pn.pn.pn.pn.pn, %235 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn138.pn.pn.pn.pn.pn.pn.pn.pn.pn

237:                                              ; preds = %230, %29
  %.099 = phi double [ %30, %29 ], [ %.0119.lcssa, %230 ]
  ret double %.099
}

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

; 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 #6

; 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: 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)) #6

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4orsaL14makelogcombi_nEiRSt6vectorIfSaIfEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4orsaL14makelogcombi_kEiiRSt6vectorIfSaIfEE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4orsaL13UniformSampleEiRKSt6vectorIiSaIiEEPS2_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4orsa9OrsaModel10ErrorIndexESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr, ptr) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T1_EERKNS7_IT0_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4orsa9OrsaModel22refineUntilConvergenceERKSt6vectorIfSaIfEES5_dddPN11libNumerics6matrixIdEEbRS1_IiSaIiEERdRi(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef, ptr noundef, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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 #7 = { "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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 8, !8, i64 8, i64 4, !11, i64 12, i64 4, !11}
!16 = distinct !{!16, !14}
!17 = !{!18, !9, i64 0}
!18 = !{!"_ZTSN4orsa9OrsaModel10ErrorIndexE", !9, i64 0, !12, i64 8, !12, i64 12}
!19 = !{!18, !12, i64 8}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = !{!25, !28, i64 120}
!25 = !{!"_ZTSN4orsa9OrsaModelE", !26, i64 8, !26, i64 32, !26, i64 56, !26, i64 80, !10, i64 104, !28, i64 120}
!26 = !{!"_ZTSN11libNumerics6matrixIdEE", !12, i64 8, !12, i64 12, !27, i64 16}
!27 = !{!"any pointer", !10, i64 0}
!28 = !{!"bool", !10, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}


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