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

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

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

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

; 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 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 uwtable
define dso_local void @_ZNK3Ani4DofT13ComplexDofMap18GetNestedComponentEPKiiRNS0_16NestedDofMapBaseE(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(36) %3) unnamed_addr #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %10 = load ptr, ptr %5, align 8
  %11 = load i32, ptr %7, align 4, !tbaa !9
  %12 = icmp sle i32 %11, 0
  br i1 %12, label %26, label %13

13:                                               ; preds = %4
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds i32, ptr %14, i64 0
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %26, label %18

18:                                               ; preds = %13
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds i32, ptr %19, i64 0
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 1
  %23 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #3
  %24 = trunc i64 %23 to i32
  %25 = icmp sge i32 %21, %24
  br i1 %25, label %26, label %31

26:                                               ; preds = %18, %13, %4
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds ptr, ptr %28, i64 25
  %30 = load ptr, ptr %29, align 8
  call void %30(ptr noundef nonnull align 8 dereferenceable(36) %27)
  br label %109

31:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %61, %31
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp slt i32 %33, 6
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 3
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %37, i64 noundef %39) #3
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i32, ptr %41, i64 0
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %44) #3
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 3
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %47, i64 noundef %49) #3
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 0) #3
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = sub i32 %46, %52
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.Ani::DofT::NestedDofMapBase", ptr %54, i32 0, i32 1
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %55, i64 noundef %57) #3
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = add i32 %59, %53
  store i32 %60, ptr %58, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %36
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !9
  br label %32, !llvm.loop !13

64:                                               ; preds = %35
  %65 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 4
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds i32, ptr %66, i64 0
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %69) #3
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 4
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef 0) #3
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sub i32 %71, %74
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.Ani::DofT::NestedDofMapBase", ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !15
  %79 = add i32 %78, %75
  store i32 %79, ptr %77, align 8, !tbaa !15
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %82, label %93

82:                                               ; preds = %64
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 1
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds i32, ptr %85, i64 0
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %88) #3
  %90 = load ptr, ptr %83, align 8, !tbaa !11
  %91 = getelementptr inbounds ptr, ptr %90, i64 23
  %92 = load ptr, ptr %91, align 8
  call void %92(ptr noundef nonnull align 8 dereferenceable(36) %83, ptr noundef nonnull align 8 dereferenceable(16) %89)
  br label %109

93:                                               ; preds = %64
  %94 = getelementptr inbounds %"struct.Ani::DofT::ComplexDofMap", ptr %10, i32 0, i32 1
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %95, i64 0
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %98) #3
  %100 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %99) #3
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds i32, ptr %101, i64 1
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sub nsw i32 %103, 1
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load ptr, ptr %100, align 8, !tbaa !11
  %107 = getelementptr inbounds ptr, ptr %106, i64 14
  %108 = load ptr, ptr %107, align 8
  call void %108(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef %102, i32 noundef %104, ptr noundef nonnull align 8 dereferenceable(36) %105)
  br label %109

109:                                              ; preds = %93, %82, %26
  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 = { 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 #3 = { nounwind }

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

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


; 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"

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

; 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 #0 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 #0 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 #0 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 #0 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 #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Ani4DofT13ComplexDofMap18GetNestedComponentEPKiiRNS0_16NestedDofMapBaseE(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(36) %3) unnamed_addr #1 align 2 {
  %5 = icmp slt i32 %2, 1
  br i1 %5, label %102, label %6

6:                                                ; preds = %4
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = icmp slt i32 %7, 0
  br i1 %8, label %102, label %9

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = tail call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #2
  %12 = trunc i64 %11 to i32
  %.not = icmp slt i32 %7, %12
  br i1 %.not, label %.preheader, label %102

.preheader:                                       ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 0) #2
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %17) #2
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 0) #2
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #2
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = sub i32 %19, %22
  %24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %14, i64 noundef 0) #2
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = add i32 %23, %25
  store i32 %26, ptr %24, align 4, !tbaa !5
  %27 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 1) #2
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #2
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 1) #2
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 0) #2
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = sub i32 %31, %34
  %36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %14, i64 noundef 1) #2
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add i32 %35, %37
  store i32 %38, ptr %36, align 4, !tbaa !5
  %39 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 2) #2
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #2
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 2) #2
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #2
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = sub i32 %43, %46
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %14, i64 noundef 2) #2
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = add i32 %47, %49
  store i32 %50, ptr %48, align 4, !tbaa !5
  %51 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 3) #2
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %53) #2
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 3) #2
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef 0) #2
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = sub i32 %55, %58
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %14, i64 noundef 3) #2
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add i32 %59, %61
  store i32 %62, ptr %60, align 4, !tbaa !5
  %63 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 4) #2
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65) #2
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 4) #2
  %69 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef 0) #2
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sub i32 %67, %70
  %72 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %14, i64 noundef 4) #2
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = add i32 %71, %73
  store i32 %74, ptr %72, align 4, !tbaa !5
  %75 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 5) #2
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #2
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayISt6vectorIjSaIjEELm6EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %13, i64 noundef 5) #2
  %81 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef 0) #2
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sub i32 %79, %82
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm6EEixEm(ptr noundef nonnull align 4 dereferenceable(24) %14, i64 noundef 5) #2
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add i32 %83, %85
  store i32 %86, ptr %84, align 4, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %0, i64 320
  %88 = load i32, ptr %1, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #2
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #2
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sub i32 %91, %93
  %95 = getelementptr inbounds i8, ptr %3, i64 32
  %96 = load i32, ptr %95, align 8, !tbaa !9
  %97 = add i32 %94, %96
  store i32 %97, ptr %95, align 8, !tbaa !9
  %98 = icmp eq i32 %2, 1
  %99 = load i32, ptr %1, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt10shared_ptrIN3Ani4DofT10BaseDofMapEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %100) #2
  br i1 %98, label %106, label %110

102:                                              ; preds = %9, %6, %4
  %103 = load ptr, ptr %3, align 8, !tbaa !13
  %104 = getelementptr inbounds i8, ptr %103, i64 200
  %105 = load ptr, ptr %104, align 8
  tail call void %105(ptr noundef nonnull align 8 dereferenceable(36) %3)
  br label %117

106:                                              ; preds = %.preheader
  %107 = load ptr, ptr %3, align 8, !tbaa !13
  %108 = getelementptr inbounds i8, ptr %107, i64 184
  %109 = load ptr, ptr %108, align 8
  tail call void %109(ptr noundef nonnull align 8 dereferenceable(36) %3, ptr noundef nonnull align 8 dereferenceable(16) %101)
  br label %117

110:                                              ; preds = %.preheader
  %111 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %101) #2
  %112 = getelementptr inbounds i8, ptr %1, i64 4
  %113 = add nsw i32 %2, -1
  %114 = load ptr, ptr %111, align 8, !tbaa !13
  %115 = getelementptr inbounds i8, ptr %114, i64 112
  %116 = load ptr, ptr %115, align 8
  tail call void %116(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull %112, i32 noundef %113, ptr noundef nonnull align 8 dereferenceable(36) %3)
  br label %117

117:                                              ; preds = %110, %106, %102
  ret void
}

attributes #0 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTSN3Ani4DofT16NestedDofMapBaseE", !11, i64 0, !12, i64 8, !6, i64 32}
!11 = !{!"_ZTSN3Ani4DofT10BaseDofMapE"}
!12 = !{!"_ZTSSt5arrayIjLm6EE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}


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