; LLVM IR from artvns/SimpleFvm :: simplefvm/src/FVMSolver/MatrixBuilder (SleMatrixBuilder)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.fvmsolver::SleMatrixBuilder" = type { %"class.std::unique_ptr", ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::shared_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { 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 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9fvmsolver16SleMatrixBuilder13buildBoundaryEv(ptr noundef nonnull align 8 dereferenceable(80) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %14 = getelementptr inbounds %"class.fvmsolver::SleMatrixBuilder", ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = call noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort16getBcPartsAmountEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  store i64 %16, ptr %3, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 0, ptr %4, align 8, !tbaa !20
  br label %17

17:                                               ; preds = %73, %1
  %18 = load i64, ptr %4, align 8, !tbaa !20
  %19 = load i64, ptr %3, align 8, !tbaa !20
  %20 = icmp ult i64 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %78

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  %23 = getelementptr inbounds %"class.fvmsolver::SleMatrixBuilder", ptr %13, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load i64, ptr %4, align 8, !tbaa !20
  call void @_ZN9fvmsolver20SleMatrixBuilderPort15getBoundaryNameB5cxx11Em(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %25)
  %26 = getelementptr inbounds %"class.fvmsolver::SleMatrixBuilder", ptr %13, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %28 unwind label %43

28:                                               ; preds = %22
  %29 = load ptr, ptr %27, align 8, !tbaa !23
  %30 = getelementptr inbounds ptr, ptr %29, i64 2
  %31 = load ptr, ptr %30, align 8
  invoke void %31(ptr noundef nonnull align 8 dereferenceable(240) %27, ptr noundef %7)
          to label %32 unwind label %47

32:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %33 = getelementptr inbounds %"class.fvmsolver::SleMatrixBuilder", ptr %13, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %35 unwind label %51

35:                                               ; preds = %32
  %36 = invoke noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort18getPartCellsAmountENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef %11)
          to label %37 unwind label %55

37:                                               ; preds = %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  store i64 %36, ptr %10, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !20
  br label %38

38:                                               ; preds = %65, %37
  %39 = load i64, ptr %12, align 8, !tbaa !20
  %40 = load i64, ptr %10, align 8, !tbaa !20
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %59, label %42

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

43:                                               ; preds = %22
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %8, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %9, align 4
  br label %77

47:                                               ; preds = %28
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %8, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %77

51:                                               ; preds = %32
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %8, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %9, align 4
  br label %76

55:                                               ; preds = %35
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %8, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  br label %76

59:                                               ; preds = %38
  %60 = getelementptr inbounds %"class.fvmsolver::SleMatrixBuilder", ptr %13, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = load i64, ptr %12, align 8, !tbaa !20
  invoke void @_ZN9fvmsolver24AbstractCoeffsCalculator17calculateBoundaryEm(ptr noundef nonnull align 8 dereferenceable(240) %61, i64 noundef %62)
          to label %63 unwind label %68

63:                                               ; preds = %59
  invoke void @_ZN9fvmsolver16SleMatrixBuilder14placeAllCoeffsEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %64 unwind label %68

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = load i64, ptr %12, align 8, !tbaa !20
  %67 = add i64 %66, 1
  store i64 %67, ptr %12, align 8, !tbaa !20
  br label %38, !llvm.loop !25

68:                                               ; preds = %63, %59
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %8, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %76

72:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  br label %73

73:                                               ; preds = %72
  %74 = load i64, ptr %4, align 8, !tbaa !20
  %75 = add i64 %74, 1
  store i64 %75, ptr %4, align 8, !tbaa !20
  br label %17, !llvm.loop !27

76:                                               ; preds = %68, %55, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %77

77:                                               ; preds = %76, %47, %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %79

78:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void

79:                                               ; preds = %77
  %80 = load ptr, ptr %8, align 8
  %81 = load i32, ptr %9, align 4
  %82 = insertvalue { ptr, i32 } poison, ptr %80, 0
  %83 = insertvalue { ptr, i32 } %82, i32 %81, 1
  resume { ptr, i32 } %83
}

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

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

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

declare noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort18getPartCellsAmountENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

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

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

declare noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort16getBcPartsAmountEv(ptr noundef nonnull align 8 dereferenceable(24)) #3

declare void @_ZN9fvmsolver20SleMatrixBuilderPort15getBoundaryNameB5cxx11Em(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3

declare void @_ZN9fvmsolver24AbstractCoeffsCalculator17calculateBoundaryEm(ptr noundef nonnull align 8 dereferenceable(240), i64 noundef) #3

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 = { 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 = { "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, !6, i64 8}
!10 = !{!"_ZTSN9fvmsolver16SleMatrixBuilderE", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !17, i64 64}
!11 = !{!"_ZTSSt10unique_ptrIN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN9fvmsolver20SleMatrixBuilderPortELb0EE", !6, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN9fvmsolver9SleSolverEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN9fvmsolver9SleSolverELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!10, !6, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9fvmsolver16SleMatrixBuilder13buildBoundaryEv(ptr noundef nonnull align 8 dereferenceable(80) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort16getBcPartsAmountEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %.not = icmp eq i64 %7, 0
  br i1 %.not, label %._crit_edge20, label %.lr.ph19

.lr.ph19:                                         ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  br label %9

._crit_edge20:                                    ; preds = %._crit_edge, %1
  ret void

9:                                                ; preds = %.lr.ph19, %._crit_edge
  %.01017 = phi i64 [ 0, %.lr.ph19 ], [ %21, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN9fvmsolver20SleMatrixBuilderPort15getBoundaryNameB5cxx11Em(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.01017)
  %11 = load ptr, ptr %8, align 8, !tbaa !19
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %12 unwind label %22

12:                                               ; preds = %9
  %13 = load ptr, ptr %11, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load ptr, ptr %14, align 8
  invoke void %15(ptr noundef nonnull align 8 dereferenceable(240) %11, ptr noundef nonnull %3)
          to label %16 unwind label %24

16:                                               ; preds = %12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %18 unwind label %26

18:                                               ; preds = %16
  %19 = invoke noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort18getPartCellsAmountENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull %4)
          to label %20 unwind label %28

20:                                               ; preds = %18
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  %.not21 = icmp eq i64 %19, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %32, %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  %21 = add nuw i64 %.01017, 1
  %exitcond22.not = icmp eq i64 %21, %7
  br i1 %exitcond22.not, label %._crit_edge20, label %9, !llvm.loop !22

22:                                               ; preds = %9
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %36

24:                                               ; preds = %12
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %36

26:                                               ; preds = %16
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %36

28:                                               ; preds = %18
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  br label %36

.lr.ph:                                           ; preds = %20, %32
  %.016 = phi i64 [ %33, %32 ], [ 0, %20 ]
  %30 = load ptr, ptr %8, align 8, !tbaa !19
  invoke void @_ZN9fvmsolver24AbstractCoeffsCalculator17calculateBoundaryEm(ptr noundef nonnull align 8 dereferenceable(240) %30, i64 noundef %.016)
          to label %31 unwind label %34

31:                                               ; preds = %.lr.ph
  invoke void @_ZN9fvmsolver16SleMatrixBuilder14placeAllCoeffsEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
          to label %32 unwind label %34

32:                                               ; preds = %31
  %33 = add nuw i64 %.016, 1
  %exitcond.not = icmp eq i64 %33, %19
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

34:                                               ; preds = %31, %.lr.ph
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %36

36:                                               ; preds = %26, %28, %34, %24, %22
  %.pn.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ], [ %35, %34 ], [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

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

declare noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort18getPartCellsAmountENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3

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

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

declare noundef i64 @_ZN9fvmsolver20SleMatrixBuilderPort16getBcPartsAmountEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare void @_ZN9fvmsolver20SleMatrixBuilderPort15getBoundaryNameB5cxx11Em(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3

declare void @_ZN9fvmsolver24AbstractCoeffsCalculator17calculateBoundaryEm(ptr noundef nonnull align 8 dereferenceable(240), i64 noundef) local_unnamed_addr #3

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 = { 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 = { "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, !13, i64 8}
!6 = !{!"_ZTSN9fvmsolver16SleMatrixBuilderE", !7, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !16, i64 64}
!7 = !{!"_ZTSSt10unique_ptrIN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt15__uniq_ptr_dataIN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_ELb1ELb1EE", !9, i64 0}
!9 = !{!"_ZTSSt15__uniq_ptr_implIN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EE", !10, i64 0}
!10 = !{!"_ZTSSt5tupleIJPN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EEE", !11, i64 0}
!11 = !{!"_ZTSSt11_Tuple_implILm0EJPN9fvmsolver20SleMatrixBuilderPortESt14default_deleteIS1_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_Head_baseILm0EPN9fvmsolver20SleMatrixBuilderPortELb0EE", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTSSt10shared_ptrIN9fvmsolver9SleSolverEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN9fvmsolver9SleSolverELN9__gnu_cxx12_Lock_policyE2EE", !13, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !13, i64 0}
!19 = !{!6, !13, i64 16}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !15, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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