; LLVM IR from JoshuaSBrown/QC_Tools :: src/libcatnip (qc_functions)

; 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::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<catnip::Matrix *, std::allocator<catnip::Matrix *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<catnip::Matrix *, std::allocator<catnip::Matrix *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1
@_ZTISt16invalid_argument = external constant 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(...)

declare noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

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

declare noundef i32 @_ZNK6catnip6Matrix8get_colsEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6catnip19splitMatrixIntoListERKSt6vectorIiSaIiEEPKNS_6MatrixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::list") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i1, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, 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
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  store i1 false, ptr %9, align 1
  call void @_ZNSt7__cxx114listIPN6catnip6MatrixESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %10, align 4, !tbaa !9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.15) #7
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %121

30:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %116, %30
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %120

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %37 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
          to label %38 unwind label %57

38:                                               ; preds = %36
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = invoke noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %41 unwind label %61

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = sub nsw i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %45)
          to label %47 unwind label %61

47:                                               ; preds = %41
  %48 = load i32, ptr %46, align 4, !tbaa !9
  invoke void @_ZN6catnip6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %37, i32 noundef %40, i32 noundef %48)
          to label %49 unwind label %61

49:                                               ; preds = %47
  store ptr %37, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %101, %49
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = invoke noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %52)
          to label %54 unwind label %65

54:                                               ; preds = %50
  %55 = icmp sle i32 %51, %53
  br i1 %55, label %69, label %56

56:                                               ; preds = %54
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %105

57:                                               ; preds = %111, %105, %36
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %15, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %16, align 4
  br label %119

61:                                               ; preds = %47, %41, %38
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %15, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %16, align 4
  call void @_ZdlPvm(ptr noundef %37, i64 noundef 24) #9
  br label %119

65:                                               ; preds = %50
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %15, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %16, align 4
  br label %104

69:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %97, %69
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = sub nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %75)
          to label %77 unwind label %81

77:                                               ; preds = %70
  %78 = load i32, ptr %76, align 4, !tbaa !9
  %79 = icmp sle i32 %71, %78
  br i1 %79, label %85, label %80

80:                                               ; preds = %77
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %100

81:                                               ; preds = %93, %85, %70
  %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 %18) #7
  br label %104

85:                                               ; preds = %77
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = load i32, ptr %18, align 4, !tbaa !9
  %91 = add nsw i32 %89, %90
  %92 = invoke noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %87, i32 noundef %88, i32 noundef %91)
          to label %93 unwind label %81

93:                                               ; preds = %85
  %94 = load i32, ptr %17, align 4, !tbaa !9
  %95 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN6catnip6Matrix8set_elemEdii(ptr noundef nonnull align 8 dereferenceable(24) %86, double noundef %92, i32 noundef %94, i32 noundef %95)
          to label %96 unwind label %81

96:                                               ; preds = %93
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %18, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %18, align 4, !tbaa !9
  br label %70, !llvm.loop !11

100:                                              ; preds = %80
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %17, align 4, !tbaa !9
  br label %50, !llvm.loop !13

104:                                              ; preds = %81, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %119

105:                                              ; preds = %56
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %109)
          to label %111 unwind label %57

111:                                              ; preds = %105
  %112 = load i32, ptr %110, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = add nsw i32 %113, %112
  store i32 %114, ptr %11, align 4, !tbaa !9
  invoke void @_ZNSt7__cxx114listIPN6catnip6MatrixESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %115 unwind label %57

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %12, align 4, !tbaa !9
  br label %31, !llvm.loop !14

119:                                              ; preds = %104, %61, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %230

120:                                              ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %228

121:                                              ; preds = %4
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef @.str.16) #7
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %216

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %211, %125
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = icmp sle i32 %127, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %215

131:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %132 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
          to label %133 unwind label %152

133:                                              ; preds = %131
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %137)
          to label %139 unwind label %156

139:                                              ; preds = %133
  %140 = load i32, ptr %138, align 4, !tbaa !9
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = invoke noundef i32 @_ZNK6catnip6Matrix8get_colsEv(ptr noundef nonnull align 8 dereferenceable(24) %141)
          to label %143 unwind label %156

143:                                              ; preds = %139
  invoke void @_ZN6catnip6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %132, i32 noundef %140, i32 noundef %142)
          to label %144 unwind label %156

144:                                              ; preds = %143
  store ptr %132, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %196, %144
  %146 = load i32, ptr %22, align 4, !tbaa !9
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = invoke noundef i32 @_ZNK6catnip6Matrix8get_colsEv(ptr noundef nonnull align 8 dereferenceable(24) %147)
          to label %149 unwind label %160

149:                                              ; preds = %145
  %150 = icmp sle i32 %146, %148
  br i1 %150, label %164, label %151

151:                                              ; preds = %149
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %200

152:                                              ; preds = %206, %200, %131
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %15, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %16, align 4
  br label %214

156:                                              ; preds = %143, %139, %133
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %15, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %16, align 4
  call void @_ZdlPvm(ptr noundef %132, i64 noundef 24) #9
  br label %214

160:                                              ; preds = %145
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %15, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %16, align 4
  br label %199

164:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %192, %164
  %166 = load i32, ptr %23, align 4, !tbaa !9
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = load i32, ptr %20, align 4, !tbaa !9
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %170)
          to label %172 unwind label %176

172:                                              ; preds = %165
  %173 = load i32, ptr %171, align 4, !tbaa !9
  %174 = icmp sle i32 %166, %173
  br i1 %174, label %180, label %175

175:                                              ; preds = %172
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %195

176:                                              ; preds = %188, %180, %165
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %15, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %199

180:                                              ; preds = %172
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load i32, ptr %19, align 4, !tbaa !9
  %184 = load i32, ptr %23, align 4, !tbaa !9
  %185 = add nsw i32 %183, %184
  %186 = load i32, ptr %22, align 4, !tbaa !9
  %187 = invoke noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %182, i32 noundef %185, i32 noundef %186)
          to label %188 unwind label %176

188:                                              ; preds = %180
  %189 = load i32, ptr %23, align 4, !tbaa !9
  %190 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN6catnip6Matrix8set_elemEdii(ptr noundef nonnull align 8 dereferenceable(24) %181, double noundef %187, i32 noundef %189, i32 noundef %190)
          to label %191 unwind label %176

191:                                              ; preds = %188
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %23, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %23, align 4, !tbaa !9
  br label %165, !llvm.loop !15

195:                                              ; preds = %175
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %22, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %22, align 4, !tbaa !9
  br label %145, !llvm.loop !16

199:                                              ; preds = %176, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %214

200:                                              ; preds = %151
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load i32, ptr %20, align 4, !tbaa !9
  %203 = sub nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  %205 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %204)
          to label %206 unwind label %152

206:                                              ; preds = %200
  %207 = load i32, ptr %205, align 4, !tbaa !9
  %208 = load i32, ptr %19, align 4, !tbaa !9
  %209 = add nsw i32 %208, %207
  store i32 %209, ptr %19, align 4, !tbaa !9
  invoke void @_ZNSt7__cxx114listIPN6catnip6MatrixESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %210 unwind label %152

210:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  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 %126, !llvm.loop !17

214:                                              ; preds = %199, %156, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %230

215:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %227

216:                                              ; preds = %121
  %217 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %217, ptr noundef @.str.17)
          to label %218 unwind label %219

218:                                              ; preds = %216
  invoke void @__cxa_throw(ptr %217, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #10
          to label %238 unwind label %223

219:                                              ; preds = %216
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %15, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %16, align 4
  call void @__cxa_free_exception(ptr %217) #7
  br label %230

223:                                              ; preds = %218
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %15, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %16, align 4
  br label %230

227:                                              ; preds = %215
  br label %228

228:                                              ; preds = %227, %120
  store i1 true, ptr %9, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %229 = load i1, ptr %9, align 1
  br i1 %229, label %232, label %231

230:                                              ; preds = %223, %219, %214, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZNSt7__cxx1110_List_baseIPN6catnip6MatrixESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %233

231:                                              ; preds = %228
  call void @_ZNSt7__cxx1110_List_baseIPN6catnip6MatrixESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %232

232:                                              ; preds = %231, %228
  ret void

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

238:                                              ; preds = %218
  unreachable
}

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

declare void @_ZN6catnip6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

declare void @_ZN6catnip6Matrix8set_elemEdii(ptr noundef nonnull align 8 dereferenceable(24), double noundef, i32 noundef, i32 noundef) #1

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1110_List_baseIPN6catnip6MatrixESaIS3_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 = { "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 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 = { 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 #5 = { nobuiltin allocsize(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 = { nobuiltin 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 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { noreturn }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; 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::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<catnip::Matrix *, std::allocator<catnip::Matrix *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<catnip::Matrix *, std::allocator<catnip::Matrix *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

; 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(...)

declare noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

declare noundef i32 @_ZNK6catnip6Matrix8get_colsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6catnip19splitMatrixIntoListERKSt6vectorIiSaIiEEPKNS_6MatrixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::__cxx11::list") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  tail call void @_ZNSt7__cxx114listIPN6catnip6MatrixESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %7 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %8 = trunc i64 %7 to i32
  %9 = tail call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.15) #7
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %.preheader73, label %51

.preheader73:                                     ; preds = %4
  %.not6685 = icmp slt i32 %8, 1
  br i1 %.not6685, label %.loopexit, label %.lr.ph88.preheader

.lr.ph88.preheader:                               ; preds = %.preheader73
  %11 = add nuw nsw i64 %7, 1
  %wide.trip.count101 = and i64 %11, 4294967295
  br label %.lr.ph88

.lr.ph88:                                         ; preds = %.lr.ph88.preheader, %48
  %indvars.iv98 = phi i64 [ 1, %.lr.ph88.preheader ], [ %indvars.iv.next99, %48 ]
  %.06186 = phi i32 [ 0, %.lr.ph88.preheader ], [ %49, %48 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %12 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
          to label %13 unwind label %26

13:                                               ; preds = %.lr.ph88
  %14 = invoke noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %15 unwind label %28

15:                                               ; preds = %13
  %16 = add nsw i64 %indvars.iv98, -1
  %17 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %16)
          to label %18 unwind label %28

18:                                               ; preds = %15
  %19 = load i32, ptr %17, align 4, !tbaa !5
  invoke void @_ZN6catnip6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %14, i32 noundef %19)
          to label %20 unwind label %28

20:                                               ; preds = %18
  store ptr %12, ptr %5, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %35, %20
  %.053 = phi i32 [ 1, %20 ], [ %36, %35 ]
  %22 = invoke noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %23 unwind label %30

23:                                               ; preds = %21
  %.not67 = icmp sgt i32 %.053, %22
  br i1 %.not67, label %24, label %.preheader

24:                                               ; preds = %23
  %25 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %16)
          to label %46 unwind label %26

26:                                               ; preds = %46, %24, %.lr.ph88
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %50

28:                                               ; preds = %18, %15, %13
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 24) #9
  br label %50

30:                                               ; preds = %21
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %50

.preheader:                                       ; preds = %23, %44
  %.052 = phi i32 [ %45, %44 ], [ 1, %23 ]
  %32 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %16)
          to label %33 unwind label %37

33:                                               ; preds = %.preheader
  %34 = load i32, ptr %32, align 4, !tbaa !5
  %.not68 = icmp sgt i32 %.052, %34
  br i1 %.not68, label %35, label %39

35:                                               ; preds = %33
  %36 = add nuw nsw i32 %.053, 1
  br label %21, !llvm.loop !11

37:                                               ; preds = %43, %39, %.preheader
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %50

39:                                               ; preds = %33
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = add nsw i32 %.052, %.06186
  %42 = invoke noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.053, i32 noundef %41)
          to label %43 unwind label %37

43:                                               ; preds = %39
  invoke void @_ZN6catnip6Matrix8set_elemEdii(ptr noundef nonnull align 8 dereferenceable(24) %40, double noundef %42, i32 noundef %.053, i32 noundef %.052)
          to label %44 unwind label %37

44:                                               ; preds = %43
  %45 = add nuw nsw i32 %.052, 1
  br label %.preheader, !llvm.loop !13

46:                                               ; preds = %24
  %47 = load i32, ptr %25, align 4, !tbaa !5
  invoke void @_ZNSt7__cxx114listIPN6catnip6MatrixESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %48 unwind label %26

48:                                               ; preds = %46
  %49 = add nsw i32 %47, %.06186
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next99, %wide.trip.count101
  br i1 %exitcond102.not, label %.loopexit, label %.lr.ph88, !llvm.loop !14

50:                                               ; preds = %30, %37, %28, %26
  %.pn69.pn = phi { ptr, i32 } [ %27, %26 ], [ %29, %28 ], [ %38, %37 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %101

51:                                               ; preds = %4
  %52 = tail call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.16) #7
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %.preheader75, label %94

.preheader75:                                     ; preds = %51
  %.not82 = icmp slt i32 %8, 1
  br i1 %.not82, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader75
  %54 = add nuw nsw i64 %7, 1
  %wide.trip.count = and i64 %54, 4294967295
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %91
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %91 ]
  %.05183 = phi i32 [ 0, %.lr.ph.preheader ], [ %92, %91 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %55 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
          to label %56 unwind label %69

56:                                               ; preds = %.lr.ph
  %57 = add nsw i64 %indvars.iv, -1
  %58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %57)
          to label %59 unwind label %71

59:                                               ; preds = %56
  %60 = load i32, ptr %58, align 4, !tbaa !5
  %61 = invoke noundef i32 @_ZNK6catnip6Matrix8get_colsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %62 unwind label %71

62:                                               ; preds = %59
  invoke void @_ZN6catnip6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %55, i32 noundef %60, i32 noundef %61)
          to label %63 unwind label %71

63:                                               ; preds = %62
  store ptr %55, ptr %6, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %78, %63
  %.049 = phi i32 [ 1, %63 ], [ %79, %78 ]
  %65 = invoke noundef i32 @_ZNK6catnip6Matrix8get_colsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %66 unwind label %73

66:                                               ; preds = %64
  %.not62 = icmp sgt i32 %.049, %65
  br i1 %.not62, label %67, label %.preheader74

67:                                               ; preds = %66
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %57)
          to label %89 unwind label %69

69:                                               ; preds = %89, %67, %.lr.ph
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %93

71:                                               ; preds = %62, %59, %56
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %55, i64 noundef 24) #9
  br label %93

73:                                               ; preds = %64
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %93

.preheader74:                                     ; preds = %66, %87
  %.0 = phi i32 [ %88, %87 ], [ 1, %66 ]
  %75 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %57)
          to label %76 unwind label %80

76:                                               ; preds = %.preheader74
  %77 = load i32, ptr %75, align 4, !tbaa !5
  %.not63 = icmp sgt i32 %.0, %77
  br i1 %.not63, label %78, label %82

78:                                               ; preds = %76
  %79 = add nuw nsw i32 %.049, 1
  br label %64, !llvm.loop !15

80:                                               ; preds = %86, %82, %.preheader74
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %93

82:                                               ; preds = %76
  %83 = load ptr, ptr %6, align 8, !tbaa !9
  %84 = add nsw i32 %.0, %.05183
  %85 = invoke noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %84, i32 noundef %.049)
          to label %86 unwind label %80

86:                                               ; preds = %82
  invoke void @_ZN6catnip6Matrix8set_elemEdii(ptr noundef nonnull align 8 dereferenceable(24) %83, double noundef %85, i32 noundef %.0, i32 noundef %.049)
          to label %87 unwind label %80

87:                                               ; preds = %86
  %88 = add nuw nsw i32 %.0, 1
  br label %.preheader74, !llvm.loop !16

89:                                               ; preds = %67
  %90 = load i32, ptr %68, align 4, !tbaa !5
  invoke void @_ZNSt7__cxx114listIPN6catnip6MatrixESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %91 unwind label %69

91:                                               ; preds = %89
  %92 = add nsw i32 %90, %.05183
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %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 %.loopexit, label %.lr.ph, !llvm.loop !17

93:                                               ; preds = %73, %80, %71, %69
  %.pn.pn = phi { ptr, i32 } [ %70, %69 ], [ %72, %71 ], [ %81, %80 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %101

94:                                               ; preds = %51
  %95 = tail call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef nonnull @.str.17)
          to label %96 unwind label %97

96:                                               ; preds = %94
  invoke void @__cxa_throw(ptr nonnull %95, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #10
          to label %102 unwind label %99

97:                                               ; preds = %94
  %98 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %95) #7
  br label %101

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

101:                                              ; preds = %99, %97, %93, %50
  %.pn69.pn.pn = phi { ptr, i32 } [ %.pn69.pn, %50 ], [ %.pn.pn, %93 ], [ %100, %99 ], [ %98, %97 ]
  call void @_ZNSt7__cxx1110_List_baseIPN6catnip6MatrixESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  resume { ptr, i32 } %.pn69.pn.pn

.loopexit:                                        ; preds = %91, %48, %.preheader75, %.preheader73
  ret void

102:                                              ; preds = %96
  unreachable
}

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

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

declare void @_ZN6catnip6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

declare void @_ZN6catnip6Matrix8set_elemEdii(ptr noundef nonnull align 8 dereferenceable(24), double noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { 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 #5 = { nobuiltin allocsize(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 = { nobuiltin 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 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { noreturn }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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