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

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

%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl" }
%"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl" = type { %"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.52" = type { i8 }
%"struct.Ani::DofT::DofMap" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::array.36" = type { [3 x i32] }
%"struct.Ani::ComplexFemSpace" = type <{ %"struct.Ani::BaseFemSpace", %"class.std::vector.31", i32, i32, i32, i32, %"struct.std::array.36", [4 x i8] }>
%"struct.Ani::BaseFemSpace" = type { ptr, %"struct.Ani::DofT::DofMap" }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Ani::BaseFemSpace>, std::allocator<std::shared_ptr<Ani::BaseFemSpace>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Ani15ComplexFemSpace5setupEv(ptr noundef nonnull align 8 dereferenceable(76) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.50", align 8
  %4 = alloca %"class.std::allocator.52", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.Ani::DofT::DofMap", align 8
  %9 = alloca %"struct.std::array.36", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  %18 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %19 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  call void @_ZNSaIN3Ani4DofT6DofMapEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %20 unwind label %28

20:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorIN3Ani4DofT6DofMapEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %44, %20
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %25 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %26 = icmp ult i64 %23, %25
  br i1 %26, label %32, label %27

27:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %51

28:                                               ; preds = %1
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %5, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIN3Ani4DofT6DofMapEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %197

32:                                               ; preds = %21
  %33 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #6
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  %38 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %37, i32 0, i32 1
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %40) #6
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3Ani4DofT6DofMapaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %43 unwind label %47

43:                                               ; preds = %32
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = add i32 %45, 1
  store i32 %46, ptr %7, align 4, !tbaa !9
  br label %21, !llvm.loop !11

47:                                               ; preds = %32
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %196

51:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  invoke void @_ZN3Ani4DofT5mergeERKSt6vectorINS0_6DofMapESaIS2_EE(ptr dead_on_unwind writable sret(%"struct.Ani::DofT::DofMap") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %52 unwind label %71

52:                                               ; preds = %51
  %53 = getelementptr inbounds %"struct.Ani::BaseFemSpace", ptr %17, i32 0, i32 1
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3Ani4DofT6DofMapaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %55 unwind label %75

55:                                               ; preds = %52
  call void @_ZN3Ani4DofT6DofMapD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  %56 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 2
  store i32 0, ptr %56, align 8, !tbaa !13
  %57 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 5
  store i32 0, ptr %57, align 4, !tbaa !25
  %58 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 4
  store i32 0, ptr %58, align 8, !tbaa !26
  %59 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 3
  store i32 0, ptr %59, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %60 = getelementptr inbounds %"struct.std::array.36", ptr %9, i32 0, i32 0
  store i32 0, ptr %60, align 4, !tbaa !9
  %61 = getelementptr inbounds i32, ptr %60, i64 1
  store i32 0, ptr %61, align 4, !tbaa !9
  %62 = getelementptr inbounds i32, ptr %60, i64 2
  store i32 0, ptr %62, align 4, !tbaa !9
  %63 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %191, %55
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %68 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #6
  %69 = icmp ult i64 %66, %68
  br i1 %69, label %80, label %70

70:                                               ; preds = %64
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %195

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %5, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %6, align 4
  br label %79

75:                                               ; preds = %52
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  call void @_ZN3Ani4DofT6DofMapD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %79

79:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  br label %196

80:                                               ; preds = %64
  %81 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83) #6
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %84) #6
  %86 = load ptr, ptr %85, align 8, !tbaa !30
  %87 = getelementptr inbounds ptr, ptr %86, i64 3
  %88 = load ptr, ptr %87, align 8
  %89 = invoke noundef i32 %88(ptr noundef nonnull align 8 dereferenceable(24) %85)
          to label %90 unwind label %143

90:                                               ; preds = %80
  %91 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !13
  %93 = add i32 %92, %89
  store i32 %93, ptr %91, align 8, !tbaa !13
  %94 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %95 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #6
  %99 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %98) #6
  %100 = load ptr, ptr %99, align 8, !tbaa !30
  %101 = getelementptr inbounds ptr, ptr %100, i64 4
  %102 = load ptr, ptr %101, align 8
  %103 = invoke noundef i32 %102(ptr noundef nonnull align 8 dereferenceable(24) %99)
          to label %104 unwind label %147

104:                                              ; preds = %90
  store i32 %103, ptr %12, align 4, !tbaa !9
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %94, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %106 unwind label %147

106:                                              ; preds = %104
  %107 = load i32, ptr %105, align 4, !tbaa !9
  %108 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 3
  store i32 %107, ptr %108, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %109 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %110 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #6
  %114 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %113) #6
  %115 = load ptr, ptr %114, align 8, !tbaa !30
  %116 = getelementptr inbounds ptr, ptr %115, i64 14
  %117 = load ptr, ptr %116, align 8
  %118 = invoke noundef i32 %117(ptr noundef nonnull align 8 dereferenceable(24) %114)
          to label %119 unwind label %151

119:                                              ; preds = %106
  store i32 %118, ptr %13, align 4, !tbaa !9
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %109, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %121 unwind label %151

121:                                              ; preds = %119
  %122 = load i32, ptr %120, align 4, !tbaa !9
  %123 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 4
  store i32 %122, ptr %123, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %124 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %125 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127) #6
  %129 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %128) #6
  %130 = load ptr, ptr %129, align 8, !tbaa !30
  %131 = getelementptr inbounds ptr, ptr %130, i64 17
  %132 = load ptr, ptr %131, align 8
  %133 = invoke noundef i32 %132(ptr noundef nonnull align 8 dereferenceable(24) %129)
          to label %134 unwind label %155

134:                                              ; preds = %121
  store i32 %133, ptr %14, align 4, !tbaa !9
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %124, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %136 unwind label %155

136:                                              ; preds = %134
  %137 = load i32, ptr %135, align 4, !tbaa !9
  %138 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 5
  store i32 %137, ptr %138, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %183, %136
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = icmp slt i32 %140, 3
  br i1 %141, label %159, label %142

142:                                              ; preds = %139
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %190

143:                                              ; preds = %80
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  br label %194

147:                                              ; preds = %104, %90
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %194

151:                                              ; preds = %119, %106
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %5, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %194

155:                                              ; preds = %134, %121
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %5, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %194

159:                                              ; preds = %139
  %160 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 6
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %160, i64 noundef %162) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %164 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 1
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef %166) #6
  %168 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %167) #6
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = trunc i32 %169 to i8
  %171 = load ptr, ptr %168, align 8, !tbaa !30
  %172 = getelementptr inbounds ptr, ptr %171, i64 20
  %173 = load ptr, ptr %172, align 8
  %174 = invoke noundef i32 %173(ptr noundef nonnull align 8 dereferenceable(24) %168, i8 noundef zeroext %170)
          to label %175 unwind label %186

175:                                              ; preds = %159
  store i32 %174, ptr %16, align 4, !tbaa !9
  %176 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %163, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %177 unwind label %186

177:                                              ; preds = %175
  %178 = load i32, ptr %176, align 4, !tbaa !9
  %179 = getelementptr inbounds %"struct.Ani::ComplexFemSpace", ptr %17, i32 0, i32 6
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %179, i64 noundef %181) #6
  store i32 %178, ptr %182, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %183

183:                                              ; preds = %177
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %15, align 4, !tbaa !9
  br label %139, !llvm.loop !32

186:                                              ; preds = %175, %159
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %5, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %194

190:                                              ; preds = %142
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = add i32 %192, 1
  store i32 %193, ptr %10, align 4, !tbaa !9
  br label %64, !llvm.loop !33

194:                                              ; preds = %186, %155, %151, %147, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %196

195:                                              ; preds = %70
  call void @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  ret void

196:                                              ; preds = %194, %79, %47
  call void @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %197

197:                                              ; preds = %196, %28
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %5, align 8
  %200 = load i32, ptr %6, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202
}

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

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

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

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

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

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

declare void @_ZN3Ani4DofT5mergeERKSt6vectorINS0_6DofMapESaIS2_EE(ptr dead_on_unwind writable sret(%"struct.Ani::DofT::DofMap") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #5

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 48}
!14 = !{!"_ZTSN3Ani15ComplexFemSpaceE", !15, i64 0, !20, i64 24, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !24, i64 64}
!15 = !{!"_ZTSN3Ani12BaseFemSpaceE", !16, i64 8}
!16 = !{!"_ZTSN3Ani4DofT6DofMapE", !17, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN3Ani4DofT10BaseDofMapEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!20 = !{!"_ZTSSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt5arrayIjLm3EE", !7, i64 0}
!25 = !{!14, !10, i64 60}
!26 = !{!14, !10, i64 56}
!27 = !{!14, !10, i64 52}
!28 = !{i64 0, i64 12, !29}
!29 = !{!7, !7, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"vtable pointer", !8, i64 0}
!32 = distinct !{!32, !12}
!33 = distinct !{!33, !12}


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

%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl" }
%"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl" = type { %"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Ani::DofT::DofMap, std::allocator<Ani::DofT::DofMap>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.52" = type { i8 }
%"struct.Ani::DofT::DofMap" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Ani15ComplexFemSpace5setupEv(ptr noundef nonnull align 8 dereferenceable(76) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.50", align 8
  %3 = alloca %"class.std::allocator.52", align 1
  %4 = alloca %"struct.Ani::DofT::DofMap", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = tail call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIN3Ani4DofT6DofMapEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %11 unwind label %13

11:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorIN3Ani4DofT6DofMapEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %12 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  invoke void @_ZN3Ani4DofT5mergeERKSt6vectorINS0_6DofMapESaIS2_EE(ptr dead_on_unwind nonnull writable sret(%"struct.Ani::DofT::DofMap") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %25 unwind label %34

13:                                               ; preds = %1
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN3Ani4DofT6DofMapEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %121

.lr.ph:                                           ; preds = %11, %.lr.ph
  %15 = phi i64 [ %22, %.lr.ph ], [ 0, %11 ]
  %.02329 = phi i32 [ %21, %.lr.ph ], [ 0, %11 ]
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %15) #6
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %15) #6
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3Ani4DofT6DofMapaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %21 = add i32 %.02329, 1
  %22 = zext i32 %21 to i64
  %23 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %24 = icmp ugt i64 %23, %22
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !5

25:                                               ; preds = %._crit_edge
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3Ani4DofT6DofMapaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @_ZN3Ani4DofT6DofMapD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  %29 = getelementptr inbounds i8, ptr %0, i64 60
  %30 = getelementptr inbounds i8, ptr %0, i64 56
  %31 = getelementptr inbounds i8, ptr %0, i64 52
  %32 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %28, i8 0, i64 28, i1 false)
  %33 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not35 = icmp eq i64 %33, 0
  br i1 %.not35, label %._crit_edge34, label %.lr.ph33

._crit_edge34:                                    ; preds = %110, %25
  call void @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret void

34:                                               ; preds = %._crit_edge
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %120

.lr.ph33:                                         ; preds = %25, %110
  %36 = phi i64 [ %115, %110 ], [ 0, %25 ]
  %.01831 = phi i32 [ %114, %110 ], [ 0, %25 ]
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  %39 = load ptr, ptr %38, align 8, !tbaa !7
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef i32 %41(ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %43 unwind label %80

43:                                               ; preds = %.lr.ph33
  %44 = load i32, ptr %28, align 8, !tbaa !10
  %45 = add i32 %44, %42
  store i32 %45, ptr %28, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  %48 = load ptr, ptr %47, align 8, !tbaa !7
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef i32 %50(ptr noundef nonnull align 8 dereferenceable(24) %47)
          to label %52 unwind label %82

52:                                               ; preds = %43
  store i32 %51, ptr %5, align 4, !tbaa !25
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %54 = load i32, ptr %53, align 4, !tbaa !25
  store i32 %54, ptr %31, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %56 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %55) #6
  %57 = load ptr, ptr %56, align 8, !tbaa !7
  %58 = getelementptr inbounds i8, ptr %57, i64 112
  %59 = load ptr, ptr %58, align 8
  %60 = invoke noundef i32 %59(ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %61 unwind label %84

61:                                               ; preds = %52
  store i32 %60, ptr %6, align 4, !tbaa !25
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %63 = load i32, ptr %62, align 4, !tbaa !25
  store i32 %63, ptr %30, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %64) #6
  %66 = load ptr, ptr %65, align 8, !tbaa !7
  %67 = getelementptr inbounds i8, ptr %66, i64 136
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef i32 %68(ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %70 unwind label %86

70:                                               ; preds = %61
  store i32 %69, ptr %7, align 4, !tbaa !25
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %72 = load i32, ptr %71, align 4, !tbaa !25
  store i32 %72, ptr %29, align 4, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %32, i64 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %74) #6
  %76 = load ptr, ptr %75, align 8, !tbaa !7
  %77 = getelementptr inbounds i8, ptr %76, i64 160
  %78 = load ptr, ptr %77, align 8
  %79 = invoke noundef i32 %78(ptr noundef nonnull align 8 dereferenceable(24) %75, i8 noundef zeroext 0)
          to label %88 unwind label %118

80:                                               ; preds = %.lr.ph33
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %120

82:                                               ; preds = %43
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %120

84:                                               ; preds = %52
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %120

86:                                               ; preds = %61
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %120

88:                                               ; preds = %70
  store i32 %79, ptr %8, align 4, !tbaa !25
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %90 = load i32, ptr %89, align 4, !tbaa !25
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %32, i64 noundef 0) #6
  store i32 %90, ptr %91, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %32, i64 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %94 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %93) #6
  %95 = load ptr, ptr %94, align 8, !tbaa !7
  %96 = getelementptr inbounds i8, ptr %95, i64 160
  %97 = load ptr, ptr %96, align 8
  %98 = invoke noundef i32 %97(ptr noundef nonnull align 8 dereferenceable(24) %94, i8 noundef zeroext 1)
          to label %99 unwind label %118

99:                                               ; preds = %88
  store i32 %98, ptr %8, align 4, !tbaa !25
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %92, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %101 = load i32, ptr %100, align 4, !tbaa !25
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %32, i64 noundef 1) #6
  store i32 %101, ptr %102, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %32, i64 noundef 2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %36) #6
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Ani12BaseFemSpaceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %104) #6
  %106 = load ptr, ptr %105, align 8, !tbaa !7
  %107 = getelementptr inbounds i8, ptr %106, i64 160
  %108 = load ptr, ptr %107, align 8
  %109 = invoke noundef i32 %108(ptr noundef nonnull align 8 dereferenceable(24) %105, i8 noundef zeroext 2)
          to label %110 unwind label %118

110:                                              ; preds = %99
  store i32 %109, ptr %8, align 4, !tbaa !25
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %103, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %112 = load i32, ptr %111, align 4, !tbaa !25
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %32, i64 noundef 2) #6
  store i32 %112, ptr %113, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %114 = add i32 %.01831, 1
  %115 = zext i32 %114 to i64
  %116 = call noundef i64 @_ZNKSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %117 = icmp ugt i64 %116, %115
  br i1 %117, label %.lr.ph33, label %._crit_edge34, !llvm.loop !29

118:                                              ; preds = %99, %88, %70
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %120

120:                                              ; preds = %80, %82, %84, %86, %118, %34
  %.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %119, %118 ], [ %87, %86 ], [ %85, %84 ], [ %83, %82 ], [ %81, %80 ]
  call void @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %121

121:                                              ; preds = %120, %13
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %120 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_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(16) ptr @_ZNSt6vectorIN3Ani4DofT6DofMapESaIS2_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(16) ptr @_ZN3Ani4DofT6DofMapaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

declare void @_ZN3Ani4DofT5mergeERKSt6vectorINS0_6DofMapESaIS2_EE(ptr dead_on_unwind writable sret(%"struct.Ani::DofT::DofMap") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"vtable pointer", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !23, i64 48}
!11 = !{!"_ZTSN3Ani15ComplexFemSpaceE", !12, i64 0, !19, i64 24, !23, i64 48, !23, i64 52, !23, i64 56, !23, i64 60, !24, i64 64}
!12 = !{!"_ZTSN3Ani12BaseFemSpaceE", !13, i64 8}
!13 = !{!"_ZTSN3Ani4DofT6DofMapE", !14, i64 0}
!14 = !{!"_ZTSSt10shared_ptrIN3Ani4DofT10BaseDofMapEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN3Ani4DofT10BaseDofMapELN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0, !18, i64 8}
!16 = !{!"any pointer", !17, i64 0}
!17 = !{!"omnipotent char", !9, i64 0}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0}
!19 = !{!"_ZTSSt6vectorISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN3Ani12BaseFemSpaceEESaIS3_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!23 = !{!"int", !17, i64 0}
!24 = !{!"_ZTSSt5arrayIjLm3EE", !17, i64 0}
!25 = !{!23, !23, i64 0}
!26 = !{!11, !23, i64 52}
!27 = !{!11, !23, i64 56}
!28 = !{!11, !23, i64 60}
!29 = distinct !{!29, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass