; 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::PlainMemoryX" = type { ptr, ptr, ptr, i64, i64, i64 }
%"struct.Ani::DofT::ComponentTetOrder" = type { %"struct.Ani::DofT::TetOrder", %"struct.Ani::DofT::TetOrder", i32 }
%"struct.Ani::DofT::TetOrder" = type { i32 }
%"struct.Ani::ArrayView" = type { ptr, i64 }
%class.anon.48 = type { ptr, i32, i32, i32, i32, ptr }
%"struct.Ani::BaseFemSpace::FunctorContainer.49" = type { ptr, ptr }
%"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] }

@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [101 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_j = external hidden unnamed_addr constant [160 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani12PlainMemoryXIdiE2geIdiEEbRKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT8TetOrderC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 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) #2 align 2

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

declare { i64, i32 } @_ZNK3Ani4DofT13ComplexDofMap11ComponentIDENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(344), i32) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_j(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef byval(%"struct.Ani::PlainMemoryX") align 8 %6, ptr noundef %7, i32 noundef %8) unnamed_addr #5 align 2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.Ani::PlainMemoryX", align 8
  %19 = alloca %"struct.Ani::DofT::ComponentTetOrder", align 4
  %20 = alloca %"struct.Ani::DofT::TetOrder", align 4
  %21 = alloca { i64, i32 }, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.Ani::ArrayView", align 8
  %31 = alloca ptr, align 8
  %32 = alloca %class.anon.48, align 8
  %33 = alloca %"struct.Ani::BaseFemSpace::FunctorContainer.49", align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"struct.Ani::PlainMemoryX", align 8
  %36 = alloca i32, align 4
  %37 = alloca %"struct.Ani::ArrayView", align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  store i32 %8, ptr %17, align 4, !tbaa !9
  %38 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #7
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = load i32, ptr %17, align 4, !tbaa !9
  %42 = load ptr, ptr %38, align 8, !tbaa !11
  %43 = getelementptr inbounds ptr, ptr %42, i64 7
  %44 = load ptr, ptr %43, align 8
  call void %44(ptr dead_on_unwind writable sret(%"struct.Ani::PlainMemoryX") align 8 %18, ptr noundef nonnull align 8 dereferenceable(76) %38, i32 noundef %39, i32 noundef %40, i32 noundef %41)
  %45 = call noundef zeroext i1 @_ZNK3Ani12PlainMemoryXIdiE2geIdiEEbRKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %18)
  br i1 %45, label %46, label %47

46:                                               ; preds = %9
  br label %47

47:                                               ; preds = %46, %9
  %48 = phi i1 [ false, %9 ], [ true, %46 ]
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  br label %52

50:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 695, ptr noundef @__PRETTY_FUNCTION__._ZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_j) #8
  unreachable

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %49
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  %53 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %38, i32 0, i32 1
  %54 = call noundef ptr @_ZNK3Ani4DofT6DofMap6targetINS0_13ComplexDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16) %53)
  %55 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN3Ani4DofT8TetOrderC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %55)
  %56 = getelementptr inbounds %"struct.Ani::DofT::TetOrder", ptr %20, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  %58 = call { i64, i32 } @_ZNK3Ani4DofT13ComplexDofMap11ComponentIDENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(344) %54, i32 %57)
  store { i64, i32 } %58, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %59 = getelementptr inbounds %"struct.Ani::DofT::ComponentTetOrder", ptr %19, i32 0, i32 2
  %60 = load i32, ptr %59, align 4, !tbaa !13
  store i32 %60, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %61 = getelementptr inbounds %"struct.Ani::DofT::ComponentTetOrder", ptr %19, i32 0, i32 1
  %62 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %61)
  store i32 %62, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = getelementptr inbounds %"struct.Ani::DofT::ComponentTetOrder", ptr %19, i32 0, i32 1
  %65 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %64)
  %66 = sub i32 %63, %65
  store i32 %66, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %67 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %38, i32 0, i32 1
  %68 = getelementptr inbounds %"struct.Ani::DofT::ComponentTetOrder", ptr %19, i32 0, i32 2
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = zext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %70) #7
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %71) #7
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds ptr, ptr %73, i64 3
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef i32 %75(ptr noundef nonnull align 8 dereferenceable(24) %72)
  store i32 %76, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %77 = load ptr, ptr %38, align 8, !tbaa !11
  %78 = getelementptr inbounds ptr, ptr %77, i64 3
  %79 = load ptr, ptr %78, align 8
  %80 = call noundef i32 %79(ptr noundef nonnull align 8 dereferenceable(76) %38)
  store i32 %80, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %98, %52
  %82 = load i32, ptr %28, align 4, !tbaa !9
  %83 = load i32, ptr %22, align 4, !tbaa !9
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %101

86:                                               ; preds = %81
  %87 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %38, i32 0, i32 1
  %88 = load i32, ptr %28, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #7
  %91 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %90) #7
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds ptr, ptr %92, i64 3
  %94 = load ptr, ptr %93, align 8
  %95 = call noundef i32 %94(ptr noundef nonnull align 8 dereferenceable(24) %91)
  %96 = load i32, ptr %27, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %27, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %86
  %99 = load i32, ptr %28, align 4, !tbaa !9
  %100 = add i32 %99, 1
  store i32 %100, ptr %28, align 4, !tbaa !9
  br label %81, !llvm.loop !16

101:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %130, %101
  %103 = load i32, ptr %29, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %133

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = load i32, ptr %29, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %108, i64 %110
  %112 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = load i32, ptr %24, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load i32, ptr %29, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %117, i64 %119
  %121 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %120, i32 0, i32 1
  %122 = load i64, ptr %121, align 8, !tbaa !21
  %123 = load i32, ptr %24, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = sub i64 %122, %124
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %116, i64 noundef %125)
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = load i32, ptr %29, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %126, i64 %128
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %129, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %130

130:                                              ; preds = %107
  %131 = load i32, ptr %29, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %29, align 4, !tbaa !9
  br label %102, !llvm.loop !24

133:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %134 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %6, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !25
  store ptr %135, ptr %31, align 8, !tbaa !5
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %26, align 4, !tbaa !9
  %138 = mul i32 %136, %137
  %139 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %6, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !25
  %141 = zext i32 %138 to i64
  %142 = getelementptr inbounds double, ptr %140, i64 %141
  store ptr %142, ptr %139, align 8, !tbaa !25
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %26, align 4, !tbaa !9
  %145 = mul i32 %143, %144
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %6, i32 0, i32 3
  %148 = load i64, ptr %147, align 8, !tbaa !27
  %149 = sub i64 %148, %146
  store i64 %149, ptr %147, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #7
  %150 = getelementptr inbounds %class.anon.48, ptr %32, i32 0, i32 0
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %151, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.anon.48, ptr %32, i32 0, i32 1
  %153 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %153, ptr %152, align 8, !tbaa !28
  %154 = getelementptr inbounds %class.anon.48, ptr %32, i32 0, i32 2
  %155 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %155, ptr %154, align 4, !tbaa !30
  %156 = getelementptr inbounds %class.anon.48, ptr %32, i32 0, i32 3
  %157 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %157, ptr %156, align 8, !tbaa !31
  %158 = getelementptr inbounds %class.anon.48, ptr %32, i32 0, i32 4
  %159 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %159, ptr %158, align 4, !tbaa !32
  %160 = getelementptr inbounds %class.anon.48, ptr %32, i32 0, i32 5
  %161 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %161, ptr %160, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %162 = getelementptr inbounds %"struct.Ani::BaseFemSpace::FunctorContainer.49", ptr %33, i32 0, i32 0
  store ptr %32, ptr %162, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.Ani::BaseFemSpace::FunctorContainer.49", ptr %33, i32 0, i32 1
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %164, ptr %163, align 8, !tbaa !34
  %165 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %38, i32 0, i32 1
  %166 = getelementptr inbounds %"struct.Ani::DofT::ComponentTetOrder", ptr %19, i32 0, i32 2
  %167 = load i32, ptr %166, align 4, !tbaa !13
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %168) #7
  %170 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %169) #7
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store ptr @"_ZN3Ani12BaseFemSpace16FunctorContainerIZNKS_15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESD_jE3$_0E12eval_functorESB_SC_jSD_", ptr %34, align 8, !tbaa !5
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load i32, ptr %23, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %6, i64 48, i1 false), !tbaa.struct !36
  %175 = load i32, ptr %17, align 4, !tbaa !9
  %176 = load ptr, ptr %170, align 8, !tbaa !11
  %177 = getelementptr inbounds ptr, ptr %176, i64 6
  %178 = load ptr, ptr %177, align 8
  call void %178(ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 8 dereferenceable(132) %171, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef %172, i32 noundef %173, i32 noundef %174, ptr noundef byval(%"struct.Ani::PlainMemoryX") align 8 %35, ptr noundef %33, i32 noundef %175)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %208, %133
  %180 = load i32, ptr %36, align 4, !tbaa !9
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %211

184:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %36, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %185, i64 %187
  %189 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !18
  %191 = load i32, ptr %24, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = sub i64 0, %192
  %194 = getelementptr inbounds double, ptr %190, i64 %193
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = load i32, ptr %36, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %195, i64 %197
  %199 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %198, i32 0, i32 1
  %200 = load i64, ptr %199, align 8, !tbaa !21
  %201 = load i32, ptr %24, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = add i64 %200, %202
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef %194, i64 noundef %203)
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = load i32, ptr %36, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %204, i64 %206
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %207, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  br label %208

208:                                              ; preds = %184
  %209 = load i32, ptr %36, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %36, align 4, !tbaa !9
  br label %179, !llvm.loop !37

211:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @"_ZN3Ani12BaseFemSpace16FunctorContainerIZNKS_15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESD_jE3$_0E12eval_functorESB_SC_jSD_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef) #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN3Ani4DofT17ComponentTetOrderE", !15, i64 0, !15, i64 4, !10, i64 8}
!15 = !{!"_ZTSN3Ani4DofT8TetOrderE", !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN3Ani9ArrayViewIdEE", !6, i64 0, !20, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!19, !20, i64 8}
!22 = !{i64 0, i64 8, !5, i64 8, i64 8, !23}
!23 = !{!20, !20, i64 0}
!24 = distinct !{!24, !17}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTSN3Ani12PlainMemoryXIdiEE", !6, i64 0, !6, i64 8, !6, i64 16, !20, i64 24, !20, i64 32, !20, i64 40}
!27 = !{!26, !20, i64 24}
!28 = !{!29, !10, i64 8}
!29 = !{!"_ZTSZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_jE3$_0", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24}
!30 = !{!29, !10, i64 12}
!31 = !{!29, !10, i64 16}
!32 = !{!29, !10, i64 20}
!33 = !{!29, !6, i64 24}
!34 = !{!35, !6, i64 8}
!35 = !{!"_ZTSN3Ani12BaseFemSpace16FunctorContainerIZNKS_15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESD_jE3$_0EE", !6, i64 0, !6, i64 8}
!36 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !23, i64 32, i64 8, !23, i64 40, i64 8, !23}
!37 = distinct !{!37, !17}


; 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::PlainMemoryX" = type { ptr, ptr, ptr, i64, i64, i64 }
%"struct.Ani::DofT::ComponentTetOrder" = type { %"struct.Ani::DofT::TetOrder", %"struct.Ani::DofT::TetOrder", i32 }
%"struct.Ani::DofT::TetOrder" = type { i32 }
%"struct.Ani::ArrayView" = type { ptr, i64 }
%class.anon.48 = type { ptr, i32, i32, i32, i32, ptr }
%"struct.Ani::BaseFemSpace::FunctorContainer.49" = type { ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [101 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_j = external hidden unnamed_addr constant [160 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani12PlainMemoryXIdiE2geIdiEEbRKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT8TetOrderC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 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 #2 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 #2 align 2

declare { i64, i32 } @_ZNK3Ani4DofT13ComplexDofMap11ComponentIDENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(344), i32) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_j(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef byval(%"struct.Ani::PlainMemoryX") align 8 %6, ptr noundef %7, i32 noundef %8) unnamed_addr #5 align 2 {
  %10 = alloca %"struct.Ani::PlainMemoryX", align 8
  %11 = alloca %"struct.Ani::DofT::ComponentTetOrder", align 8
  %12 = alloca %"struct.Ani::DofT::TetOrder", align 4
  %13 = alloca %"struct.Ani::ArrayView", align 8
  %14 = alloca %class.anon.48, align 8
  %15 = alloca %"struct.Ani::BaseFemSpace::FunctorContainer.49", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.Ani::ArrayView", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #7
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 56
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::PlainMemoryX") align 8 %10, ptr noundef nonnull align 8 dereferenceable(76) %0, i32 noundef %4, i32 noundef %5, i32 noundef %8)
  %21 = call noundef zeroext i1 @_ZNK3Ani12PlainMemoryXIdiE2geIdiEEbRKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %10)
  br i1 %21, label %23, label %22

22:                                               ; preds = %9
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 695, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_j) #8
  unreachable

23:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = call noundef ptr @_ZNK3Ani4DofT6DofMap6targetINS0_13ComplexDofMapEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @_ZN3Ani4DofT8TetOrderC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef %4)
  %26 = load i32, ptr %12, align 4
  %27 = call { i64, i32 } @_ZNK3Ani4DofT13ComplexDofMap11ComponentIDENS0_8TetOrderE(ptr noundef nonnull align 8 dereferenceable(344) %25, i32 %26)
  %.fca.0.extract = extractvalue { i64, i32 } %27, 0
  %.fca.1.extract = extractvalue { i64, i32 } %27, 1
  store i64 %.fca.0.extract, ptr %11, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %28 = getelementptr inbounds i8, ptr %11, i64 4
  %29 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %28)
  %30 = call noundef i32 @_ZNK3Ani4DofT8TetOrdercvjEv(ptr noundef nonnull align 4 dereferenceable(4) %28)
  %31 = sub i32 %4, %30
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load i32, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !8
  %34 = zext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #7
  %36 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 24
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef i32 %39(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 24
  %43 = load ptr, ptr %42, align 8
  %44 = call noundef i32 %43(ptr noundef nonnull align 8 dereferenceable(76) %0)
  %.not = icmp eq i32 %.fca.1.extract, 0
  br i1 %.not, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %23
  %wide.trip.count = zext i32 %.fca.1.extract to i64
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %23
  %.048.lcssa = phi i32 [ 0, %23 ], [ %53, %.lr.ph ]
  %45 = icmp sgt i32 %5, 0
  br i1 %45, label %.lr.ph55, label %._crit_edge

.lr.ph55:                                         ; preds = %.preheader
  %46 = zext i32 %31 to i64
  %wide.trip.count64 = zext nneg i32 %5 to i64
  br label %76

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.04853 = phi i32 [ 0, %.lr.ph.preheader ], [ %53, %.lr.ph ]
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %indvars.iv) #7
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef i32 %51(ptr noundef nonnull align 8 dereferenceable(24) %48)
  %53 = add i32 %52, %.04853
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %76, %.preheader
  %54 = load ptr, ptr %6, align 8, !tbaa !15
  %55 = mul i32 %44, %5
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  store ptr %57, ptr %6, align 8, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %6, i64 24
  %59 = load i64, ptr %58, align 8, !tbaa !19
  %60 = sub i64 %59, %56
  store i64 %60, ptr %58, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  store ptr %2, ptr %14, align 8, !tbaa !20
  %61 = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %.048.lcssa, ptr %61, align 8, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %14, i64 12
  store i32 %40, ptr %62, align 4, !tbaa !23
  %63 = getelementptr inbounds i8, ptr %14, i64 16
  store i32 %5, ptr %63, align 8, !tbaa !24
  %64 = getelementptr inbounds i8, ptr %14, i64 20
  store i32 %44, ptr %64, align 4, !tbaa !25
  %65 = getelementptr inbounds i8, ptr %14, i64 24
  store ptr %54, ptr %65, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  store ptr %14, ptr %15, align 8, !tbaa !20
  %66 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %7, ptr %66, align 8, !tbaa !27
  %67 = load i32, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !8
  %68 = zext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %68) #7
  %70 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %69) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  store ptr @"_ZN3Ani12BaseFemSpace16FunctorContainerIZNKS_15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESD_jE3$_0E12eval_functorESB_SC_jSD_", ptr %16, align 8, !tbaa !20
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 48
  %73 = load ptr, ptr %72, align 8
  call void %73(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %3, i32 noundef %29, i32 noundef %5, ptr noundef nonnull byval(%"struct.Ani::PlainMemoryX") align 8 %6, ptr noundef nonnull %15, i32 noundef %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br i1 %45, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %._crit_edge
  %74 = zext i32 %31 to i64
  %75 = sub nsw i64 0, %74
  %wide.trip.count69 = zext nneg i32 %5 to i64
  br label %83

76:                                               ; preds = %.lr.ph55, %76
  %indvars.iv61 = phi i64 [ 0, %.lr.ph55 ], [ %indvars.iv.next62, %76 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %77 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %3, i64 %indvars.iv61
  %78 = load ptr, ptr %77, align 8, !tbaa !29
  %79 = getelementptr inbounds double, ptr %78, i64 %46
  %80 = getelementptr inbounds i8, ptr %77, i64 8
  %81 = load i64, ptr %80, align 8, !tbaa !31
  %82 = sub i64 %81, %46
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %79, i64 noundef %82)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 8 dereferenceable(16) %13, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next62, %wide.trip.count64
  br i1 %exitcond65.not, label %._crit_edge, label %76, !llvm.loop !34

._crit_edge59:                                    ; preds = %83, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  ret void

83:                                               ; preds = %.lr.ph58, %83
  %indvars.iv66 = phi i64 [ 0, %.lr.ph58 ], [ %indvars.iv.next67, %83 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %84 = getelementptr inbounds %"struct.Ani::ArrayView", ptr %3, i64 %indvars.iv66
  %85 = load ptr, ptr %84, align 8, !tbaa !29
  %86 = getelementptr inbounds double, ptr %85, i64 %75
  %87 = getelementptr inbounds i8, ptr %84, i64 8
  %88 = load i64, ptr %87, align 8, !tbaa !31
  %89 = add i64 %88, %74
  call void @_ZN3Ani9ArrayViewIdEC2EPdm(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %86, i64 noundef %89)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %17, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count69
  br i1 %exitcond70.not, label %._crit_edge59, label %83, !llvm.loop !35
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @"_ZN3Ani12BaseFemSpace16FunctorContainerIZNKS_15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESD_jE3$_0E12eval_functorESB_SC_jSD_"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef) #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN3Ani4DofT17ComponentTetOrderE", !10, i64 0, !10, i64 4, !11, i64 8}
!10 = !{!"_ZTSN3Ani4DofT8TetOrderE", !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN3Ani12PlainMemoryXIdiEE", !17, i64 0, !17, i64 8, !17, i64 16, !18, i64 24, !18, i64 32, !18, i64 40}
!17 = !{!"any pointer", !12, i64 0}
!18 = !{!"long", !12, i64 0}
!19 = !{!16, !18, i64 24}
!20 = !{!17, !17, i64 0}
!21 = !{!22, !11, i64 8}
!22 = !{!"_ZTSZNK3Ani15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESB_jE3$_0", !17, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !17, i64 24}
!23 = !{!22, !11, i64 12}
!24 = !{!22, !11, i64 16}
!25 = !{!22, !11, i64 20}
!26 = !{!22, !17, i64 24}
!27 = !{!28, !17, i64 8}
!28 = !{!"_ZTSN3Ani12BaseFemSpace16FunctorContainerIZNKS_15ComplexFemSpace16interpolateOnDOFERKNS_5TetraIKdEERKPFiRKSt5arrayIdLm3EEPdjPvEPNS_9ArrayViewIdEEiiNS_12PlainMemoryXIdiEESD_jE3$_0EE", !17, i64 0, !17, i64 8}
!29 = !{!30, !17, i64 0}
!30 = !{!"_ZTSN3Ani9ArrayViewIdEE", !17, i64 0, !18, i64 8}
!31 = !{!30, !18, i64 8}
!32 = !{i64 0, i64 8, !20, i64 8, i64 8, !33}
!33 = !{!18, !18, i64 0}
!34 = distinct !{!34, !14}
!35 = distinct !{!35, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass