; LLVM IR from artvns/SimpleFvm :: simplefvm/src/MeshLoader/StaggeredMeshPart/VelocityNumberingSets/NumsSetsCreator_15fb0278 (ZN10meshloader16NumsSetsCreatorV17createInteriorSetEc)

; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.meshloader::AbstractNumsSetsCreator" = type { ptr, ptr, ptr, ptr, %"class.std::vector" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10meshloader16NumsSetsCreatorV17createInteriorSetEc(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 noundef signext %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i8 %1, ptr %4, align 1, !tbaa !9
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %13 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !10
  %15 = load i8, ptr %4, align 1, !tbaa !9
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN10meshloader8NumsSets10getNumsSetEc(ptr noundef nonnull align 8 dereferenceable(80) %14, i8 noundef signext %15)
  %17 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store i64 %17, ptr %5, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !16
  br label %18

18:                                               ; preds = %52, %2
  %19 = load i64, ptr %6, align 8, !tbaa !16
  %20 = load i64, ptr %5, align 8, !tbaa !16
  %21 = icmp ult i64 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %24 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !10
  %26 = load i8, ptr %4, align 1, !tbaa !9
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN10meshloader8NumsSets10getNumsSetEc(ptr noundef nonnull align 8 dereferenceable(80) %25, i8 noundef signext %26)
  %28 = load i64, ptr %6, align 8, !tbaa !16
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %28)
  %30 = load i64, ptr %29, align 8, !tbaa !16
  store i64 %30, ptr %7, align 8, !tbaa !16
  %31 = load i64, ptr %7, align 8, !tbaa !16
  %32 = call noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellSEm(ptr noundef nonnull align 8 dereferenceable(56) %12, i64 noundef %31)
  br i1 %32, label %38, label %33

33:                                               ; preds = %23
  %34 = load i64, ptr %7, align 8, !tbaa !16
  %35 = call noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellNEm(ptr noundef nonnull align 8 dereferenceable(56) %12, i64 noundef %34)
  br i1 %35, label %38, label %36

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 4
  call void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(8) %7)
  br label %38

38:                                               ; preds = %36, %33, %23
  %39 = load i64, ptr %7, align 8, !tbaa !16
  %40 = call noundef zeroext i1 @_ZN10meshloader16NumsSetsCreatorV14isGhostCellN_NEm(ptr noundef nonnull align 8 dereferenceable(56) %12, i64 noundef %39)
  br i1 %40, label %41, label %51

41:                                               ; preds = %38
  %42 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %43 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = load i64, ptr %7, align 8, !tbaa !16
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader4Mesh7getCellEm(ptr noundef nonnull align 8 dereferenceable(49) %44, i64 noundef %45)
  %47 = call noundef ptr @_ZNKSt10unique_ptrIN10meshloader9MacroCellESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #4
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader9MacroCell13getMacroCellNEv(ptr noundef nonnull align 8 dereferenceable(169) %47)
  %49 = call noundef ptr @_ZNKSt10unique_ptrIN10meshloader9MacroCellESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #4
  %50 = call noundef i64 @_ZN10meshloader9MacroCell16getCellGlobalNumEv(ptr noundef nonnull align 8 dereferenceable(169) %49)
  store i64 %50, ptr %8, align 8, !tbaa !16
  call void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %51

51:                                               ; preds = %41, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %6, align 8, !tbaa !16
  %54 = add i64 %53, 1
  store i64 %54, ptr %6, align 8, !tbaa !16
  br label %18, !llvm.loop !19

55:                                               ; preds = %22
  %56 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %58 = load i8, ptr %4, align 1, !tbaa !9
  %59 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 4
  call void @_ZNSt6vectorImSaImEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %59)
  invoke void @_ZN10meshloader8NumsSets10addNumsSetEcSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(80) %57, i8 noundef signext %58, ptr noundef %9)
          to label %60 unwind label %62

60:                                               ; preds = %55
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %61 = getelementptr inbounds %"class.meshloader::AbstractNumsSetsCreator", ptr %12, i32 0, i32 4
  call void @_ZNSt6vectorImSaImEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

62:                                               ; preds = %55
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr %10, align 8
  %68 = load i32, ptr %11, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN10meshloader8NumsSets10getNumsSetEc(ptr noundef nonnull align 8 dereferenceable(80), i8 noundef signext) #2

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

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

declare noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellSEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #2

declare noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellNEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10meshloader16NumsSetsCreatorV14isGhostCellN_NEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader4Mesh7getCellEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader9MacroCell13getMacroCellNEv(ptr noundef nonnull align 8 dereferenceable(169)) #2

declare noundef i64 @_ZN10meshloader9MacroCell16getCellGlobalNumEv(ptr noundef nonnull align 8 dereferenceable(169)) #2

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

declare void @_ZN10meshloader8NumsSets10addNumsSetEcSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(80), i8 noundef signext, ptr noundef) #2

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

declare i32 @__gxx_personality_v0(...)

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { nounwind }

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

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


; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10meshloader16NumsSetsCreatorV17createInteriorSetEc(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 noundef signext %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN10meshloader8NumsSets10getNumsSetEc(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 noundef signext %1)
  %9 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  br label %15

._crit_edge:                                      ; preds = %36, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  call void @_ZNSt6vectorImSaImEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %14)
  invoke void @_ZN10meshloader8NumsSets10addNumsSetEcSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(80) %13, i8 noundef signext %1, ptr noundef nonnull %5)
          to label %38 unwind label %39

15:                                               ; preds = %.lr.ph, %36
  %.09 = phi i64 [ 0, %.lr.ph ], [ %37, %36 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN10meshloader8NumsSets10getNumsSetEc(ptr noundef nonnull align 8 dereferenceable(80) %16, i8 noundef signext %1)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.09)
  %19 = load i64, ptr %18, align 8, !tbaa !15
  store i64 %19, ptr %3, align 8, !tbaa !15
  %20 = call noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellSEm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %19)
  br i1 %20, label %25, label %21

21:                                               ; preds = %15
  %22 = load i64, ptr %3, align 8, !tbaa !15
  %23 = call noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellNEm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %22)
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %25

25:                                               ; preds = %24, %21, %15
  %26 = load i64, ptr %3, align 8, !tbaa !15
  %27 = call noundef zeroext i1 @_ZN10meshloader16NumsSetsCreatorV14isGhostCellN_NEm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %26)
  br i1 %27, label %28, label %36

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %29 = load ptr, ptr %11, align 8, !tbaa !17
  %30 = load i64, ptr %3, align 8, !tbaa !15
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader4Mesh7getCellEm(ptr noundef nonnull align 8 dereferenceable(49) %29, i64 noundef %30)
  %32 = call noundef ptr @_ZNKSt10unique_ptrIN10meshloader9MacroCellESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #4
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader9MacroCell13getMacroCellNEv(ptr noundef nonnull align 8 dereferenceable(169) %32)
  %34 = call noundef ptr @_ZNKSt10unique_ptrIN10meshloader9MacroCellESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #4
  %35 = call noundef i64 @_ZN10meshloader9MacroCell16getCellGlobalNumEv(ptr noundef nonnull align 8 dereferenceable(169) %34)
  store i64 %35, ptr %4, align 8, !tbaa !15
  call void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %36

36:                                               ; preds = %28, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %37 = add nuw i64 %.09, 1
  %exitcond.not = icmp eq i64 %37, %9
  br i1 %exitcond.not, label %._crit_edge, label %15, !llvm.loop !18

38:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @_ZNSt6vectorImSaImEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  ret void

39:                                               ; preds = %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  resume { ptr, i32 } %40
}

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN10meshloader8NumsSets10getNumsSetEc(ptr noundef nonnull align 8 dereferenceable(80), i8 noundef signext) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellSEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN10meshloader23AbstractNumsSetsCreator12isGhostCellNEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10meshloader16NumsSetsCreatorV14isGhostCellN_NEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader4Mesh7getCellEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN10meshloader9MacroCell13getMacroCellNEv(ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #2

declare noundef i64 @_ZN10meshloader9MacroCell16getCellGlobalNumEv(ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #2

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

declare void @_ZN10meshloader8NumsSets10addNumsSetEcSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(80), i8 noundef signext, ptr noundef) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { nounwind }

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

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


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