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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.Ani::BandDenseMatrixX" = type { i64, ptr, ptr, ptr }
%"struct.Ani::OpMemoryRequirements" = type { i64, i64, i64, i64 }
%"struct.Ani::ArrayView" = type { ptr, i64 }
%"struct.Ani::DenseMatrix.9" = type { ptr, i64, i64, i64 }
%"struct.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::DofT::VectorDofMap" = type <{ %"struct.Ani::DofT::BaseDofMap", %"class.std::shared_ptr", i32, [4 x i8] }>
%"struct.Ani::DofT::BaseDofMap" = type { ptr }
%"struct.Ani::VectorFemSpace" = type { %"struct.Ani::BaseFemSpace", %"class.std::shared_ptr.21" }
%"class.std::shared_ptr.21" = type { %"class.std::__shared_ptr.22" }
%"class.std::__shared_ptr.22" = type { ptr, %"class.std::__shared_count" }
%"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.0" = 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::ArrayView.1" = type { ptr, i64 }

@_ZTISt13runtime_error = external constant ptr
@.str.6 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [39 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 @_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 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 ptr @_ZNK3Ani4DofT6DofMap6targetINS0_12VectorDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

28:                                               ; preds = %4
  %29 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef @.str.6)
          to label %30 unwind label %31

30:                                               ; preds = %28
  call void @__cxa_throw(ptr %29, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  call void @__cxa_free_exception(ptr %29) #7
  br label %237

35:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %36 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %22, i32 0, i32 1
  %37 = call noundef ptr @_ZNK3Ani4DofT6DofMap6targetINS0_12VectorDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16) %36)
  %38 = getelementptr inbounds %"struct.Ani::DofT::VectorDofMap", ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !11
  store i32 %39, ptr %10, align 4, !tbaa !18
  %40 = load i32, ptr %10, align 4, !tbaa !18
  %41 = icmp eq i32 %40, 3
  br i1 %41, label %42, label %217

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  %43 = getelementptr inbounds %"struct.Ani::VectorFemSpace", ptr %22, i32 0, i32 1
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %43) #7
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %45, i32 0, i32 14
  %47 = load i64, ptr %46, align 8, !tbaa !19
  %48 = trunc i64 %47 to i32
  %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 !24
  %52 = trunc i64 %51 to i32
  %53 = load ptr, ptr %44, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 11
  %55 = load ptr, ptr %54, align 8
  call void %55(ptr dead_on_unwind writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %44, i32 noundef %48, i32 noundef %52)
  %56 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !25
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %58, i32 0, i32 12
  %60 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !27
  %62 = sub i64 %61, %57
  store i64 %62, ptr %60, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %63, i32 0, i32 12
  %65 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !28
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %67, i32 0, i32 12
  %69 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !27
  %71 = getelementptr inbounds double, ptr %66, i64 %70
  %72 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !25
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %71, i64 noundef %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %74, i32 0, i32 4
  %76 = load i64, ptr %75, align 8, !tbaa !29
  store i64 %76, ptr %13, align 8, !tbaa !32
  %77 = getelementptr inbounds %"struct.Ani::VectorFemSpace", ptr %22, i32 0, i32 1
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %77) #7
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %78, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 10
  %82 = load ptr, ptr %81, align 8
  call void %82(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %78, ptr noundef nonnull align 8 dereferenceable(296) %79, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %83 = getelementptr inbounds %"struct.Ani::VectorFemSpace", ptr %22, i32 0, i32 1
  %84 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %83) #7
  %85 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %84, i32 0, i32 1
  %86 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %85)
  store i32 %86, ptr %14, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !33
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %90, i32 0, i32 14
  %92 = load i64, ptr %91, align 8, !tbaa !19
  %93 = load i32, ptr %14, align 4, !tbaa !18
  %94 = mul i32 3, %93
  %95 = zext i32 %94 to i64
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %96, i32 0, i32 15
  %98 = load i64, ptr %97, align 8, !tbaa !24
  %99 = mul i64 %95, %98
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %100, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !34
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmmm(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %89, i64 noundef %92, i64 noundef %99, i64 noundef %102)
  %103 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 0
  %104 = load i64, ptr %103, align 8, !tbaa !35
  %105 = icmp eq i64 %104, 1
  br i1 %105, label %106, label %191

106:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  %107 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !37
  %109 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %108, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %109, i64 32, i1 false), !tbaa.struct !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !32
  br label %110

110:                                              ; preds = %176, %106
  %111 = load i64, ptr %17, align 8, !tbaa !32
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %112, i32 0, i32 15
  %114 = load i64, ptr %113, align 8, !tbaa !24
  %115 = icmp ult i64 %111, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %110
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %179

117:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !18
  br label %118

118:                                              ; preds = %172, %117
  %119 = load i32, ptr %19, align 4, !tbaa !18
  %120 = load i32, ptr %14, align 4, !tbaa !18
  %121 = icmp ult i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %175

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !32
  br label %124

124:                                              ; preds = %168, %123
  %125 = load i64, ptr %20, align 8, !tbaa !32
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %126, i32 0, i32 14
  %128 = load i64, ptr %127, align 8, !tbaa !19
  %129 = icmp ult i64 %125, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %124
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %171

131:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !18
  br label %132

132:                                              ; preds = %164, %131
  %133 = load i32, ptr %21, align 4, !tbaa !18
  %134 = icmp slt i32 %133, 3
  br i1 %134, label %136, label %135

135:                                              ; preds = %132
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %167

136:                                              ; preds = %132
  %137 = load i32, ptr %21, align 4, !tbaa !18
  %138 = sext i32 %137 to i64
  %139 = load i64, ptr %20, align 8, !tbaa !32
  %140 = mul i64 3, %139
  %141 = add i64 %138, %140
  %142 = load i32, ptr %19, align 4, !tbaa !18
  %143 = zext i32 %142 to i64
  %144 = load i32, ptr %14, align 4, !tbaa !18
  %145 = zext i32 %144 to i64
  %146 = load i64, ptr %17, align 8, !tbaa !32
  %147 = mul i64 %145, %146
  %148 = add i64 %143, %147
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %16, i64 noundef %141, i64 noundef %148)
  %150 = load double, ptr %149, align 8, !tbaa !39
  %151 = load i64, ptr %20, align 8, !tbaa !32
  %152 = load i32, ptr %19, align 4, !tbaa !18
  %153 = zext i32 %152 to i64
  %154 = load i32, ptr %14, align 4, !tbaa !18
  %155 = zext i32 %154 to i64
  %156 = load i32, ptr %21, align 4, !tbaa !18
  %157 = sext i32 %156 to i64
  %158 = load i64, ptr %17, align 8, !tbaa !32
  %159 = mul i64 3, %158
  %160 = add i64 %157, %159
  %161 = mul i64 %155, %160
  %162 = add i64 %153, %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef %151, i64 noundef %162)
  store double %150, ptr %163, align 8, !tbaa !39
  br label %164

164:                                              ; preds = %136
  %165 = load i32, ptr %21, align 4, !tbaa !18
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %21, align 4, !tbaa !18
  br label %132, !llvm.loop !41

167:                                              ; preds = %135
  br label %168

168:                                              ; preds = %167
  %169 = load i64, ptr %20, align 8, !tbaa !32
  %170 = add i64 %169, 1
  store i64 %170, ptr %20, align 8, !tbaa !32
  br label %124, !llvm.loop !43

171:                                              ; preds = %130
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %19, align 4, !tbaa !18
  %174 = add i32 %173, 1
  store i32 %174, ptr %19, align 4, !tbaa !18
  br label %118, !llvm.loop !44

175:                                              ; preds = %122
  br label %176

176:                                              ; preds = %175
  %177 = load i64, ptr %17, align 8, !tbaa !32
  %178 = add i64 %177, 1
  store i64 %178, ptr %17, align 8, !tbaa !32
  br label %110, !llvm.loop !45

179:                                              ; preds = %116
  %180 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 1
  %181 = load ptr, ptr %180, align 8, !tbaa !37
  %182 = getelementptr inbounds %"struct.Ani::DenseMatrix.9", ptr %181, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %182, ptr align 8 %15, i64 32, i1 false), !tbaa.struct !38
  %183 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !46
  %185 = getelementptr inbounds i32, ptr %184, i64 1
  store i32 1, ptr %185, align 4, !tbaa !18
  %186 = load i32, ptr %14, align 4, !tbaa !18
  %187 = mul i32 %186, 3
  %188 = getelementptr inbounds %"struct.Ani::BandDenseMatrixX", ptr %0, i32 0, i32 3
  %189 = load ptr, ptr %188, align 8, !tbaa !47
  %190 = getelementptr inbounds i32, ptr %189, i64 1
  store i32 %187, ptr %190, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br label %205

191:                                              ; preds = %42
  %192 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %193 = load i64, ptr %192, align 8, !tbaa !25
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %194, i32 0, i32 12
  %196 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %195, i32 0, i32 1
  %197 = load i64, ptr %196, align 8, !tbaa !27
  %198 = add i64 %197, %193
  store i64 %198, ptr %196, align 8, !tbaa !27
  %199 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %199, ptr noundef @.str.20)
          to label %200 unwind label %201

200:                                              ; preds = %191
  call void @__cxa_throw(ptr %199, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

201:                                              ; preds = %191
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %8, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %9, align 4
  call void @__cxa_free_exception(ptr %199) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %236

205:                                              ; preds = %179
  %206 = getelementptr inbounds %"struct.Ani::OpMemoryRequirements", ptr %11, i32 0, i32 0
  %207 = load i64, ptr %206, align 8, !tbaa !25
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.Ani::AniMemory", ptr %208, i32 0, i32 12
  %210 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %209, i32 0, i32 1
  %211 = load i64, ptr %210, align 8, !tbaa !27
  %212 = add i64 %211, %207
  store i64 %212, ptr %210, align 8, !tbaa !27
  %213 = load i64, ptr %13, align 8, !tbaa !32
  %214 = add i64 %213, 1
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.Ani::AniMemoryX", ptr %215, i32 0, i32 4
  store i64 %214, ptr %216, align 8, !tbaa !29
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %235

217:                                              ; preds = %35
  %218 = load i32, ptr %10, align 4, !tbaa !18
  %219 = icmp eq i32 %218, 1
  br i1 %219, label %220, label %228

220:                                              ; preds = %217
  %221 = getelementptr inbounds %"struct.Ani::VectorFemSpace", ptr %22, i32 0, i32 1
  %222 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %221) #7
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = load ptr, ptr %222, align 8, !tbaa !9
  %226 = getelementptr inbounds ptr, ptr %225, i64 12
  %227 = load ptr, ptr %226, align 8
  call void %227(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 8 dereferenceable(296) %223, ptr noundef nonnull align 8 dereferenceable(16) %224)
  store i32 1, ptr %18, align 4
  br label %235

228:                                              ; preds = %217
  %229 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %229, ptr noundef @.str.21)
          to label %230 unwind label %231

230:                                              ; preds = %228
  call void @__cxa_throw(ptr %229, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

231:                                              ; preds = %228
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %8, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %9, align 4
  call void @__cxa_free_exception(ptr %229) #7
  br label %236

235:                                              ; preds = %220, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  ret void

236:                                              ; preds = %231, %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %237

237:                                              ; preds = %236, %31
  %238 = load ptr, ptr %8, align 8
  %239 = load i32, ptr %9, align 4
  %240 = insertvalue { ptr, i32 } poison, ptr %238, 0
  %241 = insertvalue { ptr, i32 } %240, i32 %239, 1
  resume { ptr, i32 } %241
}

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.Ani::BandDenseMatrixX" = type { i64, ptr, ptr, ptr }
%"struct.Ani::OpMemoryRequirements" = type { i64, i64, i64, i64 }
%"struct.Ani::ArrayView" = type { ptr, i64 }
%"struct.Ani::DenseMatrix.9" = type { ptr, i64, i64, i64 }

@_ZTISt13runtime_error = external constant ptr
@.str.6 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [39 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 @_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 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 ptr @_ZNK3Ani4DofT6DofMap6targetINS0_12VectorDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

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

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

18:                                               ; preds = %4
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = tail call noundef ptr @_ZNK3Ani4DofT6DofMap6targetINS0_12VectorDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = getelementptr inbounds i8, ptr %20, i64 24
  %22 = load i32, ptr %21, align 8, !tbaa !8
  switch i32 %22, label %128 [
    i32 3, label %23
    i32 1, label %122
  ]

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  %24 = getelementptr inbounds i8, ptr %1, i64 24
  %25 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  %26 = getelementptr inbounds i8, ptr %2, i64 224
  %27 = load i64, ptr %26, align 8, !tbaa !17
  %28 = trunc i64 %27 to i32
  %29 = getelementptr inbounds i8, ptr %2, i64 232
  %30 = load i64, ptr %29, align 8, !tbaa !22
  %31 = trunc i64 %30 to i32
  %32 = load ptr, ptr %25, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 88
  %34 = load ptr, ptr %33, align 8
  call void %34(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::OpMemoryRequirements") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef %28, i32 noundef %31)
  %35 = load i64, ptr %5, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %2, i64 192
  %37 = getelementptr inbounds i8, ptr %2, i64 200
  %38 = load i64, ptr %37, align 8, !tbaa !25
  %39 = sub i64 %38, %35
  store i64 %39, ptr %37, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %40 = load ptr, ptr %36, align 8, !tbaa !26
  %41 = getelementptr inbounds double, ptr %40, i64 %39
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %41, i64 noundef %35)
  %42 = getelementptr inbounds i8, ptr %2, i64 288
  %43 = load i64, ptr %42, align 8, !tbaa !27
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 80
  %47 = load ptr, ptr %46, align 8
  call void %47(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %49)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %51 = load ptr, ptr %3, align 8, !tbaa !30
  %52 = load i64, ptr %26, align 8, !tbaa !17
  %53 = mul i32 %50, 3
  %54 = zext i32 %53 to i64
  %55 = load i64, ptr %29, align 8, !tbaa !22
  %56 = mul i64 %55, %54
  %57 = getelementptr inbounds i8, ptr %3, i64 8
  %58 = load i64, ptr %57, align 8, !tbaa !31
  call void @_ZN3Ani11DenseMatrixIdEC2EPdmmm(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %51, i64 noundef %52, i64 noundef %56, i64 noundef %58)
  %59 = load i64, ptr %0, align 8, !tbaa !32
  %60 = icmp eq i64 %59, 1
  br i1 %60, label %61, label %114

61:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %62 = getelementptr inbounds i8, ptr %0, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !34
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %63, i64 32, i1 false), !tbaa.struct !35
  %64 = load i64, ptr %29, align 8, !tbaa !22
  %.not67 = icmp eq i64 %64, 0
  br i1 %.not67, label %._crit_edge62, label %.preheader56.lr.ph

.preheader56.lr.ph:                               ; preds = %61
  %.not68 = icmp eq i32 %50, 0
  %65 = zext i32 %50 to i64
  %66 = load i64, ptr %26, align 8
  %.not69 = icmp eq i64 %66, 0
  %or.cond = select i1 %.not68, i1 true, i1 %.not69
  br i1 %or.cond, label %._crit_edge62, label %.preheader56.us

.preheader56.us:                                  ; preds = %.preheader56.lr.ph, %._crit_edge60.us
  %67 = phi i64 [ %98, %._crit_edge60.us ], [ %64, %.preheader56.lr.ph ]
  %68 = phi i64 [ %99, %._crit_edge60.us ], [ %66, %.preheader56.lr.ph ]
  %69 = phi i64 [ %100, %._crit_edge60.us ], [ 1, %.preheader56.lr.ph ]
  %.04661.us = phi i64 [ %101, %._crit_edge60.us ], [ 0, %.preheader56.lr.ph ]
  %70 = mul i64 %.04661.us, %65
  %.not70 = icmp eq i64 %69, 0
  br i1 %.not70, label %._crit_edge60.us, label %.preheader55.us63.preheader

.preheader55.us63.preheader:                      ; preds = %.preheader56.us
  %71 = mul i64 %.04661.us, 3
  %72 = mul i64 %71, %65
  %73 = add i64 %71, 1
  %74 = mul i64 %73, %65
  %75 = add i64 %71, 2
  %76 = mul i64 %75, %65
  br label %.preheader55.us63

._crit_edge.us:                                   ; preds = %.preheader.us, %.preheader55.us63
  %77 = phi i64 [ 0, %.preheader55.us63 ], [ %91, %.preheader.us ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %65
  br i1 %exitcond.not, label %._crit_edge60.us.loopexit73, label %.preheader55.us63, !llvm.loop !38

.preheader.us:                                    ; preds = %.preheader.lr.ph.us, %.preheader.us
  %.04458.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %90, %.preheader.us ]
  %78 = mul i64 %.04458.us, 3
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %78, i64 noundef %94)
  %80 = load double, ptr %79, align 8, !tbaa !41
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %.04458.us, i64 noundef %95)
  store double %80, ptr %81, align 8, !tbaa !41
  %82 = add i64 %78, 1
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %82, i64 noundef %94)
  %84 = load double, ptr %83, align 8, !tbaa !41
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %.04458.us, i64 noundef %96)
  store double %84, ptr %85, align 8, !tbaa !41
  %86 = add i64 %78, 2
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %86, i64 noundef %94)
  %88 = load double, ptr %87, align 8, !tbaa !41
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Ani11DenseMatrixIdEclEmm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %.04458.us, i64 noundef %97)
  store double %88, ptr %89, align 8, !tbaa !41
  %90 = add nuw i64 %.04458.us, 1
  %91 = load i64, ptr %26, align 8, !tbaa !17
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %.preheader.us, label %._crit_edge.us, !llvm.loop !43

.preheader55.us63:                                ; preds = %.preheader55.us63.preheader, %._crit_edge.us
  %93 = phi i64 [ %68, %.preheader55.us63.preheader ], [ %77, %._crit_edge.us ]
  %indvars.iv = phi i64 [ 0, %.preheader55.us63.preheader ], [ %indvars.iv.next, %._crit_edge.us ]
  %.not71 = icmp eq i64 %93, 0
  br i1 %.not71, label %._crit_edge.us, label %.preheader.lr.ph.us

.preheader.lr.ph.us:                              ; preds = %.preheader55.us63
  %94 = add i64 %70, %indvars.iv
  %95 = add i64 %72, %indvars.iv
  %96 = add i64 %74, %indvars.iv
  %97 = add i64 %76, %indvars.iv
  br label %.preheader.us

._crit_edge60.us.loopexit73:                      ; preds = %._crit_edge.us
  %.pre = load i64, ptr %29, align 8, !tbaa !22
  br label %._crit_edge60.us

._crit_edge60.us:                                 ; preds = %.preheader56.us, %._crit_edge60.us.loopexit73
  %98 = phi i64 [ %.pre, %._crit_edge60.us.loopexit73 ], [ %67, %.preheader56.us ]
  %99 = phi i64 [ %77, %._crit_edge60.us.loopexit73 ], [ %68, %.preheader56.us ]
  %100 = phi i64 [ %77, %._crit_edge60.us.loopexit73 ], [ 0, %.preheader56.us ]
  %101 = add nuw i64 %.04661.us, 1
  %102 = icmp ult i64 %101, %98
  br i1 %102, label %.preheader56.us, label %._crit_edge62.loopexit74, !llvm.loop !44

._crit_edge62.loopexit74:                         ; preds = %._crit_edge60.us
  %.pre77 = load ptr, ptr %62, align 8, !tbaa !34
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %.preheader56.lr.ph, %._crit_edge62.loopexit74, %61
  %103 = phi ptr [ %.pre77, %._crit_edge62.loopexit74 ], [ %63, %61 ], [ %63, %.preheader56.lr.ph ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %103, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !35
  %104 = getelementptr inbounds i8, ptr %0, i64 16
  %105 = load ptr, ptr %104, align 8, !tbaa !45
  %106 = getelementptr inbounds i8, ptr %105, i64 4
  store i32 1, ptr %106, align 4, !tbaa !46
  %107 = getelementptr inbounds i8, ptr %0, i64 24
  %108 = load ptr, ptr %107, align 8, !tbaa !47
  %109 = getelementptr inbounds i8, ptr %108, i64 4
  store i32 %53, ptr %109, align 4, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  %110 = load i64, ptr %5, align 8, !tbaa !23
  %111 = load i64, ptr %37, align 8, !tbaa !25
  %112 = add i64 %111, %110
  store i64 %112, ptr %37, align 8, !tbaa !25
  %113 = add i64 %43, 1
  store i64 %113, ptr %42, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %133

114:                                              ; preds = %23
  %115 = load i64, ptr %5, align 8, !tbaa !23
  %116 = load i64, ptr %37, align 8, !tbaa !25
  %117 = add i64 %116, %115
  store i64 %117, ptr %37, align 8, !tbaa !25
  %118 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %118, ptr noundef nonnull @.str.20)
          to label %119 unwind label %120

119:                                              ; preds = %114
  call void @__cxa_throw(ptr nonnull %118, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

120:                                              ; preds = %114
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %118) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %134

122:                                              ; preds = %18
  %123 = getelementptr inbounds i8, ptr %1, i64 24
  %124 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %123) #7
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 96
  %127 = load ptr, ptr %126, align 8
  tail call void %127(ptr dead_on_unwind writable sret(%"struct.Ani::BandDenseMatrixX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(296) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  br label %133

128:                                              ; preds = %18
  %129 = tail call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %129, ptr noundef nonnull @.str.21)
          to label %130 unwind label %131

130:                                              ; preds = %128
  tail call void @__cxa_throw(ptr nonnull %129, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

131:                                              ; preds = %128
  %132 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %129) #7
  br label %134

133:                                              ; preds = %122, %._crit_edge62
  ret void

134:                                              ; preds = %120, %131, %16
  %.pn53 = phi { ptr, i32 } [ %17, %16 ], [ %121, %120 ], [ %132, %131 ]
  resume { ptr, i32 } %.pn53
}

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

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

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

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


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