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

; 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::ApplyOpFromSpaceView" = type { %"struct.Ani::ApplyOpBase", ptr, i32, i32, i32, i32 }
%"struct.Ani::ApplyOpBase" = type { ptr }
%"struct.Ani::PlainMemoryX" = type { ptr, ptr, ptr, i64, i64, i64 }
%"struct.Ani::DofT::TetGeomSparsity" = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x i8] }
%"struct.Ani::DofT::DofSparsedIterator" = type <{ %"struct.Ani::DofT::TetGeomSparsity", %"struct.Ani::DofT::LocalOrder", ptr, i8, [7 x i8] }>
%"struct.Ani::DofT::LocalOrder" = type { i32, i32, i8, i8, i8, i8 }
%struct.SegmentQuadFormula = type { i32, %"struct.std::array.2", ptr, ptr }
%"struct.std::array.2" = type { [2 x i32] }
%struct.TriangleQuadFormula = type { i32, %"struct.std::array.3", ptr, ptr }
%"struct.std::array.3" = type { [3 x i32] }
%struct.TetraQuadFormula = type { i32, %"struct.std::array.4", ptr, ptr }
%"struct.std::array.4" = type { [5 x i32] }
%"struct.Ani::GenSpace" = type { %"struct.Ani::FemTraitsT" }
%"struct.Ani::FemTraitsT" = type { %"struct.Ani::FemTraits" }
%"struct.Ani::FemTraits" = type { %"struct.Ani::UniteFemSpace" }
%"struct.Ani::UniteFemSpace" = type { %"struct.Ani::BaseFemSpace" }
%"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 }
%"class.std::initializer_list" = type { ptr, i64 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Ani12BaseFemSpace5getOPENS_12OperatorTypeE(ptr dead_on_unwind noalias writable sret(%"struct.Ani::ApplyOpFromSpaceView") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani12BaseFemSpace27interpolateOnRegion_mem_reqEhj(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i8 noundef zeroext %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca %"struct.Ani::DofT::TetGeomSparsity", align 1
  %9 = alloca %"struct.Ani::DofT::DofSparsedIterator", align 8
  %10 = alloca %"struct.Ani::DofT::DofSparsedIterator", align 8
  %11 = alloca %"struct.Ani::PlainMemoryX", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %struct.SegmentQuadFormula, align 8
  %16 = alloca %struct.TriangleQuadFormula, align 8
  %17 = alloca %struct.TetraQuadFormula, align 8
  %18 = alloca %"struct.Ani::ApplyOpFromSpaceView", align 8
  %19 = alloca %"struct.Ani::ApplyOpFromSpaceView", align 8
  %20 = alloca %"struct.Ani::GenSpace", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.Ani::PlainMemoryX", align 8
  %24 = alloca %"struct.Ani::PlainMemoryX", align 8
  %25 = alloca %"class.std::initializer_list", align 8
  %26 = alloca [3 x i64], align 8
  %27 = alloca %"class.std::initializer_list", align 8
  %28 = alloca [3 x i64], align 8
  %29 = alloca %"class.std::initializer_list", align 8
  %30 = alloca [2 x i64], align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  store i32 %3, ptr %7, align 4, !tbaa !10
  %31 = load ptr, ptr %5, align 8
  %32 = load i8, ptr %6, align 1, !tbaa !9
  %33 = zext i8 %32 to i32
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %65

35:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @_ZN3Ani4DofT15TetGeomSparsityC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %8) #6
  %36 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity7setNodeEi(ptr noundef nonnull align 1 dereferenceable(4) %8, i32 noundef 0)
  call void @_ZN3Ani12PlainMemoryXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %37 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %31, i32 0, i32 1
  call void @_ZNK3Ani4DofT6DofMap15beginBySparsityERKNS0_15TetGeomSparsityEb(ptr dead_on_unwind writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 1 dereferenceable(4) %8, i1 noundef zeroext false)
  br label %38

38:                                               ; preds = %62, %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %39 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %31, i32 0, i32 1
  call void @_ZNK3Ani4DofT6DofMap13endBySparsityEv(ptr dead_on_unwind writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %40 = call noundef zeroext i1 @_ZNK3Ani4DofT18DofSparsedIteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(25) %9, ptr noundef nonnull align 8 dereferenceable(25) %10)
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  br label %64

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #6
  %43 = call noundef ptr @_ZNK3Ani4DofT18DofSparsedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(25) %9)
  %44 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4, !tbaa !12
  %46 = load i32, ptr %7, align 4, !tbaa !10
  call void @_ZNK3Ani12BaseFemSpace24interpolateOnDOF_mem_reqEij(ptr dead_on_unwind writable sret(%"struct.Ani::PlainMemoryX") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef %45, i32 noundef %46)
  %47 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 3
  %48 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %11, i32 0, i32 3
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48)
  %50 = load i64, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 3
  store i64 %50, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 4
  %53 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %11, i32 0, i32 4
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = load i64, ptr %54, align 8, !tbaa !14
  %56 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 4
  store i64 %55, ptr %56, align 8, !tbaa !18
  %57 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 5
  %58 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %11, i32 0, i32 5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %58)
  %60 = load i64, ptr %59, align 8, !tbaa !14
  %61 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 5
  store i64 %60, ptr %61, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  br label %62

62:                                               ; preds = %42
  %63 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZN3Ani4DofT18DofSparsedIteratorppEv(ptr noundef nonnull align 8 dereferenceable(25) %9)
  br label %38, !llvm.loop !20

64:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %156

65:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %66 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %31, i32 0, i32 1
  %67 = call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %66)
  store i32 %67, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %68 = load i8, ptr %6, align 1, !tbaa !9
  %69 = call noundef i32 @_ZN3Ani4DofT11GeomTypeDimEh(i8 noundef zeroext %68)
  %70 = call noundef zeroext i8 @_ZN3Ani4DofT13DimToGeomTypeEi(i32 noundef %69)
  store i8 %70, ptr %14, align 1, !tbaa !9
  %71 = load i8, ptr %14, align 1, !tbaa !9
  %72 = zext i8 %71 to i32
  switch i32 %72, label %82 [
    i32 6, label %73
    i32 24, label %76
    i32 32, label %79
  ]

73:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %74 = load i32, ptr %7, align 4, !tbaa !10
  call void @_Z27segment_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.SegmentQuadFormula) align 8 %15, i32 noundef %74)
  %75 = call noundef i32 @_ZNK18SegmentQuadFormula12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  store i32 %75, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %83

76:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %77 = load i32, ptr %7, align 4, !tbaa !10
  call void @_Z28triangle_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.TriangleQuadFormula) align 8 %16, i32 noundef %77)
  %78 = call noundef i32 @_ZNK19TriangleQuadFormula12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(32) %16)
  store i32 %78, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %83

79:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  %80 = load i32, ptr %7, align 4, !tbaa !10
  call void @_Z31tetrahedron_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.TetraQuadFormula) align 8 %17, i32 noundef %80)
  %81 = call noundef i32 @_ZNK16TetraQuadFormula12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
  store i32 %81, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %83

82:                                               ; preds = %65
  br label %83

83:                                               ; preds = %82, %79, %76, %73
  call void @_ZN3Ani12PlainMemoryXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  %84 = load i32, ptr %12, align 4, !tbaa !10
  %85 = load i32, ptr %12, align 4, !tbaa !10
  %86 = mul i32 %84, %85
  %87 = load i32, ptr %12, align 4, !tbaa !10
  %88 = add i32 %86, %87
  %89 = load i32, ptr %13, align 4, !tbaa !10
  %90 = mul i32 5, %89
  %91 = add i32 %88, %90
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 3
  %94 = load i64, ptr %93, align 8, !tbaa !16
  %95 = add i64 %94, %92
  store i64 %95, ptr %93, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @_ZNK3Ani12BaseFemSpace5getOPENS_12OperatorTypeE(ptr dead_on_unwind writable sret(%"struct.Ani::ApplyOpFromSpaceView") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  call void @_ZN3Ani8GenSpaceILi1ELi1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20)
  invoke void @_ZNK3Ani12BaseFemSpace5getOPENS_12OperatorTypeE(ptr dead_on_unwind writable sret(%"struct.Ani::ApplyOpFromSpaceView") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 1)
          to label %96 unwind label %152

96:                                               ; preds = %83
  call void @_ZN3Ani12BaseFemSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #6
  %97 = load i32, ptr %13, align 4, !tbaa !10
  call void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi1ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind writable sret(%"struct.Ani::PlainMemoryX") align 8 %23, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef %97, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #6
  %98 = load i32, ptr %13, align 4, !tbaa !10
  call void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi4ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind writable sret(%"struct.Ani::PlainMemoryX") align 8 %24, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef %98, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  %99 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %23, i32 0, i32 3
  %100 = load i64, ptr %99, align 8, !tbaa !16
  store i64 %100, ptr %26, align 8, !tbaa !14
  %101 = getelementptr inbounds i64, ptr %26, i64 1
  %102 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %24, i32 0, i32 3
  %103 = load i64, ptr %102, align 8, !tbaa !16
  store i64 %103, ptr %101, align 8, !tbaa !14
  %104 = getelementptr inbounds i64, ptr %26, i64 2
  %105 = load i32, ptr %12, align 4, !tbaa !10
  %106 = load i32, ptr %12, align 4, !tbaa !10
  %107 = add i32 %106, 1
  %108 = mul i32 %105, %107
  %109 = udiv i32 %108, 2
  %110 = zext i32 %109 to i64
  store i64 %110, ptr %104, align 8, !tbaa !14
  %111 = getelementptr inbounds %"class.std::initializer_list", ptr %25, i32 0, i32 0
  store ptr %26, ptr %111, align 8, !tbaa !22
  %112 = getelementptr inbounds %"class.std::initializer_list", ptr %25, i32 0, i32 1
  store i64 3, ptr %112, align 8, !tbaa !24
  %113 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = call noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr %114, i64 %116)
  %118 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 3
  %119 = load i64, ptr %118, align 8, !tbaa !16
  %120 = add i64 %119, %117
  store i64 %120, ptr %118, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #6
  %121 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %23, i32 0, i32 4
  %122 = load i64, ptr %121, align 8, !tbaa !18
  store i64 %122, ptr %28, align 8, !tbaa !14
  %123 = getelementptr inbounds i64, ptr %28, i64 1
  %124 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %24, i32 0, i32 4
  %125 = load i64, ptr %124, align 8, !tbaa !18
  store i64 %125, ptr %123, align 8, !tbaa !14
  %126 = getelementptr inbounds i64, ptr %28, i64 2
  %127 = load i32, ptr %12, align 4, !tbaa !10
  %128 = zext i32 %127 to i64
  store i64 %128, ptr %126, align 8, !tbaa !14
  %129 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 0
  store ptr %28, ptr %129, align 8, !tbaa !22
  %130 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 1
  store i64 3, ptr %130, align 8, !tbaa !24
  %131 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %134 = load i64, ptr %133, align 8
  %135 = call noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr %132, i64 %134)
  %136 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 4
  %137 = load i64, ptr %136, align 8, !tbaa !18
  %138 = add i64 %137, %135
  store i64 %138, ptr %136, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %139 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %23, i32 0, i32 5
  %140 = load i64, ptr %139, align 8, !tbaa !19
  store i64 %140, ptr %30, align 8, !tbaa !14
  %141 = getelementptr inbounds i64, ptr %30, i64 1
  %142 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %24, i32 0, i32 5
  %143 = load i64, ptr %142, align 8, !tbaa !19
  store i64 %143, ptr %141, align 8, !tbaa !14
  %144 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 0
  store ptr %30, ptr %144, align 8, !tbaa !22
  %145 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 1
  store i64 2, ptr %145, align 8, !tbaa !24
  %146 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %149 = load i64, ptr %148, align 8
  %150 = call noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr %147, i64 %149)
  %151 = getelementptr inbounds %"struct.Ani::PlainMemoryX", ptr %0, i32 0, i32 5
  store i64 %150, ptr %151, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %156

152:                                              ; preds = %83
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %21, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %22, align 4
  call void @_ZN3Ani12BaseFemSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %157

156:                                              ; preds = %96, %64
  ret void

157:                                              ; preds = %152
  %158 = load ptr, ptr %21, align 8
  %159 = load i32, ptr %22, align 4
  %160 = insertvalue { ptr, i32 } poison, ptr %158, 0
  %161 = insertvalue { ptr, i32 } %160, i32 %159, 1
  resume { ptr, i32 } %161
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT15TetGeomSparsityC2Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #2 align 2

declare noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity7setNodeEi(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani12PlainMemoryXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3Ani4DofT6DofMap15beginBySparsityERKNS0_15TetGeomSparsityEb(ptr dead_on_unwind noalias writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT18DofSparsedIteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3Ani4DofT6DofMap13endBySparsityEv(ptr dead_on_unwind noalias writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Ani12BaseFemSpace24interpolateOnDOF_mem_reqEij(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZN3Ani4DofT18DofSparsedIteratorppEv(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN3Ani4DofT13DimToGeomTypeEi(i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN3Ani4DofT11GeomTypeDimEh(i8 noundef zeroext) #4

declare void @_Z27segment_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.SegmentQuadFormula) align 8, i32 noundef) #3

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

declare void @_Z28triangle_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.TriangleQuadFormula) align 8, i32 noundef) #3

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

declare void @_Z31tetrahedron_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.TetraQuadFormula) align 8, i32 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani8GenSpaceILi1ELi1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani12BaseFemSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi1ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi4ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr, i64) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTSN3Ani4DofT10LocalOrderE", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !15, i64 24}
!17 = !{!"_ZTSN3Ani12PlainMemoryXIdiEE", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!18 = !{!17, !15, i64 32}
!19 = !{!17, !15, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSSt16initializer_listImE", !6, i64 0, !15, i64 8}
!24 = !{!23, !15, i64 8}


; 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::ApplyOpFromSpaceView" = type { %"struct.Ani::ApplyOpBase", ptr, i32, i32, i32, i32 }
%"struct.Ani::ApplyOpBase" = type { ptr }
%"struct.Ani::PlainMemoryX" = type { ptr, ptr, ptr, i64, i64, i64 }
%"struct.Ani::DofT::TetGeomSparsity" = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x i8] }
%"struct.Ani::DofT::DofSparsedIterator" = type <{ %"struct.Ani::DofT::TetGeomSparsity", %"struct.Ani::DofT::LocalOrder", ptr, i8, [7 x i8] }>
%"struct.Ani::DofT::LocalOrder" = type { i32, i32, i8, i8, i8, i8 }
%struct.SegmentQuadFormula = type { i32, %"struct.std::array.2", ptr, ptr }
%"struct.std::array.2" = type { [2 x i32] }
%struct.TriangleQuadFormula = type { i32, %"struct.std::array.3", ptr, ptr }
%"struct.std::array.3" = type { [3 x i32] }
%struct.TetraQuadFormula = type { i32, %"struct.std::array.4", ptr, ptr }
%"struct.std::array.4" = type { [5 x i32] }
%"struct.Ani::GenSpace" = type { %"struct.Ani::FemTraitsT" }
%"struct.Ani::FemTraitsT" = type { %"struct.Ani::FemTraits" }
%"struct.Ani::FemTraits" = type { %"struct.Ani::UniteFemSpace" }
%"struct.Ani::UniteFemSpace" = type { %"struct.Ani::BaseFemSpace" }
%"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 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Ani12BaseFemSpace5getOPENS_12OperatorTypeE(ptr dead_on_unwind noalias writable sret(%"struct.Ani::ApplyOpFromSpaceView") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani12BaseFemSpace27interpolateOnRegion_mem_reqEhj(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i8 noundef zeroext %2, i32 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.Ani::DofT::TetGeomSparsity", align 1
  %6 = alloca %"struct.Ani::DofT::DofSparsedIterator", align 8
  %7 = alloca %"struct.Ani::DofT::DofSparsedIterator", align 8
  %8 = alloca %"struct.Ani::PlainMemoryX", align 8
  %9 = alloca %struct.SegmentQuadFormula, align 8
  %10 = alloca %struct.TriangleQuadFormula, align 8
  %11 = alloca %struct.TetraQuadFormula, align 8
  %12 = alloca %"struct.Ani::ApplyOpFromSpaceView", align 8
  %13 = alloca %"struct.Ani::ApplyOpFromSpaceView", align 8
  %14 = alloca %"struct.Ani::GenSpace", align 8
  %15 = alloca %"struct.Ani::PlainMemoryX", align 8
  %16 = alloca %"struct.Ani::PlainMemoryX", align 8
  %17 = alloca [3 x i64], align 8
  %18 = alloca [3 x i64], align 8
  %19 = alloca [2 x i64], align 8
  %20 = icmp eq i8 %2, 1
  br i1 %20, label %21, label %42

21:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @_ZN3Ani4DofT15TetGeomSparsityC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %5) #6
  %22 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity7setNodeEi(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef 0)
  call void @_ZN3Ani12PlainMemoryXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZNK3Ani4DofT6DofMap15beginBySparsityERKNS0_15TetGeomSparsityEb(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 1 dereferenceable(4) %5, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNK3Ani4DofT6DofMap13endBySparsityEv(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %24 = call noundef zeroext i1 @_ZNK3Ani4DofT18DofSparsedIteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = getelementptr inbounds i8, ptr %8, i64 24
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = getelementptr inbounds i8, ptr %8, i64 32
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = getelementptr inbounds i8, ptr %8, i64 40
  br label %31

._crit_edge:                                      ; preds = %31, %21
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %94

31:                                               ; preds = %.lr.ph, %31
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  %32 = call noundef ptr @_ZNK3Ani4DofT18DofSparsedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  %33 = load i32, ptr %32, align 4, !tbaa !5
  call void @_ZNK3Ani12BaseFemSpace24interpolateOnDOF_mem_reqEij(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::PlainMemoryX") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %33, i32 noundef %3)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %35 = load i64, ptr %34, align 8, !tbaa !10
  store i64 %35, ptr %25, align 8, !tbaa !12
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %37 = load i64, ptr %36, align 8, !tbaa !10
  store i64 %37, ptr %27, align 8, !tbaa !15
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %39 = load i64, ptr %38, align 8, !tbaa !10
  store i64 %39, ptr %29, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  %40 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZN3Ani4DofT18DofSparsedIteratorppEv(ptr noundef nonnull align 8 dereferenceable(25) %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNK3Ani4DofT6DofMap13endBySparsityEv(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %41 = call noundef zeroext i1 @_ZNK3Ani4DofT18DofSparsedIteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br i1 %41, label %31, label %._crit_edge, !llvm.loop !17

42:                                               ; preds = %4
  %43 = getelementptr inbounds i8, ptr %1, i64 8
  %44 = tail call noundef i32 @_ZNK3Ani4DofT6DofMap11NumDofOnTetEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %45 = tail call noundef i32 @_ZN3Ani4DofT11GeomTypeDimEh(i8 noundef zeroext %2)
  %46 = tail call noundef zeroext i8 @_ZN3Ani4DofT13DimToGeomTypeEi(i32 noundef %45)
  switch i8 %46, label %53 [
    i8 6, label %47
    i8 24, label %49
    i8 32, label %51
  ]

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @_Z27segment_quadrature_formulasi(ptr dead_on_unwind nonnull writable sret(%struct.SegmentQuadFormula) align 8 %9, i32 noundef %3)
  %48 = call noundef i32 @_ZNK18SegmentQuadFormula12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %53

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @_Z28triangle_quadrature_formulasi(ptr dead_on_unwind nonnull writable sret(%struct.TriangleQuadFormula) align 8 %10, i32 noundef %3)
  %50 = call noundef i32 @_ZNK19TriangleQuadFormula12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %53

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  call void @_Z31tetrahedron_quadrature_formulasi(ptr dead_on_unwind nonnull writable sret(%struct.TetraQuadFormula) align 8 %11, i32 noundef %3)
  %52 = call noundef i32 @_ZNK16TetraQuadFormula12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  br label %53

53:                                               ; preds = %42, %51, %49, %47
  %.0 = phi i32 [ 0, %42 ], [ %52, %51 ], [ %50, %49 ], [ %48, %47 ]
  call void @_ZN3Ani12PlainMemoryXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  %54 = add i32 %44, 1
  %55 = mul i32 %54, %44
  %56 = mul i32 %.0, 5
  %57 = add i32 %56, %55
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %0, i64 24
  %60 = load i64, ptr %59, align 8, !tbaa !12
  %61 = add i64 %60, %58
  store i64 %61, ptr %59, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @_ZNK3Ani12BaseFemSpace5getOPENS_12OperatorTypeE(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::ApplyOpFromSpaceView") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @_ZN3Ani8GenSpaceILi1ELi1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14)
  invoke void @_ZNK3Ani12BaseFemSpace5getOPENS_12OperatorTypeE(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::ApplyOpFromSpaceView") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1)
          to label %62 unwind label %92

62:                                               ; preds = %53
  call void @_ZN3Ani12BaseFemSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #6
  call void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi1ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::PlainMemoryX") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %.0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %16) #6
  call void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi4ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::PlainMemoryX") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %.0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  %63 = getelementptr inbounds i8, ptr %15, i64 24
  %64 = load i64, ptr %63, align 8, !tbaa !12
  store i64 %64, ptr %17, align 8, !tbaa !10
  %65 = getelementptr inbounds i8, ptr %17, i64 8
  %66 = getelementptr inbounds i8, ptr %16, i64 24
  %67 = load i64, ptr %66, align 8, !tbaa !12
  store i64 %67, ptr %65, align 8, !tbaa !10
  %68 = getelementptr inbounds i8, ptr %17, i64 16
  %69 = lshr i32 %55, 1
  %70 = zext nneg i32 %69 to i64
  store i64 %70, ptr %68, align 8, !tbaa !10
  %71 = call noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr nonnull %17, i64 3)
  %72 = load i64, ptr %59, align 8, !tbaa !12
  %73 = add i64 %72, %71
  store i64 %73, ptr %59, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  %74 = getelementptr inbounds i8, ptr %15, i64 32
  %75 = load i64, ptr %74, align 8, !tbaa !15
  store i64 %75, ptr %18, align 8, !tbaa !10
  %76 = getelementptr inbounds i8, ptr %18, i64 8
  %77 = getelementptr inbounds i8, ptr %16, i64 32
  %78 = load i64, ptr %77, align 8, !tbaa !15
  store i64 %78, ptr %76, align 8, !tbaa !10
  %79 = getelementptr inbounds i8, ptr %18, i64 16
  %80 = zext i32 %44 to i64
  store i64 %80, ptr %79, align 8, !tbaa !10
  %81 = call noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr nonnull %18, i64 3)
  %82 = getelementptr inbounds i8, ptr %0, i64 32
  %83 = load i64, ptr %82, align 8, !tbaa !15
  %84 = add i64 %83, %81
  store i64 %84, ptr %82, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %85 = getelementptr inbounds i8, ptr %15, i64 40
  %86 = load i64, ptr %85, align 8, !tbaa !16
  store i64 %86, ptr %19, align 8, !tbaa !10
  %87 = getelementptr inbounds i8, ptr %19, i64 8
  %88 = getelementptr inbounds i8, ptr %16, i64 40
  %89 = load i64, ptr %88, align 8, !tbaa !16
  store i64 %89, ptr %87, align 8, !tbaa !10
  %90 = call noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr nonnull %19, i64 2)
  %91 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %90, ptr %91, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %94

92:                                               ; preds = %53
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3Ani12BaseFemSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  resume { ptr, i32 } %93

94:                                               ; preds = %62, %._crit_edge
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT15TetGeomSparsityC2Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #2 align 2

declare noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity7setNodeEi(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani12PlainMemoryXIdiEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3Ani4DofT6DofMap15beginBySparsityERKNS0_15TetGeomSparsityEb(ptr dead_on_unwind noalias writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT18DofSparsedIteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3Ani4DofT6DofMap13endBySparsityEv(ptr dead_on_unwind noalias writable sret(%"struct.Ani::DofT::DofSparsedIterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Ani12BaseFemSpace24interpolateOnDOF_mem_reqEij(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN3Ani4DofT13DimToGeomTypeEi(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN3Ani4DofT11GeomTypeDimEh(i8 noundef zeroext) local_unnamed_addr #4

declare void @_Z27segment_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.SegmentQuadFormula) align 8, i32 noundef) local_unnamed_addr #3

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

declare void @_Z28triangle_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.TriangleQuadFormula) align 8, i32 noundef) local_unnamed_addr #3

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

declare void @_Z31tetrahedron_quadrature_formulasi(ptr dead_on_unwind writable sret(%struct.TetraQuadFormula) align 8, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani8GenSpaceILi1ELi1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani12BaseFemSpaceD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi1ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Ani29fem3DpntL_memory_requirementsINS_17DfuncTraitsCommonILi4ELb0ELln1ELln1ELi0EEEEENS_12PlainMemoryXIdiEERKNS_11ApplyOpBaseES7_ii(ptr dead_on_unwind noalias writable sret(%"struct.Ani::PlainMemoryX") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3maxImET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3Ani4DofT10LocalOrderE", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !11, i64 24}
!13 = !{!"_ZTSN3Ani12PlainMemoryXIdiEE", !14, i64 0, !14, i64 8, !14, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!13, !11, i64 32}
!16 = !{!13, !11, i64 40}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass