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

; 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.libNumerics::matrix" = type { ptr, i32, i32, ptr }
%"class.orsa::FundamentalModel" = type { %"class.orsa::OrsaModel.base", i8, [6 x i8] }
%"class.orsa::OrsaModel.base" = type <{ ptr, %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", [2 x double], i8 }>
%"struct.std::pair" = type { double, double }
%struct.Match = type { float, float, float, float }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN4orsa13display_statsERKSt6vectorI5MatchSaIS1_EERKS0_IiSaIiEERKN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #0

; 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 noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 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) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4orsa16orsa_fundamentalERKSt6vectorI5MatchSaIS1_EEiiiidiRN11libNumerics6matrixIdEERS0_IiSaIiEERdb(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, i32 noundef %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, i1 noundef zeroext %10) #0 personality ptr @__gxx_personality_v0 {
  %12 = alloca i1, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i8, align 1
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.libNumerics::matrix", align 8
  %27 = alloca %"class.libNumerics::matrix", align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.orsa::FundamentalModel", align 8
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %"struct.std::pair", align 8
  %34 = alloca %"class.libNumerics::matrix", align 8
  %35 = alloca double, align 8
  %36 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store i32 %1, ptr %14, align 4, !tbaa !9
  store i32 %2, ptr %15, align 4, !tbaa !9
  store i32 %3, ptr %16, align 4, !tbaa !9
  store i32 %4, ptr %17, align 4, !tbaa !9
  store double %5, ptr %18, align 8, !tbaa !11
  store i32 %6, ptr %19, align 4, !tbaa !9
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  %37 = zext i1 %10 to i8
  store i8 %37, ptr %23, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = call noundef i64 @_ZNKSt6vectorI5MatchSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %24, align 4, !tbaa !9
  %41 = load i32, ptr %24, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 7
  br i1 %42, label %43, label %44

43:                                               ; preds = %11
  store i1 false, ptr %12, align 1
  store i32 1, ptr %25, align 4
  br label %236

44:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  %45 = load i32, ptr %24, align 4, !tbaa !9
  call void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 2, i32 noundef %45)
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #6
  %46 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef 2, i32 noundef %46)
          to label %47 unwind label %53

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %98, %47
  %49 = load i32, ptr %30, align 4, !tbaa !9
  %50 = load i32, ptr %24, align 4, !tbaa !9
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %57, label %52

52:                                               ; preds = %48
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %105

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %28, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %29, align 4
  br label %235

57:                                               ; preds = %48
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load i32, ptr %30, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #6
  %62 = getelementptr inbounds %struct.Match, ptr %61, i32 0, i32 0
  %63 = load float, ptr %62, align 4, !tbaa !15
  %64 = fpext float %63 to double
  %65 = load i32, ptr %30, align 4, !tbaa !9
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 0, i32 noundef %65)
          to label %67 unwind label %101

67:                                               ; preds = %57
  store double %64, ptr %66, align 8, !tbaa !11
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i32, ptr %30, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #6
  %72 = getelementptr inbounds %struct.Match, ptr %71, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !18
  %74 = fpext float %73 to double
  %75 = load i32, ptr %30, align 4, !tbaa !9
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 1, i32 noundef %75)
          to label %77 unwind label %101

77:                                               ; preds = %67
  store double %74, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i32, ptr %30, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #6
  %82 = getelementptr inbounds %struct.Match, ptr %81, i32 0, i32 2
  %83 = load float, ptr %82, align 4, !tbaa !19
  %84 = fpext float %83 to double
  %85 = load i32, ptr %30, align 4, !tbaa !9
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef 0, i32 noundef %85)
          to label %87 unwind label %101

87:                                               ; preds = %77
  store double %84, ptr %86, align 8, !tbaa !11
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load i32, ptr %30, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #6
  %92 = getelementptr inbounds %struct.Match, ptr %91, i32 0, i32 3
  %93 = load float, ptr %92, align 4, !tbaa !20
  %94 = fpext float %93 to double
  %95 = load i32, ptr %30, align 4, !tbaa !9
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef 1, i32 noundef %95)
          to label %97 unwind label %101

97:                                               ; preds = %87
  store double %94, ptr %96, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %30, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %30, align 4, !tbaa !9
  br label %48, !llvm.loop !21

101:                                              ; preds = %87, %77, %67, %57
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %28, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %234

105:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 128, ptr %31) #6
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN4orsa16FundamentalModelC1ERKN11libNumerics6matrixIdEEiiS5_iib(ptr noundef nonnull align 8 dereferenceable(122) %31, ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %106, i32 noundef %107, ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef %108, i32 noundef %109, i1 noundef zeroext false)
          to label %110 unwind label %124

110:                                              ; preds = %105
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  %115 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %116 = trunc i8 %115 to i1
  %117 = invoke noundef double @_ZNK4orsa9OrsaModel4orsaERSt6vectorIiSaIiEEmPdPN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(121) %31, ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113, ptr noundef %18, ptr noundef %114, i1 noundef zeroext %116)
          to label %118 unwind label %128

118:                                              ; preds = %110
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  store double %117, ptr %119, align 8, !tbaa !11
  %120 = load ptr, ptr %22, align 8, !tbaa !5
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fcmp ogt double %121, 0.000000e+00
  br i1 %122, label %123, label %132

123:                                              ; preds = %118
  store i1 false, ptr %12, align 1
  store i32 1, ptr %25, align 4
  br label %231

124:                                              ; preds = %105
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %28, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %29, align 4
  br label %233

128:                                              ; preds = %110
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %28, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %29, align 4
  br label %232

132:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  invoke void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %133 unwind label %139

133:                                              ; preds = %132
  %134 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %143

136:                                              ; preds = %133
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %138 unwind label %139

138:                                              ; preds = %136
  br label %143

139:                                              ; preds = %136, %132
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %28, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %29, align 4
  br label %230

143:                                              ; preds = %138, %133
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %148 = trunc i8 %147 to i1
  %149 = invoke { double, double } @_ZN4orsa13display_statsERKSt6vectorI5MatchSaIS1_EERKS0_IiSaIiEERKN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 8 dereferenceable(24) %145, ptr noundef nonnull align 8 dereferenceable(24) %146, i1 noundef zeroext %148)
          to label %150 unwind label %166

150:                                              ; preds = %143
  %151 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %152 = extractvalue { double, double } %149, 0
  store double %152, ptr %151, align 8
  %153 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %154 = extractvalue { double, double } %149, 1
  store double %154, ptr %153, align 8
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIddEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %34, i32 noundef 3, i32 noundef 3)
          to label %156 unwind label %170

156:                                              ; preds = %150
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = invoke noundef zeroext i1 @_ZNK4orsa9OrsaModel12ComputeModelERKSt6vectorIiSaIiEEPN11libNumerics6matrixIdEE(ptr noundef nonnull align 8 dereferenceable(121) %31, ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef %34)
          to label %159 unwind label %174

159:                                              ; preds = %156
  br i1 %158, label %160, label %218

160:                                              ; preds = %159
  %161 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %178

163:                                              ; preds = %160
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %165 unwind label %174

165:                                              ; preds = %163
  br label %178

166:                                              ; preds = %143
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %28, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %230

170:                                              ; preds = %150
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %28, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %29, align 4
  br label %229

174:                                              ; preds = %223, %221, %163, %156
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %28, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %29, align 4
  br label %228

178:                                              ; preds = %165, %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %179 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 1
  %180 = load double, ptr %179, align 8, !tbaa !25
  store double %180, ptr %35, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load ptr, ptr %21, align 8, !tbaa !5
  %183 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %184 = trunc i8 %183 to i1
  %185 = invoke { double, double } @_ZN4orsa13display_statsERKSt6vectorI5MatchSaIS1_EERKS0_IiSaIiEERKN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 8 dereferenceable(24) %182, ptr noundef nonnull align 8 dereferenceable(24) %34, i1 noundef zeroext %184)
          to label %186 unwind label %199

186:                                              ; preds = %178
  %187 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %188 = extractvalue { double, double } %185, 0
  store double %188, ptr %187, align 8
  %189 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %190 = extractvalue { double, double } %185, 1
  store double %190, ptr %189, align 8
  %191 = getelementptr inbounds %"struct.std::pair", ptr %36, i32 0, i32 0
  %192 = load double, ptr %191, align 8, !tbaa !27
  %193 = load double, ptr %35, align 8, !tbaa !11
  %194 = fcmp ole double %192, %193
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br i1 %194, label %195, label %207

195:                                              ; preds = %186
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  %197 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6matrixIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %196, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %198 unwind label %203

198:                                              ; preds = %195
  br label %216

199:                                              ; preds = %178
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %28, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br label %217

203:                                              ; preds = %212, %210, %195
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %28, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %29, align 4
  br label %217

207:                                              ; preds = %186
  %208 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %215

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

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %214 unwind label %203

214:                                              ; preds = %212
  br label %215

215:                                              ; preds = %214, %207
  br label %216

216:                                              ; preds = %215, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %227

217:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %228

218:                                              ; preds = %159
  %219 = load i8, ptr %23, align 1, !tbaa !13, !range !23, !noundef !24
  %220 = trunc i8 %219 to i1
  br i1 %220, label %221, label %226

221:                                              ; preds = %218
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
          to label %223 unwind label %174

223:                                              ; preds = %221
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %225 unwind label %174

225:                                              ; preds = %223
  br label %226

226:                                              ; preds = %225, %218
  br label %227

227:                                              ; preds = %226, %216
  store i1 true, ptr %12, align 1
  store i32 1, ptr %25, align 4
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %231

228:                                              ; preds = %217, %174
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  br label %229

229:                                              ; preds = %228, %170
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  br label %230

230:                                              ; preds = %229, %166, %139
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %232

231:                                              ; preds = %227, %123
  call void @_ZN4orsa9OrsaModelD2Ev(ptr noundef nonnull align 8 dereferenceable(122) %31) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %31) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %236

232:                                              ; preds = %230, %128
  call void @_ZN4orsa9OrsaModelD2Ev(ptr noundef nonnull align 8 dereferenceable(122) %31) #6
  br label %233

233:                                              ; preds = %232, %124
  call void @llvm.lifetime.end.p0(i64 128, ptr %31) #6
  br label %234

234:                                              ; preds = %233, %101
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  br label %235

235:                                              ; preds = %234, %53
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %238

236:                                              ; preds = %231, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %237 = load i1, ptr %12, align 1
  ret i1 %237

238:                                              ; preds = %235
  %239 = load ptr, ptr %28, align 8
  %240 = load i32, ptr %29, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4orsa16FundamentalModelC1ERKN11libNumerics6matrixIdEEiiS5_iib(ptr noundef nonnull align 8 dereferenceable(122), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #5

declare noundef double @_ZNK4orsa9OrsaModel4orsaERSt6vectorIiSaIiEEmPdPN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #5

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

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

declare noundef zeroext i1 @_ZNK4orsa9OrsaModel12ComputeModelERKSt6vectorIiSaIiEEPN11libNumerics6matrixIdEE(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #5

; 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)) #0 align 2

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

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

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


; 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.libNumerics::matrix" = type { ptr, i32, i32, ptr }
%"class.orsa::FundamentalModel" = type { %"class.orsa::OrsaModel.base", i8, [6 x i8] }
%"class.orsa::OrsaModel.base" = type <{ ptr, %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", %"class.libNumerics::matrix", [2 x double], i8 }>
%"struct.std::pair" = type { double, double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN4orsa13display_statsERKSt6vectorI5MatchSaIS1_EERKS0_IiSaIiEERKN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #0

; 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 noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 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 #3

; 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 #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4orsa16orsa_fundamentalERKSt6vectorI5MatchSaIS1_EEiiiidiRN11libNumerics6matrixIdEERS0_IiSaIiEERdb(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, i32 noundef %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %9, i1 noundef zeroext %10) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %12 = alloca double, align 8
  %13 = alloca %"class.libNumerics::matrix", align 8
  %14 = alloca %"class.libNumerics::matrix", align 8
  %15 = alloca %"class.orsa::FundamentalModel", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"class.libNumerics::matrix", align 8
  store double %5, ptr %12, align 8, !tbaa !5
  %19 = tail call noundef i64 @_ZNKSt6vectorI5MatchSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %20 = trunc i64 %19 to i32
  %21 = icmp slt i32 %20, 7
  br i1 %21, label %109, label %22

22:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2, i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2, i32 noundef %20)
          to label %.lr.ph.preheader unwind label %23

.lr.ph.preheader:                                 ; preds = %22
  %wide.trip.count = and i64 %19, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #6
  invoke void @_ZN4orsa16FundamentalModelC1ERKN11libNumerics6matrixIdEEiiS5_iib(ptr noundef nonnull align 8 dereferenceable(122) %15, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %3, i32 noundef %4, i1 noundef zeroext false)
          to label %45 unwind label %50

23:                                               ; preds = %22
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %108

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fpext float %26 to double
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0, i32 noundef %28)
  store double %27, ptr %29, align 8, !tbaa !5
  %30 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %31 = getelementptr inbounds i8, ptr %30, i64 4
  %32 = load float, ptr %31, align 4, !tbaa !12
  %33 = fpext float %32 to double
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1, i32 noundef %28)
  store double %33, ptr %34, align 8, !tbaa !5
  %35 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = load float, ptr %36, align 4, !tbaa !13
  %38 = fpext float %37 to double
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 0, i32 noundef %28)
  store double %38, ptr %39, align 8, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI5MatchSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %41 = getelementptr inbounds i8, ptr %40, i64 12
  %42 = load float, ptr %41, align 4, !tbaa !14
  %43 = fpext float %42 to double
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1, i32 noundef %28)
  store double %43, ptr %44, align 8, !tbaa !5
  %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 !15

45:                                               ; preds = %._crit_edge
  %46 = sext i32 %6 to i64
  %47 = invoke noundef double @_ZNK4orsa9OrsaModel4orsaERSt6vectorIiSaIiEEmPdPN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(121) %15, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %46, ptr noundef nonnull %12, ptr noundef nonnull %7, i1 noundef zeroext %10)
          to label %48 unwind label %52

48:                                               ; preds = %45
  store double %47, ptr %9, align 8, !tbaa !5
  %49 = fcmp ule double %47, 0.000000e+00
  br i1 %49, label %54, label %105

50:                                               ; preds = %._crit_edge
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %107

52:                                               ; preds = %45
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %106

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  br i1 %10, label %55, label %59

55:                                               ; preds = %54
  %56 = 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.2)
          to label %59 unwind label %57

57:                                               ; preds = %55
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %104

59:                                               ; preds = %55, %54
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  %60 = invoke { double, double } @_ZN4orsa13display_statsERKSt6vectorI5MatchSaIS1_EERKS0_IiSaIiEERKN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %7, i1 noundef zeroext %10)
          to label %61 unwind label %72

61:                                               ; preds = %59
  %62 = extractvalue { double, double } %60, 0
  store double %62, ptr %17, align 8
  %63 = getelementptr inbounds i8, ptr %17, i64 8
  %64 = extractvalue { double, double } %60, 1
  store double %64, ptr %63, align 8
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIddEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  invoke void @_ZN11libNumerics6matrixIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 3, i32 noundef 3)
          to label %66 unwind label %74

66:                                               ; preds = %61
  %67 = invoke noundef zeroext i1 @_ZNK4orsa9OrsaModel12ComputeModelERKSt6vectorIiSaIiEEPN11libNumerics6matrixIdEE(ptr noundef nonnull align 8 dereferenceable(121) %15, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull %18)
          to label %68 unwind label %76

68:                                               ; preds = %66
  br i1 %67, label %69, label %96

69:                                               ; preds = %68
  br i1 %10, label %70, label %78

70:                                               ; preds = %69
  %71 = 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.3)
          to label %78 unwind label %76

72:                                               ; preds = %59
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %104

74:                                               ; preds = %61
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %103

76:                                               ; preds = %99, %97, %70, %66
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %102

78:                                               ; preds = %70, %69
  %79 = getelementptr inbounds i8, ptr %16, i64 8
  %80 = load double, ptr %79, align 8, !tbaa !17
  %81 = invoke { double, double } @_ZN4orsa13display_statsERKSt6vectorI5MatchSaIS1_EERKS0_IiSaIiEERKN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %18, i1 noundef zeroext %10)
          to label %82 unwind label %87

82:                                               ; preds = %78
  %83 = extractvalue { double, double } %81, 0
  %84 = fcmp ugt double %83, %80
  br i1 %84, label %91, label %85

85:                                               ; preds = %82
  %86 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6matrixIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %101 unwind label %89

87:                                               ; preds = %78
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %102

89:                                               ; preds = %94, %92, %85
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %102

91:                                               ; preds = %82
  br i1 %10, label %92, label %101

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

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %101 unwind label %89

96:                                               ; preds = %68
  br i1 %10, label %97, label %101

97:                                               ; preds = %96
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
          to label %99 unwind label %76

99:                                               ; preds = %97
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %101 unwind label %76

101:                                              ; preds = %85, %94, %91, %96, %99
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %105

102:                                              ; preds = %87, %89, %76
  %.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %90, %89 ], [ %88, %87 ]
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %103

103:                                              ; preds = %102, %74
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %102 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %104

104:                                              ; preds = %103, %72, %57
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %103 ], [ %73, %72 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %106

105:                                              ; preds = %48, %101
  call void @_ZN4orsa9OrsaModelD2Ev(ptr noundef nonnull align 8 dereferenceable(122) %15) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %109

106:                                              ; preds = %104, %52
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %104 ], [ %53, %52 ]
  call void @_ZN4orsa9OrsaModelD2Ev(ptr noundef nonnull align 8 dereferenceable(122) %15) #6
  br label %107

107:                                              ; preds = %106, %50
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %106 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %108

108:                                              ; preds = %107, %23
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %107 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn

109:                                              ; preds = %11, %105
  %.1 = phi i1 [ %49, %105 ], [ false, %11 ]
  ret i1 %.1
}

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4orsa16FundamentalModelC1ERKN11libNumerics6matrixIdEEiiS5_iib(ptr noundef nonnull align 8 dereferenceable(122), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #5

declare noundef double @_ZNK4orsa9OrsaModel4orsaERSt6vectorIiSaIiEEmPdPN11libNumerics6matrixIdEEb(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #5

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

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

declare noundef zeroext i1 @_ZNK4orsa9OrsaModel12ComputeModelERKSt6vectorIiSaIiEEPN11libNumerics6matrixIdEE(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #5

; 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 #0 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass