; 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 }
%class.anon.20 = type { i8 }
%"struct.Ani::DenseMatrix.9" = type { ptr, i64, i64, i64 }
%"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 }

; 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEh(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, i8 noundef zeroext %4) unnamed_addr #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i64, align 8
  %11 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %12 = alloca %"struct.Ani::ArrayView", align 8
  %13 = alloca %class.anon.20, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  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 i8 %4, ptr %9, align 1, !tbaa !9
  %29 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %30, i32 0, i32 4
  %32 = load i64, ptr %31, align 8, !tbaa !10
  store i64 %32, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %33, i32 0, i32 14
  %35 = load i64, ptr %34, align 8, !tbaa !18
  %36 = trunc i64 %35 to i32
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %37, i32 0, i32 15
  %39 = load i64, ptr %38, align 8, !tbaa !19
  %40 = trunc i64 %39 to i32
  %41 = load ptr, ptr %29, align 8, !tbaa !20
  %42 = getelementptr inbounds ptr, ptr %41, i64 11
  %43 = load ptr, ptr %42, align 8
  call void %43(ptr dead_on_unwind writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %29, i32 noundef %36, i32 noundef %40)
  %44 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %45 = load i64, ptr %44, align 8, !tbaa !22
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %46, i32 0, i32 12
  %48 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !24
  %50 = sub i64 %49, %45
  store i64 %50, ptr %48, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %51, i32 0, i32 12
  %53 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !25
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %55, i32 0, i32 12
  %57 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %56, i32 0, i32 1
  %58 = load i64, ptr %57, align 8, !tbaa !24
  %59 = getelementptr inbounds double, ptr %54, i64 %58
  %60 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !22
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %59, i64 noundef %61)
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %29, align 8, !tbaa !20
  %64 = getelementptr inbounds ptr, ptr %63, i64 10
  %65 = load ptr, ptr %64, align 8
  call void %65(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(296) %62, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %66 = getelementptr inbounds %class.anon.20, ptr %13, i32 0, i32 0
  %67 = load i8, ptr %9, align 1, !tbaa !9
  store i8 %67, ptr %66, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !17
  br label %68

68:                                               ; preds = %298, %5
  %69 = load i64, ptr %16, align 8, !tbaa !17
  %70 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !30
  %72 = icmp ult i64 %69, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %68
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %301

74:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %75 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !32
  %77 = load i64, ptr %16, align 8, !tbaa !17
  %78 = getelementptr inbounds i32, ptr %76, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !28
  %80 = call noundef i32 @"_ZZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhENK3$_0clIiEEDaT_b"(ptr noundef nonnull align 1 dereferenceable(1) %13, i32 noundef %79, i1 noundef zeroext true)
  store i32 %80, ptr %18, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %81 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !32
  %83 = load i64, ptr %16, align 8, !tbaa !17
  %84 = add i64 %83, 1
  %85 = getelementptr inbounds i32, ptr %82, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !28
  %87 = sub nsw i32 %86, 1
  %88 = call noundef i32 @"_ZZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhENK3$_0clIiEEDaT_b"(ptr noundef nonnull align 1 dereferenceable(1) %13, i32 noundef %87, i1 noundef zeroext false)
  store i32 %88, ptr %19, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %89 = load i32, ptr %19, align 4, !tbaa !28
  %90 = load i32, ptr %18, align 4, !tbaa !28
  %91 = icmp sge i32 %89, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %74
  %93 = load i32, ptr %19, align 4, !tbaa !28
  %94 = load i32, ptr %18, align 4, !tbaa !28
  %95 = sub nsw i32 %93, %94
  %96 = sdiv i32 %95, 3
  %97 = add nsw i32 %96, 1
  br label %99

98:                                               ; preds = %74
  br label %99

99:                                               ; preds = %98, %92
  %100 = phi i32 [ %97, %92 ], [ 0, %98 ]
  store i32 %100, ptr %20, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %101 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %102 = load ptr, ptr %101, align 8, !tbaa !33
  %103 = load i64, ptr %16, align 8, !tbaa !17
  %104 = add i64 %103, 1
  %105 = getelementptr inbounds i32, ptr %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !28
  %107 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !33
  %109 = load i64, ptr %16, align 8, !tbaa !17
  %110 = getelementptr inbounds i32, ptr %108, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !28
  %112 = sub nsw i32 %106, %111
  store i32 %112, ptr %21, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %113 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !32
  %115 = load i64, ptr %16, align 8, !tbaa !17
  %116 = add i64 %115, 1
  %117 = getelementptr inbounds i32, ptr %114, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !28
  %119 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !32
  %121 = load i64, ptr %16, align 8, !tbaa !17
  %122 = getelementptr inbounds i32, ptr %120, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !28
  %124 = sub nsw i32 %118, %123
  store i32 %124, ptr %22, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %125 = load i32, ptr %18, align 4, !tbaa !28
  %126 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !32
  %128 = load i64, ptr %16, align 8, !tbaa !17
  %129 = getelementptr inbounds i32, ptr %127, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !28
  %131 = sub nsw i32 %125, %130
  store i32 %131, ptr %23, align 4, !tbaa !28
  %132 = load i32, ptr %20, align 4, !tbaa !28
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %134, label %297

134:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !34
  %138 = load i32, ptr %15, align 4, !tbaa !28
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %137, i64 %139
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %141, i32 0, i32 14
  %143 = load i64, ptr %142, align 8, !tbaa !18
  %144 = load i32, ptr %20, align 4, !tbaa !28
  %145 = sext i32 %144 to i64
  %146 = mul i64 %143, %145
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %147, i32 0, i32 15
  %149 = load i64, ptr %148, align 8, !tbaa !19
  %150 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !33
  %152 = load i64, ptr %16, align 8, !tbaa !17
  %153 = add i64 %152, 1
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !28
  %156 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %157 = load ptr, ptr %156, align 8, !tbaa !33
  %158 = load i64, ptr %16, align 8, !tbaa !17
  %159 = getelementptr inbounds i32, ptr %157, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !28
  %161 = sub nsw i32 %155, %160
  %162 = sext i32 %161 to i64
  %163 = mul i64 %149, %162
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef %140, i64 noundef %146, i64 noundef %163)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  store i64 0, ptr %25, align 8, !tbaa !17
  br label %164

164:                                              ; preds = %242, %134
  %165 = load i64, ptr %25, align 8, !tbaa !17
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %166, i32 0, i32 15
  %168 = load i64, ptr %167, align 8, !tbaa !19
  %169 = icmp ult i64 %165, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %164
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %245

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !28
  br label %172

172:                                              ; preds = %238, %171
  %173 = load i32, ptr %26, align 4, !tbaa !28
  %174 = load i32, ptr %21, align 4, !tbaa !28
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %241

177:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !17
  br label %178

178:                                              ; preds = %234, %177
  %179 = load i64, ptr %27, align 8, !tbaa !17
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %180, i32 0, i32 14
  %182 = load i64, ptr %181, align 8, !tbaa !18
  %183 = icmp ult i64 %179, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %178
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %237

185:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !28
  br label %186

186:                                              ; preds = %230, %185
  %187 = load i32, ptr %28, align 4, !tbaa !28
  %188 = load i32, ptr %20, align 4, !tbaa !28
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %233

191:                                              ; preds = %186
  %192 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %193 = load ptr, ptr %192, align 8, !tbaa !35
  %194 = load i64, ptr %16, align 8, !tbaa !17
  %195 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %193, i64 %194
  %196 = load i32, ptr %23, align 4, !tbaa !28
  %197 = load i32, ptr %28, align 4, !tbaa !28
  %198 = mul nsw i32 3, %197
  %199 = add nsw i32 %196, %198
  %200 = sext i32 %199 to i64
  %201 = load i32, ptr %22, align 4, !tbaa !28
  %202 = sext i32 %201 to i64
  %203 = load i64, ptr %27, align 8, !tbaa !17
  %204 = mul i64 %202, %203
  %205 = add i64 %200, %204
  %206 = load i32, ptr %26, align 4, !tbaa !28
  %207 = sext i32 %206 to i64
  %208 = load i32, ptr %21, align 4, !tbaa !28
  %209 = sext i32 %208 to i64
  %210 = load i64, ptr %25, align 8, !tbaa !17
  %211 = mul i64 %209, %210
  %212 = add i64 %207, %211
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %195, i64 noundef %205, i64 noundef %212)
  %214 = load double, ptr %213, align 8, !tbaa !36
  %215 = load i32, ptr %28, align 4, !tbaa !28
  %216 = sext i32 %215 to i64
  %217 = load i32, ptr %20, align 4, !tbaa !28
  %218 = sext i32 %217 to i64
  %219 = load i64, ptr %27, align 8, !tbaa !17
  %220 = mul i64 %218, %219
  %221 = add i64 %216, %220
  %222 = load i32, ptr %26, align 4, !tbaa !28
  %223 = sext i32 %222 to i64
  %224 = load i32, ptr %21, align 4, !tbaa !28
  %225 = sext i32 %224 to i64
  %226 = load i64, ptr %25, align 8, !tbaa !17
  %227 = mul i64 %225, %226
  %228 = add i64 %223, %227
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %24, i64 noundef %221, i64 noundef %228)
  store double %214, ptr %229, align 8, !tbaa !36
  br label %230

230:                                              ; preds = %191
  %231 = load i32, ptr %28, align 4, !tbaa !28
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %28, align 4, !tbaa !28
  br label %186, !llvm.loop !38

233:                                              ; preds = %190
  br label %234

234:                                              ; preds = %233
  %235 = load i64, ptr %27, align 8, !tbaa !17
  %236 = add i64 %235, 1
  store i64 %236, ptr %27, align 8, !tbaa !17
  br label %178, !llvm.loop !40

237:                                              ; preds = %184
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %26, align 4, !tbaa !28
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %26, align 4, !tbaa !28
  br label %172, !llvm.loop !41

241:                                              ; preds = %176
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %25, align 8, !tbaa !17
  %244 = add i64 %243, 1
  store i64 %244, ptr %25, align 8, !tbaa !17
  br label %164, !llvm.loop !42

245:                                              ; preds = %170
  %246 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %247 = load ptr, ptr %246, align 8, !tbaa !35
  %248 = load i32, ptr %14, align 4, !tbaa !28
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %14, align 4, !tbaa !28
  %250 = sext i32 %248 to i64
  %251 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %247, i64 %250
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %251, ptr align 8 %24, i64 32, i1 false), !tbaa.struct !43
  %252 = load i32, ptr %20, align 4, !tbaa !28
  %253 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %254 = load ptr, ptr %253, align 8, !tbaa !32
  %255 = load i32, ptr %14, align 4, !tbaa !28
  %256 = sub nsw i32 %255, 1
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds i32, ptr %254, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !28
  %260 = add nsw i32 %252, %259
  %261 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %262 = load ptr, ptr %261, align 8, !tbaa !32
  %263 = load i32, ptr %14, align 4, !tbaa !28
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds i32, ptr %262, i64 %264
  store i32 %260, ptr %265, align 4, !tbaa !28
  %266 = load i32, ptr %21, align 4, !tbaa !28
  %267 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %268 = load ptr, ptr %267, align 8, !tbaa !33
  %269 = load i32, ptr %14, align 4, !tbaa !28
  %270 = sub nsw i32 %269, 1
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds i32, ptr %268, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !28
  %274 = add nsw i32 %266, %273
  %275 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %276 = load ptr, ptr %275, align 8, !tbaa !33
  %277 = load i32, ptr %14, align 4, !tbaa !28
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  store i32 %274, ptr %279, align 4, !tbaa !28
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %280, i32 0, i32 14
  %282 = load i64, ptr %281, align 8, !tbaa !18
  %283 = load i32, ptr %20, align 4, !tbaa !28
  %284 = sext i32 %283 to i64
  %285 = mul i64 %282, %284
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %286, i32 0, i32 15
  %288 = load i64, ptr %287, align 8, !tbaa !19
  %289 = mul i64 %285, %288
  %290 = load i32, ptr %21, align 4, !tbaa !28
  %291 = sext i32 %290 to i64
  %292 = mul i64 %289, %291
  %293 = load i32, ptr %15, align 4, !tbaa !28
  %294 = sext i32 %293 to i64
  %295 = add i64 %294, %292
  %296 = trunc i64 %295 to i32
  store i32 %296, ptr %15, align 4, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  br label %297

297:                                              ; preds = %245, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %298

298:                                              ; preds = %297
  %299 = load i64, ptr %16, align 8, !tbaa !17
  %300 = add i64 %299, 1
  store i64 %300, ptr %16, align 8, !tbaa !17
  br label %68, !llvm.loop !44

301:                                              ; preds = %73
  %302 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %303 = load i64, ptr %302, align 8, !tbaa !22
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %304, i32 0, i32 12
  %306 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %305, i32 0, i32 1
  %307 = load i64, ptr %306, align 8, !tbaa !24
  %308 = add i64 %307, %303
  store i64 %308, ptr %306, align 8, !tbaa !24
  %309 = load i32, ptr %14, align 4, !tbaa !28
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 0
  store i64 %310, ptr %311, align 8, !tbaa !30
  %312 = load i64, ptr %10, align 8, !tbaa !17
  %313 = load i32, ptr %14, align 4, !tbaa !28
  %314 = sext i32 %313 to i64
  %315 = add i64 %312, %314
  %316 = load ptr, ptr %7, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %316, i32 0, i32 4
  store i64 %315, ptr %317, align 8, !tbaa !10
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhENK3$_0clIiEEDaT_b"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i1 noundef zeroext) #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !14, i64 288}
!11 = !{!"_ZTSN3Ani10AniMemoryXIdiEE", !12, i64 0, !16, i64 240, !15, i64 256, !15, i64 272, !14, i64 288}
!12 = !{!"_ZTSN3Ani9AniMemoryIdiEE", !13, i64 0, !13, i64 16, !13, i64 32, !13, i64 48, !13, i64 64, !13, i64 80, !13, i64 96, !13, i64 112, !13, i64 128, !13, i64 144, !13, i64 160, !13, i64 176, !13, i64 192, !15, i64 208, !14, i64 224, !14, i64 232}
!13 = !{!"_ZTSN3Ani9ArrayViewIdEE", !6, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN3Ani9ArrayViewIiEE", !6, i64 0, !14, i64 8}
!16 = !{!"_ZTSN3Ani9ArrayViewINS_11DenseMatrixIdEEEE", !6, i64 0, !14, i64 8}
!17 = !{!14, !14, i64 0}
!18 = !{!12, !14, i64 224}
!19 = !{!12, !14, i64 232}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = !{!23, !14, i64 0}
!23 = !{!"_ZTSN3Ani20OpMemoryRequirementsE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!24 = !{!12, !14, i64 200}
!25 = !{!12, !6, i64 192}
!26 = !{!27, !7, i64 0}
!27 = !{!"_ZTSZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhE3$_0", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"int", !7, i64 0}
!30 = !{!31, !14, i64 0}
!31 = !{!"_ZTSN3Ani16BandDenseMatrixXIdiEE", !14, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!31, !6, i64 16}
!33 = !{!31, !6, i64 24}
!34 = !{!13, !6, i64 0}
!35 = !{!31, !6, i64 8}
!36 = !{!37, !37, i64 0}
!37 = !{!"double", !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}
!42 = distinct !{!42, !39}
!43 = !{i64 0, i64 8, !5, i64 8, i64 8, !17, i64 16, i64 8, !17, i64 24, i64 8, !17}
!44 = distinct !{!44, !39}


; 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 }
%class.anon.20 = type { i8 }
%"struct.Ani::DenseMatrix.9" = type { ptr, i64, i64, i64 }

; 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, i64 noundef) unnamed_addr #2 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 #2 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEh(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, i8 noundef zeroext %4) unnamed_addr #3 align 2 {
  %6 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %7 = alloca %"struct.Ani::ArrayView", align 8
  %8 = alloca %class.anon.20, align 1
  %9 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %10 = getelementptr inbounds i8, ptr %2, i64 288
  %11 = load i64, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %12 = getelementptr inbounds i8, ptr %2, i64 224
  %13 = load i64, ptr %12, align 8, !tbaa !15
  %14 = trunc i64 %13 to i32
  %15 = getelementptr inbounds i8, ptr %2, i64 232
  %16 = load i64, ptr %15, align 8, !tbaa !16
  %17 = trunc i64 %16 to i32
  %18 = load ptr, ptr %1, align 8, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %18, i64 88
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %14, i32 noundef %17)
  %21 = load i64, ptr %6, align 8, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %2, i64 192
  %23 = getelementptr inbounds i8, ptr %2, i64 200
  %24 = load i64, ptr %23, align 8, !tbaa !21
  %25 = sub i64 %24, %21
  store i64 %25, ptr %23, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %26 = load ptr, ptr %22, align 8, !tbaa !22
  %27 = getelementptr inbounds double, ptr %26, i64 %25
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %27, i64 noundef %21)
  %28 = load ptr, ptr %1, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %28, i64 80
  %30 = load ptr, ptr %29, align 8
  call void %30(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) %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  store i8 %4, ptr %8, align 1, !tbaa !23
  %31 = load i64, ptr %0, align 8, !tbaa !25
  %.not107 = icmp eq i64 %31, 0
  br i1 %.not107, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %5
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = getelementptr inbounds i8, ptr %0, i64 24
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %.pre = load ptr, ptr %32, align 8, !tbaa !27
  br label %40

._crit_edge.loopexit:                             ; preds = %135
  %35 = sext i32 %.1 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %5
  %.076.lcssa = phi i64 [ 0, %5 ], [ %35, %._crit_edge.loopexit ]
  %36 = load i64, ptr %6, align 8, !tbaa !19
  %37 = load i64, ptr %23, align 8, !tbaa !21
  %38 = add i64 %37, %36
  store i64 %38, ptr %23, align 8, !tbaa !21
  store i64 %.076.lcssa, ptr %0, align 8, !tbaa !25
  %39 = add i64 %11, %.076.lcssa
  store i64 %39, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void

40:                                               ; preds = %.lr.ph, %135
  %41 = phi ptr [ %.pre, %.lr.ph ], [ %136, %135 ]
  %.076106 = phi i32 [ 0, %.lr.ph ], [ %.1, %135 ]
  %.077105 = phi i32 [ 0, %.lr.ph ], [ %.178, %135 ]
  %.079104 = phi i64 [ 0, %.lr.ph ], [ %46, %135 ]
  %42 = getelementptr inbounds i32, ptr %41, i64 %.079104
  %43 = load i32, ptr %42, align 4, !tbaa !28
  %44 = call noundef i32 @"_ZZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhENK3$_0clIiEEDaT_b"(ptr noundef nonnull align 1 dereferenceable(1) %8, i32 noundef %43, i1 noundef zeroext true)
  %45 = load ptr, ptr %32, align 8, !tbaa !27
  %46 = add nuw i64 %.079104, 1
  %47 = getelementptr inbounds i32, ptr %45, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !28
  %49 = add nsw i32 %48, -1
  %50 = call noundef i32 @"_ZZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhENK3$_0clIiEEDaT_b"(ptr noundef nonnull align 1 dereferenceable(1) %8, i32 noundef %49, i1 noundef zeroext false)
  %.not = icmp slt i32 %50, %44
  br i1 %.not, label %55, label %51

51:                                               ; preds = %40
  %52 = sub nsw i32 %50, %44
  %53 = sdiv i32 %52, 3
  %54 = add nsw i32 %53, 1
  br label %55

55:                                               ; preds = %40, %51
  %56 = phi i32 [ %54, %51 ], [ 0, %40 ]
  %57 = load ptr, ptr %33, align 8, !tbaa !30
  %58 = getelementptr inbounds i32, ptr %57, i64 %46
  %59 = load i32, ptr %58, align 4, !tbaa !28
  %60 = getelementptr inbounds i32, ptr %57, i64 %.079104
  %61 = load i32, ptr %60, align 4, !tbaa !28
  %62 = sub i32 %59, %61
  %63 = load ptr, ptr %32, align 8, !tbaa !27
  %64 = getelementptr inbounds i32, ptr %63, i64 %46
  %65 = load i32, ptr %64, align 4, !tbaa !28
  %66 = getelementptr inbounds i32, ptr %63, i64 %.079104
  %67 = load i32, ptr %66, align 4, !tbaa !28
  %68 = sub nsw i32 %65, %67
  %69 = sub i32 %44, %67
  %70 = icmp sgt i32 %56, 0
  br i1 %70, label %71, label %135

71:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %72 = load ptr, ptr %3, align 8, !tbaa !31
  %73 = sext i32 %.077105 to i64
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  %75 = load i64, ptr %12, align 8, !tbaa !15
  %76 = zext nneg i32 %56 to i64
  %77 = mul i64 %75, %76
  %78 = load i64, ptr %15, align 8, !tbaa !16
  %79 = sext i32 %62 to i64
  %80 = mul i64 %78, %79
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %74, i64 noundef %77, i64 noundef %80)
  %81 = load i64, ptr %15, align 8, !tbaa !16
  %.not108 = icmp eq i64 %81, 0
  br i1 %.not108, label %._crit_edge91, label %.preheader85.lr.ph

.preheader85.lr.ph:                               ; preds = %71
  %82 = icmp sgt i32 %62, 0
  %83 = sext i32 %68 to i64
  br i1 %82, label %.preheader85.lr.ph.split.us, label %._crit_edge91

.preheader85.lr.ph.split.us:                      ; preds = %.preheader85.lr.ph
  %84 = load i64, ptr %12, align 8, !tbaa !15
  %.not109 = icmp eq i64 %84, 0
  br i1 %.not109, label %._crit_edge91, label %.preheader85.us.preheader

.preheader85.us.preheader:                        ; preds = %.preheader85.lr.ph.split.us
  %85 = sext i32 %69 to i64
  %wide.trip.count121 = zext nneg i32 %62 to i64
  br label %.preheader85.us

.preheader85.us:                                  ; preds = %.preheader85.us.preheader, %._crit_edge.us100
  %86 = phi i64 [ %108, %._crit_edge.us100 ], [ %81, %.preheader85.us.preheader ]
  %87 = phi i64 [ %109, %._crit_edge.us100 ], [ %84, %.preheader85.us.preheader ]
  %88 = phi i64 [ %110, %._crit_edge.us100 ], [ 1, %.preheader85.us.preheader ]
  %.07590.us = phi i64 [ %111, %._crit_edge.us100 ], [ 0, %.preheader85.us.preheader ]
  %89 = mul i64 %.07590.us, %79
  %.not110 = icmp eq i64 %88, 0
  br i1 %.not110, label %._crit_edge.us100, label %.preheader84.us94.us

.preheader84.us94.us:                             ; preds = %.preheader85.us, %._crit_edge88.split.us.us.us
  %90 = phi i64 [ %91, %._crit_edge88.split.us.us.us ], [ %87, %.preheader85.us ]
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %._crit_edge88.split.us.us.us ], [ 0, %.preheader85.us ]
  %.not111 = icmp eq i64 %90, 0
  br i1 %.not111, label %._crit_edge88.split.us.us.us, label %.preheader.lr.ph.us.us

._crit_edge88.split.us.us.us:                     ; preds = %._crit_edge.us.us.us, %.preheader84.us94.us
  %91 = phi i64 [ 0, %.preheader84.us94.us ], [ %106, %._crit_edge.us.us.us ]
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond122.not = icmp eq i64 %indvars.iv.next119, %wide.trip.count121
  br i1 %exitcond122.not, label %._crit_edge.us100.loopexit112, label %.preheader84.us94.us, !llvm.loop !32

.preheader.lr.ph.us.us:                           ; preds = %.preheader84.us94.us
  %92 = add i64 %89, %indvars.iv118
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader.lr.ph.us.us
  %.07387.us.us.us = phi i64 [ 0, %.preheader.lr.ph.us.us ], [ %105, %._crit_edge.us.us.us ]
  %93 = mul i64 %.07387.us.us.us, %83
  %94 = mul i64 %.07387.us.us.us, %76
  br label %95

95:                                               ; preds = %95, %.preheader.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %95 ], [ 0, %.preheader.us.us.us ]
  %96 = load ptr, ptr %34, align 8, !tbaa !35
  %97 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %96, i64 %.079104
  %98 = mul nuw nsw i64 %indvars.iv, 3
  %99 = add nsw i64 %98, %85
  %100 = add i64 %93, %99
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %100, i64 noundef %92)
  %102 = load double, ptr %101, align 8, !tbaa !36
  %103 = add i64 %94, %indvars.iv
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %103, i64 noundef %92)
  store double %102, ptr %104, align 8, !tbaa !36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %76
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %95, !llvm.loop !38

._crit_edge.us.us.us:                             ; preds = %95
  %105 = add nuw i64 %.07387.us.us.us, 1
  %106 = load i64, ptr %12, align 8, !tbaa !15
  %107 = icmp ult i64 %105, %106
  br i1 %107, label %.preheader.us.us.us, label %._crit_edge88.split.us.us.us, !llvm.loop !39

._crit_edge.us100.loopexit112:                    ; preds = %._crit_edge88.split.us.us.us
  %.pre123 = load i64, ptr %15, align 8, !tbaa !16
  br label %._crit_edge.us100

._crit_edge.us100:                                ; preds = %.preheader85.us, %._crit_edge.us100.loopexit112
  %108 = phi i64 [ %.pre123, %._crit_edge.us100.loopexit112 ], [ %86, %.preheader85.us ]
  %109 = phi i64 [ %91, %._crit_edge.us100.loopexit112 ], [ %87, %.preheader85.us ]
  %110 = phi i64 [ %91, %._crit_edge.us100.loopexit112 ], [ 0, %.preheader85.us ]
  %111 = add nuw i64 %.07590.us, 1
  %112 = icmp ult i64 %111, %108
  br i1 %112, label %.preheader85.us, label %._crit_edge91, !llvm.loop !40

._crit_edge91:                                    ; preds = %._crit_edge.us100, %.preheader85.lr.ph, %.preheader85.lr.ph.split.us, %71
  %113 = load ptr, ptr %34, align 8, !tbaa !35
  %114 = add nsw i32 %.076106, 1
  %115 = sext i32 %.076106 to i64
  %116 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %113, i64 %115
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %116, ptr noundef nonnull align 8 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !41
  %117 = load ptr, ptr %32, align 8, !tbaa !27
  %118 = getelementptr inbounds i32, ptr %117, i64 %115
  %119 = load i32, ptr %118, align 4, !tbaa !28
  %120 = add nsw i32 %119, %56
  %121 = sext i32 %114 to i64
  %122 = getelementptr inbounds i32, ptr %117, i64 %121
  store i32 %120, ptr %122, align 4, !tbaa !28
  %123 = load ptr, ptr %33, align 8, !tbaa !30
  %124 = getelementptr inbounds i32, ptr %123, i64 %115
  %125 = load i32, ptr %124, align 4, !tbaa !28
  %126 = add nsw i32 %125, %62
  %127 = getelementptr inbounds i32, ptr %123, i64 %121
  store i32 %126, ptr %127, align 4, !tbaa !28
  %128 = load i64, ptr %12, align 8, !tbaa !15
  %129 = mul i64 %128, %76
  %130 = load i64, ptr %15, align 8, !tbaa !16
  %131 = mul i64 %129, %130
  %132 = trunc i64 %131 to i32
  %133 = mul i32 %62, %132
  %134 = add i32 %133, %.077105
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %135

135:                                              ; preds = %._crit_edge91, %55
  %136 = phi ptr [ %117, %._crit_edge91 ], [ %63, %55 ]
  %.178 = phi i32 [ %134, %._crit_edge91 ], [ %.077105, %55 ]
  %.1 = phi i32 [ %114, %._crit_edge91 ], [ %.076106, %55 ]
  %137 = load i64, ptr %0, align 8, !tbaa !25
  %138 = icmp ult i64 %46, %137
  br i1 %138, label %40, label %._crit_edge.loopexit, !llvm.loop !44
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhENK3$_0clIiEEDaT_b"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i1 noundef zeroext) local_unnamed_addr #4 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 288}
!6 = !{!"_ZTSN3Ani10AniMemoryXIdiEE", !7, i64 0, !14, i64 240, !13, i64 256, !13, i64 272, !12, i64 288}
!7 = !{!"_ZTSN3Ani9AniMemoryIdiEE", !8, i64 0, !8, i64 16, !8, i64 32, !8, i64 48, !8, i64 64, !8, i64 80, !8, i64 96, !8, i64 112, !8, i64 128, !8, i64 144, !8, i64 160, !8, i64 176, !8, i64 192, !13, i64 208, !12, i64 224, !12, i64 232}
!8 = !{!"_ZTSN3Ani9ArrayViewIdEE", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN3Ani9ArrayViewIiEE", !9, i64 0, !12, i64 8}
!14 = !{!"_ZTSN3Ani9ArrayViewINS_11DenseMatrixIdEEEE", !9, i64 0, !12, i64 8}
!15 = !{!7, !12, i64 224}
!16 = !{!7, !12, i64 232}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !11, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"_ZTSN3Ani20OpMemoryRequirementsE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!21 = !{!7, !12, i64 200}
!22 = !{!7, !9, i64 192}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSZNK3Ani12BaseFemSpace9applyDUDXERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEEhE3$_0", !10, i64 0}
!25 = !{!26, !12, i64 0}
!26 = !{!"_ZTSN3Ani16BandDenseMatrixXIdiEE", !12, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!27 = !{!26, !9, i64 16}
!28 = !{!29, !29, i64 0}
!29 = !{!"int", !10, i64 0}
!30 = !{!26, !9, i64 24}
!31 = !{!8, !9, i64 0}
!32 = distinct !{!32, !33, !34}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.unswitch.partial.disable"}
!35 = !{!26, !9, i64 8}
!36 = !{!37, !37, i64 0}
!37 = !{!"double", !10, i64 0}
!38 = distinct !{!38, !33}
!39 = distinct !{!39, !33}
!40 = distinct !{!40, !33, !34}
!41 = !{i64 0, i64 8, !42, i64 8, i64 8, !43, i64 16, i64 8, !43, i64 24, i64 8, !43}
!42 = !{!9, !9, i64 0}
!43 = !{!12, !12, i64 0}
!44 = distinct !{!44, !33}


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