; LLVM IR from artvns/SimpleFvm :: simplefvm/src/MeshLoader/DomainDecomposition (PartsNamesExtractor)

; 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.meshloader::PartsNamesExtractor" = type { %"class.meshloader::DomainPartsChecker" }
%"class.meshloader::DomainPartsChecker" = type { i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef signext i8 @_ZN10meshloader19PartsNamesExtractor11extractNameERSt6vectorImSaImEERKNS_10BaseMatrixERKNS_10NumsMatrixE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca %"class.std::vector.0", align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef i64 @_ZNK10meshloader10BaseMatrix13getRowsAmountEv(ptr noundef nonnull align 8 dereferenceable(40) %23)
  store i64 %24, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef i64 @_ZNK10meshloader10BaseMatrix13getColsAmountEv(ptr noundef nonnull align 8 dereferenceable(40) %25)
  store i64 %26, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %84, %4
  %28 = load i64, ptr %13, align 8, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #4
  %31 = icmp ult i64 %28, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %87

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %80, %33
  %35 = load i64, ptr %15, align 8, !tbaa !9
  %36 = load i64, ptr %10, align 8, !tbaa !9
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %83

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %75, %39
  %41 = load i64, ptr %16, align 8, !tbaa !9
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %79

45:                                               ; preds = %40
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %47)
          to label %49 unwind label %66

49:                                               ; preds = %45
  %50 = load i64, ptr %48, align 8, !tbaa !9
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i64, ptr %15, align 8, !tbaa !9
  %53 = add i64 %52, 1
  %54 = load i64, ptr %16, align 8, !tbaa !9
  %55 = add i64 %54, 1
  %56 = invoke noundef i64 @_ZNK10meshloader10NumsMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40) %51, i64 noundef %53, i64 noundef %55)
          to label %57 unwind label %66

57:                                               ; preds = %49
  %58 = icmp eq i64 %50, %56
  br i1 %58, label %59, label %74

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = invoke noundef signext i8 @_ZNK10meshloader10BaseMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40) %60, i64 noundef %61, i64 noundef %62)
          to label %64 unwind label %70

64:                                               ; preds = %59
  store i8 %63, ptr %19, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %65 unwind label %70

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  br label %74

66:                                               ; preds = %49, %45
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %17, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %18, align 4
  br label %78

70:                                               ; preds = %64, %59
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %17, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  br label %78

74:                                               ; preds = %65, %57
  br label %75

75:                                               ; preds = %74
  %76 = load i64, ptr %16, align 8, !tbaa !9
  %77 = add i64 %76, 1
  store i64 %77, ptr %16, align 8, !tbaa !9
  br label %40, !llvm.loop !12

78:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %125

79:                                               ; preds = %44
  br label %80

80:                                               ; preds = %79
  %81 = load i64, ptr %15, align 8, !tbaa !9
  %82 = add i64 %81, 1
  store i64 %82, ptr %15, align 8, !tbaa !9
  br label %34, !llvm.loop !14

83:                                               ; preds = %38
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %13, align 8, !tbaa !9
  %86 = add i64 %85, 1
  store i64 %86, ptr %13, align 8, !tbaa !9
  br label %27, !llvm.loop !15

87:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #4
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %110, %87
  %89 = load i64, ptr %21, align 8, !tbaa !9
  %90 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %113

93:                                               ; preds = %88
  %94 = load i64, ptr %21, align 8, !tbaa !9
  %95 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %94)
          to label %96 unwind label %105

96:                                               ; preds = %93
  %97 = load i8, ptr %95, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = icmp ne i32 120, %98
  br i1 %99, label %100, label %109

100:                                              ; preds = %96
  %101 = load i64, ptr %21, align 8, !tbaa !9
  %102 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %101)
          to label %103 unwind label %105

103:                                              ; preds = %100
  invoke void @_ZNSt6vectorIcSaIcEE9push_backERKc(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 1 dereferenceable(1) %102)
          to label %104 unwind label %105

104:                                              ; preds = %103
  br label %109

105:                                              ; preds = %103, %100, %93
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %17, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %124

109:                                              ; preds = %104, %96
  br label %110

110:                                              ; preds = %109
  %111 = load i64, ptr %21, align 8, !tbaa !9
  %112 = add i64 %111, 1
  store i64 %112, ptr %21, align 8, !tbaa !9
  br label %88, !llvm.loop !16

113:                                              ; preds = %92
  %114 = getelementptr inbounds %"class.meshloader::PartsNamesExtractor", ptr %22, i32 0, i32 0
  invoke void @_ZN10meshloader18DomainPartsChecker9checkPartERKSt6vectorIcSaIcEES5_(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %115 unwind label %120

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0)
          to label %117 unwind label %120

117:                                              ; preds = %115
  %118 = load i8, ptr %116, align 1, !tbaa !11
  store i8 %118, ptr %9, align 1, !tbaa !11
  %119 = load i8, ptr %9, align 1, !tbaa !11
  store i32 1, ptr %14, align 4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  ret i8 %119

120:                                              ; preds = %115, %113
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %17, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %18, align 4
  br label %124

124:                                              ; preds = %120, %105
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  br label %125

125:                                              ; preds = %124, %78
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %17, align 8
  %128 = load i32, ptr %18, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130
}

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

declare noundef i64 @_ZNK10meshloader10BaseMatrix13getRowsAmountEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

declare noundef i64 @_ZNK10meshloader10BaseMatrix13getColsAmountEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 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 i32 @__gxx_personality_v0(...)

declare noundef i64 @_ZNK10meshloader10NumsMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) #2

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

declare noundef signext i8 @_ZNK10meshloader10BaseMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) #2

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

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

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

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

declare void @_ZN10meshloader18DomainPartsChecker9checkPartERKSt6vectorIcSaIcEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef signext i8 @_ZN10meshloader19PartsNamesExtractor11extractNameERSt6vectorImSaImEERKNS_10BaseMatrixERKNS_10NumsMatrixE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::vector.0", align 8
  %8 = tail call noundef i64 @_ZNK10meshloader10BaseMatrix13getRowsAmountEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  %9 = tail call noundef i64 @_ZNK10meshloader10BaseMatrix13getColsAmountEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %10 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %.not55 = icmp eq i64 %10, 0
  br i1 %.not55, label %._crit_edge, label %.preheader37.lr.ph

.preheader37.lr.ph:                               ; preds = %4
  %.not56 = icmp eq i64 %8, 0
  br i1 %.not56, label %.preheader37, label %.preheader37.lr.ph.split.us

.preheader37.lr.ph.split.us:                      ; preds = %.preheader37.lr.ph
  %.not57 = icmp eq i64 %9, 0
  br i1 %.not57, label %.preheader37.us, label %.preheader37.us.us

.preheader37.us.us:                               ; preds = %.preheader37.lr.ph.split.us, %._crit_edge40.split.us.us.us
  %.03244.us.us = phi i64 [ %25, %._crit_edge40.split.us.us.us ], [ 0, %.preheader37.lr.ph.split.us ]
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader37.us.us
  %.03139.us.us.us = phi i64 [ 0, %.preheader37.us.us ], [ %11, %._crit_edge.us.us.us ]
  %11 = add nuw i64 %.03139.us.us.us, 1
  br label %12

12:                                               ; preds = %24, %.preheader.us.us.us
  %.03038.us.us.us = phi i64 [ 0, %.preheader.us.us.us ], [ %16, %24 ]
  %13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03244.us.us)
          to label %14 unwind label %.split.us.split.us.split.us

14:                                               ; preds = %12
  %15 = load i64, ptr %13, align 8, !tbaa !5
  %16 = add nuw i64 %.03038.us.us.us, 1
  %17 = invoke noundef i64 @_ZNK10meshloader10NumsMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %11, i64 noundef %16)
          to label %18 unwind label %.split.us.split.us.split.us

18:                                               ; preds = %14
  %19 = icmp eq i64 %15, %17
  br i1 %19, label %20, label %24

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %21 = invoke noundef signext i8 @_ZNK10meshloader10BaseMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.03139.us.us.us, i64 noundef %.03038.us.us.us)
          to label %22 unwind label %.split42.us.split.us.split.us

22:                                               ; preds = %20
  store i8 %21, ptr %6, align 1, !tbaa !9
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %23 unwind label %.split42.us.split.us.split.us

23:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %24

24:                                               ; preds = %23, %18
  %exitcond.not = icmp eq i64 %16, %9
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %12, !llvm.loop !10

._crit_edge.us.us.us:                             ; preds = %24
  %exitcond61.not = icmp eq i64 %11, %8
  br i1 %exitcond61.not, label %._crit_edge40.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !12

._crit_edge40.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %25 = add nuw i64 %.03244.us.us, 1
  %26 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %27 = icmp ult i64 %25, %26
  br i1 %27, label %.preheader37.us.us, label %._crit_edge, !llvm.loop !13

.split.us.split.us.split.us:                      ; preds = %14, %12
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %56

.split42.us.split.us.split.us:                    ; preds = %22, %20
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %56

.preheader37.us:                                  ; preds = %.preheader37.lr.ph.split.us, %.preheader37.us
  %.03244.us = phi i64 [ %30, %.preheader37.us ], [ 0, %.preheader37.lr.ph.split.us ]
  %30 = add nuw i64 %.03244.us, 1
  %31 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %.preheader37.us, label %._crit_edge, !llvm.loop !13

.preheader37:                                     ; preds = %.preheader37.lr.ph, %.preheader37
  %.03244 = phi i64 [ %33, %.preheader37 ], [ 0, %.preheader37.lr.ph ]
  %33 = add nuw i64 %.03244, 1
  %34 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.preheader37, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge40.split.us.us.us, %.preheader37.us, %.preheader37, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %36 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %.not58 = icmp eq i64 %36, 0
  br i1 %.not58, label %._crit_edge54, label %.lr.ph

._crit_edge54:                                    ; preds = %45, %._crit_edge
  invoke void @_ZN10meshloader18DomainPartsChecker9checkPartERKSt6vectorIcSaIcEES5_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %49 unwind label %53

.lr.ph:                                           ; preds = %._crit_edge, %45
  %.052 = phi i64 [ %46, %45 ], [ 0, %._crit_edge ]
  %37 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.052)
          to label %38 unwind label %43

38:                                               ; preds = %.lr.ph
  %39 = load i8, ptr %37, align 1, !tbaa !9
  %.not = icmp eq i8 %39, 120
  br i1 %.not, label %45, label %40

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.052)
          to label %42 unwind label %43

42:                                               ; preds = %40
  invoke void @_ZNSt6vectorIcSaIcEE9push_backERKc(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %45 unwind label %43

43:                                               ; preds = %42, %40, %.lr.ph
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %55

45:                                               ; preds = %38, %42
  %46 = add nuw i64 %.052, 1
  %47 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph, label %._crit_edge54, !llvm.loop !14

49:                                               ; preds = %._crit_edge54
  %50 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %51 unwind label %53

51:                                               ; preds = %49
  %52 = load i8, ptr %50, align 1, !tbaa !9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  ret i8 %52

53:                                               ; preds = %49, %._crit_edge54
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %55

55:                                               ; preds = %53, %43
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %54, %53 ]
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %56

56:                                               ; preds = %.split.us.split.us.split.us, %.split42.us.split.us.split.us, %55
  %.pn34.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %29, %.split42.us.split.us.split.us ], [ %28, %.split.us.split.us.split.us ]
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn34.pn
}

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

declare noundef i64 @_ZNK10meshloader10BaseMatrix13getRowsAmountEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

declare noundef i64 @_ZNK10meshloader10BaseMatrix13getColsAmountEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 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 i32 @__gxx_personality_v0(...)

declare noundef i64 @_ZNK10meshloader10NumsMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) local_unnamed_addr #2

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

declare noundef signext i8 @_ZNK10meshloader10BaseMatrix8getValueEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) 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

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

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

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

declare void @_ZN10meshloader18DomainPartsChecker9checkPartERKSt6vectorIcSaIcEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


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