; LLVM IR from ERGO-Code/HiGHS :: src/ipm/ipx/starting_basis.ll (ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE)

; 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::valarray" = type { i64, ptr }
%"class.ipx::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%struct.ipx_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, double, double, double, double }

@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::valarray", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.ipx::Timer", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef nonnull align 8 dereferenceable(704) ptr @_ZNK3ipx7Iterate5modelEv(ptr noundef nonnull align 8 dereferenceable(296) %21)
  store ptr %22, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %23)
  store i32 %24, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %25)
  store i32 %26, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %27)
  store ptr %28, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %29)
  store ptr %30, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = add nsw i32 %31, %32
  %34 = sext i32 %33 to i64
  call void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %35, ptr %13, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ipx_info, ptr %36, i32 0, i32 3
  store i32 0, ptr %37, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  invoke void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %38 unwind label %46

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %115, %38
  %40 = load i32, ptr %17, align 4, !tbaa !9
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = add nsw i32 %41, %42
  %44 = icmp slt i32 %40, %43
  br i1 %44, label %50, label %45

45:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %118

46:                                               ; preds = %221, %218, %214, %118, %3
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %15, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %16, align 4
  br label %231

50:                                               ; preds = %39
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = invoke noundef double @_ZNK3ipx7Iterate13ScalingFactorEi(ptr noundef nonnull align 8 dereferenceable(296) %51, i32 noundef %52)
          to label %54 unwind label %81

54:                                               ; preds = %50
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %56) #7
  store double %53, ptr %57, align 8, !tbaa !14
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load i32, ptr %17, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %58, i64 noundef %60) #7
  %62 = load double, ptr %61, align 8, !tbaa !14
  %63 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %62)
          to label %64 unwind label %81

64:                                               ; preds = %54
  br i1 %63, label %65, label %87

65:                                               ; preds = %64
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %68) #7
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %70)
          to label %72 unwind label %81

72:                                               ; preds = %65
  br i1 %71, label %73, label %87

73:                                               ; preds = %72
  %74 = load i32, ptr %17, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %75) #7
  %77 = load double, ptr %76, align 8, !tbaa !14
  %78 = fcmp oeq double %77, 0x7FF0000000000000
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  br label %86

80:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 144, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE) #8
  unreachable

81:                                               ; preds = %87, %65, %54, %50
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %15, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %231

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %79
  br label %98

87:                                               ; preds = %72, %64
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %89) #7
  %91 = load double, ptr %90, align 8, !tbaa !14
  %92 = invoke noundef zeroext i1 @_ZSt8isfinited(double noundef %91)
          to label %93 unwind label %81

93:                                               ; preds = %87
  br i1 %92, label %94, label %95

94:                                               ; preds = %93
  br label %97

95:                                               ; preds = %93
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.12, i32 noundef 146, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE) #8
  unreachable

96:                                               ; No predecessors!
  br label %97

97:                                               ; preds = %96, %94
  br label %98

98:                                               ; preds = %97, %86
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %99, i64 noundef %101) #7
  %103 = load double, ptr %102, align 8, !tbaa !14
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %106) #7
  %108 = load double, ptr %107, align 8, !tbaa !14
  %109 = fcmp oeq double %103, %108
  br i1 %109, label %110, label %114

110:                                              ; preds = %98
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %112) #7
  store double 0.000000e+00, ptr %113, align 8, !tbaa !14
  br label %114

114:                                              ; preds = %110, %98
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %17, align 4, !tbaa !9
  br label %39, !llvm.loop !15

118:                                              ; preds = %45
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef 0) #7
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176) %119, ptr noundef %120, ptr noundef %121)
          to label %122 unwind label %46

122:                                              ; preds = %118
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ipx_info, ptr %123, i32 0, i32 3
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  store i32 1, ptr %18, align 4
  br label %228

128:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %168, %128
  %130 = load i32, ptr %19, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = add nsw i32 %131, %132
  %134 = icmp slt i32 %130, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %129
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %171

136:                                              ; preds = %129
  %137 = load i32, ptr %19, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %138) #7
  %140 = load double, ptr %139, align 8, !tbaa !14
  %141 = fcmp oeq double %140, 0.000000e+00
  br i1 %141, label %149, label %142

142:                                              ; preds = %136
  %143 = load i32, ptr %19, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %144) #7
  %146 = load double, ptr %145, align 8, !tbaa !14
  %147 = invoke noundef zeroext i1 @_ZSt5isinfd(double noundef %146)
          to label %148 unwind label %158

148:                                              ; preds = %142
  br i1 %147, label %149, label %167

149:                                              ; preds = %148, %136
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = invoke noundef zeroext i1 @_ZNK3ipx5Basis7IsBasicEi(ptr noundef nonnull align 8 dereferenceable(176) %150, i32 noundef %151)
          to label %153 unwind label %158

153:                                              ; preds = %149
  br i1 %152, label %154, label %162

154:                                              ; preds = %153
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load i32, ptr %19, align 4, !tbaa !9
  invoke void @_ZN3ipx5Basis17FreeBasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176) %155, i32 noundef %156)
          to label %157 unwind label %158

157:                                              ; preds = %154
  br label %166

158:                                              ; preds = %162, %154, %149, %142
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %15, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %231

162:                                              ; preds = %153
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load i32, ptr %19, align 4, !tbaa !9
  invoke void @_ZN3ipx5Basis19FixNonbasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176) %163, i32 noundef %164)
          to label %165 unwind label %158

165:                                              ; preds = %162
  br label %166

166:                                              ; preds = %165, %157
  br label %167

167:                                              ; preds = %166, %148
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %19, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %19, align 4, !tbaa !9
  br label %129, !llvm.loop !17

171:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %211, %171
  %173 = load i32, ptr %20, align 4, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = add nsw i32 %174, %175
  %177 = icmp slt i32 %173, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %172
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %214

179:                                              ; preds = %172
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = load i32, ptr %20, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %180, i64 noundef %182) #7
  %184 = load double, ptr %183, align 8, !tbaa !14
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load i32, ptr %20, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %185, i64 noundef %187) #7
  %189 = load double, ptr %188, align 8, !tbaa !14
  %190 = fcmp oeq double %184, %189
  br i1 %190, label %191, label %210

191:                                              ; preds = %179
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = load i32, ptr %20, align 4, !tbaa !9
  %194 = invoke noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %192, i32 noundef %193)
          to label %195 unwind label %206

195:                                              ; preds = %191
  %196 = icmp eq i32 %194, -2
  br i1 %196, label %197, label %210

197:                                              ; preds = %195
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load i32, ptr %20, align 4, !tbaa !9
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %200, i64 noundef %202) #7
  %204 = load double, ptr %203, align 8, !tbaa !14
  invoke void @_ZN3ipx7Iterate10make_fixedEid(ptr noundef nonnull align 8 dereferenceable(296) %198, i32 noundef %199, double noundef %204)
          to label %205 unwind label %206

205:                                              ; preds = %197
  br label %210

206:                                              ; preds = %197, %191
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %15, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %231

210:                                              ; preds = %205, %195, %179
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %20, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %20, align 4, !tbaa !9
  br label %172, !llvm.loop !18

214:                                              ; preds = %178
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3ipxL23PostprocessDependenciesEPNS_7IterateEPNS_5BasisEPNS_4InfoE(ptr noundef %215, ptr noundef %216, ptr noundef %217)
          to label %218 unwind label %46

218:                                              ; preds = %214
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN3ipxL17AssertConsistencyERKNS_7IterateERKNS_5BasisE(ptr noundef nonnull align 8 dereferenceable(296) %219, ptr noundef nonnull align 8 dereferenceable(176) %220)
          to label %221 unwind label %46

221:                                              ; preds = %218
  %222 = invoke noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %223 unwind label %46

223:                                              ; preds = %221
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.ipx_info, ptr %224, i32 0, i32 44
  %226 = load double, ptr %225, align 8, !tbaa !19
  %227 = fadd double %226, %222
  store double %227, ptr %225, align 8, !tbaa !19
  store i32 0, ptr %18, align 4
  br label %228

228:                                              ; preds = %223, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %229 = load i32, ptr %18, align 4
  switch i32 %229, label %237 [
    i32 0, label %230
    i32 1, label %230
  ]

230:                                              ; preds = %228, %228
  ret void

231:                                              ; preds = %206, %158, %81, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr %15, align 8
  %234 = load i32, ptr %16, align 4
  %235 = insertvalue { ptr, i32 } poison, ptr %233, 0
  %236 = insertvalue { ptr, i32 } %235, i32 %234, 1
  resume { ptr, i32 } %236

237:                                              ; preds = %228
  unreachable
}

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

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

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

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

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

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

declare void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef double @_ZNK3ipx7Iterate13ScalingFactorEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double noundef) #2

declare void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx5Basis7IsBasicEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #3 align 2

declare void @_ZN3ipx5Basis17FreeBasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #4

declare void @_ZN3ipx5Basis19FixNonbasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #4

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

declare void @_ZN3ipx7Iterate10make_fixedEid(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef, double noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3ipxL23PostprocessDependenciesEPNS_7IterateEPNS_5BasisEPNS_4InfoE(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3ipxL17AssertConsistencyERKNS_7IterateERKNS_5BasisE(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(176)) #1

declare noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!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, !10, i64 12}
!12 = !{!"_ZTS8ipx_info", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !13, i64 408, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = !{!12, !13, i64 248}


; 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::valarray" = type { i64, ptr }
%"class.ipx::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }

@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [79 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::valarray", align 8
  %5 = alloca %"class.ipx::Timer", align 8
  %6 = tail call noundef nonnull align 8 dereferenceable(704) ptr @_ZNK3ipx7Iterate5modelEv(ptr noundef nonnull align 8 dereferenceable(296) %0)
  %7 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %6)
  %8 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %6)
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %6)
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %11 = add nsw i32 %8, %7
  %12 = sext i32 %11 to i64
  call void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %12)
  %13 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  invoke void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %.preheader70 unwind label %16

.preheader70:                                     ; preds = %3
  %14 = icmp sgt i32 %11, 0
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge

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

._crit_edge:                                      ; preds = %49, %.preheader70
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef 0) #7
  invoke void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176) %1, ptr noundef nonnull %15, ptr noundef %2)
          to label %50 unwind label %16

16:                                               ; preds = %84, %83, %._crit_edge76, %._crit_edge, %3
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %91

.lr.ph:                                           ; preds = %.lr.ph.preheader, %49
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %49 ]
  %18 = trunc nuw nsw i64 %indvars.iv to i32
  %19 = invoke noundef double @_ZNK3ipx7Iterate13ScalingFactorEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %18)
          to label %20 unwind label %34

20:                                               ; preds = %.lr.ph
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv) #7
  store double %19, ptr %21, align 8, !tbaa !11
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #7
  %23 = load double, ptr %22, align 8, !tbaa !11
  %24 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %23)
  br i1 %24, label %25, label %36

25:                                               ; preds = %20
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %indvars.iv) #7
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %27)
  br i1 %28, label %29, label %36

29:                                               ; preds = %25
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv) #7
  %31 = load double, ptr %30, align 8, !tbaa !11
  %32 = fcmp oeq double %31, 0x7FF0000000000000
  br i1 %32, label %41, label %33

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 144, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE) #8
  unreachable

34:                                               ; preds = %.lr.ph
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %91

36:                                               ; preds = %25, %20
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv) #7
  %38 = load double, ptr %37, align 8, !tbaa !11
  %39 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %38)
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.12, i32 noundef 146, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx13StartingBasisEPNS_7IterateEPNS_5BasisEPNS_4InfoE) #8
  unreachable

41:                                               ; preds = %36, %29
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv) #7
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %indvars.iv) #7
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = fcmp oeq double %43, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %41
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv) #7
  store double 0.000000e+00, ptr %48, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %41, %47
  %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 !12

50:                                               ; preds = %._crit_edge
  %51 = load i32, ptr %13, align 4, !tbaa !5
  %.not = icmp eq i32 %51, 0
  br i1 %.not, label %.preheader69, label %90

.preheader69:                                     ; preds = %50
  br i1 %14, label %.lr.ph73.preheader, label %._crit_edge76

.lr.ph73.preheader:                               ; preds = %.preheader69
  %wide.trip.count81 = zext nneg i32 %11 to i64
  br label %.lr.ph73

.preheader:                                       ; preds = %67
  br i1 %14, label %.lr.ph75.preheader, label %._crit_edge76

.lr.ph75.preheader:                               ; preds = %.preheader
  %wide.trip.count86 = zext nneg i32 %11 to i64
  br label %.lr.ph75

.lr.ph73:                                         ; preds = %.lr.ph73.preheader, %67
  %indvars.iv78 = phi i64 [ 0, %.lr.ph73.preheader ], [ %indvars.iv.next79, %67 ]
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv78) #7
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = fcmp oeq double %53, 0.000000e+00
  br i1 %54, label %59, label %55

55:                                               ; preds = %.lr.ph73
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv78) #7
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %57)
  br i1 %58, label %59, label %67

59:                                               ; preds = %55, %.lr.ph73
  %60 = trunc nuw nsw i64 %indvars.iv78 to i32
  %61 = invoke noundef zeroext i1 @_ZNK3ipx5Basis7IsBasicEi(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %60)
          to label %62 unwind label %64

62:                                               ; preds = %59
  br i1 %61, label %63, label %66

63:                                               ; preds = %62
  invoke void @_ZN3ipx5Basis17FreeBasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %60)
          to label %67 unwind label %64

64:                                               ; preds = %66, %63, %59
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %91

66:                                               ; preds = %62
  invoke void @_ZN3ipx5Basis19FixNonbasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %60)
          to label %67 unwind label %64

67:                                               ; preds = %55, %66, %63
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count81
  br i1 %exitcond82.not, label %.preheader, label %.lr.ph73, !llvm.loop !14

._crit_edge76:                                    ; preds = %82, %.preheader69, %.preheader
  invoke void @_ZN3ipxL23PostprocessDependenciesEPNS_7IterateEPNS_5BasisEPNS_4InfoE(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2)
          to label %83 unwind label %16

.lr.ph75:                                         ; preds = %.lr.ph75.preheader, %82
  %indvars.iv83 = phi i64 [ 0, %.lr.ph75.preheader ], [ %indvars.iv.next84, %82 ]
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv83) #7
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %indvars.iv83) #7
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = fcmp oeq double %69, %71
  br i1 %72, label %73, label %82

73:                                               ; preds = %.lr.ph75
  %74 = trunc nuw nsw i64 %indvars.iv83 to i32
  %75 = call noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %1, i32 noundef %74)
  %76 = icmp eq i32 %75, -2
  br i1 %76, label %77, label %82

77:                                               ; preds = %73
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %indvars.iv83) #7
  %79 = load double, ptr %78, align 8, !tbaa !11
  invoke void @_ZN3ipx7Iterate10make_fixedEid(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %74, double noundef %79)
          to label %82 unwind label %80

80:                                               ; preds = %77
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %91

82:                                               ; preds = %.lr.ph75, %73, %77
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count86
  br i1 %exitcond87.not, label %._crit_edge76, label %.lr.ph75, !llvm.loop !15

83:                                               ; preds = %._crit_edge76
  invoke void @_ZN3ipxL17AssertConsistencyERKNS_7IterateERKNS_5BasisE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %84 unwind label %16

84:                                               ; preds = %83
  %85 = invoke noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %86 unwind label %16

86:                                               ; preds = %84
  %87 = getelementptr inbounds i8, ptr %2, i64 248
  %88 = load double, ptr %87, align 8, !tbaa !16
  %89 = fadd double %85, %88
  store double %89, ptr %87, align 8, !tbaa !16
  br label %90

90:                                               ; preds = %50, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret void

91:                                               ; preds = %80, %64, %34, %16
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %65, %64 ], [ %81, %80 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

declare void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef double @_ZNK3ipx7Iterate13ScalingFactorEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double noundef) local_unnamed_addr #2

declare void @_ZN3ipx5Basis25ConstructBasisFromWeightsEPKdPNS_4InfoE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3ipx5Basis7IsBasicEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) local_unnamed_addr #3 align 2

declare void @_ZN3ipx5Basis17FreeBasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) local_unnamed_addr #4

declare void @_ZN3ipx5Basis19FixNonbasicVariableEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) local_unnamed_addr #4

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

declare void @_ZN3ipx7Iterate10make_fixedEid(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3ipxL23PostprocessDependenciesEPNS_7IterateEPNS_5BasisEPNS_4InfoE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3ipxL17AssertConsistencyERKNS_7IterateERKNS_5BasisE(ptr noundef nonnull align 8 dereferenceable(296), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1

declare noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 12}
!6 = !{!"_ZTS8ipx_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!6, !10, i64 248}


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