; LLVM IR from INMOST-DEV/INMOST-FEM :: anifem++/fem (fem_space)

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

%"struct.Ani::BandDenseMatrixX" = type { i64, ptr, ptr, ptr }
%"struct.Ani::OpMemoryRequirements" = type { i64, i64, i64, i64 }
%"struct.Ani::ArrayView" = type { ptr, i64 }
%"struct.Ani::DenseMatrix.9" = type { ptr, i64, i64, i64 }
%"struct.std::array.19" = type { [6 x i8] }
%"struct.Ani::AniMemoryX" = type { %"struct.Ani::AniMemory", %"struct.Ani::ArrayView.1", %"struct.Ani::ArrayView.0", %"struct.Ani::ArrayView.0", i64 }
%"struct.Ani::AniMemory" = type { %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView", %"struct.Ani::ArrayView.0", i64, i64 }
%"struct.Ani::ArrayView.1" = type { ptr, i64 }
%"struct.Ani::ArrayView.0" = type { ptr, i64 }
%"struct.Ani::BaseFemSpace" = type { ptr, %"struct.Ani::DofT::DofMap" }
%"struct.Ani::DofT::DofMap" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.7 = external hidden unnamed_addr constant [57 x i8], align 1
@_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup = external hidden constant [6 x i8], align 1

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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, i64 noundef) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani11DenseMatrixIdE7SetZeroEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEE(ptr dead_on_unwind noalias writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) unnamed_addr #6 align 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 i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %12 = alloca %"struct.Ani::ArrayView", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca %"struct.std::array.19", align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 3
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef i32 %29(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %31 = icmp ne i32 %30, 3
  br i1 %31, label %32, label %39

32:                                               ; preds = %4
  %33 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef @.str.7)
          to label %34 unwind label %35

34:                                               ; preds = %32
  call void @__cxa_throw(ptr %33, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

35:                                               ; preds = %32
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  call void @__cxa_free_exception(ptr %33) #7
  br label %407

39:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %40, i32 0, i32 4
  %42 = load i64, ptr %41, align 8, !tbaa !11
  store i64 %42, ptr %10, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %43, i32 0, i32 14
  %45 = load i64, ptr %44, align 8, !tbaa !19
  %46 = trunc i64 %45 to i32
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %47, i32 0, i32 15
  %49 = load i64, ptr %48, align 8, !tbaa !20
  %50 = trunc i64 %49 to i32
  %51 = load ptr, ptr %26, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 11
  %53 = load ptr, ptr %52, align 8
  call void %53(ptr dead_on_unwind writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %46, i32 noundef %50)
  %54 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !21
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %56, i32 0, i32 12
  %58 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !23
  %60 = sub i64 %59, %55
  store i64 %60, ptr %58, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %61, i32 0, i32 12
  %63 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %65, i32 0, i32 12
  %67 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !23
  %69 = getelementptr inbounds double, ptr %64, i64 %68
  %70 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !21
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %69, i64 noundef %71)
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load ptr, ptr %26, align 8, !tbaa !9
  %74 = getelementptr inbounds ptr, ptr %73, i64 10
  %75 = load ptr, ptr %74, align 8
  call void %75(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(296) %72, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %76 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %26, i32 0, i32 1
  %77 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %76)
  store i32 %77, ptr %13, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #7
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %81, i32 0, i32 14
  %83 = load i64, ptr %82, align 8, !tbaa !19
  %84 = mul i64 %83, 3
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %85, i32 0, i32 15
  %87 = load i64, ptr %86, align 8, !tbaa !20
  %88 = load i32, ptr %13, align 4, !tbaa !25
  %89 = zext i32 %88 to i64
  %90 = mul i64 %87, %89
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %80, i64 noundef %84, i64 noundef %90)
  call void @_ZN3Ani11DenseMatrixIdE7SetZeroEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !18
  br label %91

91:                                               ; preds = %381, %39
  %92 = load i64, ptr %15, align 8, !tbaa !18
  %93 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 0
  %94 = load i64, ptr %93, align 8, !tbaa !28
  %95 = icmp ult i64 %92, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %384

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  %98 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !30
  %100 = load i64, ptr %15, align 8, !tbaa !18
  %101 = add i64 %100, 1
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !25
  %104 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = load i64, ptr %15, align 8, !tbaa !18
  %107 = getelementptr inbounds i32, ptr %105, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !25
  %109 = sub nsw i32 %103, %108
  %110 = icmp sgt i32 %109, 1
  br i1 %110, label %134, label %111

111:                                              ; preds = %97
  %112 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  %114 = load i64, ptr %15, align 8, !tbaa !18
  %115 = getelementptr inbounds i32, ptr %113, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !25
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %132

118:                                              ; preds = %111
  %119 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !30
  %121 = load i64, ptr %15, align 8, !tbaa !18
  %122 = getelementptr inbounds i32, ptr %120, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !25
  %124 = icmp ne i32 %123, 4
  br i1 %124, label %125, label %132

125:                                              ; preds = %118
  %126 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !30
  %128 = load i64, ptr %15, align 8, !tbaa !18
  %129 = getelementptr inbounds i32, ptr %127, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !25
  %131 = icmp ne i32 %130, 8
  br label %132

132:                                              ; preds = %125, %118, %111
  %133 = phi i1 [ false, %118 ], [ false, %111 ], [ %131, %125 ]
  br label %134

134:                                              ; preds = %132, %97
  %135 = phi i1 [ true, %97 ], [ %133, %132 ]
  %136 = zext i1 %135 to i8
  store i8 %136, ptr %17, align 1, !tbaa !31
  %137 = load i8, ptr %17, align 1, !tbaa !31, !range !33, !noundef !34
  %138 = trunc i8 %137 to i1
  br i1 %138, label %139, label %380

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 6, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !25
  br label %140

140:                                              ; preds = %175, %139
  %141 = load i32, ptr %19, align 4, !tbaa !25
  %142 = icmp slt i32 %141, 6
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %178

144:                                              ; preds = %140
  %145 = load i32, ptr %19, align 4, !tbaa !25
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [6 x i8], ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 0, i64 %146
  %148 = load i8, ptr %147, align 1, !tbaa !35
  %149 = zext i8 %148 to i32
  %150 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !30
  %152 = load i64, ptr %15, align 8, !tbaa !18
  %153 = getelementptr inbounds i32, ptr %151, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !25
  %155 = icmp sge i32 %149, %154
  br i1 %155, label %156, label %169

156:                                              ; preds = %144
  %157 = load i32, ptr %19, align 4, !tbaa !25
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [6 x i8], ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 0, i64 %158
  %160 = load i8, ptr %159, align 1, !tbaa !35
  %161 = zext i8 %160 to i32
  %162 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %163 = load ptr, ptr %162, align 8, !tbaa !30
  %164 = load i64, ptr %15, align 8, !tbaa !18
  %165 = add i64 %164, 1
  %166 = getelementptr inbounds i32, ptr %163, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !25
  %168 = icmp slt i32 %161, %167
  br label %169

169:                                              ; preds = %156, %144
  %170 = phi i1 [ false, %144 ], [ %168, %156 ]
  %171 = load i32, ptr %19, align 4, !tbaa !25
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %18, i64 noundef %172) #7
  %174 = zext i1 %170 to i8
  store i8 %174, ptr %173, align 1, !tbaa !31
  br label %175

175:                                              ; preds = %169
  %176 = load i32, ptr %19, align 4, !tbaa !25
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %19, align 4, !tbaa !25
  br label %140, !llvm.loop !36

178:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %179 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %180 = load ptr, ptr %179, align 8, !tbaa !38
  %181 = load i64, ptr %15, align 8, !tbaa !18
  %182 = add i64 %181, 1
  %183 = getelementptr inbounds i32, ptr %180, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !25
  %185 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %186 = load ptr, ptr %185, align 8, !tbaa !38
  %187 = load i64, ptr %15, align 8, !tbaa !18
  %188 = getelementptr inbounds i32, ptr %186, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !25
  %190 = sub nsw i32 %184, %189
  store i32 %190, ptr %20, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %191 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %192 = load ptr, ptr %191, align 8, !tbaa !30
  %193 = load i64, ptr %15, align 8, !tbaa !18
  %194 = add i64 %193, 1
  %195 = getelementptr inbounds i32, ptr %192, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !25
  %197 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %198 = load ptr, ptr %197, align 8, !tbaa !30
  %199 = load i64, ptr %15, align 8, !tbaa !18
  %200 = getelementptr inbounds i32, ptr %198, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !25
  %202 = sub nsw i32 %196, %201
  store i32 %202, ptr %21, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i64 0, ptr %22, align 8, !tbaa !18
  br label %203

203:                                              ; preds = %376, %178
  %204 = load i64, ptr %22, align 8, !tbaa !18
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %205, i32 0, i32 15
  %207 = load i64, ptr %206, align 8, !tbaa !20
  %208 = icmp ult i64 %204, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %203
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %379

210:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %211 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %212 = load ptr, ptr %211, align 8, !tbaa !38
  %213 = load i64, ptr %15, align 8, !tbaa !18
  %214 = getelementptr inbounds i32, ptr %212, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !25
  store i32 %215, ptr %23, align 4, !tbaa !25
  br label %216

216:                                              ; preds = %372, %210
  %217 = load i32, ptr %23, align 4, !tbaa !25
  %218 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %219 = load ptr, ptr %218, align 8, !tbaa !38
  %220 = load i64, ptr %15, align 8, !tbaa !18
  %221 = add i64 %220, 1
  %222 = getelementptr inbounds i32, ptr %219, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !25
  %224 = icmp slt i32 %217, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %216
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %375

226:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !18
  br label %227

227:                                              ; preds = %368, %226
  %228 = load i64, ptr %24, align 8, !tbaa !18
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %229, i32 0, i32 14
  %231 = load i64, ptr %230, align 8, !tbaa !19
  %232 = icmp ult i64 %228, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %227
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %371

234:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !25
  br label %235

235:                                              ; preds = %364, %234
  %236 = load i32, ptr %25, align 4, !tbaa !25
  %237 = icmp slt i32 %236, 3
  br i1 %237, label %239, label %238

238:                                              ; preds = %235
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %367

239:                                              ; preds = %235
  %240 = load i32, ptr %25, align 4, !tbaa !25
  %241 = mul nsw i32 2, %240
  %242 = add nsw i32 %241, 0
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %18, i64 noundef %243) #7
  %245 = load i8, ptr %244, align 1, !tbaa !31, !range !33, !noundef !34
  %246 = trunc i8 %245 to i1
  br i1 %246, label %247, label %301

247:                                              ; preds = %239
  %248 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %249 = load ptr, ptr %248, align 8, !tbaa !39
  %250 = load i64, ptr %15, align 8, !tbaa !18
  %251 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %249, i64 %250
  %252 = load i32, ptr %25, align 4, !tbaa !25
  %253 = mul nsw i32 2, %252
  %254 = add nsw i32 %253, 0
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [6 x i8], ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 0, i64 %255
  %257 = load i8, ptr %256, align 1, !tbaa !35
  %258 = zext i8 %257 to i32
  %259 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %260 = load ptr, ptr %259, align 8, !tbaa !30
  %261 = load i64, ptr %15, align 8, !tbaa !18
  %262 = getelementptr inbounds i32, ptr %260, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !25
  %264 = sub nsw i32 %258, %263
  %265 = sext i32 %264 to i64
  %266 = load i32, ptr %21, align 4, !tbaa !25
  %267 = sext i32 %266 to i64
  %268 = load i64, ptr %24, align 8, !tbaa !18
  %269 = mul i64 %267, %268
  %270 = add i64 %265, %269
  %271 = load i32, ptr %23, align 4, !tbaa !25
  %272 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %273 = load ptr, ptr %272, align 8, !tbaa !38
  %274 = load i64, ptr %15, align 8, !tbaa !18
  %275 = getelementptr inbounds i32, ptr %273, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !25
  %277 = sub nsw i32 %271, %276
  %278 = sext i32 %277 to i64
  %279 = load i32, ptr %20, align 4, !tbaa !25
  %280 = sext i32 %279 to i64
  %281 = load i64, ptr %22, align 8, !tbaa !18
  %282 = mul i64 %280, %281
  %283 = add i64 %278, %282
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %251, i64 noundef %270, i64 noundef %283)
  %285 = load double, ptr %284, align 8, !tbaa !40
  %286 = load i32, ptr %25, align 4, !tbaa !25
  %287 = sext i32 %286 to i64
  %288 = load i64, ptr %24, align 8, !tbaa !18
  %289 = mul i64 3, %288
  %290 = add i64 %287, %289
  %291 = load i32, ptr %23, align 4, !tbaa !25
  %292 = sext i32 %291 to i64
  %293 = load i32, ptr %13, align 4, !tbaa !25
  %294 = zext i32 %293 to i64
  %295 = load i64, ptr %22, align 8, !tbaa !18
  %296 = mul i64 %294, %295
  %297 = add i64 %292, %296
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef %290, i64 noundef %297)
  %299 = load double, ptr %298, align 8, !tbaa !40
  %300 = fadd double %299, %285
  store double %300, ptr %298, align 8, !tbaa !40
  br label %301

301:                                              ; preds = %247, %239
  %302 = load i32, ptr %25, align 4, !tbaa !25
  %303 = mul nsw i32 2, %302
  %304 = add nsw i32 %303, 1
  %305 = sext i32 %304 to i64
  %306 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %18, i64 noundef %305) #7
  %307 = load i8, ptr %306, align 1, !tbaa !31, !range !33, !noundef !34
  %308 = trunc i8 %307 to i1
  br i1 %308, label %309, label %363

309:                                              ; preds = %301
  %310 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %311 = load ptr, ptr %310, align 8, !tbaa !39
  %312 = load i64, ptr %15, align 8, !tbaa !18
  %313 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %311, i64 %312
  %314 = load i32, ptr %25, align 4, !tbaa !25
  %315 = mul nsw i32 2, %314
  %316 = add nsw i32 %315, 1
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [6 x i8], ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 0, i64 %317
  %319 = load i8, ptr %318, align 1, !tbaa !35
  %320 = zext i8 %319 to i32
  %321 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %322 = load ptr, ptr %321, align 8, !tbaa !30
  %323 = load i64, ptr %15, align 8, !tbaa !18
  %324 = getelementptr inbounds i32, ptr %322, i64 %323
  %325 = load i32, ptr %324, align 4, !tbaa !25
  %326 = sub nsw i32 %320, %325
  %327 = sext i32 %326 to i64
  %328 = load i32, ptr %21, align 4, !tbaa !25
  %329 = sext i32 %328 to i64
  %330 = load i64, ptr %24, align 8, !tbaa !18
  %331 = mul i64 %329, %330
  %332 = add i64 %327, %331
  %333 = load i32, ptr %23, align 4, !tbaa !25
  %334 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %335 = load ptr, ptr %334, align 8, !tbaa !38
  %336 = load i64, ptr %15, align 8, !tbaa !18
  %337 = getelementptr inbounds i32, ptr %335, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !25
  %339 = sub nsw i32 %333, %338
  %340 = sext i32 %339 to i64
  %341 = load i32, ptr %20, align 4, !tbaa !25
  %342 = sext i32 %341 to i64
  %343 = load i64, ptr %22, align 8, !tbaa !18
  %344 = mul i64 %342, %343
  %345 = add i64 %340, %344
  %346 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %313, i64 noundef %332, i64 noundef %345)
  %347 = load double, ptr %346, align 8, !tbaa !40
  %348 = load i32, ptr %25, align 4, !tbaa !25
  %349 = sext i32 %348 to i64
  %350 = load i64, ptr %24, align 8, !tbaa !18
  %351 = mul i64 3, %350
  %352 = add i64 %349, %351
  %353 = load i32, ptr %23, align 4, !tbaa !25
  %354 = sext i32 %353 to i64
  %355 = load i32, ptr %13, align 4, !tbaa !25
  %356 = zext i32 %355 to i64
  %357 = load i64, ptr %22, align 8, !tbaa !18
  %358 = mul i64 %356, %357
  %359 = add i64 %354, %358
  %360 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef %352, i64 noundef %359)
  %361 = load double, ptr %360, align 8, !tbaa !40
  %362 = fsub double %361, %347
  store double %362, ptr %360, align 8, !tbaa !40
  br label %363

363:                                              ; preds = %309, %301
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %25, align 4, !tbaa !25
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %25, align 4, !tbaa !25
  br label %235, !llvm.loop !42

367:                                              ; preds = %238
  br label %368

368:                                              ; preds = %367
  %369 = load i64, ptr %24, align 8, !tbaa !18
  %370 = add i64 %369, 1
  store i64 %370, ptr %24, align 8, !tbaa !18
  br label %227, !llvm.loop !43

371:                                              ; preds = %233
  br label %372

372:                                              ; preds = %371
  %373 = load i32, ptr %23, align 4, !tbaa !25
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %23, align 4, !tbaa !25
  br label %216, !llvm.loop !44

375:                                              ; preds = %225
  br label %376

376:                                              ; preds = %375
  %377 = load i64, ptr %22, align 8, !tbaa !18
  %378 = add i64 %377, 1
  store i64 %378, ptr %22, align 8, !tbaa !18
  br label %203, !llvm.loop !45

379:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 6, ptr %18) #7
  br label %380

380:                                              ; preds = %379, %134
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %381

381:                                              ; preds = %380
  %382 = load i64, ptr %15, align 8, !tbaa !18
  %383 = add i64 %382, 1
  store i64 %383, ptr %15, align 8, !tbaa !18
  br label %91, !llvm.loop !46

384:                                              ; preds = %96
  %385 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %386 = load i64, ptr %385, align 8, !tbaa !21
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %387, i32 0, i32 12
  %389 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %388, i32 0, i32 1
  %390 = load i64, ptr %389, align 8, !tbaa !23
  %391 = add i64 %390, %386
  store i64 %391, ptr %389, align 8, !tbaa !23
  %392 = load i64, ptr %10, align 8, !tbaa !18
  %393 = add i64 %392, 1
  %394 = load ptr, ptr %6, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %394, i32 0, i32 4
  store i64 %393, ptr %395, align 8, !tbaa !11
  %396 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 0
  store i64 1, ptr %396, align 8, !tbaa !28
  %397 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %398 = load ptr, ptr %397, align 8, !tbaa !39
  %399 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %398, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %399, ptr align 8 %14, i64 32, i1 false), !tbaa.struct !47
  %400 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %401 = load ptr, ptr %400, align 8, !tbaa !30
  %402 = getelementptr inbounds i32, ptr %401, i64 1
  store i32 3, ptr %402, align 4, !tbaa !25
  %403 = load i32, ptr %13, align 4, !tbaa !25
  %404 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %405 = load ptr, ptr %404, align 8, !tbaa !38
  %406 = getelementptr inbounds i32, ptr %405, i64 1
  store i32 %403, ptr %406, align 4, !tbaa !25
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  ret void

407:                                              ; preds = %35
  %408 = load ptr, ptr %8, align 8
  %409 = load i32, ptr %9, align 4
  %410 = insertvalue { ptr, i32 } poison, ptr %408, 0
  %411 = insertvalue { ptr, i32 } %410, i32 %409, 1
  resume { ptr, i32 } %411
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6), i64 noundef) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !15, i64 288}
!12 = !{!"_ZTSN3Ani10AniMemoryXIdiEE", !13, i64 0, !17, i64 240, !16, i64 256, !16, i64 272, !15, i64 288}
!13 = !{!"_ZTSN3Ani9AniMemoryIdiEE", !14, i64 0, !14, i64 16, !14, i64 32, !14, i64 48, !14, i64 64, !14, i64 80, !14, i64 96, !14, i64 112, !14, i64 128, !14, i64 144, !14, i64 160, !14, i64 176, !14, i64 192, !16, i64 208, !15, i64 224, !15, i64 232}
!14 = !{!"_ZTSN3Ani9ArrayViewIdEE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN3Ani9ArrayViewIiEE", !6, i64 0, !15, i64 8}
!17 = !{!"_ZTSN3Ani9ArrayViewINS_11DenseMatrixIdEEEE", !6, i64 0, !15, i64 8}
!18 = !{!15, !15, i64 0}
!19 = !{!13, !15, i64 224}
!20 = !{!13, !15, i64 232}
!21 = !{!22, !15, i64 0}
!22 = !{!"_ZTSN3Ani20OpMemoryRequirementsE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!23 = !{!13, !15, i64 200}
!24 = !{!13, !6, i64 192}
!25 = !{!26, !26, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = !{!14, !6, i64 0}
!28 = !{!29, !15, i64 0}
!29 = !{!"_ZTSN3Ani16BandDenseMatrixXIdiEE", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!30 = !{!29, !6, i64 16}
!31 = !{!32, !32, i64 0}
!32 = !{!"bool", !7, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!7, !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!29, !6, i64 24}
!39 = !{!29, !6, i64 8}
!40 = !{!41, !41, i64 0}
!41 = !{!"double", !7, i64 0}
!42 = distinct !{!42, !37}
!43 = distinct !{!43, !37}
!44 = distinct !{!44, !37}
!45 = distinct !{!45, !37}
!46 = distinct !{!46, !37}
!47 = !{i64 0, i64 8, !5, i64 8, i64 8, !18, i64 16, i64 8, !18, i64 24, i64 8, !18}


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

%"struct.Ani::BandDenseMatrixX" = type { i64, ptr, ptr, ptr }
%"struct.Ani::OpMemoryRequirements" = type { i64, i64, i64, i64 }
%"struct.Ani::ArrayView" = type { ptr, i64 }
%"struct.Ani::DenseMatrix.9" = type { ptr, i64, i64, i64 }
%"struct.std::array.19" = type { [6 x i8] }

@_ZTISt13runtime_error = external constant ptr
@.str.7 = external hidden unnamed_addr constant [57 x i8], align 1
@_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup = external hidden local_unnamed_addr constant [6 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, i64 noundef) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani11DenseMatrixIdE7SetZeroEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEE(ptr dead_on_unwind noalias writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %3) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %6 = alloca %"struct.Ani::ArrayView", align 8
  %7 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %8 = alloca %"struct.std::array.19", align 1
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef i32 %11(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not = icmp eq i32 %12, 3
  br i1 %.not, label %18, label %13

13:                                               ; preds = %4
  %14 = tail call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull @.str.7)
          to label %15 unwind label %16

15:                                               ; preds = %13
  tail call void @__cxa_throw(ptr nonnull %14, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %14) #7
  resume { ptr, i32 } %17

18:                                               ; preds = %4
  %19 = getelementptr inbounds i8, ptr %2, i64 288
  %20 = load i64, ptr %19, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  %21 = getelementptr inbounds i8, ptr %2, i64 224
  %22 = load i64, ptr %21, align 8, !tbaa !17
  %23 = trunc i64 %22 to i32
  %24 = getelementptr inbounds i8, ptr %2, i64 232
  %25 = load i64, ptr %24, align 8, !tbaa !18
  %26 = trunc i64 %25 to i32
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 88
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %23, i32 noundef %26)
  %30 = load i64, ptr %5, align 8, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %2, i64 192
  %32 = getelementptr inbounds i8, ptr %2, i64 200
  %33 = load i64, ptr %32, align 8, !tbaa !21
  %34 = sub i64 %33, %30
  store i64 %34, ptr %32, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %35 = load ptr, ptr %31, align 8, !tbaa !22
  %36 = getelementptr inbounds double, ptr %35, i64 %34
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %36, i64 noundef %30)
  %37 = load ptr, ptr %1, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 80
  %39 = load ptr, ptr %38, align 8
  call void %39(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %40 = getelementptr inbounds i8, ptr %1, i64 8
  %41 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %42 = load ptr, ptr %3, align 8, !tbaa !23
  %43 = load i64, ptr %21, align 8, !tbaa !17
  %44 = mul i64 %43, 3
  %45 = load i64, ptr %24, align 8, !tbaa !18
  %46 = zext i32 %41 to i64
  %47 = mul i64 %45, %46
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %42, i64 noundef %44, i64 noundef %47)
  call void @_ZN3Ani11DenseMatrixIdE7SetZeroEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
  %48 = load i64, ptr %0, align 8, !tbaa !24
  %.not101 = icmp eq i64 %48, 0
  br i1 %.not101, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %18
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  %51 = getelementptr inbounds i8, ptr %0, i64 8
  %52 = load i8, ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, align 1
  %53 = zext i8 %52 to i32
  %54 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 1), align 1
  %55 = zext i8 %54 to i32
  %56 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 2), align 1
  %57 = zext i8 %56 to i32
  %58 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 3), align 1
  %59 = zext i8 %58 to i32
  %60 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 4), align 1
  %61 = zext i8 %60 to i32
  %62 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3Ani12BaseFemSpace9applyCURLERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEE7dlookup, i64 5), align 1
  %63 = zext i8 %62 to i32
  br label %76

._crit_edge100:                                   ; preds = %switch.edge, %18
  %64 = load i64, ptr %5, align 8, !tbaa !19
  %65 = load i64, ptr %32, align 8, !tbaa !21
  %66 = add i64 %65, %64
  store i64 %66, ptr %32, align 8, !tbaa !21
  %67 = add i64 %20, 1
  store i64 %67, ptr %19, align 8, !tbaa !8
  store i64 1, ptr %0, align 8, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %0, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !27
  %70 = getelementptr inbounds i8, ptr %0, i64 16
  %71 = load ptr, ptr %70, align 8, !tbaa !30
  %72 = getelementptr inbounds i8, ptr %71, i64 4
  store i32 3, ptr %72, align 4, !tbaa !31
  %73 = getelementptr inbounds i8, ptr %0, i64 24
  %74 = load ptr, ptr %73, align 8, !tbaa !33
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  store i32 %41, ptr %75, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  ret void

76:                                               ; preds = %.lr.ph99, %switch.edge
  %77 = phi i64 [ %48, %.lr.ph99 ], [ %340, %switch.edge ]
  %.08197 = phi i64 [ 0, %.lr.ph99 ], [ %79, %switch.edge ]
  %78 = load ptr, ptr %49, align 8, !tbaa !30
  %79 = add nuw i64 %.08197, 1
  %80 = getelementptr inbounds i32, ptr %78, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !31
  %82 = getelementptr inbounds i32, ptr %78, i64 %.08197
  %83 = load i32, ptr %82, align 4, !tbaa !31
  %84 = sub nsw i32 %81, %83
  %85 = icmp sgt i32 %84, 1
  br i1 %85, label %.critedge, label %86

86:                                               ; preds = %76
  switch i32 %83, label %.critedge [
    i32 0, label %switch.edge
    i32 4, label %switch.edge
    i32 8, label %switch.edge
  ]

.critedge:                                        ; preds = %86, %76
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %8) #7
  %.not87 = icmp sle i32 %83, %53
  %87 = icmp sgt i32 %81, %53
  %spec.select = and i1 %.not87, %87
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 0) #7
  %89 = zext i1 %spec.select to i8
  store i8 %89, ptr %88, align 1, !tbaa !34
  %90 = load ptr, ptr %49, align 8, !tbaa !30
  %91 = getelementptr inbounds i32, ptr %90, i64 %.08197
  %92 = load i32, ptr %91, align 4, !tbaa !31
  %.not87.1 = icmp sgt i32 %92, %55
  br i1 %.not87.1, label %112, label %108

.lr.ph:                                           ; preds = %156
  %93 = load ptr, ptr %49, align 8, !tbaa !30
  %94 = getelementptr inbounds i32, ptr %93, i64 %79
  %95 = load i32, ptr %94, align 4, !tbaa !31
  %96 = getelementptr inbounds i32, ptr %93, i64 %.08197
  %97 = load i32, ptr %96, align 4, !tbaa !31
  %98 = sub nsw i32 %95, %97
  %99 = load ptr, ptr %50, align 8, !tbaa !33
  %100 = getelementptr inbounds i32, ptr %99, i64 %79
  %101 = load i32, ptr %100, align 4, !tbaa !31
  %102 = getelementptr inbounds i32, ptr %99, i64 %.08197
  %103 = load i32, ptr %102, align 4, !tbaa !31
  %104 = sub nsw i32 %101, %103
  %105 = sext i32 %98 to i64
  %106 = sext i32 %104 to i64
  %107 = icmp slt i32 %103, %101
  br i1 %107, label %.lr.ph.split, label %._crit_edge96

108:                                              ; preds = %.critedge
  %109 = getelementptr inbounds i32, ptr %90, i64 %79
  %110 = load i32, ptr %109, align 4, !tbaa !31
  %111 = icmp sgt i32 %110, %55
  br label %112

112:                                              ; preds = %108, %.critedge
  %113 = phi i1 [ false, %.critedge ], [ %111, %108 ]
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 1) #7
  %115 = zext i1 %113 to i8
  store i8 %115, ptr %114, align 1, !tbaa !34
  %116 = load ptr, ptr %49, align 8, !tbaa !30
  %117 = getelementptr inbounds i32, ptr %116, i64 %.08197
  %118 = load i32, ptr %117, align 4, !tbaa !31
  %.not87.2 = icmp sgt i32 %118, %57
  br i1 %.not87.2, label %123, label %119

119:                                              ; preds = %112
  %120 = getelementptr inbounds i32, ptr %116, i64 %79
  %121 = load i32, ptr %120, align 4, !tbaa !31
  %122 = icmp sgt i32 %121, %57
  br label %123

123:                                              ; preds = %119, %112
  %124 = phi i1 [ false, %112 ], [ %122, %119 ]
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 2) #7
  %126 = zext i1 %124 to i8
  store i8 %126, ptr %125, align 1, !tbaa !34
  %127 = load ptr, ptr %49, align 8, !tbaa !30
  %128 = getelementptr inbounds i32, ptr %127, i64 %.08197
  %129 = load i32, ptr %128, align 4, !tbaa !31
  %.not87.3 = icmp sgt i32 %129, %59
  br i1 %.not87.3, label %134, label %130

130:                                              ; preds = %123
  %131 = getelementptr inbounds i32, ptr %127, i64 %79
  %132 = load i32, ptr %131, align 4, !tbaa !31
  %133 = icmp sgt i32 %132, %59
  br label %134

134:                                              ; preds = %130, %123
  %135 = phi i1 [ false, %123 ], [ %133, %130 ]
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 3) #7
  %137 = zext i1 %135 to i8
  store i8 %137, ptr %136, align 1, !tbaa !34
  %138 = load ptr, ptr %49, align 8, !tbaa !30
  %139 = getelementptr inbounds i32, ptr %138, i64 %.08197
  %140 = load i32, ptr %139, align 4, !tbaa !31
  %.not87.4 = icmp sgt i32 %140, %61
  br i1 %.not87.4, label %145, label %141

141:                                              ; preds = %134
  %142 = getelementptr inbounds i32, ptr %138, i64 %79
  %143 = load i32, ptr %142, align 4, !tbaa !31
  %144 = icmp sgt i32 %143, %61
  br label %145

145:                                              ; preds = %141, %134
  %146 = phi i1 [ false, %134 ], [ %144, %141 ]
  %147 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 4) #7
  %148 = zext i1 %146 to i8
  store i8 %148, ptr %147, align 1, !tbaa !34
  %149 = load ptr, ptr %49, align 8, !tbaa !30
  %150 = getelementptr inbounds i32, ptr %149, i64 %.08197
  %151 = load i32, ptr %150, align 4, !tbaa !31
  %.not87.5 = icmp sgt i32 %151, %63
  br i1 %.not87.5, label %156, label %152

152:                                              ; preds = %145
  %153 = getelementptr inbounds i32, ptr %149, i64 %79
  %154 = load i32, ptr %153, align 4, !tbaa !31
  %155 = icmp sgt i32 %154, %63
  br label %156

156:                                              ; preds = %152, %145
  %157 = phi i1 [ false, %145 ], [ %155, %152 ]
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 5) #7
  %159 = zext i1 %157 to i8
  store i8 %159, ptr %158, align 1, !tbaa !34
  %160 = load i64, ptr %24, align 8, !tbaa !18
  %.not102 = icmp eq i64 %160, 0
  br i1 %.not102, label %._crit_edge96, label %.lr.ph

._crit_edge96:                                    ; preds = %._crit_edge93, %.lr.ph, %156
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %8) #7
  %.pre111 = load i64, ptr %0, align 8, !tbaa !24
  br label %switch.edge

.lr.ph.split:                                     ; preds = %.lr.ph, %._crit_edge93
  %161 = phi i64 [ %176, %._crit_edge93 ], [ %160, %.lr.ph ]
  %162 = phi ptr [ %177, %._crit_edge93 ], [ %99, %.lr.ph ]
  %163 = phi ptr [ %178, %._crit_edge93 ], [ %99, %.lr.ph ]
  %.08094 = phi i64 [ %179, %._crit_edge93 ], [ 0, %.lr.ph ]
  %164 = getelementptr inbounds i32, ptr %163, i64 %.08197
  %165 = load i32, ptr %164, align 4, !tbaa !31
  %166 = getelementptr inbounds i32, ptr %163, i64 %79
  %167 = load i32, ptr %166, align 4, !tbaa !31
  %168 = icmp slt i32 %165, %167
  br i1 %168, label %.preheader88.lr.ph, label %._crit_edge93

.preheader88.lr.ph:                               ; preds = %.lr.ph.split
  %169 = mul i64 %.08094, %106
  %170 = mul i64 %.08094, %46
  %171 = load i64, ptr %21, align 8, !tbaa !17
  %.not103 = icmp eq i64 %171, 0
  br i1 %.not103, label %._crit_edge93, label %.preheader88.preheader

.preheader88.preheader:                           ; preds = %.preheader88.lr.ph
  %172 = sext i32 %165 to i64
  br label %.preheader88

.preheader88:                                     ; preds = %.preheader88.preheader, %._crit_edge
  %173 = phi ptr [ %162, %.preheader88.preheader ], [ %186, %._crit_edge ]
  %174 = phi i64 [ 1, %.preheader88.preheader ], [ %187, %._crit_edge ]
  %indvars.iv = phi i64 [ %172, %.preheader88.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %.not104 = icmp eq i64 %174, 0
  br i1 %.not104, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader88
  %175 = add i64 %170, %indvars.iv
  br label %.preheader

._crit_edge93.loopexit105:                        ; preds = %._crit_edge
  %.pre110 = load i64, ptr %24, align 8, !tbaa !18
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %.preheader88.lr.ph, %._crit_edge93.loopexit105, %.lr.ph.split
  %176 = phi i64 [ %.pre110, %._crit_edge93.loopexit105 ], [ %161, %.lr.ph.split ], [ %161, %.preheader88.lr.ph ]
  %177 = phi ptr [ %186, %._crit_edge93.loopexit105 ], [ %162, %.lr.ph.split ], [ %162, %.preheader88.lr.ph ]
  %178 = phi ptr [ %186, %._crit_edge93.loopexit105 ], [ %163, %.lr.ph.split ], [ %163, %.preheader88.lr.ph ]
  %179 = add nuw i64 %.08094, 1
  %180 = icmp ult i64 %179, %176
  br i1 %180, label %.lr.ph.split, label %._crit_edge96, !llvm.loop !36

.preheader:                                       ; preds = %.preheader.lr.ph, %336
  %.07891 = phi i64 [ 0, %.preheader.lr.ph ], [ %337, %336 ]
  %181 = mul i64 %.07891, %105
  %182 = mul i64 %.07891, 3
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 0) #7
  %184 = load i8, ptr %183, align 1, !tbaa !34, !range !39, !noundef !40
  %185 = trunc nuw i8 %184 to i1
  br i1 %185, label %192, label %212

._crit_edge.loopexit:                             ; preds = %336
  %.pre = load ptr, ptr %50, align 8, !tbaa !33
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader88
  %186 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %173, %.preheader88 ]
  %187 = phi i64 [ %338, %._crit_edge.loopexit ], [ 0, %.preheader88 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %188 = getelementptr inbounds i32, ptr %186, i64 %79
  %189 = load i32, ptr %188, align 4, !tbaa !31
  %190 = sext i32 %189 to i64
  %191 = icmp slt i64 %indvars.iv.next, %190
  br i1 %191, label %.preheader88, label %._crit_edge93.loopexit105, !llvm.loop !41

192:                                              ; preds = %.preheader
  %193 = load ptr, ptr %51, align 8, !tbaa !26
  %194 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %193, i64 %.08197
  %195 = load ptr, ptr %49, align 8, !tbaa !30
  %196 = getelementptr inbounds i32, ptr %195, i64 %.08197
  %197 = load i32, ptr %196, align 4, !tbaa !31
  %198 = sub nsw i32 %53, %197
  %199 = sext i32 %198 to i64
  %200 = add i64 %181, %199
  %201 = load ptr, ptr %50, align 8, !tbaa !33
  %202 = getelementptr inbounds i32, ptr %201, i64 %.08197
  %203 = load i32, ptr %202, align 4, !tbaa !31
  %204 = sext i32 %203 to i64
  %205 = sub nsw i64 %indvars.iv, %204
  %206 = add i64 %169, %205
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %194, i64 noundef %200, i64 noundef %206)
  %208 = load double, ptr %207, align 8, !tbaa !42
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %182, i64 noundef %175)
  %210 = load double, ptr %209, align 8, !tbaa !42
  %211 = fadd double %208, %210
  store double %211, ptr %209, align 8, !tbaa !42
  br label %212

212:                                              ; preds = %192, %.preheader
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 1) #7
  %214 = load i8, ptr %213, align 1, !tbaa !34, !range !39, !noundef !40
  %215 = trunc nuw i8 %214 to i1
  br i1 %215, label %216, label %236

216:                                              ; preds = %212
  %217 = load ptr, ptr %51, align 8, !tbaa !26
  %218 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %217, i64 %.08197
  %219 = load ptr, ptr %49, align 8, !tbaa !30
  %220 = getelementptr inbounds i32, ptr %219, i64 %.08197
  %221 = load i32, ptr %220, align 4, !tbaa !31
  %222 = sub nsw i32 %55, %221
  %223 = sext i32 %222 to i64
  %224 = add i64 %181, %223
  %225 = load ptr, ptr %50, align 8, !tbaa !33
  %226 = getelementptr inbounds i32, ptr %225, i64 %.08197
  %227 = load i32, ptr %226, align 4, !tbaa !31
  %228 = sext i32 %227 to i64
  %229 = sub nsw i64 %indvars.iv, %228
  %230 = add i64 %169, %229
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %218, i64 noundef %224, i64 noundef %230)
  %232 = load double, ptr %231, align 8, !tbaa !42
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %182, i64 noundef %175)
  %234 = load double, ptr %233, align 8, !tbaa !42
  %235 = fsub double %234, %232
  store double %235, ptr %233, align 8, !tbaa !42
  br label %236

236:                                              ; preds = %212, %216
  %237 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 2) #7
  %238 = load i8, ptr %237, align 1, !tbaa !34, !range !39, !noundef !40
  %239 = trunc nuw i8 %238 to i1
  br i1 %239, label %240, label %261

240:                                              ; preds = %236
  %241 = load ptr, ptr %51, align 8, !tbaa !26
  %242 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %241, i64 %.08197
  %243 = load ptr, ptr %49, align 8, !tbaa !30
  %244 = getelementptr inbounds i32, ptr %243, i64 %.08197
  %245 = load i32, ptr %244, align 4, !tbaa !31
  %246 = sub nsw i32 %57, %245
  %247 = sext i32 %246 to i64
  %248 = add i64 %181, %247
  %249 = load ptr, ptr %50, align 8, !tbaa !33
  %250 = getelementptr inbounds i32, ptr %249, i64 %.08197
  %251 = load i32, ptr %250, align 4, !tbaa !31
  %252 = sext i32 %251 to i64
  %253 = sub nsw i64 %indvars.iv, %252
  %254 = add i64 %169, %253
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %242, i64 noundef %248, i64 noundef %254)
  %256 = load double, ptr %255, align 8, !tbaa !42
  %257 = add i64 %182, 1
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %257, i64 noundef %175)
  %259 = load double, ptr %258, align 8, !tbaa !42
  %260 = fadd double %256, %259
  store double %260, ptr %258, align 8, !tbaa !42
  br label %261

261:                                              ; preds = %240, %236
  %262 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 3) #7
  %263 = load i8, ptr %262, align 1, !tbaa !34, !range !39, !noundef !40
  %264 = trunc nuw i8 %263 to i1
  br i1 %264, label %265, label %286

265:                                              ; preds = %261
  %266 = load ptr, ptr %51, align 8, !tbaa !26
  %267 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %266, i64 %.08197
  %268 = load ptr, ptr %49, align 8, !tbaa !30
  %269 = getelementptr inbounds i32, ptr %268, i64 %.08197
  %270 = load i32, ptr %269, align 4, !tbaa !31
  %271 = sub nsw i32 %59, %270
  %272 = sext i32 %271 to i64
  %273 = add i64 %181, %272
  %274 = load ptr, ptr %50, align 8, !tbaa !33
  %275 = getelementptr inbounds i32, ptr %274, i64 %.08197
  %276 = load i32, ptr %275, align 4, !tbaa !31
  %277 = sext i32 %276 to i64
  %278 = sub nsw i64 %indvars.iv, %277
  %279 = add i64 %169, %278
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %267, i64 noundef %273, i64 noundef %279)
  %281 = load double, ptr %280, align 8, !tbaa !42
  %282 = add i64 %182, 1
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %282, i64 noundef %175)
  %284 = load double, ptr %283, align 8, !tbaa !42
  %285 = fsub double %284, %281
  store double %285, ptr %283, align 8, !tbaa !42
  br label %286

286:                                              ; preds = %265, %261
  %287 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 4) #7
  %288 = load i8, ptr %287, align 1, !tbaa !34, !range !39, !noundef !40
  %289 = trunc nuw i8 %288 to i1
  br i1 %289, label %290, label %311

290:                                              ; preds = %286
  %291 = load ptr, ptr %51, align 8, !tbaa !26
  %292 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %291, i64 %.08197
  %293 = load ptr, ptr %49, align 8, !tbaa !30
  %294 = getelementptr inbounds i32, ptr %293, i64 %.08197
  %295 = load i32, ptr %294, align 4, !tbaa !31
  %296 = sub nsw i32 %61, %295
  %297 = sext i32 %296 to i64
  %298 = add i64 %181, %297
  %299 = load ptr, ptr %50, align 8, !tbaa !33
  %300 = getelementptr inbounds i32, ptr %299, i64 %.08197
  %301 = load i32, ptr %300, align 4, !tbaa !31
  %302 = sext i32 %301 to i64
  %303 = sub nsw i64 %indvars.iv, %302
  %304 = add i64 %169, %303
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %292, i64 noundef %298, i64 noundef %304)
  %306 = load double, ptr %305, align 8, !tbaa !42
  %307 = add i64 %182, 2
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %307, i64 noundef %175)
  %309 = load double, ptr %308, align 8, !tbaa !42
  %310 = fadd double %306, %309
  store double %310, ptr %308, align 8, !tbaa !42
  br label %311

311:                                              ; preds = %290, %286
  %312 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6) %8, i64 noundef 5) #7
  %313 = load i8, ptr %312, align 1, !tbaa !34, !range !39, !noundef !40
  %314 = trunc nuw i8 %313 to i1
  br i1 %314, label %315, label %336

315:                                              ; preds = %311
  %316 = load ptr, ptr %51, align 8, !tbaa !26
  %317 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %316, i64 %.08197
  %318 = load ptr, ptr %49, align 8, !tbaa !30
  %319 = getelementptr inbounds i32, ptr %318, i64 %.08197
  %320 = load i32, ptr %319, align 4, !tbaa !31
  %321 = sub nsw i32 %63, %320
  %322 = sext i32 %321 to i64
  %323 = add i64 %181, %322
  %324 = load ptr, ptr %50, align 8, !tbaa !33
  %325 = getelementptr inbounds i32, ptr %324, i64 %.08197
  %326 = load i32, ptr %325, align 4, !tbaa !31
  %327 = sext i32 %326 to i64
  %328 = sub nsw i64 %indvars.iv, %327
  %329 = add i64 %169, %328
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %317, i64 noundef %323, i64 noundef %329)
  %331 = load double, ptr %330, align 8, !tbaa !42
  %332 = add i64 %182, 2
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %332, i64 noundef %175)
  %334 = load double, ptr %333, align 8, !tbaa !42
  %335 = fsub double %334, %331
  store double %335, ptr %333, align 8, !tbaa !42
  br label %336

336:                                              ; preds = %315, %311
  %337 = add nuw i64 %.07891, 1
  %338 = load i64, ptr %21, align 8, !tbaa !17
  %339 = icmp ult i64 %337, %338
  br i1 %339, label %.preheader, label %._crit_edge.loopexit, !llvm.loop !44

switch.edge:                                      ; preds = %86, %86, %86, %._crit_edge96
  %340 = phi i64 [ %77, %86 ], [ %77, %86 ], [ %77, %86 ], [ %.pre111, %._crit_edge96 ]
  %341 = icmp ult i64 %79, %340
  br i1 %341, label %76, label %._crit_edge100, !llvm.loop !45
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm6EEixEm(ptr noundef nonnull align 1 dereferenceable(6), i64 noundef) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 288}
!9 = !{!"_ZTSN3Ani10AniMemoryXIdiEE", !10, i64 0, !16, i64 240, !15, i64 256, !15, i64 272, !14, i64 288}
!10 = !{!"_ZTSN3Ani9AniMemoryIdiEE", !11, i64 0, !11, i64 16, !11, i64 32, !11, i64 48, !11, i64 64, !11, i64 80, !11, i64 96, !11, i64 112, !11, i64 128, !11, i64 144, !11, i64 160, !11, i64 176, !11, i64 192, !15, i64 208, !14, i64 224, !14, i64 232}
!11 = !{!"_ZTSN3Ani9ArrayViewIdEE", !12, i64 0, !14, i64 8}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"long", !13, i64 0}
!15 = !{!"_ZTSN3Ani9ArrayViewIiEE", !12, i64 0, !14, i64 8}
!16 = !{!"_ZTSN3Ani9ArrayViewINS_11DenseMatrixIdEEEE", !12, i64 0, !14, i64 8}
!17 = !{!10, !14, i64 224}
!18 = !{!10, !14, i64 232}
!19 = !{!20, !14, i64 0}
!20 = !{!"_ZTSN3Ani20OpMemoryRequirementsE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!21 = !{!10, !14, i64 200}
!22 = !{!10, !12, i64 192}
!23 = !{!11, !12, i64 0}
!24 = !{!25, !14, i64 0}
!25 = !{!"_ZTSN3Ani16BandDenseMatrixXIdiEE", !14, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!26 = !{!25, !12, i64 8}
!27 = !{i64 0, i64 8, !28, i64 8, i64 8, !29, i64 16, i64 8, !29, i64 24, i64 8, !29}
!28 = !{!12, !12, i64 0}
!29 = !{!14, !14, i64 0}
!30 = !{!25, !12, i64 16}
!31 = !{!32, !32, i64 0}
!32 = !{!"int", !13, i64 0}
!33 = !{!25, !12, i64 24}
!34 = !{!35, !35, i64 0}
!35 = !{!"bool", !13, i64 0}
!36 = distinct !{!36, !37, !38}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!"llvm.loop.unswitch.partial.disable"}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = distinct !{!41, !37, !38}
!42 = !{!43, !43, i64 0}
!43 = !{!"double", !13, i64 0}
!44 = distinct !{!44, !37}
!45 = distinct !{!45, !37}


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