; LLVM IR from anaeim/apriori :: main.ll (Z24keep_frequent_candidatesR2lk)

; 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<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl" }
%"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl" = type { %"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl_data" }
%"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.lk = type <{ %"class.std::map", i32, [4 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.23" = type <{ %"class.std::set", i32, [4 x i8] }>
%"struct.std::pair.17" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>

@min_support_count = external dso_local global double, align 8
@transactions = external dso_local global %"class.std::vector", align 8
@all_lk = external dso_local global %"class.std::vector.3", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE6insertEOS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(52)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiEC2IRS4_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z25select_counting_algorithmii(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13subset_finderRSt3setIiSt4lessIiESaIiEEiiSt23_Rb_tree_const_iteratorIiER2lkS4_(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, ptr, ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(48)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24keep_frequent_candidatesR2lk(ptr noundef nonnull align 8 dereferenceable(52) %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca %"class.std::set", align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"class.std::set", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %struct.lk, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %22 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %23 = alloca %"struct.std::pair.23", align 8
  %24 = alloca %"struct.std::pair.17", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %134, %1
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = call noundef i64 @_ZNKSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @transactions) #4
  %30 = icmp ult i64 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %138

32:                                               ; preds = %26
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @transactions, i64 noundef %34) #4
  %36 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIiSt4lessIiESaIiEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %37 unwind label %69

37:                                               ; preds = %32
  %38 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.lk, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = icmp uge i64 %38, %42
  br i1 %43, label %44, label %133

44:                                               ; preds = %37
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.lk, ptr %45, i32 0, i32 0
  %47 = call noundef i64 @_ZNKSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %46) #4
  %48 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  %49 = trunc i64 %48 to i32
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.lk, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = invoke noundef i32 @_Z25select_counting_algorithmii(i32 noundef %49, i32 noundef %52)
          to label %54 unwind label %69

54:                                               ; preds = %44
  %55 = sext i32 %53 to i64
  %56 = icmp ult i64 %47, %55
  br i1 %56, label %57, label %120

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.lk, ptr %58, i32 0, i32 0
  %60 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %59) #4
  %61 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  br label %62

62:                                               ; preds = %115, %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.lk, ptr %63, i32 0, i32 0
  %65 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %64) #4
  %66 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %65, ptr %66, align 8
  %67 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br i1 %67, label %73, label %68

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

69:                                               ; preds = %120, %44, %32
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %10, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %11, align 4
  br label %137

73:                                               ; preds = %62
  %74 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %75 = getelementptr inbounds %"struct.std::pair.23", ptr %74, i32 0, i32 0
  %76 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIiSt4lessIiESaIiEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %75)
          to label %77 unwind label %85

77:                                               ; preds = %73
  store i8 1, ptr %4, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %78 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  %79 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  br label %80

80:                                               ; preds = %100, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %81 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  %82 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br i1 %83, label %89, label %84

84:                                               ; preds = %80
  store i32 8, ptr %9, align 4
  br label %103

85:                                               ; preds = %107, %73
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %118

89:                                               ; preds = %80
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %91 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %90)
          to label %92 unwind label %95

92:                                               ; preds = %89
  %93 = icmp eq i64 %91, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %92
  store i8 0, ptr %4, align 1, !tbaa !22
  store i32 8, ptr %9, align 4
  br label %103

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %118

99:                                               ; preds = %92
  br label %100

100:                                              ; preds = %99
  %101 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #4
  %102 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  br label %80, !llvm.loop !24

103:                                              ; preds = %94, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %104

104:                                              ; preds = %103
  %105 = load i8, ptr %4, align 1, !tbaa !22, !range !26, !noundef !27
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %114

107:                                              ; preds = %104
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.lk, ptr %108, i32 0, i32 0
  %110 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %109, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %111 unwind label %85

111:                                              ; preds = %107
  %112 = load i32, ptr %110, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %110, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %111, %104
  br label %115

115:                                              ; preds = %114
  %116 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #4
  %117 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  br label %62, !llvm.loop !28

118:                                              ; preds = %95, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %137

119:                                              ; preds = %68
  br label %132

120:                                              ; preds = %54
  %121 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  %122 = trunc i64 %121 to i32
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.lk, ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 8, !tbaa !11
  %126 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  %127 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  invoke void @_Z13subset_finderRSt3setIiSt4lessIiESaIiEEiiSt23_Rb_tree_const_iteratorIiER2lkS4_(ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef %122, i32 noundef %125, ptr %130, ptr noundef nonnull align 8 dereferenceable(52) %128, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %131 unwind label %69

131:                                              ; preds = %120
  br label %132

132:                                              ; preds = %131, %119
  br label %133

133:                                              ; preds = %132, %37
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %8, align 4, !tbaa !9
  br label %26, !llvm.loop !29

137:                                              ; preds = %118, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %202

138:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 56, ptr %19) #4
  call void @_ZN2lkC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %19) #4
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.lk, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !11
  %142 = getelementptr inbounds %struct.lk, ptr %19, i32 0, i32 1
  store i32 %141, ptr %142, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.lk, ptr %143, i32 0, i32 0
  %145 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %144) #4
  %146 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  br label %147

147:                                              ; preds = %189, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.lk, ptr %148, i32 0, i32 0
  %150 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %149) #4
  %151 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %22, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  %152 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br i1 %152, label %154, label %153

153:                                              ; preds = %147
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %193

154:                                              ; preds = %147
  %155 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  %156 = getelementptr inbounds %"struct.std::pair.23", ptr %155, i32 0, i32 0
  %157 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIiSt4lessIiESaIiEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %156)
          to label %158 unwind label %175

158:                                              ; preds = %154
  %159 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  %160 = getelementptr inbounds %"struct.std::pair.23", ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !30
  store i32 %161, ptr %20, align 4, !tbaa !9
  %162 = load i32, ptr %20, align 4, !tbaa !9
  %163 = sitofp i32 %162 to double
  %164 = load double, ptr @min_support_count, align 8, !tbaa !37
  %165 = fcmp oge double %163, %164
  br i1 %165, label %166, label %188

166:                                              ; preds = %158
  %167 = getelementptr inbounds %struct.lk, ptr %19, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #4
  invoke void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiEC2IRS4_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(52) %23, ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %168 unwind label %179

168:                                              ; preds = %166
  %169 = invoke { ptr, i8 } @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE6insertEOS8_(ptr noundef nonnull align 8 dereferenceable(48) %167, ptr noundef nonnull align 8 dereferenceable(52) %23)
          to label %170 unwind label %183

170:                                              ; preds = %168
  %171 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %172 = extractvalue { ptr, i8 } %169, 0
  store ptr %172, ptr %171, align 8
  %173 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %174 = extractvalue { ptr, i8 } %169, 1
  store i8 %174, ptr %173, align 8
  call void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(52) %23) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #4
  br label %188

175:                                              ; preds = %154
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %10, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %11, align 4
  br label %192

179:                                              ; preds = %166
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %10, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %11, align 4
  br label %187

183:                                              ; preds = %168
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %10, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %11, align 4
  call void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(52) %23) #4
  br label %187

187:                                              ; preds = %183, %179
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #4
  br label %192

188:                                              ; preds = %170, %158
  br label %189

189:                                              ; preds = %188
  %190 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 0) #4
  %191 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
  store ptr %190, ptr %191, align 8
  br label %147, !llvm.loop !39

192:                                              ; preds = %187, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %201

193:                                              ; preds = %153
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.lk, ptr %194, i32 0, i32 0
  call void @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %195) #4
  invoke void @_ZNSt6vectorI2lkSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @all_lk, ptr noundef nonnull align 8 dereferenceable(52) %19)
          to label %196 unwind label %197

196:                                              ; preds = %193
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @_ZN2lkD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %19) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void

197:                                              ; preds = %193
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %10, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %11, align 4
  br label %201

201:                                              ; preds = %197, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @_ZN2lkD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %19) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #4
  br label %202

202:                                              ; preds = %201, %137
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr %10, align 8
  %205 = load i32, ptr %11, align 4
  %206 = insertvalue { ptr, i32 } poison, ptr %204, 0
  %207 = insertvalue { ptr, i32 } %206, i32 %205, 1
  resume { ptr, i32 } %207
}

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTS2lk", !13, i64 0, !10, i64 48}
!13 = !{!"_ZTSSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE", !14, i64 0}
!14 = !{!"_ZTSSt8_Rb_treeISt3setIiSt4lessIiESaIiEESt4pairIKS4_iESt10_Select1stIS7_ES1_IS4_ESaIS7_EE", !15, i64 0}
!15 = !{!"_ZTSNSt8_Rb_treeISt3setIiSt4lessIiESaIiEESt4pairIKS4_iESt10_Select1stIS7_ES1_IS4_ESaIS7_EE13_Rb_tree_implISA_Lb1EEE", !16, i64 0, !18, i64 8}
!16 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt3setIiS0_IiESaIiEEEE", !17, i64 0}
!17 = !{!"_ZTSSt4lessISt3setIiS_IiESaIiEEE"}
!18 = !{!"_ZTSSt15_Rb_tree_header", !19, i64 0, !21, i64 32}
!19 = !{!"_ZTSSt18_Rb_tree_node_base", !20, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = !{!31, !10, i64 48}
!31 = !{!"_ZTSSt4pairIKSt3setIiSt4lessIiESaIiEEiE", !32, i64 0, !10, i64 48}
!32 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !35, i64 0, !18, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessIiE"}
!37 = !{!38, !38, i64 0}
!38 = !{!"double", !7, i64 0}
!39 = distinct !{!39, !25}


; 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<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl" }
%"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl" = type { %"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl_data" }
%"struct.std::_Vector_base<lk, std::allocator<lk>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.lk = type <{ %"class.std::map", i32, [4 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.23" = type <{ %"class.std::set", i32, [4 x i8] }>

@min_support_count = external dso_local local_unnamed_addr global double, align 8
@transactions = external dso_local global %"class.std::vector", align 8
@all_lk = external dso_local global %"class.std::vector.3", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE6insertEOS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(52)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiEC2IRS4_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z25select_counting_algorithmii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13subset_finderRSt3setIiSt4lessIiESaIiEEiiSt23_Rb_tree_const_iteratorIiER2lkS4_(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, ptr, ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24keep_frequent_candidatesR2lk(ptr noundef nonnull align 8 dereferenceable(52) %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::set", align 8
  %3 = alloca %"class.std::set", align 8
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %struct.lk, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::pair.23", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  %14 = call noundef i64 @_ZNKSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @transactions) #4
  %.not47 = icmp eq i64 %14, 0
  br i1 %.not47, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %1
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  br label %22

._crit_edge43:                                    ; preds = %77, %1
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #4
  call void @_ZN2lkC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %9) #4
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = load i32, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %9, i64 48
  store i32 %17, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %19 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %19, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %20 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %20, ptr %12, align 8
  %21 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br i1 %21, label %.lr.ph45, label %._crit_edge46

22:                                               ; preds = %.lr.ph42, %77
  %indvars.iv = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next, %77 ]
  %23 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @transactions, i64 noundef %indvars.iv) #4
  %24 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIiSt4lessIiESaIiEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %25 unwind label %42

25:                                               ; preds = %22
  %26 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  %27 = load i32, ptr %15, align 8, !tbaa !5
  %28 = sext i32 %27 to i64
  %.not = icmp ult i64 %26, %28
  br i1 %.not, label %77, label %29

29:                                               ; preds = %25
  %30 = call noundef i64 @_ZNKSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  %31 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  %32 = trunc i64 %31 to i32
  %33 = load i32, ptr %15, align 8, !tbaa !5
  %34 = invoke noundef i32 @_Z25select_counting_algorithmii(i32 noundef %32, i32 noundef %33)
          to label %35 unwind label %42

35:                                               ; preds = %29
  %36 = sext i32 %34 to i64
  %37 = icmp ult i64 %30, %36
  br i1 %37, label %38, label %72

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %39 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %39, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %40 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %40, ptr %6, align 8
  %41 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %41, label %.lr.ph38, label %._crit_edge39

._crit_edge39:                                    ; preds = %67, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %77

42:                                               ; preds = %72, %29, %22
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %109

.lr.ph38:                                         ; preds = %38, %67
  %44 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %45 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIiSt4lessIiESaIiEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %44)
          to label %46 unwind label %50

46:                                               ; preds = %.lr.ph38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %47 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  store ptr %47, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %48 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  store ptr %48, ptr %8, align 8
  %49 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %49, label %.lr.ph, label %._crit_edge

50:                                               ; preds = %._crit_edge, %.lr.ph38
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %71

.lr.ph:                                           ; preds = %46, %58
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %53 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %54 unwind label %56

54:                                               ; preds = %.lr.ph
  %55 = icmp eq i64 %53, 0
  br i1 %55, label %62, label %58

56:                                               ; preds = %.lr.ph
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %71

58:                                               ; preds = %54
  %59 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %60 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  store ptr %60, ptr %8, align 8
  %61 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !20

62:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %67

._crit_edge:                                      ; preds = %58, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %63 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %64 unwind label %50

64:                                               ; preds = %._crit_edge
  %65 = load i32, ptr %63, align 4, !tbaa !22
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %63, align 4, !tbaa !22
  br label %67

67:                                               ; preds = %62, %64
  %68 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %69 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %69, ptr %6, align 8
  %70 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %70, label %.lr.ph38, label %._crit_edge39, !llvm.loop !23

71:                                               ; preds = %56, %50
  %.pn33 = phi { ptr, i32 } [ %51, %50 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %109

72:                                               ; preds = %35
  %73 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  %74 = trunc i64 %73 to i32
  %75 = load i32, ptr %15, align 8, !tbaa !5
  %76 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  invoke void @_Z13subset_finderRSt3setIiSt4lessIiESaIiEEiiSt23_Rb_tree_const_iteratorIiER2lkS4_(ptr noundef nonnull align 8 dereferenceable(48) %3, i32 noundef %74, i32 noundef %75, ptr %76, ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %77 unwind label %42

77:                                               ; preds = %25, %72, %._crit_edge39
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %78 = call noundef i64 @_ZNKSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @transactions) #4
  %79 = icmp ugt i64 %78, %indvars.iv.next
  br i1 %79, label %22, label %._crit_edge43, !llvm.loop !24

._crit_edge46:                                    ; preds = %100, %._crit_edge43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  invoke void @_ZNSt6vectorI2lkSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @all_lk, ptr noundef nonnull align 8 dereferenceable(52) %9)
          to label %105 unwind label %106

.lr.ph45:                                         ; preds = %._crit_edge43, %100
  %80 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %81 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3setIiSt4lessIiESaIiEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %80)
          to label %82 unwind label %93

82:                                               ; preds = %.lr.ph45
  %83 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %84 = getelementptr inbounds i8, ptr %83, i64 48
  %85 = load i32, ptr %84, align 8, !tbaa !25
  store i32 %85, ptr %10, align 4, !tbaa !22
  %86 = sitofp i32 %85 to double
  %87 = load double, ptr @min_support_count, align 8, !tbaa !32
  %88 = fcmp ugt double %87, %86
  br i1 %88, label %100, label %89

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #4
  invoke void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiEC2IRS4_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(52) %13, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %90 unwind label %95

90:                                               ; preds = %89
  %91 = invoke { ptr, i8 } @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE6insertEOS8_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(52) %13)
          to label %92 unwind label %97

92:                                               ; preds = %90
  call void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(52) %13) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #4
  br label %100

93:                                               ; preds = %.lr.ph45
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %104

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %90
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIKSt3setIiSt4lessIiESaIiEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(52) %13) #4
  br label %99

99:                                               ; preds = %97, %95
  %.pn = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #4
  br label %104

100:                                              ; preds = %82, %92
  %101 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %102 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %102, ptr %12, align 8
  %103 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br i1 %103, label %.lr.ph45, label %._crit_edge46, !llvm.loop !34

104:                                              ; preds = %99, %93
  %.pn.pn = phi { ptr, i32 } [ %.pn, %99 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %108

105:                                              ; preds = %._crit_edge46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @_ZN2lkD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %9) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
  ret void

106:                                              ; preds = %._crit_edge46
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %108

108:                                              ; preds = %106, %104
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %104 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @_ZN2lkD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %9) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #4
  br label %109

109:                                              ; preds = %42, %71, %108
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %108 ], [ %.pn33, %71 ], [ %43, %42 ]
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn33.pn.pn
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !19, i64 48}
!6 = !{!"_ZTS2lk", !7, i64 0, !19, i64 48}
!7 = !{!"_ZTSSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE", !8, i64 0}
!8 = !{!"_ZTSSt8_Rb_treeISt3setIiSt4lessIiESaIiEESt4pairIKS4_iESt10_Select1stIS7_ES1_IS4_ESaIS7_EE", !9, i64 0}
!9 = !{!"_ZTSNSt8_Rb_treeISt3setIiSt4lessIiESaIiEESt4pairIKS4_iESt10_Select1stIS7_ES1_IS4_ESaIS7_EE13_Rb_tree_implISA_Lb1EEE", !10, i64 0, !12, i64 8}
!10 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt3setIiS0_IiESaIiEEEE", !11, i64 0}
!11 = !{!"_ZTSSt4lessISt3setIiS_IiESaIiEEE"}
!12 = !{!"_ZTSSt15_Rb_tree_header", !13, i64 0, !18, i64 32}
!13 = !{!"_ZTSSt18_Rb_tree_node_base", !14, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!14 = !{!"_ZTSSt14_Rb_tree_color", !15, i64 0}
!15 = !{!"omnipotent char", !16, i64 0}
!16 = !{!"Simple C++ TBAA"}
!17 = !{!"any pointer", !15, i64 0}
!18 = !{!"long", !15, i64 0}
!19 = !{!"int", !15, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!19, !19, i64 0}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = !{!26, !19, i64 48}
!26 = !{!"_ZTSSt4pairIKSt3setIiSt4lessIiESaIiEEiE", !27, i64 0, !19, i64 48}
!27 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !30, i64 0, !12, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessIiE"}
!32 = !{!33, !33, i64 0}
!33 = !{!"double", !15, i64 0}
!34 = distinct !{!34, !21}


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