; LLVM IR from mackorone/mms :: old/v2/src/lib/polypartition (polypartition)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.TPPLPartition::Diagonal" = type { i64, i64 }
%"struct.std::_List_iterator.5" = type { ptr }
%"struct.TPPLPartition::DPState2" = type { i8, i64, %"class.std::__cxx11::list.0" }
%"class.std::__cxx11::list.0" = type { %"class.std::__cxx11::_List_base.1" }
%"class.std::__cxx11::_List_base.1" = type { %"struct.std::__cxx11::_List_base<TPPLPartition::Diagonal, std::allocator<TPPLPartition::Diagonal>>::_List_impl" }
%"struct.std::__cxx11::_List_base<TPPLPartition::Diagonal, std::allocator<TPPLPartition::Diagonal>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { 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 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 zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13TPPLPartition11UpdateStateElllllPPNS_8DPState2E(ptr noundef nonnull align 1 dereferenceable(1) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) #2 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.TPPLPartition::Diagonal", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_List_iterator.5", align 8
  %20 = alloca %"struct.std::_List_iterator.5", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i64 %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  %21 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %22 = load ptr, ptr %14, align 8, !tbaa !5
  %23 = load i64, ptr %9, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %22, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %25, i64 %26
  %28 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !11
  store i64 %29, ptr %17, align 8, !tbaa !9
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = load i64, ptr %17, align 8, !tbaa !9
  %32 = icmp sgt i64 %30, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %7
  store i32 1, ptr %18, align 4
  br label %95

34:                                               ; preds = %7
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %35, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = load i64, ptr %10, align 8, !tbaa !9
  %40 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %38, i64 %39
  %41 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %40, i32 0, i32 2
  store ptr %41, ptr %16, align 8, !tbaa !5
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = getelementptr inbounds %"struct.TPPLPartition::Diagonal", ptr %15, i32 0, i32 0
  store i64 %42, ptr %43, align 8, !tbaa !19
  %44 = load i64, ptr %13, align 8, !tbaa !9
  %45 = getelementptr inbounds %"struct.TPPLPartition::Diagonal", ptr %15, i32 0, i32 1
  store i64 %44, ptr %45, align 8, !tbaa !21
  %46 = load i64, ptr %11, align 8, !tbaa !9
  %47 = load i64, ptr %17, align 8, !tbaa !9
  %48 = icmp slt i64 %46, %47
  br i1 %48, label %49, label %60

49:                                               ; preds = %34
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #3
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE10push_frontERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %52 = load i64, ptr %11, align 8, !tbaa !9
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = load i64, ptr %9, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %53, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %56, i64 %57
  %59 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %58, i32 0, i32 1
  store i64 %52, ptr %59, align 8, !tbaa !11
  br label %94

60:                                               ; preds = %34
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  br i1 %62, label %72, label %63

63:                                               ; preds = %60
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = call ptr @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #3
  %67 = getelementptr inbounds %"struct.std::_List_iterator.5", ptr %19, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  %68 = call noundef ptr @_ZNKSt14_List_iteratorIN13TPPLPartition8DiagonalEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #3
  %69 = getelementptr inbounds %"struct.TPPLPartition::Diagonal", ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !19
  %71 = icmp sle i64 %64, %70
  br label %72

72:                                               ; preds = %63, %60
  %73 = phi i1 [ false, %60 ], [ %71, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  store i32 1, ptr %18, align 4
  br label %95

75:                                               ; preds = %72
  br label %76

76:                                               ; preds = %90, %75
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  br i1 %78, label %88, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = call ptr @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #3
  %82 = getelementptr inbounds %"struct.std::_List_iterator.5", ptr %20, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = call noundef ptr @_ZNKSt14_List_iteratorIN13TPPLPartition8DiagonalEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #3
  %84 = getelementptr inbounds %"struct.TPPLPartition::Diagonal", ptr %83, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !21
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = icmp sge i64 %85, %86
  br label %88

88:                                               ; preds = %79, %76
  %89 = phi i1 [ false, %76 ], [ %87, %79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br i1 %89, label %90, label %92

90:                                               ; preds = %88
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #3
  br label %76, !llvm.loop !22

92:                                               ; preds = %88
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE10push_frontERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 8 dereferenceable(16) %15)
  br label %94

94:                                               ; preds = %92, %49
  store i32 0, ptr %18, align 4
  br label %95

95:                                               ; preds = %94, %74, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  %96 = load i32, ptr %18, align 4
  switch i32 %96, label %98 [
    i32 0, label %97
    i32 1, label %97
  ]

97:                                               ; preds = %95, %95
  ret void

98:                                               ; preds = %95
  unreachable
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN13TPPLPartition8DPState2E", !13, i64 0, !10, i64 8, !14, i64 16}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSNSt7__cxx1110_List_baseIN13TPPLPartition8DiagonalESaIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1110_List_baseIN13TPPLPartition8DiagonalESaIS2_EE10_List_implE", !17, i64 0}
!17 = !{!"_ZTSNSt8__detail17_List_node_headerE", !18, i64 0, !10, i64 16}
!18 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTSN13TPPLPartition8DiagonalE", !10, i64 0, !10, i64 8}
!21 = !{!20, !10, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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

%"struct.TPPLPartition::Diagonal" = type { i64, i64 }
%"struct.std::_List_iterator.5" = type { ptr }
%"struct.TPPLPartition::DPState2" = type { i8, i64, %"class.std::__cxx11::list.0" }
%"class.std::__cxx11::list.0" = type { %"class.std::__cxx11::_List_base.1" }
%"class.std::__cxx11::_List_base.1" = type { %"struct.std::__cxx11::_List_base<TPPLPartition::Diagonal, std::allocator<TPPLPartition::Diagonal>>::_List_impl" }
%"struct.std::__cxx11::_List_base<TPPLPartition::Diagonal, std::allocator<TPPLPartition::Diagonal>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

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

; 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 zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13TPPLPartition11UpdateStateElllllPPNS_8DPState2E(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr nocapture noundef readonly %6) local_unnamed_addr #2 align 2 {
  %8 = alloca %"struct.TPPLPartition::Diagonal", align 8
  %9 = alloca %"struct.std::_List_iterator.5", align 8
  %10 = alloca %"struct.std::_List_iterator.5", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %11 = getelementptr inbounds ptr, ptr %6, i64 %1
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %12, i64 %2
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = icmp slt i64 %15, %3
  br i1 %16, label %38, label %17

17:                                               ; preds = %7
  %18 = getelementptr inbounds i8, ptr %13, i64 16
  store i64 %4, ptr %8, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %5, ptr %19, align 8, !tbaa !20
  %20 = icmp sgt i64 %15, %3
  br i1 %20, label %21, label %24

21:                                               ; preds = %17
  tail call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE10push_frontERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.TPPLPartition::DPState2", ptr %22, i64 %2, i32 1
  store i64 %3, ptr %23, align 8, !tbaa !9
  br label %38

24:                                               ; preds = %17
  %25 = tail call noundef zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  br i1 %25, label %.critedge, label %26

26:                                               ; preds = %24
  %27 = tail call ptr @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  store ptr %27, ptr %9, align 8
  %28 = call noundef ptr @_ZNKSt14_List_iteratorIN13TPPLPartition8DiagonalEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %29 = load i64, ptr %28, align 8, !tbaa !18
  %.not = icmp slt i64 %29, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br i1 %.not, label %30, label %38

.critedge:                                        ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br label %30

30:                                               ; preds = %.critedge, %26
  %31 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  br i1 %31, label %.critedge2, label %.lr.ph

.lr.ph:                                           ; preds = %30, %36
  %32 = call ptr @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  store ptr %32, ptr %10, align 8
  %33 = call noundef ptr @_ZNKSt14_List_iteratorIN13TPPLPartition8DiagonalEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !20
  %.not29 = icmp slt i64 %35, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  br i1 %.not29, label %.loopexit, label %36

36:                                               ; preds = %.lr.ph
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  %37 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  br i1 %37, label %.critedge2, label %.lr.ph, !llvm.loop !21

.critedge2:                                       ; preds = %36, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.critedge2
  call void @_ZNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EE10push_frontERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br label %38

38:                                               ; preds = %21, %.loopexit, %26, %7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  ret void
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTSN13TPPLPartition8DPState2E", !11, i64 0, !12, i64 8, !13, i64 16}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx114listIN13TPPLPartition8DiagonalESaIS2_EEE", !14, i64 0}
!14 = !{!"_ZTSNSt7__cxx1110_List_baseIN13TPPLPartition8DiagonalESaIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSNSt7__cxx1110_List_baseIN13TPPLPartition8DiagonalESaIS2_EE10_List_implE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail17_List_node_headerE", !17, i64 0, !12, i64 16}
!17 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!18 = !{!19, !12, i64 0}
!19 = !{!"_ZTSN13TPPLPartition8DiagonalE", !12, i64 0, !12, i64 8}
!20 = !{!19, !12, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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