; 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" = 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.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.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.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 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 void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16), double noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

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

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4orsa9OrsaModel22refineUntilConvergenceERKSt6vectorIfSaIfEES5_dddPN11libNumerics6matrixIdEEbRS1_IiSaIiEERdRi(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3, double noundef %4, double noundef %5, ptr noundef %6, i1 noundef zeroext %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10) #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector.5", align 8
  %25 = alloca %"class.std::allocator.7", align 1
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca %"struct.orsa::OrsaModel::ErrorIndex", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"struct.orsa::OrsaModel::ErrorIndex", align 8
  %39 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store double %3, ptr %15, align 8, !tbaa !9
  store double %4, ptr %16, align 8, !tbaa !9
  store double %5, ptr %17, align 8, !tbaa !9
  store ptr %6, ptr %18, align 8, !tbaa !5
  %40 = zext i1 %7 to i8
  store i8 %40, ptr %19, align 1, !tbaa !11
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  %41 = load ptr, ptr %12, align 8
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %44 = getelementptr inbounds %"class.orsa::OrsaModel", ptr %41, i32 0, i32 1
  %45 = call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  store i32 %45, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  %46 = load i32, ptr %23, align 4, !tbaa !13
  %47 = sext i32 %46 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIN4orsa9OrsaModel10ErrorIndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %47, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %48 unwind label %60

48:                                               ; preds = %11
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 1, ptr %28, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !13
  br label %49

49:                                               ; preds = %229, %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %50 = load ptr, ptr %20, align 8, !tbaa !5
  %51 = load ptr, ptr %41, align 8, !tbaa !15
  %52 = getelementptr inbounds ptr, ptr %51, i64 6
  %53 = load ptr, ptr %52, align 8
  invoke void %53(ptr noundef nonnull align 8 dereferenceable(121) %41, ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef %30)
          to label %54 unwind label %64

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store i64 0, ptr %31, align 8, !tbaa !17
  br label %55

55:                                               ; preds = %219, %54
  %56 = load i64, ptr %31, align 8, !tbaa !17
  %57 = call noundef i64 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %68, label %59

59:                                               ; preds = %55
  store i32 4, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %223

60:                                               ; preds = %11
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %26, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %27, align 4
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %234

64:                                               ; preds = %49
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %26, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %27, align 4
  br label %233

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !13
  br label %69

69:                                               ; preds = %89, %68
  %70 = load i32, ptr %33, align 4, !tbaa !13
  %71 = load i32, ptr %23, align 4, !tbaa !13
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 7, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %101

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %75 = load i64, ptr %31, align 8, !tbaa !17
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %75) #6
  %77 = load i32, ptr %33, align 4, !tbaa !13
  %78 = load ptr, ptr %41, align 8, !tbaa !15
  %79 = getelementptr inbounds ptr, ptr %78, i64 5
  %80 = load ptr, ptr %79, align 8
  %81 = invoke noundef double %80(ptr noundef nonnull align 8 dereferenceable(121) %41, ptr noundef nonnull align 8 dereferenceable(24) %76, i32 noundef %77, ptr noundef null)
          to label %82 unwind label %92

82:                                               ; preds = %74
  store double %81, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %83 = load double, ptr %34, align 8, !tbaa !9
  %84 = load i32, ptr %33, align 4, !tbaa !13
  invoke void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef %83, i32 noundef %84, i32 noundef 0)
          to label %85 unwind label %96

85:                                               ; preds = %82
  %86 = load i32, ptr %33, align 4, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %87) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %88, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %89

89:                                               ; preds = %85
  %90 = load i32, ptr %33, align 4, !tbaa !13
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %33, align 4, !tbaa !13
  br label %69, !llvm.loop !20

92:                                               ; preds = %74
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %26, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %27, align 4
  br label %100

96:                                               ; preds = %82
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %26, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %100

100:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %222

101:                                              ; preds = %73
  %102 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %102, ptr %103, align 8
  %104 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %104, ptr %105, align 8
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4orsa9OrsaModel10ErrorIndexESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %107, ptr %109)
          to label %110 unwind label %146

110:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  %111 = load double, ptr %15, align 8, !tbaa !9
  %112 = load double, ptr %16, align 8, !tbaa !9
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = invoke { double, i64 } @_ZNK4orsa9OrsaModel7bestNFAERKSt6vectorINS0_10ErrorIndexESaIS2_EEddRKS1_IfSaIfEESA_(ptr noundef nonnull align 8 dereferenceable(121) %41, ptr noundef nonnull align 8 dereferenceable(24) %24, double noundef %111, double noundef %112, ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 8 dereferenceable(24) %114)
          to label %116 unwind label %150

116:                                              ; preds = %110
  %117 = getelementptr inbounds { double, i64 }, ptr %38, i32 0, i32 0
  %118 = extractvalue { double, i64 } %115, 0
  store double %118, ptr %117, align 8
  %119 = getelementptr inbounds { double, i64 }, ptr %38, i32 0, i32 1
  %120 = extractvalue { double, i64 } %115, 1
  store i64 %120, ptr %119, align 8
  %121 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !22
  %123 = fcmp olt double %122, 0.000000e+00
  br i1 %123, label %124, label %217

124:                                              ; preds = %116
  %125 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 0
  %126 = load double, ptr %125, align 8, !tbaa !22
  %127 = load double, ptr %17, align 8, !tbaa !9
  %128 = fcmp olt double %126, %127
  br i1 %128, label %129, label %217

129:                                              ; preds = %124
  %130 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 0
  %131 = load double, ptr %130, align 8, !tbaa !22
  store double %131, ptr %17, align 8, !tbaa !9
  %132 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 2
  %133 = load i32, ptr %132, align 4, !tbaa !24
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %133, ptr %134, align 4, !tbaa !13
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !25
  %138 = sext i32 %137 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %138)
          to label %139 unwind label %150

139:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 0, ptr %39, align 4, !tbaa !13
  br label %140

140:                                              ; preds = %164, %139
  %141 = load i32, ptr %39, align 4, !tbaa !13
  %142 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 1
  %143 = load i32, ptr %142, align 8, !tbaa !25
  %144 = icmp slt i32 %141, %143
  br i1 %144, label %154, label %145

145:                                              ; preds = %140
  store i32 10, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %167

146:                                              ; preds = %101
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %26, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %27, align 4
  br label %222

150:                                              ; preds = %213, %210, %208, %206, %200, %198, %194, %192, %189, %187, %178, %129, %110
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %26, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  br label %222

154:                                              ; preds = %140
  %155 = load i32, ptr %39, align 4, !tbaa !13
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %156) #6
  %158 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 8, !tbaa !25
  %160 = load ptr, ptr %20, align 8, !tbaa !5
  %161 = load i32, ptr %39, align 4, !tbaa !13
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #6
  store i32 %159, ptr %163, align 4, !tbaa !13
  br label %164

164:                                              ; preds = %154
  %165 = load i32, ptr %39, align 4, !tbaa !13
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %39, align 4, !tbaa !13
  br label %140, !llvm.loop !26

167:                                              ; preds = %145
  %168 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %38, i32 0, i32 1
  %169 = load i32, ptr %168, align 8, !tbaa !25
  %170 = sub nsw i32 %169, 1
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %171) #6
  %173 = getelementptr inbounds %"struct.orsa::OrsaModel::ErrorIndex", ptr %172, i32 0, i32 0
  %174 = load double, ptr %173, align 8, !tbaa !22
  %175 = load ptr, ptr %21, align 8, !tbaa !5
  store double %174, ptr %175, align 8, !tbaa !9
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  %177 = icmp ne ptr %176, null
  br i1 %177, label %178, label %184

178:                                              ; preds = %167
  %179 = load i64, ptr %31, align 8, !tbaa !17
  %180 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %179) #6
  %181 = load ptr, ptr %18, align 8, !tbaa !5
  %182 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6matrixIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 8 dereferenceable(24) %180)
          to label %183 unwind label %150

183:                                              ; preds = %178
  br label %184

184:                                              ; preds = %183, %167
  %185 = load i8, ptr %19, align 1, !tbaa !11, !range !27, !noundef !28
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %216

187:                                              ; preds = %184
  %188 = 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 %189 unwind label %150

189:                                              ; preds = %187
  %190 = load double, ptr %17, align 8, !tbaa !9
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %188, double noundef %190)
          to label %192 unwind label %150

192:                                              ; preds = %189
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @.str.6)
          to label %194 unwind label %150

194:                                              ; preds = %192
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %195) #6
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %193, i64 noundef %196)
          to label %198 unwind label %150

198:                                              ; preds = %194
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @.str.7)
          to label %200 unwind label %150

200:                                              ; preds = %198
  %201 = load ptr, ptr %21, align 8, !tbaa !5
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = load i32, ptr %203, align 4, !tbaa !13
  %205 = invoke noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121) %41, double noundef %202, i32 noundef %204)
          to label %206 unwind label %150

206:                                              ; preds = %200
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %199, double noundef %205)
          to label %208 unwind label %150

208:                                              ; preds = %206
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef @.str.8)
          to label %210 unwind label %150

210:                                              ; preds = %208
  %211 = load i32, ptr %29, align 4, !tbaa !13
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %209, i32 noundef %211)
          to label %213 unwind label %150

213:                                              ; preds = %210
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef @.str.12)
          to label %215 unwind label %150

215:                                              ; preds = %213
  br label %216

216:                                              ; preds = %215, %184
  br label %218

217:                                              ; preds = %124, %116
  store i8 0, ptr %28, align 1, !tbaa !11
  br label %218

218:                                              ; preds = %217, %216
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  br label %219

219:                                              ; preds = %218
  %220 = load i64, ptr %31, align 8, !tbaa !17
  %221 = add i64 %220, 1
  store i64 %221, ptr %31, align 8, !tbaa !17
  br label %55, !llvm.loop !29

222:                                              ; preds = %150, %146, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %233

223:                                              ; preds = %59
  %224 = call noundef zeroext i1 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  br i1 %224, label %225, label %226

225:                                              ; preds = %223
  store i8 0, ptr %28, align 1, !tbaa !11
  br label %226

226:                                              ; preds = %225, %223
  %227 = load i32, ptr %29, align 4, !tbaa !13
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %29, align 4, !tbaa !13
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  br label %229

229:                                              ; preds = %226
  %230 = load i8, ptr %28, align 1, !tbaa !11, !range !27, !noundef !28
  %231 = trunc i8 %230 to i1
  br i1 %231, label %49, label %232, !llvm.loop !30

232:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  ret void

233:                                              ; preds = %222, %64
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  br label %234

234:                                              ; preds = %233, %60
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr %26, align 8
  %237 = load i32, ptr %27, align 4
  %238 = insertvalue { ptr, i32 } poison, ptr %236, 0
  %239 = insertvalue { ptr, i32 } %238, i32 %237, 1
  resume { ptr, i32 } %239
}

; 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 noundef zeroext i1 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #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

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


; 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" = 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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 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 void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16), double noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4orsa9OrsaModel22refineUntilConvergenceERKSt6vectorIfSaIfEES5_dddPN11libNumerics6matrixIdEEbRS1_IiSaIiEERdRi(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3, double noundef %4, double noundef %5, ptr noundef %6, i1 noundef zeroext %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr nocapture noundef nonnull align 8 dereferenceable(8) %9, ptr nocapture noundef nonnull align 4 dereferenceable(4) %10) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca %"class.std::allocator.7", align 1
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"struct.orsa::OrsaModel::ErrorIndex", align 8
  %16 = 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.11)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = tail call noundef i32 @_ZNK11libNumerics6matrixIdE4ncolEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  %20 = sext i32 %19 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIN4orsa9OrsaModel10ErrorIndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %21 unwind label %30

21:                                               ; preds = %11
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  %22 = icmp sgt i32 %19, 0
  %.not = icmp eq ptr %6, null
  %wide.trip.count = zext nneg i32 %19 to i64
  br label %23

23:                                               ; preds = %._crit_edge81, %21
  %.056 = phi i32 [ 0, %21 ], [ %29, %._crit_edge81 ]
  %.046 = phi double [ %5, %21 ], [ %.1.lcssa, %._crit_edge81 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %24 = load ptr, ptr %0, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 48
  %26 = load ptr, ptr %25, align 8
  invoke void %26(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull %14)
          to label %.preheader66 unwind label %32

.preheader66:                                     ; preds = %23
  %27 = call noundef i64 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %.not83 = icmp eq i64 %27, 0
  br i1 %.not83, label %._crit_edge81, label %.preheader65

.preheader65:                                     ; preds = %.preheader66, %94
  %.180 = phi double [ %.2, %94 ], [ %.046, %.preheader66 ]
  %.15479 = phi i1 [ %.255, %94 ], [ true, %.preheader66 ]
  %.05877 = phi i64 [ %95, %94 ], [ 0, %.preheader66 ]
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge81:                                    ; preds = %94, %.preheader66
  %.154.lcssa = phi i1 [ true, %.preheader66 ], [ %.255, %94 ]
  %.1.lcssa = phi double [ %.046, %.preheader66 ], [ %.2, %94 ]
  %28 = call noundef zeroext i1 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %not. = xor i1 %28, true
  %spec.select = select i1 %not., i1 %.154.lcssa, i1 false
  %29 = add nuw nsw i32 %.056, 1
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  br i1 %spec.select, label %23, label %98, !llvm.loop !8

30:                                               ; preds = %11
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN4orsa9OrsaModel10ErrorIndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  br label %100

32:                                               ; preds = %23
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %99

._crit_edge:                                      ; preds = %42, %.preheader65
  %34 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %35 = call ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN4orsa9OrsaModel10ErrorIndexESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %34, ptr %35)
          to label %46 unwind label %59

.lr.ph:                                           ; preds = %.preheader65, %42
  %indvars.iv = phi i64 [ %indvars.iv.next, %42 ], [ 0, %.preheader65 ]
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.05877) #6
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 40
  %39 = load ptr, ptr %38, align 8
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  %41 = invoke noundef double %39(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %36, i32 noundef %40, ptr noundef null)
          to label %42 unwind label %44

42:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @_ZN4orsa9OrsaModel10ErrorIndexC2Edii(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %41, i32 noundef %40, i32 noundef 0)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %15, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  %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 !16

44:                                               ; preds = %.lr.ph
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %99

46:                                               ; preds = %._crit_edge
  %47 = invoke { double, i64 } @_ZNK4orsa9OrsaModel7bestNFAERKSt6vectorINS0_10ErrorIndexESaIS2_EEddRKS1_IfSaIfEESA_(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %3, double noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %48 unwind label %61

48:                                               ; preds = %46
  %49 = extractvalue { double, i64 } %47, 0
  %50 = fcmp olt double %49, 0.000000e+00
  %51 = fcmp olt double %49, %.180
  %or.cond = select i1 %50, i1 %51, i1 false
  br i1 %or.cond, label %52, label %94

52:                                               ; preds = %48
  %53 = extractvalue { double, i64 } %47, 1
  %.sroa.7.12.extract.shift = lshr i64 %53, 32
  %.sroa.7.12.extract.trunc = trunc nuw i64 %.sroa.7.12.extract.shift to i32
  store i32 %.sroa.7.12.extract.trunc, ptr %10, align 4, !tbaa !14
  %sext = shl i64 %53, 32
  %54 = ashr exact i64 %sext, 32
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %54)
          to label %.preheader unwind label %61

.preheader:                                       ; preds = %52
  %.sroa.7.8.extract.trunc = trunc i64 %53 to i32
  %55 = icmp sgt i32 %.sroa.7.8.extract.trunc, 0
  br i1 %55, label %.lr.ph75.preheader, label %._crit_edge76

.lr.ph75.preheader:                               ; preds = %.preheader
  %wide.trip.count88 = and i64 %53, 2147483647
  br label %.lr.ph75

._crit_edge76:                                    ; preds = %.lr.ph75, %.preheader
  %sext61 = add i64 %sext, -4294967296
  %56 = ashr exact i64 %sext61, 32
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %56) #6
  %58 = load double, ptr %57, align 8, !tbaa !17
  store double %58, ptr %9, align 8, !tbaa !11
  br i1 %.not, label %70, label %67

59:                                               ; preds = %._crit_edge
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %99

61:                                               ; preds = %92, %90, %88, %86, %82, %80, %77, %75, %73, %71, %67, %52, %46
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %99

.lr.ph75:                                         ; preds = %.lr.ph75.preheader, %.lr.ph75
  %indvars.iv85 = phi i64 [ 0, %.lr.ph75.preheader ], [ %indvars.iv.next86, %.lr.ph75 ]
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv85) #6
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load i32, ptr %64, align 8, !tbaa !19
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv85) #6
  store i32 %65, ptr %66, align 4, !tbaa !14
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond89.not = icmp eq i64 %indvars.iv.next86, %wide.trip.count88
  br i1 %exitcond89.not, label %._crit_edge76, label %.lr.ph75, !llvm.loop !20

67:                                               ; preds = %._crit_edge76
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.05877) #6
  %69 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6matrixIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %68)
          to label %70 unwind label %61

70:                                               ; preds = %67, %._crit_edge76
  br i1 %7, label %71, label %94

71:                                               ; preds = %70
  %72 = 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 %73 unwind label %61

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %72, double noundef %49)
          to label %75 unwind label %61

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @.str.6)
          to label %77 unwind label %61

77:                                               ; preds = %75
  %78 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %76, i64 noundef %78)
          to label %80 unwind label %61

80:                                               ; preds = %77
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @.str.7)
          to label %82 unwind label %61

82:                                               ; preds = %80
  %83 = load double, ptr %9, align 8, !tbaa !11
  %84 = load i32, ptr %10, align 4, !tbaa !14
  %85 = invoke noundef double @_ZNK4orsa9OrsaModel16denormalizeErrorEdi(ptr noundef nonnull align 8 dereferenceable(121) %0, double noundef %83, i32 noundef %84)
          to label %86 unwind label %61

86:                                               ; preds = %82
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %81, double noundef %85)
          to label %88 unwind label %61

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

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef %.056)
          to label %92 unwind label %61

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str.12)
          to label %94 unwind label %61

94:                                               ; preds = %48, %70, %92
  %.255 = phi i1 [ %.15479, %92 ], [ %.15479, %70 ], [ false, %48 ]
  %.2 = phi double [ %49, %92 ], [ %49, %70 ], [ %.180, %48 ]
  %95 = add nuw i64 %.05877, 1
  %96 = call noundef i64 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %.preheader65, label %._crit_edge81, !llvm.loop !21

98:                                               ; preds = %._crit_edge81
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  ret void

99:                                               ; preds = %44, %59, %61, %32
  %.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %45, %44 ], [ %62, %61 ], [ %60, %59 ]
  call void @_ZNSt6vectorIN11libNumerics6matrixIdEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @_ZNSt6vectorIN4orsa9OrsaModel10ErrorIndexESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %100

100:                                              ; preds = %99, %30
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %99 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  resume { ptr, i32 } %.pn.pn.pn
}

; 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 noundef zeroext i1 @_ZNKSt6vectorIN11libNumerics6matrixIdEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{i64 0, i64 8, !11, i64 8, i64 4, !14, i64 12, i64 4, !14}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !13, i64 0}
!16 = distinct !{!16, !9}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTSN4orsa9OrsaModel10ErrorIndexE", !12, i64 0, !15, i64 8, !15, i64 12}
!19 = !{!18, !15, i64 8}
!20 = distinct !{!20, !9}
!21 = distinct !{!21, !9}


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