; 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::DenseMatrix.9" = type { ptr, i64, i64, i64 }
%"struct.Ani::OpMemoryRequirements" = type { i64, i64, i64, i64 }
%"struct.Ani::ArrayView" = type { ptr, 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 }
%"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 }
%"struct.Ani::ComplexFemSpace" = type <{ %"struct.Ani::BaseFemSpace", %"class.std::vector.31", i32, i32, i32, i32, %"struct.std::array.36", [4 x i8] }>
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array.36" = type { [3 x i32] }
%"struct.Ani::DofT::ComplexDofMap" = type { %"struct.Ani::DofT::BaseDofMap", %"class.std::vector.37", %"struct.std::array.42", %"struct.std::array.42", %"class.std::vector.43" }
%"struct.Ani::DofT::BaseDofMap" = type { ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array.42" = type { [6 x %"class.std::vector.43"] }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.23 = external hidden unnamed_addr constant [62 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani15ComplexFemSpace12applyDIV_1x2ERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEE(ptr dead_on_unwind noalias writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(76) %1, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) #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 i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.Ani::BandDenseMatrixX", align 8
  %18 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %19 = alloca %"struct.Ani::ArrayView", align 8
  %20 = alloca %"struct.Ani::BandDenseMatrixX", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %28 = alloca %"struct.Ani::ArrayView", align 8
  %29 = alloca %"struct.Ani::BandDenseMatrixX", align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = 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
  %37 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %38, i32 0, i32 4
  %40 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %40, ptr %8, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %41 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %37, i32 0, i32 1
  %42 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
  store i32 %42, ptr %9, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %46, i32 0, i32 14
  %48 = load i64, ptr %47, align 8, !tbaa !20
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %49, i32 0, i32 15
  %51 = load i64, ptr %50, align 8, !tbaa !21
  %52 = load i32, ptr %9, align 4, !tbaa !17
  %53 = zext i32 %52 to i64
  %54 = mul i64 %51, %53
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %45, i64 noundef %48, i64 noundef %54)
  call void @_ZN3Ani11DenseMatrixIdE7SetZeroEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !17
  br label %55

55:                                               ; preds = %510, %4
  %56 = load i32, ptr %12, align 4, !tbaa !17
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %59 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #7
  %60 = icmp ult i64 %57, %59
  br i1 %60, label %62, label %61

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

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %63 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %64 = load i32, ptr %12, align 4, !tbaa !17
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65) #7
  %67 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %66) #7
  %68 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %67, i32 0, i32 1
  %69 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %68)
  store i32 %69, ptr %14, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %70 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %71 = load i32, ptr %12, align 4, !tbaa !17
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #7
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %73) #7
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = getelementptr inbounds ptr, ptr %75, i64 3
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef i32 %77(ptr noundef nonnull align 8 dereferenceable(24) %74)
  store i32 %78, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %79 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %37, i32 0, i32 1
  %80 = call noundef ptr @_ZNK3Ani4DofT6DofMap6targetINS0_13ComplexDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16) %79)
  %81 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %80, i32 0, i32 4
  %82 = load i32, ptr %12, align 4, !tbaa !17
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83) #7
  %85 = load i32, ptr %84, align 4, !tbaa !17
  store i32 %85, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  call void @_ZN3Ani16BandDenseMatrixXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  %86 = load i32, ptr %15, align 4, !tbaa !17
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %88, label %219

88:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  %89 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %90 = load i32, ptr %12, align 4, !tbaa !17
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #7
  %93 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %92) #7
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %94, i32 0, i32 14
  %96 = load i64, ptr %95, align 8, !tbaa !20
  %97 = trunc i64 %96 to i32
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %98, i32 0, i32 15
  %100 = load i64, ptr %99, align 8, !tbaa !21
  %101 = trunc i64 %100 to i32
  %102 = load i32, ptr %11, align 4, !tbaa !17
  %103 = trunc i32 %102 to i8
  %104 = load ptr, ptr %93, align 8, !tbaa !22
  %105 = getelementptr inbounds ptr, ptr %104, i64 19
  %106 = load ptr, ptr %105, align 8
  call void %106(ptr dead_on_unwind writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %93, i32 noundef %97, i32 noundef %101, i8 noundef zeroext %103)
  %107 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %18, i32 0, i32 0
  %108 = load i64, ptr %107, align 8, !tbaa !24
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %109, i32 0, i32 12
  %111 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %110, i32 0, i32 1
  %112 = load i64, ptr %111, align 8, !tbaa !26
  %113 = sub i64 %112, %108
  store i64 %113, ptr %111, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %114, i32 0, i32 12
  %116 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !27
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %118, i32 0, i32 12
  %120 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %119, i32 0, i32 1
  %121 = load i64, ptr %120, align 8, !tbaa !26
  %122 = getelementptr inbounds double, ptr %117, i64 %121
  %123 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %18, i32 0, i32 0
  %124 = load i64, ptr %123, align 8, !tbaa !24
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %122, i64 noundef %124)
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  %125 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %126 = load i32, ptr %12, align 4, !tbaa !17
  %127 = zext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127) #7
  %129 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %128) #7
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i32, ptr %11, align 4, !tbaa !17
  %132 = trunc i32 %131 to i8
  %133 = load ptr, ptr %129, align 8, !tbaa !22
  %134 = getelementptr inbounds ptr, ptr %133, i64 18
  %135 = load ptr, ptr %134, align 8
  call void %135(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %129, ptr noundef nonnull align 8 dereferenceable(296) %130, ptr noundef nonnull align 8 dereferenceable(16) %19, i8 noundef zeroext %132)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %20, i64 32, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  %136 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 0
  %137 = load i64, ptr %136, align 8, !tbaa !29
  %138 = icmp ne i64 %137, 1
  br i1 %138, label %139, label %153

139:                                              ; preds = %88
  %140 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %18, i32 0, i32 0
  %141 = load i64, ptr %140, align 8, !tbaa !24
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %142, i32 0, i32 12
  %144 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !26
  %146 = add i64 %145, %141
  store i64 %146, ptr %144, align 8, !tbaa !26
  %147 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %147, ptr noundef @.str.23)
          to label %148 unwind label %149

148:                                              ; preds = %139
  call void @__cxa_throw(ptr %147, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

149:                                              ; preds = %139
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %21, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %22, align 4
  call void @__cxa_free_exception(ptr %147) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %566

153:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  %154 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !31
  %156 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %155, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %156, i64 32, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !16
  br label %157

157:                                              ; preds = %208, %153
  %158 = load i64, ptr %24, align 8, !tbaa !16
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %159, i32 0, i32 15
  %161 = load i64, ptr %160, align 8, !tbaa !21
  %162 = icmp ult i64 %158, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %157
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %211

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

165:                                              ; preds = %204, %164
  %166 = load i32, ptr %25, align 4, !tbaa !17
  %167 = load i32, ptr %14, align 4, !tbaa !17
  %168 = icmp ult i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %207

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store i64 0, ptr %26, align 8, !tbaa !16
  br label %171

171:                                              ; preds = %200, %170
  %172 = load i64, ptr %26, align 8, !tbaa !16
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %173, i32 0, i32 14
  %175 = load i64, ptr %174, align 8, !tbaa !20
  %176 = icmp ult i64 %172, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %171
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %203

178:                                              ; preds = %171
  %179 = load i64, ptr %26, align 8, !tbaa !16
  %180 = load i32, ptr %25, align 4, !tbaa !17
  %181 = zext i32 %180 to i64
  %182 = load i32, ptr %14, align 4, !tbaa !17
  %183 = zext i32 %182 to i64
  %184 = load i64, ptr %24, align 8, !tbaa !16
  %185 = mul i64 %183, %184
  %186 = add i64 %181, %185
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %23, i64 noundef %179, i64 noundef %186)
  %188 = load double, ptr %187, align 8, !tbaa !33
  %189 = load i64, ptr %26, align 8, !tbaa !16
  %190 = load i32, ptr %16, align 4, !tbaa !17
  %191 = load i32, ptr %25, align 4, !tbaa !17
  %192 = add i32 %190, %191
  %193 = zext i32 %192 to i64
  %194 = load i32, ptr %9, align 4, !tbaa !17
  %195 = zext i32 %194 to i64
  %196 = load i64, ptr %24, align 8, !tbaa !16
  %197 = mul i64 %195, %196
  %198 = add i64 %193, %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %189, i64 noundef %198)
  store double %188, ptr %199, align 8, !tbaa !33
  br label %200

200:                                              ; preds = %178
  %201 = load i64, ptr %26, align 8, !tbaa !16
  %202 = add i64 %201, 1
  store i64 %202, ptr %26, align 8, !tbaa !16
  br label %171, !llvm.loop !35

203:                                              ; preds = %177
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %25, align 4, !tbaa !17
  %206 = add i32 %205, 1
  store i32 %206, ptr %25, align 4, !tbaa !17
  br label %165, !llvm.loop !37

207:                                              ; preds = %169
  br label %208

208:                                              ; preds = %207
  %209 = load i64, ptr %24, align 8, !tbaa !16
  %210 = add i64 %209, 1
  store i64 %210, ptr %24, align 8, !tbaa !16
  br label %157, !llvm.loop !38

211:                                              ; preds = %163
  %212 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %18, i32 0, i32 0
  %213 = load i64, ptr %212, align 8, !tbaa !24
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %214, i32 0, i32 12
  %216 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %215, i32 0, i32 1
  %217 = load i64, ptr %216, align 8, !tbaa !26
  %218 = add i64 %217, %213
  store i64 %218, ptr %216, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  br label %503

219:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  %220 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %221 = load i32, ptr %12, align 4, !tbaa !17
  %222 = zext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %222) #7
  %224 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %223) #7
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %225, i32 0, i32 14
  %227 = load i64, ptr %226, align 8, !tbaa !20
  %228 = trunc i64 %227 to i32
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %229, i32 0, i32 15
  %231 = load i64, ptr %230, align 8, !tbaa !21
  %232 = trunc i64 %231 to i32
  %233 = load ptr, ptr %224, align 8, !tbaa !22
  %234 = getelementptr inbounds ptr, ptr %233, i64 11
  %235 = load ptr, ptr %234, align 8
  call void %235(ptr dead_on_unwind writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %224, i32 noundef %228, i32 noundef %232)
  %236 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %27, i32 0, i32 0
  %237 = load i64, ptr %236, align 8, !tbaa !24
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %238, i32 0, i32 12
  %240 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %239, i32 0, i32 1
  %241 = load i64, ptr %240, align 8, !tbaa !26
  %242 = sub i64 %241, %237
  store i64 %242, ptr %240, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %243, i32 0, i32 12
  %245 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %244, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8, !tbaa !27
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %247, i32 0, i32 12
  %249 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %248, i32 0, i32 1
  %250 = load i64, ptr %249, align 8, !tbaa !26
  %251 = getelementptr inbounds double, ptr %246, i64 %250
  %252 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %27, i32 0, i32 0
  %253 = load i64, ptr %252, align 8, !tbaa !24
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %251, i64 noundef %253)
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  %254 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %37, i32 0, i32 1
  %255 = load i32, ptr %12, align 4, !tbaa !17
  %256 = zext i32 %255 to i64
  %257 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %256) #7
  %258 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %257) #7
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = load ptr, ptr %258, align 8, !tbaa !22
  %261 = getelementptr inbounds ptr, ptr %260, i64 10
  %262 = load ptr, ptr %261, align 8
  call void %262(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %258, ptr noundef nonnull align 8 dereferenceable(296) %259, ptr noundef nonnull align 8 dereferenceable(16) %28)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %29, i64 32, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 0, ptr %30, align 8, !tbaa !16
  br label %263

263:                                              ; preds = %492, %219
  %264 = load i64, ptr %30, align 8, !tbaa !16
  %265 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 0
  %266 = load i64, ptr %265, align 8, !tbaa !29
  %267 = icmp ult i64 %264, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %263
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %495

269:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !16
  br label %270

270:                                              ; preds = %488, %269
  %271 = load i64, ptr %31, align 8, !tbaa !16
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %272, i32 0, i32 15
  %274 = load i64, ptr %273, align 8, !tbaa !21
  %275 = icmp ult i64 %271, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %270
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %491

277:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %278 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %279 = load ptr, ptr %278, align 8, !tbaa !39
  %280 = load i64, ptr %30, align 8, !tbaa !16
  %281 = getelementptr inbounds i32, ptr %279, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !17
  store i32 %282, ptr %32, align 4, !tbaa !17
  br label %283

283:                                              ; preds = %484, %277
  %284 = load i32, ptr %32, align 4, !tbaa !17
  %285 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %286 = load ptr, ptr %285, align 8, !tbaa !39
  %287 = load i64, ptr %30, align 8, !tbaa !16
  %288 = add i64 %287, 1
  %289 = getelementptr inbounds i32, ptr %286, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !17
  %291 = icmp slt i32 %284, %290
  br i1 %291, label %293, label %292

292:                                              ; preds = %283
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %487

293:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !16
  br label %294

294:                                              ; preds = %480, %293
  %295 = load i64, ptr %33, align 8, !tbaa !16
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %296, i32 0, i32 14
  %298 = load i64, ptr %297, align 8, !tbaa !20
  %299 = icmp ult i64 %295, %298
  br i1 %299, label %301, label %300

300:                                              ; preds = %294
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %483

301:                                              ; preds = %294
  %302 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %303 = load ptr, ptr %302, align 8, !tbaa !40
  %304 = load i64, ptr %30, align 8, !tbaa !16
  %305 = getelementptr inbounds i32, ptr %303, i64 %304
  %306 = load i32, ptr %305, align 4, !tbaa !17
  %307 = load i32, ptr %11, align 4, !tbaa !17
  %308 = icmp sle i32 %306, %307
  br i1 %308, label %309, label %387

309:                                              ; preds = %301
  %310 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %311 = load ptr, ptr %310, align 8, !tbaa !40
  %312 = load i64, ptr %30, align 8, !tbaa !16
  %313 = add i64 %312, 1
  %314 = getelementptr inbounds i32, ptr %311, i64 %313
  %315 = load i32, ptr %314, align 4, !tbaa !17
  %316 = load i32, ptr %11, align 4, !tbaa !17
  %317 = icmp sgt i32 %315, %316
  br i1 %317, label %318, label %387

318:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %319 = load i32, ptr %11, align 4, !tbaa !17
  store i32 %319, ptr %34, align 4, !tbaa !17
  %320 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 1
  %321 = load ptr, ptr %320, align 8, !tbaa !31
  %322 = load i64, ptr %30, align 8, !tbaa !16
  %323 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %321, i64 %322
  %324 = load i32, ptr %34, align 4, !tbaa !17
  %325 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %326 = load ptr, ptr %325, align 8, !tbaa !40
  %327 = load i64, ptr %30, align 8, !tbaa !16
  %328 = getelementptr inbounds i32, ptr %326, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !17
  %330 = sub nsw i32 %324, %329
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %333 = load ptr, ptr %332, align 8, !tbaa !40
  %334 = load i64, ptr %30, align 8, !tbaa !16
  %335 = add i64 %334, 1
  %336 = getelementptr inbounds i32, ptr %333, i64 %335
  %337 = load i32, ptr %336, align 4, !tbaa !17
  %338 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %339 = load ptr, ptr %338, align 8, !tbaa !40
  %340 = load i64, ptr %30, align 8, !tbaa !16
  %341 = getelementptr inbounds i32, ptr %339, i64 %340
  %342 = load i32, ptr %341, align 4, !tbaa !17
  %343 = sub nsw i32 %337, %342
  %344 = sext i32 %343 to i64
  %345 = load i64, ptr %33, align 8, !tbaa !16
  %346 = mul i64 %344, %345
  %347 = add i64 %331, %346
  %348 = load i32, ptr %32, align 4, !tbaa !17
  %349 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %350 = load ptr, ptr %349, align 8, !tbaa !39
  %351 = load i64, ptr %30, align 8, !tbaa !16
  %352 = getelementptr inbounds i32, ptr %350, i64 %351
  %353 = load i32, ptr %352, align 4, !tbaa !17
  %354 = sub nsw i32 %348, %353
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %357 = load ptr, ptr %356, align 8, !tbaa !39
  %358 = load i64, ptr %30, align 8, !tbaa !16
  %359 = add i64 %358, 1
  %360 = getelementptr inbounds i32, ptr %357, i64 %359
  %361 = load i32, ptr %360, align 4, !tbaa !17
  %362 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %363 = load ptr, ptr %362, align 8, !tbaa !39
  %364 = load i64, ptr %30, align 8, !tbaa !16
  %365 = getelementptr inbounds i32, ptr %363, i64 %364
  %366 = load i32, ptr %365, align 4, !tbaa !17
  %367 = sub nsw i32 %361, %366
  %368 = sext i32 %367 to i64
  %369 = load i64, ptr %31, align 8, !tbaa !16
  %370 = mul i64 %368, %369
  %371 = add i64 %355, %370
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %323, i64 noundef %347, i64 noundef %371)
  %373 = load double, ptr %372, align 8, !tbaa !33
  %374 = load i64, ptr %33, align 8, !tbaa !16
  %375 = load i32, ptr %16, align 4, !tbaa !17
  %376 = load i32, ptr %32, align 4, !tbaa !17
  %377 = add i32 %375, %376
  %378 = zext i32 %377 to i64
  %379 = load i32, ptr %9, align 4, !tbaa !17
  %380 = zext i32 %379 to i64
  %381 = load i64, ptr %31, align 8, !tbaa !16
  %382 = mul i64 %380, %381
  %383 = add i64 %378, %382
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %374, i64 noundef %383)
  %385 = load double, ptr %384, align 8, !tbaa !33
  %386 = fadd double %385, %373
  store double %386, ptr %384, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %387

387:                                              ; preds = %318, %309, %301
  %388 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %389 = load ptr, ptr %388, align 8, !tbaa !40
  %390 = load i64, ptr %30, align 8, !tbaa !16
  %391 = getelementptr inbounds i32, ptr %389, i64 %390
  %392 = load i32, ptr %391, align 4, !tbaa !17
  %393 = load i32, ptr %11, align 4, !tbaa !17
  %394 = add i32 %393, 1
  %395 = add i32 %394, 3
  %396 = icmp sle i32 %392, %395
  br i1 %396, label %397, label %479

397:                                              ; preds = %387
  %398 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %399 = load ptr, ptr %398, align 8, !tbaa !40
  %400 = load i64, ptr %30, align 8, !tbaa !16
  %401 = add i64 %400, 1
  %402 = getelementptr inbounds i32, ptr %399, i64 %401
  %403 = load i32, ptr %402, align 4, !tbaa !17
  %404 = load i32, ptr %11, align 4, !tbaa !17
  %405 = add i32 %404, 1
  %406 = add i32 %405, 3
  %407 = icmp sgt i32 %403, %406
  br i1 %407, label %408, label %479

408:                                              ; preds = %397
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %409 = load i32, ptr %11, align 4, !tbaa !17
  %410 = add i32 %409, 1
  %411 = add i32 %410, 3
  store i32 %411, ptr %35, align 4, !tbaa !17
  %412 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 1
  %413 = load ptr, ptr %412, align 8, !tbaa !31
  %414 = load i64, ptr %30, align 8, !tbaa !16
  %415 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %413, i64 %414
  %416 = load i32, ptr %35, align 4, !tbaa !17
  %417 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %418 = load ptr, ptr %417, align 8, !tbaa !40
  %419 = load i64, ptr %30, align 8, !tbaa !16
  %420 = getelementptr inbounds i32, ptr %418, i64 %419
  %421 = load i32, ptr %420, align 4, !tbaa !17
  %422 = sub nsw i32 %416, %421
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %425 = load ptr, ptr %424, align 8, !tbaa !40
  %426 = load i64, ptr %30, align 8, !tbaa !16
  %427 = add i64 %426, 1
  %428 = getelementptr inbounds i32, ptr %425, i64 %427
  %429 = load i32, ptr %428, align 4, !tbaa !17
  %430 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 2
  %431 = load ptr, ptr %430, align 8, !tbaa !40
  %432 = load i64, ptr %30, align 8, !tbaa !16
  %433 = getelementptr inbounds i32, ptr %431, i64 %432
  %434 = load i32, ptr %433, align 4, !tbaa !17
  %435 = sub nsw i32 %429, %434
  %436 = sext i32 %435 to i64
  %437 = load i64, ptr %33, align 8, !tbaa !16
  %438 = mul i64 %436, %437
  %439 = add i64 %423, %438
  %440 = load i32, ptr %32, align 4, !tbaa !17
  %441 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %442 = load ptr, ptr %441, align 8, !tbaa !39
  %443 = load i64, ptr %30, align 8, !tbaa !16
  %444 = getelementptr inbounds i32, ptr %442, i64 %443
  %445 = load i32, ptr %444, align 4, !tbaa !17
  %446 = sub nsw i32 %440, %445
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %449 = load ptr, ptr %448, align 8, !tbaa !39
  %450 = load i64, ptr %30, align 8, !tbaa !16
  %451 = add i64 %450, 1
  %452 = getelementptr inbounds i32, ptr %449, i64 %451
  %453 = load i32, ptr %452, align 4, !tbaa !17
  %454 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %17, i32 0, i32 3
  %455 = load ptr, ptr %454, align 8, !tbaa !39
  %456 = load i64, ptr %30, align 8, !tbaa !16
  %457 = getelementptr inbounds i32, ptr %455, i64 %456
  %458 = load i32, ptr %457, align 4, !tbaa !17
  %459 = sub nsw i32 %453, %458
  %460 = sext i32 %459 to i64
  %461 = load i64, ptr %31, align 8, !tbaa !16
  %462 = mul i64 %460, %461
  %463 = add i64 %447, %462
  %464 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %415, i64 noundef %439, i64 noundef %463)
  %465 = load double, ptr %464, align 8, !tbaa !33
  %466 = load i64, ptr %33, align 8, !tbaa !16
  %467 = load i32, ptr %16, align 4, !tbaa !17
  %468 = load i32, ptr %32, align 4, !tbaa !17
  %469 = add i32 %467, %468
  %470 = zext i32 %469 to i64
  %471 = load i32, ptr %9, align 4, !tbaa !17
  %472 = zext i32 %471 to i64
  %473 = load i64, ptr %31, align 8, !tbaa !16
  %474 = mul i64 %472, %473
  %475 = add i64 %470, %474
  %476 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %466, i64 noundef %475)
  %477 = load double, ptr %476, align 8, !tbaa !33
  %478 = fadd double %477, %465
  store double %478, ptr %476, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %479

479:                                              ; preds = %408, %397, %387
  br label %480

480:                                              ; preds = %479
  %481 = load i64, ptr %33, align 8, !tbaa !16
  %482 = add i64 %481, 1
  store i64 %482, ptr %33, align 8, !tbaa !16
  br label %294, !llvm.loop !41

483:                                              ; preds = %300
  br label %484

484:                                              ; preds = %483
  %485 = load i32, ptr %32, align 4, !tbaa !17
  %486 = add nsw i32 %485, 1
  store i32 %486, ptr %32, align 4, !tbaa !17
  br label %283, !llvm.loop !42

487:                                              ; preds = %292
  br label %488

488:                                              ; preds = %487
  %489 = load i64, ptr %31, align 8, !tbaa !16
  %490 = add i64 %489, 1
  store i64 %490, ptr %31, align 8, !tbaa !16
  br label %270, !llvm.loop !43

491:                                              ; preds = %276
  br label %492

492:                                              ; preds = %491
  %493 = load i64, ptr %30, align 8, !tbaa !16
  %494 = add i64 %493, 1
  store i64 %494, ptr %30, align 8, !tbaa !16
  br label %263, !llvm.loop !44

495:                                              ; preds = %268
  %496 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %27, i32 0, i32 0
  %497 = load i64, ptr %496, align 8, !tbaa !24
  %498 = load ptr, ptr %6, align 8, !tbaa !5
  %499 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %498, i32 0, i32 12
  %500 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %499, i32 0, i32 1
  %501 = load i64, ptr %500, align 8, !tbaa !26
  %502 = add i64 %501, %497
  store i64 %502, ptr %500, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %503

503:                                              ; preds = %495, %211
  %504 = load i32, ptr %15, align 4, !tbaa !17
  %505 = load i32, ptr %11, align 4, !tbaa !17
  %506 = add i32 %505, %504
  store i32 %506, ptr %11, align 4, !tbaa !17
  %507 = load i64, ptr %8, align 8, !tbaa !16
  %508 = load ptr, ptr %6, align 8, !tbaa !5
  %509 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %508, i32 0, i32 4
  store i64 %507, ptr %509, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %510

510:                                              ; preds = %503
  %511 = load i32, ptr %12, align 4, !tbaa !17
  %512 = add i32 %511, 1
  store i32 %512, ptr %12, align 4, !tbaa !17
  br label %55, !llvm.loop !45

513:                                              ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %514 = load ptr, ptr %6, align 8, !tbaa !5
  %515 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %514, i32 0, i32 4
  %516 = load i64, ptr %515, align 8, !tbaa !9
  %517 = icmp ugt i64 %516, 0
  %518 = zext i1 %517 to i64
  %519 = select i1 %517, i32 1, i32 0
  store i32 %519, ptr %36, align 4, !tbaa !17
  %520 = load ptr, ptr %6, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %520, i32 0, i32 1
  %522 = getelementptr inbounds %"struct.Ani::ArrayView.1", ptr %521, i32 0, i32 0
  %523 = load ptr, ptr %522, align 8, !tbaa !46
  %524 = load ptr, ptr %6, align 8, !tbaa !5
  %525 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %524, i32 0, i32 4
  %526 = load i64, ptr %525, align 8, !tbaa !9
  %527 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %523, i64 %526
  %528 = load ptr, ptr %6, align 8, !tbaa !5
  %529 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %528, i32 0, i32 2
  %530 = getelementptr inbounds %"struct.Ani::ArrayView.0", ptr %529, i32 0, i32 0
  %531 = load ptr, ptr %530, align 8, !tbaa !47
  %532 = load ptr, ptr %6, align 8, !tbaa !5
  %533 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %532, i32 0, i32 4
  %534 = load i64, ptr %533, align 8, !tbaa !9
  %535 = getelementptr inbounds i32, ptr %531, i64 %534
  %536 = load i32, ptr %36, align 4, !tbaa !17
  %537 = zext i32 %536 to i64
  %538 = getelementptr inbounds i32, ptr %535, i64 %537
  %539 = load ptr, ptr %6, align 8, !tbaa !5
  %540 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %539, i32 0, i32 3
  %541 = getelementptr inbounds %"struct.Ani::ArrayView.0", ptr %540, i32 0, i32 0
  %542 = load ptr, ptr %541, align 8, !tbaa !48
  %543 = load ptr, ptr %6, align 8, !tbaa !5
  %544 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %543, i32 0, i32 4
  %545 = load i64, ptr %544, align 8, !tbaa !9
  %546 = getelementptr inbounds i32, ptr %542, i64 %545
  %547 = load i32, ptr %36, align 4, !tbaa !17
  %548 = zext i32 %547 to i64
  %549 = getelementptr inbounds i32, ptr %546, i64 %548
  call void @_ZN3Ani16BandDenseMatrixXIdiEC2EmPNS_11DenseMatrixIdEEPiS5_(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 1, ptr noundef %527, ptr noundef %538, ptr noundef %549)
  %550 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %551 = load ptr, ptr %550, align 8, !tbaa !31
  %552 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %551, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %552, ptr align 8 %10, i64 32, i1 false), !tbaa.struct !32
  %553 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %554 = load ptr, ptr %553, align 8, !tbaa !40
  %555 = getelementptr inbounds i32, ptr %554, i64 1
  store i32 0, ptr %555, align 4, !tbaa !17
  %556 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %557 = load ptr, ptr %556, align 8, !tbaa !40
  %558 = getelementptr inbounds i32, ptr %557, i64 1
  store i32 1, ptr %558, align 4, !tbaa !17
  %559 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %560 = load ptr, ptr %559, align 8, !tbaa !39
  %561 = getelementptr inbounds i32, ptr %560, i64 1
  store i32 0, ptr %561, align 4, !tbaa !17
  %562 = load i32, ptr %9, align 4, !tbaa !17
  %563 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %564 = load ptr, ptr %563, align 8, !tbaa !39
  %565 = getelementptr inbounds i32, ptr %564, i64 1
  store i32 %562, ptr %565, align 4, !tbaa !17
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  ret void

566:                                              ; preds = %149
  %567 = load ptr, ptr %21, align 8
  %568 = load i32, ptr %22, align 4
  %569 = insertvalue { ptr, i32 } poison, ptr %567, 0
  %570 = insertvalue { ptr, i32 } %569, i32 %568, 1
  resume { ptr, i32 } %570
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani16BandDenseMatrixXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #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, !13, i64 288}
!10 = !{!"_ZTSN3Ani10AniMemoryXIdiEE", !11, i64 0, !15, i64 240, !14, i64 256, !14, i64 272, !13, i64 288}
!11 = !{!"_ZTSN3Ani9AniMemoryIdiEE", !12, i64 0, !12, i64 16, !12, i64 32, !12, i64 48, !12, i64 64, !12, i64 80, !12, i64 96, !12, i64 112, !12, i64 128, !12, i64 144, !12, i64 160, !12, i64 176, !12, i64 192, !14, i64 208, !13, i64 224, !13, i64 232}
!12 = !{!"_ZTSN3Ani9ArrayViewIdEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN3Ani9ArrayViewIiEE", !6, i64 0, !13, i64 8}
!15 = !{!"_ZTSN3Ani9ArrayViewINS_11DenseMatrixIdEEEE", !6, i64 0, !13, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!12, !6, i64 0}
!20 = !{!11, !13, i64 224}
!21 = !{!11, !13, i64 232}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!25, !13, i64 0}
!25 = !{!"_ZTSN3Ani20OpMemoryRequirementsE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!26 = !{!11, !13, i64 200}
!27 = !{!11, !6, i64 192}
!28 = !{i64 0, i64 8, !16, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5}
!29 = !{!30, !13, i64 0}
!30 = !{!"_ZTSN3Ani16BandDenseMatrixXIdiEE", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!30, !6, i64 8}
!32 = !{i64 0, i64 8, !5, i64 8, i64 8, !16, i64 16, i64 8, !16, i64 24, i64 8, !16}
!33 = !{!34, !34, i64 0}
!34 = !{!"double", !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}
!39 = !{!30, !6, i64 24}
!40 = !{!30, !6, i64 16}
!41 = distinct !{!41, !36}
!42 = distinct !{!42, !36}
!43 = distinct !{!43, !36}
!44 = distinct !{!44, !36}
!45 = distinct !{!45, !36}
!46 = !{!10, !6, i64 240}
!47 = !{!10, !6, i64 256}
!48 = !{!10, !6, i64 272}


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

@_ZTISt13runtime_error = external constant ptr
@.str.23 = external hidden unnamed_addr constant [62 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani15ComplexFemSpace12applyDIV_1x2ERNS_10AniMemoryXIdiEERNS_9ArrayViewIdEE(ptr dead_on_unwind noalias writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(76) %1, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %3) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %6 = alloca %"struct.Ani::BandDenseMatrixX", align 8
  %7 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %8 = alloca %"struct.Ani::ArrayView", align 8
  %9 = alloca %"struct.Ani::BandDenseMatrixX", align 8
  %10 = alloca %"struct.Ani::DenseMatrix.9", align 8
  %11 = alloca %"struct.Ani::OpMemoryRequirements", align 8
  %12 = alloca %"struct.Ani::ArrayView", align 8
  %13 = alloca %"struct.Ani::BandDenseMatrixX", align 8
  %14 = getelementptr inbounds i8, ptr %2, i64 288
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = tail call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  %18 = load ptr, ptr %3, align 8, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %2, i64 224
  %20 = load i64, ptr %19, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %2, i64 232
  %22 = load i64, ptr %21, align 8, !tbaa !17
  %23 = zext i32 %17 to i64
  %24 = mul i64 %22, %23
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmm(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %18, i64 noundef %20, i64 noundef %24)
  call void @_ZN3Ani11DenseMatrixIdE7SetZeroEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %25 = getelementptr inbounds i8, ptr %1, i64 24
  %26 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %.not169 = icmp eq i64 %26, 0
  br i1 %.not169, label %._crit_edge168, label %.lr.ph167

.lr.ph167:                                        ; preds = %4
  %27 = getelementptr inbounds i8, ptr %2, i64 192
  %28 = getelementptr inbounds i8, ptr %2, i64 200
  %29 = getelementptr inbounds i8, ptr %6, i64 24
  %30 = getelementptr inbounds i8, ptr %6, i64 16
  %31 = getelementptr inbounds i8, ptr %6, i64 8
  br label %53

._crit_edge168:                                   ; preds = %265, %4
  %32 = load i64, ptr %14, align 8, !tbaa !5
  %.not = icmp ne i64 %32, 0
  %33 = getelementptr inbounds i8, ptr %2, i64 240
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %34, i64 %32
  %36 = getelementptr inbounds i8, ptr %2, i64 256
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = getelementptr inbounds i32, ptr %37, i64 %32
  %39 = zext i1 %.not to i64
  %40 = getelementptr inbounds i32, ptr %38, i64 %39
  %41 = getelementptr inbounds i8, ptr %2, i64 272
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = getelementptr inbounds i32, ptr %42, i64 %32
  %44 = getelementptr inbounds i32, ptr %43, i64 %39
  call void @_ZN3Ani16BandDenseMatrixXIdiEC2EmPNS_11DenseMatrixIdEEPiS5_(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 1, ptr noundef %35, ptr noundef %40, ptr noundef %44)
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %5, i64 32, i1 false), !tbaa.struct !23
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %48, i64 4
  store i32 1, ptr %49, align 4, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  %51 = load ptr, ptr %50, align 8, !tbaa !29
  %52 = getelementptr inbounds i8, ptr %51, i64 4
  store i32 %17, ptr %52, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  ret void

53:                                               ; preds = %.lr.ph167, %265
  %54 = phi i64 [ 0, %.lr.ph167 ], [ %268, %265 ]
  %.0163 = phi i32 [ 0, %.lr.ph167 ], [ %266, %265 ]
  %.0120162 = phi i32 [ 0, %.lr.ph167 ], [ %267, %265 ]
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #7
  %56 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %55) #7
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #7
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %59) #7
  %61 = load ptr, ptr %60, align 8, !tbaa !30
  %62 = getelementptr inbounds i8, ptr %61, i64 24
  %63 = load ptr, ptr %62, align 8
  %64 = call noundef i32 %63(ptr noundef nonnull align 8 dereferenceable(24) %60)
  %65 = call noundef ptr @_ZNK3Ani4DofT6DofMap6targetINS0_13ComplexDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %66 = getelementptr inbounds i8, ptr %65, i64 320
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %54) #7
  %68 = load i32, ptr %67, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZN3Ani16BandDenseMatrixXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  %69 = icmp eq i32 %64, 1
  br i1 %69, label %70, label %131

70:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #7
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %71) #7
  %73 = load i64, ptr %19, align 8, !tbaa !16
  %74 = trunc i64 %73 to i32
  %75 = load i64, ptr %21, align 8, !tbaa !17
  %76 = trunc i64 %75 to i32
  %77 = trunc i32 %.0163 to i8
  %78 = load ptr, ptr %72, align 8, !tbaa !30
  %79 = getelementptr inbounds i8, ptr %78, i64 152
  %80 = load ptr, ptr %79, align 8
  call void %80(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %72, i32 noundef %74, i32 noundef %76, i8 noundef zeroext %77)
  %81 = load i64, ptr %7, align 8, !tbaa !32
  %82 = load i64, ptr %28, align 8, !tbaa !34
  %83 = sub i64 %82, %81
  store i64 %83, ptr %28, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %84 = load ptr, ptr %27, align 8, !tbaa !35
  %85 = getelementptr inbounds double, ptr %84, i64 %83
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %85, i64 noundef %81)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #7
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %86) #7
  %88 = load ptr, ptr %87, align 8, !tbaa !30
  %89 = getelementptr inbounds i8, ptr %88, i64 144
  %90 = load ptr, ptr %89, align 8
  call void %90(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %8, i8 noundef zeroext %77)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  %91 = load i64, ptr %6, align 8, !tbaa !37
  %.not137 = icmp eq i64 %91, 1
  br i1 %.not137, label %100, label %92

92:                                               ; preds = %70
  %93 = load i64, ptr %7, align 8, !tbaa !32
  %94 = load i64, ptr %28, align 8, !tbaa !34
  %95 = add i64 %94, %93
  store i64 %95, ptr %28, align 8, !tbaa !34
  %96 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull @.str.23)
          to label %97 unwind label %98

97:                                               ; preds = %92
  call void @__cxa_throw(ptr nonnull %96, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

98:                                               ; preds = %92
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %96) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  resume { ptr, i32 } %99

100:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  %101 = load ptr, ptr %31, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %101, i64 32, i1 false), !tbaa.struct !23
  %102 = load i64, ptr %21, align 8, !tbaa !17
  %.not175 = icmp eq i64 %102, 0
  br i1 %.not175, label %._crit_edge157, label %.preheader139.lr.ph

.preheader139.lr.ph:                              ; preds = %100
  %.not176 = icmp eq i32 %58, 0
  %103 = zext i32 %58 to i64
  br i1 %.not176, label %._crit_edge157, label %.preheader139.us.preheader

.preheader139.us.preheader:                       ; preds = %.preheader139.lr.ph
  %.pre189 = load i64, ptr %19, align 8, !tbaa !16
  br label %.preheader139.us

.preheader139.us:                                 ; preds = %.preheader139.us.preheader, %._crit_edge155.us
  %104 = phi i64 [ %123, %._crit_edge155.us ], [ %102, %.preheader139.us.preheader ]
  %105 = phi i64 [ %124, %._crit_edge155.us ], [ %.pre189, %.preheader139.us.preheader ]
  %106 = phi i64 [ %125, %._crit_edge155.us ], [ %.pre189, %.preheader139.us.preheader ]
  %.0127156.us = phi i64 [ %126, %._crit_edge155.us ], [ 0, %.preheader139.us.preheader ]
  %107 = mul i64 %.0127156.us, %103
  %108 = mul i64 %.0127156.us, %23
  %.not177 = icmp eq i64 %106, 0
  br i1 %.not177, label %._crit_edge155.us, label %.preheader138.us158

._crit_edge153.us:                                ; preds = %110, %.preheader138.us158
  %109 = phi i64 [ 0, %.preheader138.us158 ], [ %115, %110 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %103
  br i1 %exitcond.not, label %._crit_edge155.us.loopexit180, label %.preheader138.us158, !llvm.loop !38

110:                                              ; preds = %.lr.ph152.us, %110
  %.0125151.us = phi i64 [ 0, %.lr.ph152.us ], [ %114, %110 ]
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %.0125151.us, i64 noundef %118)
  %112 = load double, ptr %111, align 8, !tbaa !41
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.0125151.us, i64 noundef %122)
  store double %112, ptr %113, align 8, !tbaa !41
  %114 = add nuw i64 %.0125151.us, 1
  %115 = load i64, ptr %19, align 8, !tbaa !16
  %116 = icmp ult i64 %114, %115
  br i1 %116, label %110, label %._crit_edge153.us, !llvm.loop !43

.preheader138.us158:                              ; preds = %.preheader139.us, %._crit_edge153.us
  %117 = phi i64 [ %109, %._crit_edge153.us ], [ %105, %.preheader139.us ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge153.us ], [ 0, %.preheader139.us ]
  %.not178 = icmp eq i64 %117, 0
  br i1 %.not178, label %._crit_edge153.us, label %.lr.ph152.us

.lr.ph152.us:                                     ; preds = %.preheader138.us158
  %118 = add i64 %107, %indvars.iv
  %119 = trunc nuw i64 %indvars.iv to i32
  %120 = add i32 %68, %119
  %121 = zext i32 %120 to i64
  %122 = add i64 %108, %121
  br label %110

._crit_edge155.us.loopexit180:                    ; preds = %._crit_edge153.us
  %.pre190 = load i64, ptr %21, align 8, !tbaa !17
  br label %._crit_edge155.us

._crit_edge155.us:                                ; preds = %.preheader139.us, %._crit_edge155.us.loopexit180
  %123 = phi i64 [ %.pre190, %._crit_edge155.us.loopexit180 ], [ %104, %.preheader139.us ]
  %124 = phi i64 [ %109, %._crit_edge155.us.loopexit180 ], [ %105, %.preheader139.us ]
  %125 = phi i64 [ %109, %._crit_edge155.us.loopexit180 ], [ 0, %.preheader139.us ]
  %126 = add nuw i64 %.0127156.us, 1
  %127 = icmp ult i64 %126, %123
  br i1 %127, label %.preheader139.us, label %._crit_edge157, !llvm.loop !44

._crit_edge157:                                   ; preds = %._crit_edge155.us, %.preheader139.lr.ph, %100
  %128 = load i64, ptr %7, align 8, !tbaa !32
  %129 = load i64, ptr %28, align 8, !tbaa !34
  %130 = add i64 %129, %128
  store i64 %130, ptr %28, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %265

131:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #7
  %133 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %132) #7
  %134 = load i64, ptr %19, align 8, !tbaa !16
  %135 = trunc i64 %134 to i32
  %136 = load i64, ptr %21, align 8, !tbaa !17
  %137 = trunc i64 %136 to i32
  %138 = load ptr, ptr %133, align 8, !tbaa !30
  %139 = getelementptr inbounds i8, ptr %138, i64 88
  %140 = load ptr, ptr %139, align 8
  call void %140(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %133, i32 noundef %135, i32 noundef %137)
  %141 = load i64, ptr %11, align 8, !tbaa !32
  %142 = load i64, ptr %28, align 8, !tbaa !34
  %143 = sub i64 %142, %141
  store i64 %143, ptr %28, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %144 = load ptr, ptr %27, align 8, !tbaa !35
  %145 = getelementptr inbounds double, ptr %144, i64 %143
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %145, i64 noundef %141)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  %146 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #7
  %147 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %146) #7
  %148 = load ptr, ptr %147, align 8, !tbaa !30
  %149 = getelementptr inbounds i8, ptr %148, i64 80
  %150 = load ptr, ptr %149, align 8
  call void %150(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %147, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %13, i64 32, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  %151 = load i64, ptr %6, align 8, !tbaa !37
  %.not170 = icmp eq i64 %151, 0
  br i1 %.not170, label %._crit_edge150, label %.preheader140.lr.ph

.preheader140.lr.ph:                              ; preds = %131
  %152 = add i32 %.0163, 4
  %153 = load i64, ptr %21, align 8, !tbaa !17
  %.not171 = icmp eq i64 %153, 0
  br i1 %.not171, label %._crit_edge150, label %.preheader140

.preheader140:                                    ; preds = %.preheader140.lr.ph, %._crit_edge147
  %154 = phi i64 [ %166, %._crit_edge147 ], [ %151, %.preheader140.lr.ph ]
  %155 = phi i64 [ %167, %._crit_edge147 ], [ %153, %.preheader140.lr.ph ]
  %156 = phi i64 [ %168, %._crit_edge147 ], [ %153, %.preheader140.lr.ph ]
  %.0124148 = phi i64 [ %.pre191, %._crit_edge147 ], [ 0, %.preheader140.lr.ph ]
  %.not172 = icmp eq i64 %156, 0
  %.pre191 = add nuw i64 %.0124148, 1
  br i1 %.not172, label %._crit_edge147, label %.lr.ph146

.lr.ph146:                                        ; preds = %.preheader140
  %157 = load ptr, ptr %29, align 8, !tbaa !29
  %158 = getelementptr inbounds i32, ptr %157, i64 %.0124148
  %159 = load i32, ptr %158, align 4, !tbaa !27
  %160 = getelementptr inbounds i32, ptr %157, i64 %.pre191
  %161 = load i32, ptr %160, align 4, !tbaa !27
  %162 = icmp slt i32 %159, %161
  br i1 %162, label %.lr.ph146.split, label %._crit_edge147

._crit_edge150:                                   ; preds = %._crit_edge147, %.preheader140.lr.ph, %131
  %163 = load i64, ptr %11, align 8, !tbaa !32
  %164 = load i64, ptr %28, align 8, !tbaa !34
  %165 = add i64 %164, %163
  store i64 %165, ptr %28, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %265

._crit_edge147.loopexit:                          ; preds = %._crit_edge143
  %.pre188 = load i64, ptr %6, align 8, !tbaa !37
  br label %._crit_edge147

._crit_edge147:                                   ; preds = %.preheader140, %.lr.ph146, %._crit_edge147.loopexit
  %166 = phi i64 [ %.pre188, %._crit_edge147.loopexit ], [ %154, %.lr.ph146 ], [ %154, %.preheader140 ]
  %167 = phi i64 [ %185, %._crit_edge147.loopexit ], [ %155, %.lr.ph146 ], [ %155, %.preheader140 ]
  %168 = phi i64 [ %185, %._crit_edge147.loopexit ], [ %156, %.lr.ph146 ], [ 0, %.preheader140 ]
  %169 = icmp ult i64 %.pre191, %166
  br i1 %169, label %.preheader140, label %._crit_edge150, !llvm.loop !45

.lr.ph146.split:                                  ; preds = %.lr.ph146, %._crit_edge143
  %170 = phi i64 [ %185, %._crit_edge143 ], [ %155, %.lr.ph146 ]
  %171 = phi ptr [ %186, %._crit_edge143 ], [ %157, %.lr.ph146 ]
  %172 = phi ptr [ %187, %._crit_edge143 ], [ %157, %.lr.ph146 ]
  %.0123144 = phi i64 [ %188, %._crit_edge143 ], [ 0, %.lr.ph146 ]
  %173 = getelementptr inbounds i32, ptr %172, i64 %.0124148
  %174 = load i32, ptr %173, align 4, !tbaa !27
  %175 = getelementptr inbounds i32, ptr %172, i64 %.pre191
  %176 = load i32, ptr %175, align 4, !tbaa !27
  %177 = icmp slt i32 %174, %176
  br i1 %177, label %.preheader.lr.ph, label %._crit_edge143

.preheader.lr.ph:                                 ; preds = %.lr.ph146.split
  %178 = mul i64 %.0123144, %23
  %179 = load i64, ptr %19, align 8, !tbaa !16
  %.not173 = icmp eq i64 %179, 0
  br i1 %.not173, label %._crit_edge143, label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %180 = phi ptr [ %190, %._crit_edge ], [ %171, %.preheader.lr.ph ]
  %181 = phi i64 [ %191, %._crit_edge ], [ 1, %.preheader.lr.ph ]
  %.0122142 = phi i32 [ %192, %._crit_edge ], [ %174, %.preheader.lr.ph ]
  %.not174 = icmp eq i64 %181, 0
  br i1 %.not174, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %182 = add i32 %.0122142, %68
  %183 = zext i32 %182 to i64
  %184 = add i64 %178, %183
  br label %196

._crit_edge143.loopexit179:                       ; preds = %._crit_edge
  %.pre187 = load i64, ptr %21, align 8, !tbaa !17
  br label %._crit_edge143

._crit_edge143:                                   ; preds = %.preheader.lr.ph, %._crit_edge143.loopexit179, %.lr.ph146.split
  %185 = phi i64 [ %.pre187, %._crit_edge143.loopexit179 ], [ %170, %.lr.ph146.split ], [ %170, %.preheader.lr.ph ]
  %186 = phi ptr [ %190, %._crit_edge143.loopexit179 ], [ %171, %.lr.ph146.split ], [ %171, %.preheader.lr.ph ]
  %187 = phi ptr [ %190, %._crit_edge143.loopexit179 ], [ %172, %.lr.ph146.split ], [ %172, %.preheader.lr.ph ]
  %188 = add nuw i64 %.0123144, 1
  %189 = icmp ult i64 %188, %185
  br i1 %189, label %.lr.ph146.split, label %._crit_edge147.loopexit, !llvm.loop !46

._crit_edge.loopexit:                             ; preds = %261
  %.pre186 = load ptr, ptr %29, align 8, !tbaa !29
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %190 = phi ptr [ %.pre186, %._crit_edge.loopexit ], [ %180, %.preheader ]
  %191 = phi i64 [ %263, %._crit_edge.loopexit ], [ 0, %.preheader ]
  %192 = add nsw i32 %.0122142, 1
  %193 = getelementptr inbounds i32, ptr %190, i64 %.pre191
  %194 = load i32, ptr %193, align 4, !tbaa !27
  %195 = icmp slt i32 %192, %194
  br i1 %195, label %.preheader, label %._crit_edge143.loopexit179, !llvm.loop !47

196:                                              ; preds = %.lr.ph, %261
  %.0121141 = phi i64 [ 0, %.lr.ph ], [ %262, %261 ]
  %197 = load ptr, ptr %30, align 8, !tbaa !26
  %198 = getelementptr inbounds i32, ptr %197, i64 %.0124148
  %199 = load i32, ptr %198, align 4, !tbaa !27
  %.not135 = icmp sgt i32 %199, %.0163
  br i1 %.not135, label %229, label %200

200:                                              ; preds = %196
  %201 = getelementptr inbounds i32, ptr %197, i64 %.pre191
  %202 = load i32, ptr %201, align 4, !tbaa !27
  %203 = icmp sgt i32 %202, %.0163
  br i1 %203, label %204, label %229

204:                                              ; preds = %200
  %205 = load ptr, ptr %31, align 8, !tbaa !21
  %206 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %205, i64 %.0124148
  %207 = sub nsw i32 %.0163, %199
  %208 = sext i32 %207 to i64
  %209 = sub nsw i32 %202, %199
  %210 = sext i32 %209 to i64
  %211 = mul i64 %.0121141, %210
  %212 = add i64 %211, %208
  %213 = load ptr, ptr %29, align 8, !tbaa !29
  %214 = getelementptr inbounds i32, ptr %213, i64 %.0124148
  %215 = load i32, ptr %214, align 4, !tbaa !27
  %216 = sub nsw i32 %.0122142, %215
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %213, i64 %.pre191
  %219 = load i32, ptr %218, align 4, !tbaa !27
  %220 = sub nsw i32 %219, %215
  %221 = sext i32 %220 to i64
  %222 = mul i64 %.0123144, %221
  %223 = add i64 %222, %217
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %206, i64 noundef %212, i64 noundef %223)
  %225 = load double, ptr %224, align 8, !tbaa !41
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.0121141, i64 noundef %184)
  %227 = load double, ptr %226, align 8, !tbaa !41
  %228 = fadd double %225, %227
  store double %228, ptr %226, align 8, !tbaa !41
  %.pre = load ptr, ptr %30, align 8, !tbaa !26
  %.phi.trans.insert = getelementptr inbounds i32, ptr %.pre, i64 %.0124148
  %.pre185 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !27
  br label %229

229:                                              ; preds = %204, %200, %196
  %230 = phi i32 [ %.pre185, %204 ], [ %199, %200 ], [ %199, %196 ]
  %231 = phi ptr [ %.pre, %204 ], [ %197, %200 ], [ %197, %196 ]
  %.not136 = icmp sgt i32 %230, %152
  br i1 %.not136, label %261, label %232

232:                                              ; preds = %229
  %233 = getelementptr inbounds i32, ptr %231, i64 %.pre191
  %234 = load i32, ptr %233, align 4, !tbaa !27
  %235 = icmp sgt i32 %234, %152
  br i1 %235, label %236, label %261

236:                                              ; preds = %232
  %237 = load ptr, ptr %31, align 8, !tbaa !21
  %238 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %237, i64 %.0124148
  %239 = sub nsw i32 %152, %230
  %240 = sext i32 %239 to i64
  %241 = sub nsw i32 %234, %230
  %242 = sext i32 %241 to i64
  %243 = mul i64 %.0121141, %242
  %244 = add i64 %243, %240
  %245 = load ptr, ptr %29, align 8, !tbaa !29
  %246 = getelementptr inbounds i32, ptr %245, i64 %.0124148
  %247 = load i32, ptr %246, align 4, !tbaa !27
  %248 = sub nsw i32 %.0122142, %247
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i32, ptr %245, i64 %.pre191
  %251 = load i32, ptr %250, align 4, !tbaa !27
  %252 = sub nsw i32 %251, %247
  %253 = sext i32 %252 to i64
  %254 = mul i64 %.0123144, %253
  %255 = add i64 %254, %249
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %238, i64 noundef %244, i64 noundef %255)
  %257 = load double, ptr %256, align 8, !tbaa !41
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.0121141, i64 noundef %184)
  %259 = load double, ptr %258, align 8, !tbaa !41
  %260 = fadd double %257, %259
  store double %260, ptr %258, align 8, !tbaa !41
  br label %261

261:                                              ; preds = %229, %232, %236
  %262 = add nuw i64 %.0121141, 1
  %263 = load i64, ptr %19, align 8, !tbaa !16
  %264 = icmp ult i64 %262, %263
  br i1 %264, label %196, label %._crit_edge.loopexit, !llvm.loop !48

265:                                              ; preds = %._crit_edge150, %._crit_edge157
  %266 = add i32 %64, %.0163
  store i64 %15, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %267 = add i32 %.0120162, 1
  %268 = zext i32 %267 to i64
  %269 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %270 = icmp ugt i64 %269, %268
  br i1 %270, label %53, label %._crit_edge168, !llvm.loop !49
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani16BandDenseMatrixXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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, !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 = !{!8, !9, i64 0}
!16 = !{!7, !12, i64 224}
!17 = !{!7, !12, i64 232}
!18 = !{!6, !9, i64 240}
!19 = !{!6, !9, i64 256}
!20 = !{!6, !9, i64 272}
!21 = !{!22, !9, i64 8}
!22 = !{!"_ZTSN3Ani16BandDenseMatrixXIdiEE", !12, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!23 = !{i64 0, i64 8, !24, i64 8, i64 8, !25, i64 16, i64 8, !25, i64 24, i64 8, !25}
!24 = !{!9, !9, i64 0}
!25 = !{!12, !12, i64 0}
!26 = !{!22, !9, i64 16}
!27 = !{!28, !28, i64 0}
!28 = !{!"int", !10, i64 0}
!29 = !{!22, !9, i64 24}
!30 = !{!31, !31, i64 0}
!31 = !{!"vtable pointer", !11, i64 0}
!32 = !{!33, !12, i64 0}
!33 = !{!"_ZTSN3Ani20OpMemoryRequirementsE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!34 = !{!7, !12, i64 200}
!35 = !{!7, !9, i64 192}
!36 = !{i64 0, i64 8, !25, i64 8, i64 8, !24, i64 16, i64 8, !24, i64 24, i64 8, !24}
!37 = !{!22, !12, i64 0}
!38 = distinct !{!38, !39, !40}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!"llvm.loop.unswitch.partial.disable"}
!41 = !{!42, !42, i64 0}
!42 = !{!"double", !10, i64 0}
!43 = distinct !{!43, !39}
!44 = distinct !{!44, !39}
!45 = distinct !{!45, !39, !40}
!46 = distinct !{!46, !39, !40}
!47 = distinct !{!47, !39, !40}
!48 = distinct !{!48, !39}
!49 = distinct !{!49, !39}


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