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

; 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::DofT::LocalOrder" = type { i32, i32, i8, i8, i8, i8 }
%"struct.Ani::DofT::TetGeomSparsity" = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x i8] }
%"struct.Ani::DofT::LocGeomOrder" = type <{ i32, i8, i8, [2 x i8] }>
%"struct.std::pair.4" = type <{ i32, %"struct.Ani::DofT::LocSymOrder", [2 x i8] }>
%"struct.Ani::DofT::LocSymOrder" = type { i8, i8 }
%"struct.Ani::DofT::TetGeomSparsity::Pos" = type { i8, i8 }
%"struct.Ani::DofT::ComplexDofMap" = type { %"struct.Ani::DofT::BaseDofMap", %"class.std::vector", %"struct.std::array.8", %"struct.std::array.8", %"class.std::vector.9" }
%"struct.Ani::DofT::BaseDofMap" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::DofT::BaseDofMap>, std::allocator<std::shared_ptr<Ani::DofT::BaseDofMap>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array.8" = type { [6 x %"class.std::vector.9"] }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3Ani4DofT13ComplexDofMap23IncrementByGeomSparsityERKNS0_15TetGeomSparsityERNS0_10LocalOrderEb = external hidden unnamed_addr constant [114 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

; 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 noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity3setEhib(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i32 noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEhib(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i32 noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT15TetGeomSparsity3PosC2Ehh(ptr noundef nonnull align 1 dereferenceable(2), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i16 @_ZNK3Ani4DofT15TetGeomSparsity7nextPosENS1_3PosE(ptr noundef nonnull align 1 dereferenceable(4), i16) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_10LocalOrderEb(ptr noundef nonnull align 8 dereferenceable(8), i64, i32, i1 noundef zeroext) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEh(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144), i64 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani4DofT13ComplexDofMap23IncrementByGeomSparsityERKNS0_15TetGeomSparsityERNS0_10LocalOrderEb(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 1 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i1 noundef zeroext %3) unnamed_addr #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %10 = alloca { i64, i32 }, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %14 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %15 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %18 = alloca %"struct.Ani::DofT::TetGeomSparsity", align 1
  %19 = alloca i32, align 4
  %20 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %21 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %22 = alloca %"struct.Ani::DofT::LocGeomOrder", align 4
  %23 = alloca %"struct.std::pair.4", align 4
  %24 = alloca %"struct.Ani::DofT::LocGeomOrder", align 4
  %25 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %26 = alloca %"struct.Ani::DofT::TetGeomSparsity::Pos", align 1
  %27 = alloca %"struct.Ani::DofT::TetGeomSparsity::Pos", align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %30 = zext i1 %3 to i8
  store i8 %30, ptr %8, align 1, !tbaa !9
  %31 = load ptr, ptr %5, align 8
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %9, i64 12, i1 false)
  %33 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 0
  %34 = load i64, ptr %33, align 4
  %35 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 1
  %36 = load i32, ptr %35, align 4
  %37 = call noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_10LocalOrderEb(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 %34, i32 %36, i1 noundef zeroext false)
  br i1 %37, label %38, label %39

38:                                               ; preds = %4
  br label %39

39:                                               ; preds = %38, %4
  %40 = phi i1 [ false, %4 ], [ true, %38 ]
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  br label %44

42:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 725, ptr noundef @__PRETTY_FUNCTION__._ZNK3Ani4DofT13ComplexDofMap23IncrementByGeomSparsityERKNS0_15TetGeomSparsityERNS0_10LocalOrderEb) #7
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %45, i32 0, i32 2
  %47 = load i8, ptr %46, align 4, !tbaa !15
  %48 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %47)
  store i32 %48, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %49 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %50 = load i32, ptr %11, align 4, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %49, i64 noundef %51) #8
  %53 = call noundef ptr @_ZNKSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #8
  %54 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %55 = load i32, ptr %11, align 4, !tbaa !12
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %54, i64 noundef %56) #8
  %58 = call noundef ptr @_ZNKSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #8
  %59 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %60 = load i32, ptr %11, align 4, !tbaa !12
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %59, i64 noundef %61) #8
  %63 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  %64 = getelementptr inbounds i32, ptr %58, i64 %63
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %65, i32 0, i32 1
  %67 = call noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef %53, ptr noundef %64, ptr noundef nonnull align 4 dereferenceable(4) %66)
  %68 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %69 = load i32, ptr %11, align 4, !tbaa !12
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %68, i64 noundef %70) #8
  %72 = call noundef ptr @_ZNKSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  %73 = ptrtoint ptr %67 to i64
  %74 = ptrtoint ptr %72 to i64
  %75 = sub i64 %73, %74
  %76 = sdiv exact i64 %75, 4
  %77 = sub nsw i64 %76, 1
  %78 = trunc i64 %77 to i32
  store i32 %78, ptr %12, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !17
  %82 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 4
  %83 = load i32, ptr %12, align 4, !tbaa !12
  %84 = zext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #8
  %86 = load i32, ptr %85, align 4, !tbaa !12
  %87 = sub i32 %81, %86
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %88, i32 0, i32 2
  %90 = load i8, ptr %89, align 4, !tbaa !15
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %91, i32 0, i32 3
  %93 = load i8, ptr %92, align 1, !tbaa !18
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !19
  %97 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %98 = load i32, ptr %11, align 4, !tbaa !12
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %97, i64 noundef %99) #8
  %101 = load i32, ptr %12, align 4, !tbaa !12
  %102 = zext i32 %101 to i64
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #8
  %104 = load i32, ptr %103, align 4, !tbaa !12
  %105 = sub i32 %96, %104
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %106, i32 0, i32 4
  %108 = load i8, ptr %107, align 2, !tbaa !20
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %109, i32 0, i32 5
  %111 = load i8, ptr %110, align 1, !tbaa !21
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef %87, i8 noundef zeroext %90, i8 noundef zeroext %93, i32 noundef %105, i8 noundef zeroext %108, i8 noundef zeroext %111)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  call void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %14)
  %112 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %113 = load i32, ptr %12, align 4, !tbaa !12
  %114 = zext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #8
  %116 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %115) #8
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = getelementptr inbounds ptr, ptr %117, i64 20
  %119 = load ptr, ptr %118, align 8
  call void %119(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %120 = load i8, ptr %8, align 1, !tbaa !9, !range !24, !noundef !25
  %121 = trunc i8 %120 to i1
  br i1 %121, label %254, label %122

122:                                              ; preds = %44
  %123 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %124 = load i32, ptr %12, align 4, !tbaa !12
  %125 = zext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %125) #8
  %127 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %126) #8
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = load i8, ptr %8, align 1, !tbaa !9, !range !24, !noundef !25
  %130 = trunc i8 %129 to i1
  %131 = load ptr, ptr %127, align 8, !tbaa !22
  %132 = getelementptr inbounds ptr, ptr %131, i64 21
  %133 = load ptr, ptr %132, align 8
  call void %133(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 1 dereferenceable(4) %128, ptr noundef nonnull align 4 dereferenceable(12) %13, i1 noundef zeroext %130)
  %134 = call noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14)
  br i1 %134, label %135, label %177

135:                                              ; preds = %122
  %136 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %137 = load i8, ptr %136, align 4, !tbaa !15
  %138 = zext i8 %137 to i32
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %139, i32 0, i32 2
  %141 = load i8, ptr %140, align 4, !tbaa !15
  %142 = zext i8 %141 to i32
  %143 = icmp ne i32 %138, %142
  br i1 %143, label %144, label %148

144:                                              ; preds = %135
  %145 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %146 = load i8, ptr %145, align 4, !tbaa !15
  %147 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %146)
  store i32 %147, ptr %11, align 4, !tbaa !12
  br label %148

148:                                              ; preds = %144, %135
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  %149 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 0
  %150 = load i32, ptr %149, align 4, !tbaa !17
  %151 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 4
  %152 = load i32, ptr %12, align 4, !tbaa !12
  %153 = zext i32 %152 to i64
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %153) #8
  %155 = load i32, ptr %154, align 4, !tbaa !12
  %156 = add i32 %150, %155
  %157 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %158 = load i8, ptr %157, align 4, !tbaa !15
  %159 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 3
  %160 = load i8, ptr %159, align 1, !tbaa !18
  %161 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !19
  %163 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %164 = load i32, ptr %11, align 4, !tbaa !12
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %163, i64 noundef %165) #8
  %167 = load i32, ptr %12, align 4, !tbaa !12
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #8
  %170 = load i32, ptr %169, align 4, !tbaa !12
  %171 = add i32 %162, %170
  %172 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 4
  %173 = load i8, ptr %172, align 2, !tbaa !20
  %174 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 5
  %175 = load i8, ptr %174, align 1, !tbaa !21
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef %156, i8 noundef zeroext %158, i8 noundef zeroext %160, i32 noundef %171, i8 noundef zeroext %173, i8 noundef zeroext %175)
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %176, ptr align 4 %15, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  store i32 1, ptr %16, align 4
  br label %458

177:                                              ; preds = %122
  %178 = load i32, ptr %12, align 4, !tbaa !12
  %179 = add i32 %178, 1
  store i32 %179, ptr %12, align 4, !tbaa !12
  %180 = load i32, ptr %12, align 4, !tbaa !12
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %183 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #8
  %184 = icmp ne i64 %181, %183
  br i1 %184, label %185, label %249

185:                                              ; preds = %177
  %186 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %187 = load i32, ptr %12, align 4, !tbaa !12
  %188 = zext i32 %187 to i64
  %189 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #8
  %190 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %189) #8
  %191 = load ptr, ptr %190, align 8, !tbaa !22
  %192 = getelementptr inbounds ptr, ptr %191, i64 20
  %193 = load ptr, ptr %192, align 8
  call void %193(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %194 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %195 = load i32, ptr %12, align 4, !tbaa !12
  %196 = zext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #8
  %198 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %197) #8
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = load i8, ptr %8, align 1, !tbaa !9, !range !24, !noundef !25
  %201 = trunc i8 %200 to i1
  %202 = load ptr, ptr %198, align 8, !tbaa !22
  %203 = getelementptr inbounds ptr, ptr %202, i64 19
  %204 = load ptr, ptr %203, align 8
  call void %204(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull align 1 dereferenceable(4) %199, ptr noundef nonnull align 4 dereferenceable(12) %13, i1 noundef zeroext %201)
  %205 = call noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14)
  br i1 %205, label %206, label %248

206:                                              ; preds = %185
  %207 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %208 = load i8, ptr %207, align 4, !tbaa !15
  %209 = zext i8 %208 to i32
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %210, i32 0, i32 2
  %212 = load i8, ptr %211, align 4, !tbaa !15
  %213 = zext i8 %212 to i32
  %214 = icmp ne i32 %209, %213
  br i1 %214, label %215, label %219

215:                                              ; preds = %206
  %216 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %217 = load i8, ptr %216, align 4, !tbaa !15
  %218 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %217)
  store i32 %218, ptr %11, align 4, !tbaa !12
  br label %219

219:                                              ; preds = %215, %206
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  %220 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 0
  %221 = load i32, ptr %220, align 4, !tbaa !17
  %222 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 4
  %223 = load i32, ptr %12, align 4, !tbaa !12
  %224 = zext i32 %223 to i64
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %224) #8
  %226 = load i32, ptr %225, align 4, !tbaa !12
  %227 = add i32 %221, %226
  %228 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %229 = load i8, ptr %228, align 4, !tbaa !15
  %230 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 3
  %231 = load i8, ptr %230, align 1, !tbaa !18
  %232 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !19
  %234 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %235 = load i32, ptr %11, align 4, !tbaa !12
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %234, i64 noundef %236) #8
  %238 = load i32, ptr %12, align 4, !tbaa !12
  %239 = zext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #8
  %241 = load i32, ptr %240, align 4, !tbaa !12
  %242 = add i32 %233, %241
  %243 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 4
  %244 = load i8, ptr %243, align 2, !tbaa !20
  %245 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 5
  %246 = load i8, ptr %245, align 1, !tbaa !21
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef %227, i8 noundef zeroext %229, i8 noundef zeroext %231, i32 noundef %242, i8 noundef zeroext %244, i8 noundef zeroext %246)
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %247, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  store i32 1, ptr %16, align 4
  br label %458

248:                                              ; preds = %185
  br label %249

249:                                              ; preds = %248, %177
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = load ptr, ptr %31, align 8, !tbaa !22
  %252 = getelementptr inbounds ptr, ptr %251, i64 20
  %253 = load ptr, ptr %252, align 8
  call void %253(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(12) %250)
  store i32 1, ptr %16, align 4
  br label %458

254:                                              ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @_ZN3Ani4DofT15TetGeomSparsityC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %255, i32 0, i32 2
  %257 = load i8, ptr %256, align 4, !tbaa !15
  %258 = call noundef i32 @_ZN3Ani4DofT11GeomTypeDimEh(i8 noundef zeroext %257)
  store i32 %258, ptr %19, align 4, !tbaa !12
  %259 = load i32, ptr %19, align 4, !tbaa !12
  %260 = trunc i32 %259 to i8
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %261, i32 0, i32 3
  %263 = load i8, ptr %262, align 1, !tbaa !18
  %264 = zext i8 %263 to i32
  %265 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity3setEhib(ptr noundef nonnull align 1 dereferenceable(4) %18, i8 noundef zeroext %260, i32 noundef %264, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !11
  %266 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %267 = load i32, ptr %12, align 4, !tbaa !12
  %268 = zext i32 %267 to i64
  %269 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %268) #8
  %270 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %269) #8
  %271 = load i8, ptr %8, align 1, !tbaa !9, !range !24, !noundef !25
  %272 = trunc i8 %271 to i1
  %273 = load ptr, ptr %270, align 8, !tbaa !22
  %274 = getelementptr inbounds ptr, ptr %273, i64 21
  %275 = load ptr, ptr %274, align 8
  call void %275(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef nonnull align 1 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(12) %20, i1 noundef zeroext %272)
  %276 = call noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %14)
  br i1 %276, label %277, label %319

277:                                              ; preds = %254
  %278 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 2
  %279 = load i8, ptr %278, align 4, !tbaa !15
  %280 = zext i8 %279 to i32
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %281, i32 0, i32 2
  %283 = load i8, ptr %282, align 4, !tbaa !15
  %284 = zext i8 %283 to i32
  %285 = icmp ne i32 %280, %284
  br i1 %285, label %286, label %290

286:                                              ; preds = %277
  %287 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 2
  %288 = load i8, ptr %287, align 4, !tbaa !15
  %289 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %288)
  store i32 %289, ptr %11, align 4, !tbaa !12
  br label %290

290:                                              ; preds = %286, %277
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  %291 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 0
  %292 = load i32, ptr %291, align 4, !tbaa !17
  %293 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 4
  %294 = load i32, ptr %12, align 4, !tbaa !12
  %295 = zext i32 %294 to i64
  %296 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %293, i64 noundef %295) #8
  %297 = load i32, ptr %296, align 4, !tbaa !12
  %298 = add i32 %292, %297
  %299 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 2
  %300 = load i8, ptr %299, align 4, !tbaa !15
  %301 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 3
  %302 = load i8, ptr %301, align 1, !tbaa !18
  %303 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 1
  %304 = load i32, ptr %303, align 4, !tbaa !19
  %305 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %306 = load i32, ptr %11, align 4, !tbaa !12
  %307 = sext i32 %306 to i64
  %308 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %305, i64 noundef %307) #8
  %309 = load i32, ptr %12, align 4, !tbaa !12
  %310 = zext i32 %309 to i64
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %308, i64 noundef %310) #8
  %312 = load i32, ptr %311, align 4, !tbaa !12
  %313 = add i32 %304, %312
  %314 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 4
  %315 = load i8, ptr %314, align 2, !tbaa !20
  %316 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %20, i32 0, i32 5
  %317 = load i8, ptr %316, align 1, !tbaa !21
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %298, i8 noundef zeroext %300, i8 noundef zeroext %302, i32 noundef %313, i8 noundef zeroext %315, i8 noundef zeroext %317)
  %318 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %318, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  store i32 1, ptr %16, align 4
  br label %457

319:                                              ; preds = %254
  br label %320

320:                                              ; preds = %342, %319
  %321 = load i32, ptr %12, align 4, !tbaa !12
  %322 = add i32 %321, 1
  store i32 %322, ptr %12, align 4, !tbaa !12
  br label %323

323:                                              ; preds = %320
  %324 = load i32, ptr %12, align 4, !tbaa !12
  %325 = zext i32 %324 to i64
  %326 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %327 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %326) #8
  %328 = icmp ult i64 %325, %327
  br i1 %328, label %329, label %342

329:                                              ; preds = %323
  %330 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %331 = load i32, ptr %12, align 4, !tbaa !12
  %332 = zext i32 %331 to i64
  %333 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %330, i64 noundef %332) #8
  %334 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %333) #8
  %335 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %336 = load i8, ptr %335, align 4, !tbaa !15
  %337 = load ptr, ptr %334, align 8, !tbaa !22
  %338 = getelementptr inbounds ptr, ptr %337, i64 11
  %339 = load ptr, ptr %338, align 8
  %340 = call noundef zeroext i1 %339(ptr noundef nonnull align 8 dereferenceable(8) %334, i8 noundef zeroext %336)
  %341 = xor i1 %340, true
  br label %342

342:                                              ; preds = %329, %323
  %343 = phi i1 [ false, %323 ], [ %341, %329 ]
  br i1 %343, label %320, label %344, !llvm.loop !26

344:                                              ; preds = %342
  %345 = load i32, ptr %12, align 4, !tbaa !12
  %346 = zext i32 %345 to i64
  %347 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %348 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %347) #8
  %349 = icmp ne i64 %346, %348
  br i1 %349, label %350, label %402

350:                                              ; preds = %344
  %351 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 1
  store i32 0, ptr %351, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %352 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %353 = load i8, ptr %352, align 4, !tbaa !15
  %354 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 3
  %355 = load i8, ptr %354, align 1, !tbaa !18
  %356 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 1
  %357 = load i32, ptr %356, align 4, !tbaa !19
  call void @_ZN3Ani4DofT12LocGeomOrderC2Ehhj(ptr noundef nonnull align 4 dereferenceable(6) %22, i8 noundef zeroext %353, i8 noundef zeroext %355, i32 noundef %357)
  %358 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %359 = load i8, ptr %358, align 4, !tbaa !15
  %360 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %359)
  store i32 %360, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %361 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 1
  %362 = load i32, ptr %12, align 4, !tbaa !12
  %363 = zext i32 %362 to i64
  %364 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %361, i64 noundef %363) #8
  %365 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %364) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !28
  %366 = load i64, ptr %24, align 4
  %367 = load ptr, ptr %365, align 8, !tbaa !22
  %368 = getelementptr inbounds ptr, ptr %367, i64 10
  %369 = load ptr, ptr %368, align 8
  %370 = call i64 %369(ptr noundef nonnull align 8 dereferenceable(8) %365, i64 %366)
  %371 = trunc i64 %370 to i48
  store i48 %371, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #8
  %372 = getelementptr inbounds %"struct.std::pair.4", ptr %23, i32 0, i32 0
  %373 = load i32, ptr %372, align 4, !tbaa !29
  %374 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 4
  %375 = load i32, ptr %12, align 4, !tbaa !12
  %376 = zext i32 %375 to i64
  %377 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %374, i64 noundef %376) #8
  %378 = load i32, ptr %377, align 4, !tbaa !12
  %379 = add i32 %373, %378
  %380 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 2
  %381 = load i8, ptr %380, align 4, !tbaa !15
  %382 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 3
  %383 = load i8, ptr %382, align 1, !tbaa !18
  %384 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %13, i32 0, i32 1
  %385 = load i32, ptr %384, align 4, !tbaa !19
  %386 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %31, i32 0, i32 3
  %387 = load i32, ptr %11, align 4, !tbaa !12
  %388 = sext i32 %387 to i64
  %389 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %386, i64 noundef %388) #8
  %390 = load i32, ptr %12, align 4, !tbaa !12
  %391 = zext i32 %390 to i64
  %392 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %389, i64 noundef %391) #8
  %393 = load i32, ptr %392, align 4, !tbaa !12
  %394 = add i32 %385, %393
  %395 = getelementptr inbounds %"struct.std::pair.4", ptr %23, i32 0, i32 1
  %396 = getelementptr inbounds %"struct.Ani::DofT::LocSymOrder", ptr %395, i32 0, i32 0
  %397 = load i8, ptr %396, align 4, !tbaa !32
  %398 = getelementptr inbounds %"struct.std::pair.4", ptr %23, i32 0, i32 1
  %399 = getelementptr inbounds %"struct.Ani::DofT::LocSymOrder", ptr %398, i32 0, i32 1
  %400 = load i8, ptr %399, align 1, !tbaa !33
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 noundef %379, i8 noundef zeroext %381, i8 noundef zeroext %383, i32 noundef %394, i8 noundef zeroext %397, i8 noundef zeroext %400)
  %401 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %401, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %457

402:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #8
  %403 = load ptr, ptr %6, align 8, !tbaa !5
  %404 = load i32, ptr %19, align 4, !tbaa !12
  %405 = trunc i32 %404 to i8
  %406 = load ptr, ptr %7, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.Ani::DofT::LocalOrder", ptr %406, i32 0, i32 3
  %408 = load i8, ptr %407, align 1, !tbaa !18
  call void @_ZN3Ani4DofT15TetGeomSparsity3PosC2Ehh(ptr noundef nonnull align 1 dereferenceable(2) %27, i8 noundef zeroext %405, i8 noundef zeroext %408)
  %409 = load i16, ptr %27, align 1
  %410 = call i16 @_ZNK3Ani4DofT15TetGeomSparsity7nextPosENS1_3PosE(ptr noundef nonnull align 1 dereferenceable(4) %403, i16 %409)
  store i16 %410, ptr %26, align 1
  %411 = call noundef zeroext i1 @_ZN3Ani4DofT15TetGeomSparsity3Pos7isValidEv(ptr noundef nonnull align 1 dereferenceable(2) %26)
  br i1 %411, label %417, label %412

412:                                              ; preds = %402
  %413 = load ptr, ptr %7, align 8, !tbaa !5
  %414 = load ptr, ptr %31, align 8, !tbaa !22
  %415 = getelementptr inbounds ptr, ptr %414, i64 20
  %416 = load ptr, ptr %415, align 8
  call void %416(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(12) %413)
  store i32 1, ptr %16, align 4
  br label %456

417:                                              ; preds = %402
  %418 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 %418, i64 4, i1 false), !tbaa.struct !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !12
  br label %419

419:                                              ; preds = %430, %417
  %420 = load i32, ptr %28, align 4, !tbaa !12
  %421 = getelementptr inbounds %"struct.Ani::DofT::TetGeomSparsity::Pos", ptr %26, i32 0, i32 0
  %422 = load i8, ptr %421, align 1, !tbaa !35
  %423 = zext i8 %422 to i32
  %424 = icmp slt i32 %420, %423
  br i1 %424, label %426, label %425

425:                                              ; preds = %419
  store i32 4, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %433

426:                                              ; preds = %419
  %427 = load i32, ptr %28, align 4, !tbaa !12
  %428 = trunc i32 %427 to i8
  %429 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEh(ptr noundef nonnull align 1 dereferenceable(4) %18, i8 noundef zeroext %428)
  br label %430

430:                                              ; preds = %426
  %431 = load i32, ptr %28, align 4, !tbaa !12
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %28, align 4, !tbaa !12
  br label %419, !llvm.loop !37

433:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !12
  br label %434

434:                                              ; preds = %446, %433
  %435 = load i32, ptr %29, align 4, !tbaa !12
  %436 = getelementptr inbounds %"struct.Ani::DofT::TetGeomSparsity::Pos", ptr %26, i32 0, i32 1
  %437 = load i8, ptr %436, align 1, !tbaa !38
  %438 = zext i8 %437 to i32
  %439 = icmp slt i32 %435, %438
  br i1 %439, label %441, label %440

440:                                              ; preds = %434
  store i32 7, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %449

441:                                              ; preds = %434
  %442 = getelementptr inbounds %"struct.Ani::DofT::TetGeomSparsity::Pos", ptr %26, i32 0, i32 0
  %443 = load i8, ptr %442, align 1, !tbaa !35
  %444 = load i32, ptr %29, align 4, !tbaa !12
  %445 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEhib(ptr noundef nonnull align 1 dereferenceable(4) %18, i8 noundef zeroext %443, i32 noundef %444, i1 noundef zeroext false)
  br label %446

446:                                              ; preds = %441
  %447 = load i32, ptr %29, align 4, !tbaa !12
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %29, align 4, !tbaa !12
  br label %434, !llvm.loop !39

449:                                              ; preds = %440
  %450 = load ptr, ptr %7, align 8, !tbaa !5
  %451 = load i8, ptr %8, align 1, !tbaa !9, !range !24, !noundef !25
  %452 = trunc i8 %451 to i1
  %453 = load ptr, ptr %31, align 8, !tbaa !22
  %454 = getelementptr inbounds ptr, ptr %453, i64 19
  %455 = load ptr, ptr %454, align 8
  call void %455(ptr noundef nonnull align 8 dereferenceable(344) %31, ptr noundef nonnull align 1 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(12) %450, i1 noundef zeroext %452)
  store i32 1, ptr %16, align 4
  br label %456

456:                                              ; preds = %449, %412
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #8
  br label %457

457:                                              ; preds = %456, %350, %290
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %458

458:                                              ; preds = %457, %249, %219, %148
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { 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 #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 1, !14, i64 9, i64 1, !14, i64 10, i64 1, !14, i64 11, i64 1, !14}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 8}
!16 = !{!"_ZTSN3Ani4DofT10LocalOrderE", !13, i64 0, !13, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11}
!17 = !{!16, !13, i64 0}
!18 = !{!16, !7, i64 9}
!19 = !{!16, !13, i64 4}
!20 = !{!16, !7, i64 10}
!21 = !{!16, !7, i64 11}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{i64 0, i64 4, !12, i64 4, i64 1, !14, i64 5, i64 1, !14}
!29 = !{!30, !13, i64 0}
!30 = !{!"_ZTSSt4pairIjN3Ani4DofT11LocSymOrderEE", !13, i64 0, !31, i64 4}
!31 = !{!"_ZTSN3Ani4DofT11LocSymOrderE", !7, i64 0, !7, i64 1}
!32 = !{!30, !7, i64 4}
!33 = !{!30, !7, i64 5}
!34 = !{i64 0, i64 4, !14}
!35 = !{!36, !7, i64 0}
!36 = !{!"_ZTSN3Ani4DofT15TetGeomSparsity3PosE", !7, i64 0, !7, i64 1}
!37 = distinct !{!37, !27}
!38 = !{!36, !7, i64 1}
!39 = distinct !{!39, !27}


; 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::DofT::LocalOrder" = type { i32, i32, i8, i8, i8, i8 }
%"struct.Ani::DofT::TetGeomSparsity" = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x i8] }
%"struct.Ani::DofT::LocGeomOrder" = type <{ i32, i8, i8, [2 x i8] }>
%"struct.Ani::DofT::TetGeomSparsity::Pos" = type { i8, i8 }

@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3Ani4DofT13ComplexDofMap23IncrementByGeomSparsityERKNS0_15TetGeomSparsityERNS0_10LocalOrderEb = external hidden unnamed_addr constant [114 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 nounwind uwtable
declare dso_local void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

; 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 noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity3setEhib(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEhib(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Ani4DofT15TetGeomSparsity3PosC2Ehh(ptr noundef nonnull align 1 dereferenceable(2), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i16 @_ZNK3Ani4DofT15TetGeomSparsity7nextPosENS1_3PosE(ptr noundef nonnull align 1 dereferenceable(4), i16) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_10LocalOrderEb(ptr noundef nonnull align 8 dereferenceable(8), i64, i32, i1 noundef zeroext) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEh(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani4DofT13ComplexDofMap23IncrementByGeomSparsityERKNS0_15TetGeomSparsityERNS0_10LocalOrderEb(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 1 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i1 noundef zeroext %3) unnamed_addr #3 align 2 {
  %5 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %6 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %7 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %8 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %9 = alloca %"struct.Ani::DofT::TetGeomSparsity", align 4
  %10 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %11 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %12 = alloca %"struct.Ani::DofT::LocGeomOrder", align 8
  %13 = alloca %"struct.Ani::DofT::LocalOrder", align 4
  %14 = alloca %"struct.Ani::DofT::TetGeomSparsity::Pos", align 2
  %15 = alloca %"struct.Ani::DofT::TetGeomSparsity::Pos", align 2
  %.sroa.041.0.copyload = load i64, ptr %2, align 4
  %.sroa.242.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.242.0.copyload = load i32, ptr %.sroa.242.0..sroa_idx, align 4
  %16 = tail call noundef zeroext i1 @_ZNK3Ani4DofT10BaseDofMap12isValidIndexENS0_10LocalOrderEb(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 %.sroa.041.0.copyload, i32 %.sroa.242.0.copyload, i1 noundef zeroext false)
  br i1 %16, label %18, label %17

17:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 725, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3Ani4DofT13ComplexDofMap23IncrementByGeomSparsityERKNS0_15TetGeomSparsityERNS0_10LocalOrderEb) #7
  unreachable

18:                                               ; preds = %4
  %19 = load i8, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %20 = tail call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %19)
  %21 = getelementptr inbounds i8, ptr %0, i64 176
  %22 = sext i32 %20 to i64
  %23 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %22) #8
  %24 = tail call noundef ptr @_ZNKSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %25 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %22) #8
  %26 = tail call noundef ptr @_ZNKSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %27 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %22) #8
  %28 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  %29 = getelementptr inbounds i32, ptr %26, i64 %28
  %30 = getelementptr inbounds i8, ptr %2, i64 4
  %31 = tail call noundef ptr @_ZSt11upper_boundIPKjjET_S2_S2_RKT0_(ptr noundef %24, ptr noundef %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %22) #8
  %33 = tail call noundef ptr @_ZNKSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %34 = ptrtoint ptr %31 to i64
  %35 = ptrtoint ptr %33 to i64
  %36 = sub i64 %34, %35
  %37 = lshr exact i64 %36, 2
  %38 = trunc i64 %37 to i32
  %39 = add i32 %38, -1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #8
  %40 = load i32, ptr %2, align 4, !tbaa !10
  %41 = getelementptr inbounds i8, ptr %0, i64 320
  %42 = zext i32 %39 to i64
  %43 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #8
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = sub i32 %40, %44
  %46 = load i8, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %2, i64 9
  %48 = load i8, ptr %47, align 1, !tbaa !12
  %49 = load i32, ptr %30, align 4, !tbaa !13
  %50 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %22) #8
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %42) #8
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = sub i32 %49, %52
  %54 = getelementptr inbounds i8, ptr %2, i64 10
  %55 = load i8, ptr %54, align 2, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %2, i64 11
  %57 = load i8, ptr %56, align 1, !tbaa !15
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %45, i8 noundef zeroext %46, i8 noundef zeroext %48, i32 noundef %53, i8 noundef zeroext %55, i8 noundef zeroext %57)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN3Ani4DofT10LocalOrderC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %42) #8
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %59) #8
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds i8, ptr %61, i64 160
  %63 = load ptr, ptr %62, align 8
  call void %63(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(12) %6)
  br i1 %3, label %138, label %64

64:                                               ; preds = %18
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %42) #8
  %66 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %65) #8
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = getelementptr inbounds i8, ptr %67, i64 168
  %69 = load ptr, ptr %68, align 8
  call void %69(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 1 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(12) %5, i1 noundef zeroext false)
  %70 = call noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  br i1 %70, label %71, label %95

71:                                               ; preds = %64
  %72 = getelementptr inbounds i8, ptr %5, i64 8
  %73 = load i8, ptr %72, align 4, !tbaa !5
  %74 = load i8, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %.not83 = icmp eq i8 %73, %74
  br i1 %.not83, label %77, label %75

75:                                               ; preds = %71
  %76 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %73)
  %.pre94 = sext i32 %76 to i64
  br label %77

77:                                               ; preds = %75, %71
  %.pre-phi95 = phi i64 [ %.pre94, %75 ], [ %22, %71 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  %78 = load i32, ptr %5, align 4, !tbaa !10
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #8
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = add i32 %80, %78
  %82 = load i8, ptr %72, align 4, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %5, i64 9
  %84 = load i8, ptr %83, align 1, !tbaa !12
  %85 = getelementptr inbounds i8, ptr %5, i64 4
  %86 = load i32, ptr %85, align 4, !tbaa !13
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %.pre-phi95) #8
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %42) #8
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = add i32 %89, %86
  %91 = getelementptr inbounds i8, ptr %5, i64 10
  %92 = load i8, ptr %91, align 2, !tbaa !14
  %93 = getelementptr inbounds i8, ptr %5, i64 11
  %94 = load i8, ptr %93, align 1, !tbaa !15
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef %81, i8 noundef zeroext %82, i8 noundef zeroext %84, i32 noundef %90, i8 noundef zeroext %92, i8 noundef zeroext %94)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  br label %245

95:                                               ; preds = %64
  %96 = and i64 %37, 4294967295
  %97 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  %.not = icmp eq i64 %96, %97
  br i1 %.not, label %134, label %98

98:                                               ; preds = %95
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %96) #8
  %100 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %99) #8
  %101 = load ptr, ptr %100, align 8, !tbaa !16
  %102 = getelementptr inbounds i8, ptr %101, i64 160
  %103 = load ptr, ptr %102, align 8
  call void %103(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %96) #8
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %104) #8
  %106 = load ptr, ptr %105, align 8, !tbaa !16
  %107 = getelementptr inbounds i8, ptr %106, i64 152
  %108 = load ptr, ptr %107, align 8
  call void %108(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull align 1 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(12) %5, i1 noundef zeroext false)
  %109 = call noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  br i1 %109, label %110, label %134

110:                                              ; preds = %98
  %111 = getelementptr inbounds i8, ptr %5, i64 8
  %112 = load i8, ptr %111, align 4, !tbaa !5
  %113 = load i8, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %.not82 = icmp eq i8 %112, %113
  br i1 %.not82, label %116, label %114

114:                                              ; preds = %110
  %115 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %112)
  %.pre96 = sext i32 %115 to i64
  br label %116

116:                                              ; preds = %114, %110
  %.pre-phi97 = phi i64 [ %.pre96, %114 ], [ %22, %110 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  %117 = load i32, ptr %5, align 4, !tbaa !10
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %96) #8
  %119 = load i32, ptr %118, align 4, !tbaa !11
  %120 = add i32 %119, %117
  %121 = load i8, ptr %111, align 4, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %5, i64 9
  %123 = load i8, ptr %122, align 1, !tbaa !12
  %124 = getelementptr inbounds i8, ptr %5, i64 4
  %125 = load i32, ptr %124, align 4, !tbaa !13
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %.pre-phi97) #8
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %96) #8
  %128 = load i32, ptr %127, align 4, !tbaa !11
  %129 = add i32 %128, %125
  %130 = getelementptr inbounds i8, ptr %5, i64 10
  %131 = load i8, ptr %130, align 2, !tbaa !14
  %132 = getelementptr inbounds i8, ptr %5, i64 11
  %133 = load i8, ptr %132, align 1, !tbaa !15
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef %120, i8 noundef zeroext %121, i8 noundef zeroext %123, i32 noundef %129, i8 noundef zeroext %131, i8 noundef zeroext %133)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  br label %245

134:                                              ; preds = %98, %95
  %135 = load ptr, ptr %0, align 8, !tbaa !16
  %136 = getelementptr inbounds i8, ptr %135, i64 160
  %137 = load ptr, ptr %136, align 8
  call void %137(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(12) %2)
  br label %245

138:                                              ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @_ZN3Ani4DofT15TetGeomSparsityC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %9) #8
  %139 = load i8, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %140 = call noundef i32 @_ZN3Ani4DofT11GeomTypeDimEh(i8 noundef zeroext %139)
  %141 = trunc i32 %140 to i8
  %142 = load i8, ptr %47, align 1, !tbaa !12
  %143 = zext i8 %142 to i32
  %144 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity3setEhib(ptr noundef nonnull align 1 dereferenceable(4) %9, i8 noundef zeroext %141, i32 noundef %143, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !18
  %145 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %42) #8
  %146 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %145) #8
  %147 = load ptr, ptr %146, align 8, !tbaa !16
  %148 = getelementptr inbounds i8, ptr %147, i64 168
  %149 = load ptr, ptr %148, align 8
  call void %149(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 1 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(12) %10, i1 noundef zeroext true)
  %150 = call noundef zeroext i1 @_ZNK3Ani4DofT10LocalOrderneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  br i1 %150, label %152, label %.preheader88

.preheader88:                                     ; preds = %138
  %151 = getelementptr inbounds i8, ptr %5, i64 8
  br label %176

152:                                              ; preds = %138
  %153 = getelementptr inbounds i8, ptr %10, i64 8
  %154 = load i8, ptr %153, align 4, !tbaa !5
  %155 = load i8, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %.not87 = icmp eq i8 %154, %155
  br i1 %.not87, label %158, label %156

156:                                              ; preds = %152
  %157 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %154)
  %.pre = sext i32 %157 to i64
  br label %158

158:                                              ; preds = %156, %152
  %.pre-phi = phi i64 [ %.pre, %156 ], [ %22, %152 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  %159 = load i32, ptr %10, align 4, !tbaa !10
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #8
  %161 = load i32, ptr %160, align 4, !tbaa !11
  %162 = add i32 %161, %159
  %163 = load i8, ptr %153, align 4, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %10, i64 9
  %165 = load i8, ptr %164, align 1, !tbaa !12
  %166 = getelementptr inbounds i8, ptr %10, i64 4
  %167 = load i32, ptr %166, align 4, !tbaa !13
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %.pre-phi) #8
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %42) #8
  %170 = load i32, ptr %169, align 4, !tbaa !11
  %171 = add i32 %170, %167
  %172 = getelementptr inbounds i8, ptr %10, i64 10
  %173 = load i8, ptr %172, align 2, !tbaa !14
  %174 = getelementptr inbounds i8, ptr %10, i64 11
  %175 = load i8, ptr %174, align 1, !tbaa !15
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef %162, i8 noundef zeroext %163, i8 noundef zeroext %165, i32 noundef %171, i8 noundef zeroext %173, i8 noundef zeroext %175)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  br label %244

176:                                              ; preds = %.preheader88, %181
  %.076 = phi i32 [ %177, %181 ], [ %39, %.preheader88 ]
  %177 = add i32 %.076, 1
  %178 = zext i32 %177 to i64
  %179 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  %180 = icmp ugt i64 %179, %178
  br i1 %180, label %181, label %.critedge

181:                                              ; preds = %176
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %178) #8
  %183 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %182) #8
  %184 = load i8, ptr %151, align 4, !tbaa !5
  %185 = load ptr, ptr %183, align 8, !tbaa !16
  %186 = getelementptr inbounds i8, ptr %185, i64 88
  %187 = load ptr, ptr %186, align 8
  %188 = call noundef zeroext i1 %187(ptr noundef nonnull align 8 dereferenceable(8) %183, i8 noundef zeroext %184)
  br i1 %188, label %.critedge, label %176, !llvm.loop !20

.critedge:                                        ; preds = %176, %181
  %189 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  %.not84 = icmp eq i64 %189, %178
  br i1 %.not84, label %214, label %190

190:                                              ; preds = %.critedge
  %191 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 0, ptr %191, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %192 = load i8, ptr %151, align 4, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %5, i64 9
  %194 = load i8, ptr %193, align 1, !tbaa !12
  call void @_ZN3Ani4DofT12LocGeomOrderC2Ehhj(ptr noundef nonnull align 4 dereferenceable(6) %12, i8 noundef zeroext %192, i8 noundef zeroext %194, i32 noundef 0)
  %195 = load i8, ptr %151, align 4, !tbaa !5
  %196 = call noundef i32 @_ZN3Ani4DofT13GeomTypeToNumEh(i8 noundef zeroext %195)
  %197 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %178) #8
  %198 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %197) #8
  %.sroa.0.0.copyload = load i64, ptr %12, align 8
  %199 = load ptr, ptr %198, align 8, !tbaa !16
  %200 = getelementptr inbounds i8, ptr %199, i64 80
  %201 = load ptr, ptr %200, align 8
  %202 = call i64 %201(ptr noundef nonnull align 8 dereferenceable(8) %198, i64 %.sroa.0.0.copyload)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #8
  %.sroa.06.0.extract.trunc = trunc i64 %202 to i32
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %178) #8
  %204 = load i32, ptr %203, align 4, !tbaa !11
  %205 = add i32 %204, %.sroa.06.0.extract.trunc
  %206 = load i8, ptr %151, align 4, !tbaa !5
  %207 = load i8, ptr %193, align 1, !tbaa !12
  %208 = load i32, ptr %191, align 4, !tbaa !13
  %209 = sext i32 %196 to i64
  %210 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %21, i64 noundef %209) #8
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %178) #8
  %212 = load i32, ptr %211, align 4, !tbaa !11
  %213 = add i32 %212, %208
  %.sroa.06.4.extract.shift85 = lshr i64 %202, 32
  %.sroa.06.4.extract.trunc = trunc i64 %.sroa.06.4.extract.shift85 to i8
  %.sroa.06.5.extract.shift86 = lshr i64 %202, 40
  %.sroa.06.5.extract.trunc = trunc i64 %.sroa.06.5.extract.shift86 to i8
  call void @_ZN3Ani4DofT10LocalOrderC2Ejhhjhh(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef %205, i8 noundef zeroext %206, i8 noundef zeroext %207, i32 noundef %213, i8 noundef zeroext %.sroa.06.4.extract.trunc, i8 noundef zeroext %.sroa.06.5.extract.trunc)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %244

214:                                              ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %14) #8
  %215 = load i8, ptr %47, align 1, !tbaa !12
  call void @_ZN3Ani4DofT15TetGeomSparsity3PosC2Ehh(ptr noundef nonnull align 1 dereferenceable(2) %15, i8 noundef zeroext %141, i8 noundef zeroext %215)
  %216 = load i16, ptr %15, align 2
  %217 = call i16 @_ZNK3Ani4DofT15TetGeomSparsity7nextPosENS1_3PosE(ptr noundef nonnull align 1 dereferenceable(4) %1, i16 %216)
  store i16 %217, ptr %14, align 2
  %218 = call noundef zeroext i1 @_ZN3Ani4DofT15TetGeomSparsity3Pos7isValidEv(ptr noundef nonnull align 1 dereferenceable(2) %14)
  br i1 %218, label %223, label %219

219:                                              ; preds = %214
  %220 = load ptr, ptr %0, align 8, !tbaa !16
  %221 = getelementptr inbounds i8, ptr %220, i64 160
  %222 = load ptr, ptr %221, align 8
  call void %222(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(12) %2)
  br label %243

223:                                              ; preds = %214
  %224 = load i32, ptr %1, align 1, !tbaa !19
  store i32 %224, ptr %9, align 4, !tbaa !19
  %225 = load i8, ptr %14, align 2, !tbaa !22
  %.not92 = icmp eq i8 %225, 0
  br i1 %.not92, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %223
  %226 = getelementptr inbounds i8, ptr %14, i64 1
  %227 = load i8, ptr %226, align 1, !tbaa !24
  %.not93 = icmp eq i8 %227, 0
  br i1 %.not93, label %._crit_edge, label %.lr.ph91

.lr.ph:                                           ; preds = %223, %.lr.ph
  %.07489 = phi i32 [ %230, %.lr.ph ], [ 0, %223 ]
  %228 = trunc i32 %.07489 to i8
  %229 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEh(ptr noundef nonnull align 1 dereferenceable(4) %9, i8 noundef zeroext %228)
  %230 = add nuw nsw i32 %.07489, 1
  %231 = load i8, ptr %14, align 2, !tbaa !22
  %232 = zext i8 %231 to i32
  %233 = icmp ult i32 %230, %232
  br i1 %233, label %.lr.ph, label %.preheader, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph91, %.preheader
  %234 = load ptr, ptr %0, align 8, !tbaa !16
  %235 = getelementptr inbounds i8, ptr %234, i64 152
  %236 = load ptr, ptr %235, align 8
  call void %236(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 1 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(12) %2, i1 noundef zeroext true)
  br label %243

.lr.ph91:                                         ; preds = %.preheader, %.lr.ph91
  %.090 = phi i32 [ %239, %.lr.ph91 ], [ 0, %.preheader ]
  %237 = load i8, ptr %14, align 2, !tbaa !22
  %238 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN3Ani4DofT15TetGeomSparsity5unsetEhib(ptr noundef nonnull align 1 dereferenceable(4) %9, i8 noundef zeroext %237, i32 noundef %.090, i1 noundef zeroext false)
  %239 = add nuw nsw i32 %.090, 1
  %240 = load i8, ptr %226, align 1, !tbaa !24
  %241 = zext i8 %240 to i32
  %242 = icmp ult i32 %239, %241
  br i1 %242, label %.lr.ph91, label %._crit_edge, !llvm.loop !26

243:                                              ; preds = %._crit_edge, %219
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #8
  br label %244

244:                                              ; preds = %243, %190, %158
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %245

245:                                              ; preds = %244, %134, %116, %77
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { 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 #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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, !8, i64 8}
!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 = !{!6, !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !8, i64 9}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !8, i64 10}
!15 = !{!6, !8, i64 11}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !9, i64 0}
!18 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 1, !19, i64 9, i64 1, !19, i64 10, i64 1, !19, i64 11, i64 1, !19}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !8, i64 0}
!23 = !{!"_ZTSN3Ani4DofT15TetGeomSparsity3PosE", !8, i64 0, !8, i64 1}
!24 = !{!23, !8, i64 1}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}


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