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

; 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.ipx::Iterate" = type { ptr, %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::vector", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", double, double, double, double, double, double, double, double, double, i8, i8, double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl" }
%"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl" = type { %"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::valarray" = type { i64, ptr }

; 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 @_ZN3ipx7IterateC2ERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(704) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %14, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 1
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %16 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 2
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  %17 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 3
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  %18 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 4
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  %19 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 5
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  %20 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 6
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  %21 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 7
  call void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %22 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 8
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  %23 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 9
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  %24 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 10
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  %25 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 11
  call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  %26 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 12
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 13
  store double 0.000000e+00, ptr %27, align 8, !tbaa !19
  %28 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 14
  store double 0.000000e+00, ptr %28, align 8, !tbaa !20
  %29 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 15
  store double 0.000000e+00, ptr %29, align 8, !tbaa !21
  %30 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 16
  store double 0.000000e+00, ptr %30, align 8, !tbaa !22
  %31 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 17
  store double 0.000000e+00, ptr %31, align 8, !tbaa !23
  %32 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 18
  store double 0.000000e+00, ptr %32, align 8, !tbaa !24
  %33 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 19
  store double 0.000000e+00, ptr %33, align 8, !tbaa !25
  %34 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 20
  store double 0.000000e+00, ptr %34, align 8, !tbaa !26
  %35 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 21
  store i8 0, ptr %35, align 8, !tbaa !27
  %36 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 22
  store i8 0, ptr %36, align 1, !tbaa !28
  %37 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 23
  store double 0x3EB0C6F7A0B5ED8D, ptr %37, align 8, !tbaa !29
  %38 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 24
  store double 1.000000e-08, ptr %38, align 8, !tbaa !30
  %39 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 25
  store double -1.000000e+00, ptr %39, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %40 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !32
  %42 = invoke noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %41)
          to label %43 unwind label %123

43:                                               ; preds = %2
  store i32 %42, ptr %5, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %44 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !32
  %46 = invoke noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %45)
          to label %47 unwind label %127

47:                                               ; preds = %43
  store i32 %46, ptr %8, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %48)
          to label %50 unwind label %131

50:                                               ; preds = %47
  store ptr %49, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %51)
          to label %53 unwind label %135

53:                                               ; preds = %50
  store ptr %52, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 1
  %55 = load i32, ptr %8, align 4, !tbaa !33
  %56 = load i32, ptr %5, align 4, !tbaa !33
  %57 = add nsw i32 %55, %56
  %58 = sext i32 %57 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %54, i64 noundef %58, double noundef 0.000000e+00)
          to label %59 unwind label %135

59:                                               ; preds = %53
  %60 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 2
  %61 = load i32, ptr %8, align 4, !tbaa !33
  %62 = load i32, ptr %5, align 4, !tbaa !33
  %63 = add nsw i32 %61, %62
  %64 = sext i32 %63 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %60, i64 noundef %64, double noundef 0.000000e+00)
          to label %65 unwind label %135

65:                                               ; preds = %59
  %66 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 3
  %67 = load i32, ptr %8, align 4, !tbaa !33
  %68 = load i32, ptr %5, align 4, !tbaa !33
  %69 = add nsw i32 %67, %68
  %70 = sext i32 %69 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %70, double noundef 0.000000e+00)
          to label %71 unwind label %135

71:                                               ; preds = %65
  %72 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 4
  %73 = load i32, ptr %5, align 4, !tbaa !33
  %74 = sext i32 %73 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %72, i64 noundef %74, double noundef 0.000000e+00)
          to label %75 unwind label %135

75:                                               ; preds = %71
  %76 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 5
  %77 = load i32, ptr %8, align 4, !tbaa !33
  %78 = load i32, ptr %5, align 4, !tbaa !33
  %79 = add nsw i32 %77, %78
  %80 = sext i32 %79 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %76, i64 noundef %80, double noundef 0.000000e+00)
          to label %81 unwind label %135

81:                                               ; preds = %75
  %82 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 6
  %83 = load i32, ptr %8, align 4, !tbaa !33
  %84 = load i32, ptr %5, align 4, !tbaa !33
  %85 = add nsw i32 %83, %84
  %86 = sext i32 %85 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %82, i64 noundef %86, double noundef 0.000000e+00)
          to label %87 unwind label %135

87:                                               ; preds = %81
  %88 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 8
  %89 = load i32, ptr %5, align 4, !tbaa !33
  %90 = sext i32 %89 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %88, i64 noundef %90, double noundef 0.000000e+00)
          to label %91 unwind label %135

91:                                               ; preds = %87
  %92 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 9
  %93 = load i32, ptr %8, align 4, !tbaa !33
  %94 = load i32, ptr %5, align 4, !tbaa !33
  %95 = add nsw i32 %93, %94
  %96 = sext i32 %95 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %92, i64 noundef %96, double noundef 0.000000e+00)
          to label %97 unwind label %135

97:                                               ; preds = %91
  %98 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 10
  %99 = load i32, ptr %8, align 4, !tbaa !33
  %100 = load i32, ptr %5, align 4, !tbaa !33
  %101 = add nsw i32 %99, %100
  %102 = sext i32 %101 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %102, double noundef 0.000000e+00)
          to label %103 unwind label %135

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 11
  %105 = load i32, ptr %8, align 4, !tbaa !33
  %106 = load i32, ptr %5, align 4, !tbaa !33
  %107 = add nsw i32 %105, %106
  %108 = sext i32 %107 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %108, double noundef 0.000000e+00)
          to label %109 unwind label %135

109:                                              ; preds = %103
  %110 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 7
  %111 = load i32, ptr %8, align 4, !tbaa !33
  %112 = load i32, ptr %5, align 4, !tbaa !33
  %113 = add nsw i32 %111, %112
  %114 = sext i32 %113 to i64
  invoke void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %114)
          to label %115 unwind label %135

115:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !33
  br label %116

116:                                              ; preds = %262, %115
  %117 = load i32, ptr %11, align 4, !tbaa !33
  %118 = load i32, ptr %8, align 4, !tbaa !33
  %119 = load i32, ptr %5, align 4, !tbaa !33
  %120 = add nsw i32 %118, %119
  %121 = icmp slt i32 %117, %120
  br i1 %121, label %139, label %122

122:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %265

123:                                              ; preds = %2
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %6, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %7, align 4
  br label %270

127:                                              ; preds = %43
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %6, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %7, align 4
  br label %269

131:                                              ; preds = %47
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %6, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %7, align 4
  br label %268

135:                                              ; preds = %265, %109, %103, %97, %91, %87, %81, %75, %71, %65, %59, %53, %50
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %6, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %7, align 4
  br label %267

139:                                              ; preds = %116
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load i32, ptr %11, align 4, !tbaa !33
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %140, i64 noundef %142) #5
  %144 = load double, ptr %143, align 8, !tbaa !35
  %145 = invoke noundef zeroext i1 @_ZSt8isfinited(double noundef %144)
          to label %146 unwind label %176

146:                                              ; preds = %139
  br i1 %145, label %147, label %180

147:                                              ; preds = %146
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i32, ptr %11, align 4, !tbaa !33
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %148, i64 noundef %150) #5
  %152 = load double, ptr %151, align 8, !tbaa !35
  %153 = invoke noundef zeroext i1 @_ZSt8isfinited(double noundef %152)
          to label %154 unwind label %176

154:                                              ; preds = %147
  br i1 %153, label %155, label %180

155:                                              ; preds = %154
  %156 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 7
  %157 = load i32, ptr %11, align 4, !tbaa !33
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #5
  store i32 2, ptr %159, align 4, !tbaa !36
  %160 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 2
  %161 = load i32, ptr %11, align 4, !tbaa !33
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %160, i64 noundef %162) #5
  store double 1.000000e+00, ptr %163, align 8, !tbaa !35
  %164 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 3
  %165 = load i32, ptr %11, align 4, !tbaa !33
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %164, i64 noundef %166) #5
  store double 1.000000e+00, ptr %167, align 8, !tbaa !35
  %168 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 5
  %169 = load i32, ptr %11, align 4, !tbaa !33
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %168, i64 noundef %170) #5
  store double 1.000000e+00, ptr %171, align 8, !tbaa !35
  %172 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 6
  %173 = load i32, ptr %11, align 4, !tbaa !33
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %172, i64 noundef %174) #5
  store double 1.000000e+00, ptr %175, align 8, !tbaa !35
  br label %261

176:                                              ; preds = %209, %180, %147, %139
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %6, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %267

180:                                              ; preds = %154, %146
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = load i32, ptr %11, align 4, !tbaa !33
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %181, i64 noundef %183) #5
  %185 = load double, ptr %184, align 8, !tbaa !35
  %186 = invoke noundef zeroext i1 @_ZSt8isfinited(double noundef %185)
          to label %187 unwind label %176

187:                                              ; preds = %180
  br i1 %186, label %188, label %209

188:                                              ; preds = %187
  %189 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 7
  %190 = load i32, ptr %11, align 4, !tbaa !33
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %191) #5
  store i32 0, ptr %192, align 4, !tbaa !36
  %193 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 2
  %194 = load i32, ptr %11, align 4, !tbaa !33
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %193, i64 noundef %195) #5
  store double 1.000000e+00, ptr %196, align 8, !tbaa !35
  %197 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 3
  %198 = load i32, ptr %11, align 4, !tbaa !33
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %197, i64 noundef %199) #5
  store double 0x7FF0000000000000, ptr %200, align 8, !tbaa !35
  %201 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 5
  %202 = load i32, ptr %11, align 4, !tbaa !33
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %201, i64 noundef %203) #5
  store double 1.000000e+00, ptr %204, align 8, !tbaa !35
  %205 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 6
  %206 = load i32, ptr %11, align 4, !tbaa !33
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %205, i64 noundef %207) #5
  store double 0.000000e+00, ptr %208, align 8, !tbaa !35
  br label %260

209:                                              ; preds = %187
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = load i32, ptr %11, align 4, !tbaa !33
  %212 = sext i32 %211 to i64
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %210, i64 noundef %212) #5
  %214 = load double, ptr %213, align 8, !tbaa !35
  %215 = invoke noundef zeroext i1 @_ZSt8isfinited(double noundef %214)
          to label %216 unwind label %176

216:                                              ; preds = %209
  br i1 %215, label %217, label %238

217:                                              ; preds = %216
  %218 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 7
  %219 = load i32, ptr %11, align 4, !tbaa !33
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %218, i64 noundef %220) #5
  store i32 1, ptr %221, align 4, !tbaa !36
  %222 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 2
  %223 = load i32, ptr %11, align 4, !tbaa !33
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %222, i64 noundef %224) #5
  store double 0x7FF0000000000000, ptr %225, align 8, !tbaa !35
  %226 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 3
  %227 = load i32, ptr %11, align 4, !tbaa !33
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %226, i64 noundef %228) #5
  store double 1.000000e+00, ptr %229, align 8, !tbaa !35
  %230 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 5
  %231 = load i32, ptr %11, align 4, !tbaa !33
  %232 = sext i32 %231 to i64
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %230, i64 noundef %232) #5
  store double 0.000000e+00, ptr %233, align 8, !tbaa !35
  %234 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 6
  %235 = load i32, ptr %11, align 4, !tbaa !33
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %234, i64 noundef %236) #5
  store double 1.000000e+00, ptr %237, align 8, !tbaa !35
  br label %259

238:                                              ; preds = %216
  %239 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 7
  %240 = load i32, ptr %11, align 4, !tbaa !33
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %239, i64 noundef %241) #5
  store i32 3, ptr %242, align 4, !tbaa !36
  %243 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 2
  %244 = load i32, ptr %11, align 4, !tbaa !33
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %243, i64 noundef %245) #5
  store double 0x7FF0000000000000, ptr %246, align 8, !tbaa !35
  %247 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 3
  %248 = load i32, ptr %11, align 4, !tbaa !33
  %249 = sext i32 %248 to i64
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %247, i64 noundef %249) #5
  store double 0x7FF0000000000000, ptr %250, align 8, !tbaa !35
  %251 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 5
  %252 = load i32, ptr %11, align 4, !tbaa !33
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %251, i64 noundef %253) #5
  store double 0.000000e+00, ptr %254, align 8, !tbaa !35
  %255 = getelementptr inbounds %"class.ipx::Iterate", ptr %12, i32 0, i32 6
  %256 = load i32, ptr %11, align 4, !tbaa !33
  %257 = sext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %255, i64 noundef %257) #5
  store double 0.000000e+00, ptr %258, align 8, !tbaa !35
  br label %259

259:                                              ; preds = %238, %217
  br label %260

260:                                              ; preds = %259, %188
  br label %261

261:                                              ; preds = %260, %155
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %11, align 4, !tbaa !33
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %11, align 4, !tbaa !33
  br label %116, !llvm.loop !38

265:                                              ; preds = %122
  invoke void @_ZN3ipx7Iterate18assert_consistencyEv(ptr noundef nonnull align 8 dereferenceable(296) %12)
          to label %266 unwind label %135

266:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void

267:                                              ; preds = %176, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %268

268:                                              ; preds = %267, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %269

269:                                              ; preds = %268, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %270

270:                                              ; preds = %269, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %6, align 8
  %273 = load i32, ptr %7, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704)) #3 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)) #3 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)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3ipx7Iterate18assert_consistencyEv(ptr noundef nonnull align 8 dereferenceable(296)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { 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 #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !17, i64 192}
!10 = !{!"_ZTSN3ipx7IterateE", !6, i64 0, !11, i64 8, !11, i64 24, !11, i64 40, !11, i64 56, !11, i64 72, !11, i64 88, !13, i64 104, !11, i64 128, !11, i64 144, !11, i64 160, !11, i64 176, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !17, i64 224, !17, i64 232, !17, i64 240, !17, i64 248, !17, i64 256, !18, i64 264, !18, i64 265, !17, i64 272, !17, i64 280, !17, i64 288}
!11 = !{!"_ZTSSt8valarrayIdE", !12, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!10, !17, i64 200}
!20 = !{!10, !17, i64 208}
!21 = !{!10, !17, i64 216}
!22 = !{!10, !17, i64 224}
!23 = !{!10, !17, i64 232}
!24 = !{!10, !17, i64 240}
!25 = !{!10, !17, i64 248}
!26 = !{!10, !17, i64 256}
!27 = !{!10, !18, i64 264}
!28 = !{!10, !18, i64 265}
!29 = !{!10, !17, i64 272}
!30 = !{!10, !17, i64 280}
!31 = !{!10, !17, i64 288}
!32 = !{!10, !6, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"int", !7, i64 0}
!35 = !{!17, !17, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"_ZTSN3ipx7Iterate11StateDetailE", !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx7IterateC2ERKNS_5ModelE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(704) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr %1, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt8valarrayIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 192
  %15 = getelementptr inbounds i8, ptr %0, i64 272
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(74) %14, i8 0, i64 74, i1 false)
  store <2 x double> <double 0x3EB0C6F7A0B5ED8D, double 1.000000e-08>, ptr %15, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %0, i64 288
  store double -1.000000e+00, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %0, align 8, !tbaa !20
  %18 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %17)
  %19 = load ptr, ptr %0, align 8, !tbaa !20
  %20 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %19)
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %1)
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %1)
  %23 = add nsw i32 %20, %18
  %24 = sext i32 %23 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %24, double noundef 0.000000e+00)
          to label %25 unwind label %37

25:                                               ; preds = %2
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %24, double noundef 0.000000e+00)
          to label %26 unwind label %37

26:                                               ; preds = %25
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %24, double noundef 0.000000e+00)
          to label %27 unwind label %37

27:                                               ; preds = %26
  %28 = sext i32 %18 to i64
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %28, double noundef 0.000000e+00)
          to label %29 unwind label %37

29:                                               ; preds = %27
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %24, double noundef 0.000000e+00)
          to label %30 unwind label %37

30:                                               ; preds = %29
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %24, double noundef 0.000000e+00)
          to label %31 unwind label %37

31:                                               ; preds = %30
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %28, double noundef 0.000000e+00)
          to label %32 unwind label %37

32:                                               ; preds = %31
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %24, double noundef 0.000000e+00)
          to label %33 unwind label %37

33:                                               ; preds = %32
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %24, double noundef 0.000000e+00)
          to label %34 unwind label %37

34:                                               ; preds = %33
  invoke void @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %24, double noundef 0.000000e+00)
          to label %35 unwind label %37

35:                                               ; preds = %34
  invoke void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %24)
          to label %.preheader unwind label %37

.preheader:                                       ; preds = %35
  %36 = icmp sgt i32 %23, 0
  br i1 %36, label %.lr.ph.preheader, label %._crit_edge

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

._crit_edge:                                      ; preds = %61, %.preheader
  invoke void @_ZN3ipx7Iterate18assert_consistencyEv(ptr noundef nonnull align 8 dereferenceable(296) %0)
          to label %66 unwind label %37

37:                                               ; preds = %._crit_edge, %35, %34, %33, %32, %31, %30, %29, %27, %26, %25, %2
  %38 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  tail call void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  tail call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  resume { ptr, i32 } %38

.lr.ph:                                           ; preds = %.lr.ph.preheader, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %61 ]
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %indvars.iv) #5
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %40)
  br i1 %41, label %42, label %48

42:                                               ; preds = %.lr.ph
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %indvars.iv) #5
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %44)
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #5
  store i32 2, ptr %47, align 4, !tbaa !21
  br label %61

48:                                               ; preds = %42, %.lr.ph
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %indvars.iv) #5
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %50)
  br i1 %51, label %52, label %54

52:                                               ; preds = %48
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #5
  store i32 0, ptr %53, align 4, !tbaa !21
  br label %61

54:                                               ; preds = %48
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %indvars.iv) #5
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %56)
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #5
  br i1 %57, label %59, label %60

59:                                               ; preds = %54
  store i32 1, ptr %58, align 4, !tbaa !21
  br label %61

60:                                               ; preds = %54
  store i32 3, ptr %58, align 4, !tbaa !21
  br label %61

61:                                               ; preds = %46, %59, %60, %52
  %.sink64 = phi double [ 1.000000e+00, %46 ], [ 0x7FF0000000000000, %59 ], [ 0x7FF0000000000000, %60 ], [ 1.000000e+00, %52 ]
  %.sink62 = phi double [ 1.000000e+00, %46 ], [ 1.000000e+00, %59 ], [ 0x7FF0000000000000, %60 ], [ 0x7FF0000000000000, %52 ]
  %.sink60 = phi double [ 1.000000e+00, %46 ], [ 0.000000e+00, %59 ], [ 0.000000e+00, %60 ], [ 1.000000e+00, %52 ]
  %.sink = phi double [ 1.000000e+00, %46 ], [ 1.000000e+00, %59 ], [ 0.000000e+00, %60 ], [ 0.000000e+00, %52 ]
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %indvars.iv) #5
  store double %.sink64, ptr %62, align 8, !tbaa !9
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %indvars.iv) #5
  store double %.sink62, ptr %63, align 8, !tbaa !9
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %indvars.iv) #5
  store double %.sink60, ptr %64, align 8, !tbaa !9
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv) #5
  store double %.sink, ptr %65, align 8, !tbaa !9
  %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 !23

66:                                               ; preds = %._crit_edge
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 @_ZNSt8valarrayIdE6resizeEmd(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, double noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(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 #1 align 2

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 288}
!12 = !{!"_ZTSN3ipx7IterateE", !6, i64 0, !13, i64 8, !13, i64 24, !13, i64 40, !13, i64 56, !13, i64 72, !13, i64 88, !15, i64 104, !13, i64 128, !13, i64 144, !13, i64 160, !13, i64 176, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !19, i64 264, !19, i64 265, !10, i64 272, !10, i64 280, !10, i64 288}
!13 = !{!"_ZTSSt8valarrayIdE", !14, i64 0, !6, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"bool", !7, i64 0}
!20 = !{!12, !6, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTSN3ipx7Iterate11StateDetailE", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass