; LLVM IR from facebookresearch/baspacho :: baspacho/testing (TestingMatGen)

; 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<long>, std::allocator<std::set<long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<long>, std::allocator<std::set<long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<long>, std::allocator<std::set<long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<long>, std::allocator<std::set<long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<>::param_type" }
%"struct.std::uniform_real_distribution<>::param_type" = type { double, double }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.BaSpaCho::testing_utils::SparseMatGenerator" = type { %"class.std::mersenne_twister_engine", %"class.std::vector" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }

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

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

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

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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNSt25uniform_real_distributionIdEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(5000)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8BaSpaCho13testing_utils18SparseMatGenerator11addSchurSetEld(ptr noundef nonnull align 8 dereferenceable(5024) %0, i64 noundef %1, double noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::uniform_real_distribution", align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !11
  %24 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds %"struct.BaSpaCho::testing_utils::SparseMatGenerator", ptr %24, i32 0, i32 1
  %27 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %28 = add i64 %25, %27
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @_ZNSaISt3setIlSt4lessIlESaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %29 unwind label %36

29:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  invoke void @_ZNSt25uniform_real_distributionIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %30 unwind label %40

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %90, %30
  %32 = load i64, ptr %12, align 8, !tbaa !9
  %33 = load i64, ptr %5, align 8, !tbaa !9
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %44, label %35

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

36:                                               ; preds = %3
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %9, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %143

40:                                               ; preds = %29
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %9, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %10, align 4
  br label %142

44:                                               ; preds = %31
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %45) #4
  %47 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertERKl(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %48 unwind label %59

48:                                               ; preds = %44
  %49 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %50 = extractvalue { ptr, i8 } %47, 0
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %52 = extractvalue { ptr, i8 } %47, 1
  store i8 %52, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %53 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %53, ptr %15, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %86, %48
  %55 = load i64, ptr %15, align 8, !tbaa !9
  %56 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %63, label %58

58:                                               ; preds = %54
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %89

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  br label %93

63:                                               ; preds = %54
  %64 = load double, ptr %6, align 8, !tbaa !11
  %65 = fcmp oge double %64, 1.000000e+00
  br i1 %65, label %72, label %66

66:                                               ; preds = %63
  %67 = load double, ptr %6, align 8, !tbaa !11
  %68 = getelementptr inbounds %"struct.BaSpaCho::testing_utils::SparseMatGenerator", ptr %24, i32 0, i32 0
  %69 = invoke noundef double @_ZNSt25uniform_real_distributionIdEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(5000) %68)
          to label %70 unwind label %81

70:                                               ; preds = %66
  %71 = fcmp ogt double %67, %69
  br i1 %71, label %72, label %85

72:                                               ; preds = %70, %63
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %73) #4
  %75 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertERKl(ptr noundef nonnull align 8 dereferenceable(48) %74, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %76 unwind label %81

76:                                               ; preds = %72
  %77 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 0
  %78 = extractvalue { ptr, i8 } %75, 0
  store ptr %78, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 1
  %80 = extractvalue { ptr, i8 } %75, 1
  store i8 %80, ptr %79, align 8
  br label %85

81:                                               ; preds = %72, %66
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %93

85:                                               ; preds = %76, %70
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %15, align 8, !tbaa !9
  br label %54, !llvm.loop !13

89:                                               ; preds = %58
  br label %90

90:                                               ; preds = %89
  %91 = load i64, ptr %12, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %12, align 8, !tbaa !9
  br label %31, !llvm.loop !15

93:                                               ; preds = %81, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %142

94:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %137, %94
  %96 = load i64, ptr %17, align 8, !tbaa !9
  %97 = getelementptr inbounds %"struct.BaSpaCho::testing_utils::SparseMatGenerator", ptr %24, i32 0, i32 1
  %98 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #4
  %99 = icmp ult i64 %96, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %95
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %140

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %102 = getelementptr inbounds %"struct.BaSpaCho::testing_utils::SparseMatGenerator", ptr %24, i32 0, i32 1
  %103 = load i64, ptr %17, align 8, !tbaa !9
  %104 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %103) #4
  store ptr %104, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = call ptr @_ZNKSt3setIlSt4lessIlESaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %105) #4
  %107 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = call ptr @_ZNKSt3setIlSt4lessIlESaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %108) #4
  %110 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  br label %111

111:                                              ; preds = %130, %101
  %112 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIlES2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  br i1 %112, label %114, label %113

113:                                              ; preds = %111
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %136

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIlEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  %116 = load i64, ptr %115, align 8, !tbaa !9
  store i64 %116, ptr %21, align 8, !tbaa !9
  %117 = load i64, ptr %17, align 8, !tbaa !9
  %118 = load i64, ptr %5, align 8, !tbaa !9
  %119 = add nsw i64 %117, %118
  %120 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %119) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %121 = load i64, ptr %21, align 8, !tbaa !9
  %122 = load i64, ptr %5, align 8, !tbaa !9
  %123 = add nsw i64 %121, %122
  store i64 %123, ptr %22, align 8, !tbaa !9
  %124 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertEOl(ptr noundef nonnull align 8 dereferenceable(48) %120, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %125 unwind label %132

125:                                              ; preds = %114
  %126 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %127 = extractvalue { ptr, i8 } %124, 0
  store ptr %127, ptr %126, align 8
  %128 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %129 = extractvalue { ptr, i8 } %124, 1
  store i8 %129, ptr %128, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %130

130:                                              ; preds = %125
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIlEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  br label %111

132:                                              ; preds = %114
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %142

136:                                              ; preds = %113
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %17, align 8, !tbaa !9
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %17, align 8, !tbaa !9
  br label %95, !llvm.loop !16

140:                                              ; preds = %100
  %141 = getelementptr inbounds %"struct.BaSpaCho::testing_utils::SparseMatGenerator", ptr %24, i32 0, i32 1
  call void @_ZSt4swapISt3setIlSt4lessIlESaIlEESaIS4_EEvRSt6vectorIT_T0_ESA_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %141) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  ret void

142:                                              ; preds = %132, %93, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %143

143:                                              ; preds = %142, %36
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  br label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr %9, align 8
  %146 = load i32, ptr %10, align 4
  %147 = insertvalue { ptr, i32 } poison, ptr %145, 0
  %148 = insertvalue { ptr, i32 } %147, i32 %146, 1
  resume { ptr, i32 } %148
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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 = { 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 #4 = { nounwind }

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

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


; 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<long>, std::allocator<std::set<long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<long>, std::allocator<std::set<long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<long>, std::allocator<std::set<long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<long>, std::allocator<std::set<long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<>::param_type" }
%"struct.std::uniform_real_distribution<>::param_type" = type { double, double }
%"struct.std::_Rb_tree_const_iterator" = type { 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 nounwind uwtable
declare dso_local void @_ZNSaISt3setIlSt4lessIlESaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNSt25uniform_real_distributionIdEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8BaSpaCho13testing_utils18SparseMatGenerator11addSchurSetEld(ptr noundef nonnull align 8 dereferenceable(5024) %0, i64 noundef %1, double noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::uniform_real_distribution", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 5000
  %13 = tail call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  %14 = add i64 %13, %1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaISt3setIlSt4lessIlESaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %15 unwind label %42

15:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  invoke void @_ZNSt25uniform_real_distributionIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %16 unwind label %44

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store i64 0, ptr %7, align 8, !tbaa !5
  %17 = icmp sgt i64 %1, 0
  br i1 %17, label %.lr.ph34, label %._crit_edge35

.lr.ph34:                                         ; preds = %16
  %18 = fcmp ult double %2, 1.000000e+00
  br i1 %18, label %.lr.ph34.split.us, label %.lr.ph34.split

.lr.ph34.split.us:                                ; preds = %.lr.ph34, %._crit_edge.split.us.us
  %storemerge32.us = phi i64 [ %25, %._crit_edge.split.us.us ], [ 0, %.lr.ph34 ]
  %19 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %storemerge32.us) #4
  %20 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertERKl(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %21 unwind label %.split37.us

21:                                               ; preds = %.lr.ph34.split.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store i64 %1, ptr %8, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %23 = icmp sgt i64 %22, %1
  br i1 %23, label %.lr.ph.us, label %._crit_edge.split.us.us

._crit_edge.split.us.us:                          ; preds = %34, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %24 = load i64, ptr %7, align 8, !tbaa !5
  %25 = add nsw i64 %24, 1
  store i64 %25, ptr %7, align 8, !tbaa !5
  %26 = icmp slt i64 %25, %1
  br i1 %26, label %.lr.ph34.split.us, label %._crit_edge35, !llvm.loop !9

.lr.ph.us:                                        ; preds = %21, %34
  %27 = invoke noundef double @_ZNSt25uniform_real_distributionIdEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(5000) %0)
          to label %28 unwind label %.split.us.split.us

28:                                               ; preds = %.lr.ph.us
  %29 = fcmp olt double %27, %2
  br i1 %29, label %30, label %34

30:                                               ; preds = %28
  %31 = load i64, ptr %7, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %31) #4
  %33 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertERKl(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %34 unwind label %.split.us.split.us

34:                                               ; preds = %30, %28
  %35 = load i64, ptr %8, align 8, !tbaa !5
  %36 = add nsw i64 %35, 1
  store i64 %36, ptr %8, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %38 = icmp slt i64 %36, %37
  br i1 %38, label %.lr.ph.us, label %._crit_edge.split.us.us, !llvm.loop !11

.split37.us:                                      ; preds = %.lr.ph34.split.us
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %65

.split.us.split.us:                               ; preds = %30, %.lr.ph.us
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %59

._crit_edge35:                                    ; preds = %._crit_edge.split, %._crit_edge.split.us.us, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %41 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  %.not = icmp eq i64 %41, 0
  br i1 %.not, label %._crit_edge44, label %.lr.ph43

42:                                               ; preds = %3
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %86

44:                                               ; preds = %15
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %85

.lr.ph34.split:                                   ; preds = %.lr.ph34, %._crit_edge.split
  %storemerge32 = phi i64 [ %52, %._crit_edge.split ], [ 0, %.lr.ph34 ]
  %46 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %storemerge32) #4
  %47 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertERKl(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %48 unwind label %.split37

48:                                               ; preds = %.lr.ph34.split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store i64 %1, ptr %8, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %50 = icmp sgt i64 %49, %1
  br i1 %50, label %.lr.ph, label %._crit_edge.split

._crit_edge.split:                                ; preds = %60, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %51 = load i64, ptr %7, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %7, align 8, !tbaa !5
  %53 = icmp slt i64 %52, %1
  br i1 %53, label %.lr.ph34.split, label %._crit_edge35, !llvm.loop !9

.split37:                                         ; preds = %.lr.ph34.split
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %65

.lr.ph:                                           ; preds = %48, %60
  %55 = load i64, ptr %7, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %55) #4
  %57 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertERKl(ptr noundef nonnull align 8 dereferenceable(48) %56, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %60 unwind label %.split

.split:                                           ; preds = %.lr.ph
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %.split.us.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %58, %.split ], [ %40, %.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %65

60:                                               ; preds = %.lr.ph
  %61 = load i64, ptr %8, align 8, !tbaa !5
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %8, align 8, !tbaa !5
  %63 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %64 = icmp slt i64 %62, %63
  br i1 %64, label %.lr.ph, label %._crit_edge.split, !llvm.loop !11

65:                                               ; preds = %.split37, %.split37.us, %59
  %.pn = phi { ptr, i32 } [ %.us-phi, %59 ], [ %54, %.split37 ], [ %39, %.split37.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %85

._crit_edge44:                                    ; preds = %._crit_edge, %._crit_edge35
  call void @_ZSt4swapISt3setIlSt4lessIlESaIlEESaIS4_EEvRSt6vectorIT_T0_ESA_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret void

.lr.ph43:                                         ; preds = %._crit_edge35, %._crit_edge
  %.02341 = phi i64 [ %71, %._crit_edge ], [ 0, %._crit_edge35 ]
  %66 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.02341) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %67 = call ptr @_ZNKSt3setIlSt4lessIlESaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %66) #4
  store ptr %67, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %68 = call ptr @_ZNKSt3setIlSt4lessIlESaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %66) #4
  store ptr %68, ptr %10, align 8
  %69 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIlES2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %69, label %.lr.ph40, label %._crit_edge

.lr.ph40:                                         ; preds = %.lr.ph43
  %70 = add nsw i64 %.02341, %1
  br label %74

._crit_edge:                                      ; preds = %80, %.lr.ph43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %71 = add nuw nsw i64 %.02341, 1
  %72 = call noundef i64 @_ZNKSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  %73 = icmp ult i64 %71, %72
  br i1 %73, label %.lr.ph43, label %._crit_edge44, !llvm.loop !12

74:                                               ; preds = %.lr.ph40, %80
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIlEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %76 = load i64, ptr %75, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %70) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %78 = add nsw i64 %76, %1
  store i64 %78, ptr %11, align 8, !tbaa !5
  %79 = invoke { ptr, i8 } @_ZNSt3setIlSt4lessIlESaIlEE6insertEOl(ptr noundef nonnull align 8 dereferenceable(48) %77, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %80 unwind label %83

80:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIlEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %82 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIlES2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %82, label %74, label %._crit_edge

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %85

85:                                               ; preds = %83, %65, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %65 ], [ %84, %83 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNSt6vectorISt3setIlSt4lessIlESaIlEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %86

86:                                               ; preds = %85, %42
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %85 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt3setIlSt4lessIlESaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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