; LLVM IR from wesley-a-leung/Resources :: Tests/C++/graph/queries/WaveletMatrixTreeAggregationFuzzTest.ll (Z5test1v)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.StaticGraph = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%struct.WaveletMatrixTreeAggregation = type <{ i32, i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.LCA, %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.15", %"class.std::vector.15", [8 x i8] }>
%struct.LCA = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.FischerHeunStructure }
%struct.FischerHeunStructure = type <{ i32, i32, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", [8 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl" }
%"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl" = type { %"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl" }
%"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl" = type { %"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl_data" }
%"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::less" = type { i8 }
%struct.WaveletMatrixHLD = type <{ %struct.HLD, i32, [4 x i8], %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector.20", [8 x i8] }>
%struct.HLD = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl" }
%"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl" = type { %"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr }
%class.anon.25 = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i8, ptr }
%class.anon.26 = type { ptr }
%class.anon.27 = type { ptr }
%"struct.std::_Setprecision" = type { i32 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [123 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca i32, align 4
  %19 = alloca %struct.StaticGraph, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.WaveletMatrixTreeAggregation, align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"struct.std::less", align 1
  %24 = alloca %struct.WaveletMatrixHLD, align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"struct.std::less", align 1
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca %"class.std::allocator", align 1
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca %"class.std::function", align 8
  %33 = alloca %class.anon, align 8
  %34 = alloca %class.anon.25, align 8
  %35 = alloca %"class.std::vector", align 8
  %36 = alloca %"class.std::vector", align 8
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca ptr, align 8
  %47 = alloca %"class.std::vector", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca %"class.std::vector", align 8
  %57 = alloca ptr, align 8
  %58 = alloca %"class.std::vector", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %61 = alloca i32, align 4
  %62 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %63 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %64 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %65 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %66 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %67 = alloca i32, align 4
  %68 = alloca %"struct.std::pair", align 8
  %69 = alloca %class.anon.26, align 8
  %70 = alloca i32, align 4
  %71 = alloca %"struct.std::pair", align 8
  %72 = alloca %class.anon.27, align 8
  %73 = alloca i32, align 4
  %74 = alloca ptr, align 8
  %75 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %76 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %77 = alloca ptr, align 8
  %78 = alloca %"class.std::chrono::time_point", align 8
  %79 = alloca double, align 8
  %80 = alloca %"class.std::chrono::duration", align 8
  %81 = alloca %"struct.std::_Setprecision", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #8
  %82 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %83 = getelementptr inbounds %"class.std::chrono::time_point", ptr %1, i32 0, i32 0
  %84 = getelementptr inbounds %"class.std::chrono::duration", ptr %83, i32 0, i32 0
  store i64 %82, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr %2) #8
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 50000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 100, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %648, %0
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = icmp slt i32 %86, 50000
  br i1 %87, label %89, label %88

88:                                               ; preds = %85
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %665

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %90 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %91 = urem i64 %90, 101
  %92 = trunc i64 %91 to i32
  store i32 %92, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %94, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %95 unwind label %101

95:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %113, %95
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %105, label %100

100:                                              ; preds = %96
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %120

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %12, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %664

105:                                              ; preds = %96
  %106 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %107 unwind label %116

107:                                              ; preds = %105
  %108 = urem i64 %106, 100
  %109 = trunc i64 %108 to i32
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %111) #8
  store i32 %109, ptr %112, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %107
  %114 = load i32, ptr %14, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %14, align 4, !tbaa !5
  br label %96, !llvm.loop !11

116:                                              ; preds = %105
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %663

120:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %122, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %123 unwind label %129

123:                                              ; preds = %120
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %141, %123
  %125 = load i32, ptr %18, align 4, !tbaa !5
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %133, label %128

128:                                              ; preds = %124
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %148

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %662

133:                                              ; preds = %124
  %134 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %135 unwind label %144

135:                                              ; preds = %133
  %136 = urem i64 %134, 2
  %137 = trunc i64 %136 to i32
  %138 = load i32, ptr %18, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %139) #8
  store i32 %137, ptr %140, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %135
  %142 = load i32, ptr %18, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %18, align 4, !tbaa !5
  br label %124, !llvm.loop !13

144:                                              ; preds = %133
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %12, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %661

148:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 96, ptr %19) #8
  %149 = load i32, ptr %8, align 4, !tbaa !5
  invoke void @_ZN11StaticGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(96) %19, i32 noundef %149)
          to label %150 unwind label %156

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %169, %150
  %152 = load i32, ptr %20, align 4, !tbaa !5
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %160, label %155

155:                                              ; preds = %151
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %176

156:                                              ; preds = %148
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %12, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %13, align 4
  br label %660

160:                                              ; preds = %151
  %161 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %162 unwind label %172

162:                                              ; preds = %160
  %163 = load i32, ptr %20, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = urem i64 %161, %164
  %166 = trunc i64 %165 to i32
  %167 = load i32, ptr %20, align 4, !tbaa !5
  invoke void @_ZN11StaticGraph9addBiEdgeEii(ptr noundef nonnull align 8 dereferenceable(96) %19, i32 noundef %166, i32 noundef %167)
          to label %168 unwind label %172

168:                                              ; preds = %162
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %20, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %20, align 4, !tbaa !5
  br label %151, !llvm.loop !14

172:                                              ; preds = %162, %160
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %12, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %659

176:                                              ; preds = %155
  invoke void @_ZN11StaticGraph5buildEv(ptr noundef nonnull align 8 dereferenceable(96) %19)
          to label %177 unwind label %205

177:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 504, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  invoke void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(497) %21, ptr noundef nonnull align 8 dereferenceable(96) %19, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %178 unwind label %209

178:                                              ; preds = %177
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 312, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  invoke void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(305) %24, ptr noundef nonnull align 8 dereferenceable(96) %19, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %179 unwind label %213

179:                                              ; preds = %178
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %180 = load i32, ptr %8, align 4, !tbaa !5
  %181 = icmp sle i32 %180, 1
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  br label %187

183:                                              ; preds = %179
  %184 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %185 unwind label %217

185:                                              ; preds = %183
  %186 = urem i64 %184, 101
  br label %187

187:                                              ; preds = %185, %182
  %188 = phi i64 [ 0, %182 ], [ %186, %185 ]
  %189 = trunc i64 %188 to i32
  store i32 %189, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  %190 = load i32, ptr %8, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %191, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %192 unwind label %221

192:                                              ; preds = %187
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  %193 = load i32, ptr %8, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %194, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %195 unwind label %225

195:                                              ; preds = %192
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #8
  %196 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 0
  store ptr %28, ptr %196, align 8, !tbaa !15
  %197 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 1
  store ptr %30, ptr %197, align 8, !tbaa !15
  %198 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 2
  store ptr %19, ptr %198, align 8, !tbaa !15
  %199 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 3
  store ptr %32, ptr %199, align 8, !tbaa !15
  invoke void @"_ZNSt8functionIFviiiEEC2IZ5test1vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %200 unwind label %229

200:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #8
  %201 = load i32, ptr %8, align 4, !tbaa !5
  %202 = icmp sgt i32 %201, 0
  br i1 %202, label %203, label %237

203:                                              ; preds = %200
  invoke void @_ZNKSt8functionIFviiiEEclEiii(ptr noundef nonnull align 8 dereferenceable(32) %32, i32 noundef 0, i32 noundef -1, i32 noundef 0)
          to label %204 unwind label %233

204:                                              ; preds = %203
  br label %237

205:                                              ; preds = %176
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  br label %659

209:                                              ; preds = %177
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %12, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %13, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %658

213:                                              ; preds = %178
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %12, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %13, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br label %657

217:                                              ; preds = %183
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %12, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %13, align 4
  br label %656

221:                                              ; preds = %187
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %12, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  br label %655

225:                                              ; preds = %192
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %12, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  br label %654

229:                                              ; preds = %195
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %12, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #8
  br label %653

233:                                              ; preds = %203
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %12, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %13, align 4
  br label %652

237:                                              ; preds = %204, %200
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %238 = getelementptr inbounds %class.anon.25, ptr %34, i32 0, i32 0
  store ptr %30, ptr %238, align 8, !tbaa !15
  %239 = getelementptr inbounds %class.anon.25, ptr %34, i32 0, i32 1
  store ptr %28, ptr %239, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %607, %237
  %241 = load i32, ptr %38, align 4, !tbaa !5
  %242 = load i32, ptr %27, align 4, !tbaa !5
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %611

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %246 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %247 unwind label %276

247:                                              ; preds = %245
  %248 = urem i64 %246, 3
  %249 = trunc i64 %248 to i32
  store i32 %249, ptr %39, align 4, !tbaa !5
  %250 = load i32, ptr %39, align 4, !tbaa !5
  %251 = icmp eq i32 %250, 0
  br i1 %251, label %252, label %284

252:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  br label %253

253:                                              ; preds = %260, %252
  %254 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %255 unwind label %280

255:                                              ; preds = %253
  %256 = load i32, ptr %8, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = urem i64 %254, %257
  %259 = trunc i64 %258 to i32
  store i32 %259, ptr %40, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %255
  %261 = load i32, ptr %40, align 4, !tbaa !5
  %262 = icmp eq i32 %261, 0
  br i1 %262, label %253, label %263, !llvm.loop !17

263:                                              ; preds = %260
  %264 = load i32, ptr %40, align 4, !tbaa !5
  %265 = load i32, ptr %40, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %266) #8
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = xor i32 %268, 1
  store i32 %269, ptr %267, align 4, !tbaa !5
  invoke void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %264, ptr noundef nonnull align 4 dereferenceable(4) %267)
          to label %270 unwind label %280

270:                                              ; preds = %263
  %271 = load i32, ptr %40, align 4, !tbaa !5
  %272 = load i32, ptr %40, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %273) #8
  invoke void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(305) %24, i32 noundef %271, ptr noundef nonnull align 4 dereferenceable(4) %274)
          to label %275 unwind label %280

275:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %606

276:                                              ; preds = %245
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %12, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %13, align 4
  br label %610

280:                                              ; preds = %270, %263, %253
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %12, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %610

284:                                              ; preds = %247
  %285 = load i32, ptr %39, align 4, !tbaa !5
  %286 = icmp eq i32 %285, 1
  br i1 %286, label %287, label %406

287:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %288 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %289 unwind label %318

289:                                              ; preds = %287
  %290 = load i32, ptr %8, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = urem i64 %288, %291
  %293 = trunc i64 %292 to i32
  store i32 %293, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  br label %294

294:                                              ; preds = %301, %289
  %295 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %296 unwind label %322

296:                                              ; preds = %294
  %297 = load i32, ptr %8, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = urem i64 %295, %298
  %300 = trunc i64 %299 to i32
  store i32 %300, ptr %42, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %296
  %302 = load i32, ptr %41, align 4, !tbaa !5
  %303 = load i32, ptr %42, align 4, !tbaa !5
  %304 = icmp eq i32 %302, %303
  br i1 %304, label %294, label %305, !llvm.loop !18

305:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %306 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %307 unwind label %326

307:                                              ; preds = %305
  %308 = urem i64 %306, 100
  %309 = trunc i64 %308 to i32
  store i32 %309, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %310 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %311 unwind label %330

311:                                              ; preds = %307
  %312 = urem i64 %310, 100
  %313 = trunc i64 %312 to i32
  store i32 %313, ptr %44, align 4, !tbaa !5
  %314 = load i32, ptr %43, align 4, !tbaa !5
  %315 = load i32, ptr %44, align 4, !tbaa !5
  %316 = icmp sgt i32 %314, %315
  br i1 %316, label %317, label %334

317:                                              ; preds = %311
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44) #8
  br label %334

318:                                              ; preds = %287
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %12, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %13, align 4
  br label %405

322:                                              ; preds = %294
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %12, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %13, align 4
  br label %404

326:                                              ; preds = %305
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %12, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %13, align 4
  br label %403

330:                                              ; preds = %307
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %12, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %13, align 4
  br label %402

334:                                              ; preds = %317, %311
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 0, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #8
  %335 = load i32, ptr %41, align 4, !tbaa !5
  %336 = load i32, ptr %42, align 4, !tbaa !5
  invoke void @"_ZZ5test1vENK3$_1clEii"(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %47, ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef %335, i32 noundef %336)
          to label %337 unwind label %347

337:                                              ; preds = %334
  store ptr %47, ptr %46, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %338 = load ptr, ptr %46, align 8, !tbaa !15
  %339 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %338) #8
  %340 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %339, ptr %340, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %341 = load ptr, ptr %46, align 8, !tbaa !15
  %342 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %341) #8
  %343 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %342, ptr %343, align 8
  br label %344

344:                                              ; preds = %375, %337
  %345 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #8
  br i1 %345, label %351, label %346

346:                                              ; preds = %344
  store i32 21, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %377

347:                                              ; preds = %334
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %12, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %401

351:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %352 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  %353 = load i32, ptr %352, align 4, !tbaa !5
  store i32 %353, ptr %50, align 4, !tbaa !5
  %354 = load i32, ptr %43, align 4, !tbaa !5
  %355 = load i32, ptr %50, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %356) #8
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = icmp sle i32 %354, %358
  br i1 %359, label %360, label %374

360:                                              ; preds = %351
  %361 = load i32, ptr %50, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %362) #8
  %364 = load i32, ptr %363, align 4, !tbaa !5
  %365 = load i32, ptr %44, align 4, !tbaa !5
  %366 = icmp sle i32 %364, %365
  br i1 %366, label %367, label %374

367:                                              ; preds = %360
  %368 = load i32, ptr %50, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %369) #8
  %371 = load i32, ptr %370, align 4, !tbaa !5
  %372 = load i32, ptr %45, align 4, !tbaa !5
  %373 = add nsw i32 %372, %371
  store i32 %373, ptr %45, align 4, !tbaa !5
  br label %374

374:                                              ; preds = %367, %360, %351
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %375

375:                                              ; preds = %374
  %376 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  br label %344

377:                                              ; preds = %346
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %378 unwind label %389

378:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %379 = load i32, ptr %41, align 4, !tbaa !5
  %380 = load i32, ptr %42, align 4, !tbaa !5
  %381 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %379, i32 noundef %380, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %382 unwind label %393

382:                                              ; preds = %378
  store i32 %381, ptr %51, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %383 unwind label %393

383:                                              ; preds = %382
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %384 = load i32, ptr %41, align 4, !tbaa !5
  %385 = load i32, ptr %42, align 4, !tbaa !5
  %386 = invoke noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(305) %24, i32 noundef %384, i32 noundef %385, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %387 unwind label %397

387:                                              ; preds = %383
  store i32 %386, ptr %52, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %388 unwind label %397

388:                                              ; preds = %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %605

389:                                              ; preds = %377
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %12, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %13, align 4
  br label %401

393:                                              ; preds = %382, %378
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %12, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %401

397:                                              ; preds = %387, %383
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %12, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %401

401:                                              ; preds = %397, %393, %389, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %402

402:                                              ; preds = %401, %330
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %403

403:                                              ; preds = %402, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %404

404:                                              ; preds = %403, %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %405

405:                                              ; preds = %404, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %610

406:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %407 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %408 unwind label %448

408:                                              ; preds = %406
  %409 = load i32, ptr %8, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = urem i64 %407, %410
  %412 = trunc i64 %411 to i32
  store i32 %412, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  br label %413

413:                                              ; preds = %420, %408
  %414 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %415 unwind label %452

415:                                              ; preds = %413
  %416 = load i32, ptr %8, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = urem i64 %414, %417
  %419 = trunc i64 %418 to i32
  store i32 %419, ptr %54, align 4, !tbaa !5
  br label %420

420:                                              ; preds = %415
  %421 = load i32, ptr %53, align 4, !tbaa !5
  %422 = load i32, ptr %54, align 4, !tbaa !5
  %423 = icmp eq i32 %421, %422
  br i1 %423, label %413, label %424, !llvm.loop !19

424:                                              ; preds = %420
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  %425 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %426 unwind label %456

426:                                              ; preds = %424
  %427 = load i32, ptr %53, align 4, !tbaa !5
  %428 = load i32, ptr %53, align 4, !tbaa !5
  %429 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKi(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %427, i32 noundef %428, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %430 unwind label %456

430:                                              ; preds = %426
  %431 = add nsw i32 %429, 1
  %432 = mul nsw i32 %431, 2
  %433 = sext i32 %432 to i64
  %434 = urem i64 %425, %433
  %435 = trunc i64 %434 to i32
  store i32 %435, ptr %55, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %56) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #8
  %436 = load i32, ptr %53, align 4, !tbaa !5
  %437 = load i32, ptr %54, align 4, !tbaa !5
  invoke void @"_ZZ5test1vENK3$_1clEii"(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %58, ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef %436, i32 noundef %437)
          to label %438 unwind label %460

438:                                              ; preds = %430
  store ptr %58, ptr %57, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %439 = load ptr, ptr %57, align 8, !tbaa !15
  %440 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %439) #8
  %441 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  store ptr %440, ptr %441, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %442 = load ptr, ptr %57, align 8, !tbaa !15
  %443 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %442) #8
  %444 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %60, i32 0, i32 0
  store ptr %443, ptr %444, align 8
  br label %445

445:                                              ; preds = %482, %438
  %446 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60) #8
  br i1 %446, label %464, label %447

447:                                              ; preds = %445
  store i32 25, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %485

448:                                              ; preds = %406
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %12, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %13, align 4
  br label %604

452:                                              ; preds = %413
  %453 = landingpad { ptr, i32 }
          cleanup
  %454 = extractvalue { ptr, i32 } %453, 0
  store ptr %454, ptr %12, align 8
  %455 = extractvalue { ptr, i32 } %453, 1
  store i32 %455, ptr %13, align 4
  br label %603

456:                                              ; preds = %426, %424
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %12, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %13, align 4
  br label %602

460:                                              ; preds = %430
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %12, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %13, align 4
  br label %484

464:                                              ; preds = %445
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %465 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  %466 = load i32, ptr %465, align 4, !tbaa !5
  store i32 %466, ptr %61, align 4, !tbaa !5
  %467 = load i32, ptr %61, align 4, !tbaa !5
  %468 = sext i32 %467 to i64
  %469 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %468) #8
  %470 = load i32, ptr %469, align 4, !tbaa !5
  %471 = icmp ne i32 %470, 0
  br i1 %471, label %472, label %481

472:                                              ; preds = %464
  %473 = load i32, ptr %61, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %474) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 4 dereferenceable(4) %475)
          to label %476 unwind label %477

476:                                              ; preds = %472
  br label %481

477:                                              ; preds = %472
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %12, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #8
  br label %484

481:                                              ; preds = %476, %464
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  br label %482

482:                                              ; preds = %481
  %483 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  br label %445

484:                                              ; preds = %477, %460
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %601

485:                                              ; preds = %447
  %486 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %487 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %62, i32 0, i32 0
  store ptr %486, ptr %487, align 8
  %488 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %489 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %63, i32 0, i32 0
  store ptr %488, ptr %489, align 8
  %490 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %62, i32 0, i32 0
  %491 = load ptr, ptr %490, align 8
  %492 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %63, i32 0, i32 0
  %493 = load ptr, ptr %492, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %491, ptr %493)
          to label %494 unwind label %511

494:                                              ; preds = %485
  %495 = load i32, ptr %55, align 4, !tbaa !5
  %496 = icmp eq i32 %495, 0
  br i1 %496, label %497, label %519

497:                                              ; preds = %494
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %498 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %499 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  store ptr %498, ptr %499, align 8
  %500 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %501 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %66, i32 0, i32 0
  store ptr %500, ptr %501, align 8
  %502 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  %503 = load ptr, ptr %502, align 8
  %504 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %66, i32 0, i32 0
  %505 = load ptr, ptr %504, align 8
  %506 = invoke ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %503, ptr %505)
          to label %507 unwind label %515

507:                                              ; preds = %497
  %508 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %64, i32 0, i32 0
  store ptr %506, ptr %508, align 8
  %509 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %509)
          to label %510 unwind label %515

510:                                              ; preds = %507
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  br label %538

511:                                              ; preds = %525, %485
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %12, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %13, align 4
  br label %601

515:                                              ; preds = %507, %497
  %516 = landingpad { ptr, i32 }
          cleanup
  %517 = extractvalue { ptr, i32 } %516, 0
  store ptr %517, ptr %12, align 8
  %518 = extractvalue { ptr, i32 } %516, 1
  store i32 %518, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  br label %601

519:                                              ; preds = %494
  %520 = load i32, ptr %55, align 4, !tbaa !5
  %521 = sub nsw i32 %520, 1
  %522 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %523 = trunc i64 %522 to i32
  %524 = icmp slt i32 %521, %523
  br i1 %524, label %525, label %531

525:                                              ; preds = %519
  %526 = load i32, ptr %55, align 4, !tbaa !5
  %527 = sub nsw i32 %526, 1
  %528 = sext i32 %527 to i64
  %529 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %528) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %529)
          to label %530 unwind label %511

530:                                              ; preds = %525
  br label %537

531:                                              ; preds = %519
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #8
  store i32 2147483647, ptr %67, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %67)
          to label %532 unwind label %533

532:                                              ; preds = %531
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  br label %537

533:                                              ; preds = %531
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %12, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  br label %601

537:                                              ; preds = %532, %530
  br label %538

538:                                              ; preds = %537, %510
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #8
  %539 = load i32, ptr %53, align 4, !tbaa !5
  %540 = load i32, ptr %54, align 4, !tbaa !5
  %541 = getelementptr inbounds %class.anon.26, ptr %69, i32 0, i32 0
  store ptr %55, ptr %541, align 8, !tbaa !15
  %542 = getelementptr inbounds %class.anon.26, ptr %69, i32 0, i32 0
  %543 = load ptr, ptr %542, align 8
  %544 = invoke { i8, ptr } @"_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_2EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %539, i32 noundef %540, ptr %543)
          to label %545 unwind label %584

545:                                              ; preds = %538
  %546 = getelementptr inbounds { i8, ptr }, ptr %68, i32 0, i32 0
  %547 = extractvalue { i8, ptr } %544, 0
  store i8 %547, ptr %546, align 8
  %548 = getelementptr inbounds { i8, ptr }, ptr %68, i32 0, i32 1
  %549 = extractvalue { i8, ptr } %544, 1
  store ptr %549, ptr %548, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  %550 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 0
  %551 = load i8, ptr %550, align 8, !tbaa !20, !range !23, !noundef !24
  %552 = trunc i8 %551 to i1
  br i1 %552, label %553, label %557

553:                                              ; preds = %545
  %554 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 1
  %555 = load ptr, ptr %554, align 8, !tbaa !25
  %556 = load i32, ptr %555, align 4, !tbaa !5
  br label %558

557:                                              ; preds = %545
  br label %558

558:                                              ; preds = %557, %553
  %559 = phi i32 [ %556, %553 ], [ 2147483647, %557 ]
  store i32 %559, ptr %70, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %560 unwind label %588

560:                                              ; preds = %558
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #8
  %561 = load i32, ptr %53, align 4, !tbaa !5
  %562 = load i32, ptr %54, align 4, !tbaa !5
  %563 = getelementptr inbounds %class.anon.27, ptr %72, i32 0, i32 0
  store ptr %55, ptr %563, align 8, !tbaa !15
  %564 = getelementptr inbounds %class.anon.27, ptr %72, i32 0, i32 0
  %565 = load ptr, ptr %564, align 8
  %566 = invoke { i8, ptr } @"_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_3EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(305) %24, i32 noundef %561, i32 noundef %562, ptr %565)
          to label %567 unwind label %592

567:                                              ; preds = %560
  %568 = getelementptr inbounds { i8, ptr }, ptr %71, i32 0, i32 0
  %569 = extractvalue { i8, ptr } %566, 0
  store i8 %569, ptr %568, align 8
  %570 = getelementptr inbounds { i8, ptr }, ptr %71, i32 0, i32 1
  %571 = extractvalue { i8, ptr } %566, 1
  store ptr %571, ptr %570, align 8
  %572 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIbPiEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 8 dereferenceable(16) %71) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #8
  %573 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 0
  %574 = load i8, ptr %573, align 8, !tbaa !20, !range !23, !noundef !24
  %575 = trunc i8 %574 to i1
  br i1 %575, label %576, label %580

576:                                              ; preds = %567
  %577 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 1
  %578 = load ptr, ptr %577, align 8, !tbaa !25
  %579 = load i32, ptr %578, align 4, !tbaa !5
  br label %581

580:                                              ; preds = %567
  br label %581

581:                                              ; preds = %580, %576
  %582 = phi i32 [ %579, %576 ], [ 2147483647, %580 ]
  store i32 %582, ptr %73, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 4 dereferenceable(4) %73)
          to label %583 unwind label %596

583:                                              ; preds = %581
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %605

584:                                              ; preds = %538
  %585 = landingpad { ptr, i32 }
          cleanup
  %586 = extractvalue { ptr, i32 } %585, 0
  store ptr %586, ptr %12, align 8
  %587 = extractvalue { ptr, i32 } %585, 1
  store i32 %587, ptr %13, align 4
  br label %600

588:                                              ; preds = %558
  %589 = landingpad { ptr, i32 }
          cleanup
  %590 = extractvalue { ptr, i32 } %589, 0
  store ptr %590, ptr %12, align 8
  %591 = extractvalue { ptr, i32 } %589, 1
  store i32 %591, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  br label %600

592:                                              ; preds = %560
  %593 = landingpad { ptr, i32 }
          cleanup
  %594 = extractvalue { ptr, i32 } %593, 0
  store ptr %594, ptr %12, align 8
  %595 = extractvalue { ptr, i32 } %593, 1
  store i32 %595, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #8
  br label %600

596:                                              ; preds = %581
  %597 = landingpad { ptr, i32 }
          cleanup
  %598 = extractvalue { ptr, i32 } %597, 0
  store ptr %598, ptr %12, align 8
  %599 = extractvalue { ptr, i32 } %597, 1
  store i32 %599, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  br label %600

600:                                              ; preds = %596, %592, %588, %584
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #8
  br label %601

601:                                              ; preds = %600, %533, %515, %511, %484
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #8
  br label %602

602:                                              ; preds = %601, %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %603

603:                                              ; preds = %602, %452
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  br label %604

604:                                              ; preds = %603, %448
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %610

605:                                              ; preds = %583, %388
  br label %606

606:                                              ; preds = %605, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %607

607:                                              ; preds = %606
  %608 = load i32, ptr %38, align 4, !tbaa !5
  %609 = add nsw i32 %608, 1
  store i32 %609, ptr %38, align 4, !tbaa !5
  br label %240, !llvm.loop !26

610:                                              ; preds = %604, %405, %280, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %651

611:                                              ; preds = %244
  %612 = invoke noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %613 unwind label %616

613:                                              ; preds = %611
  br i1 %612, label %614, label %615

614:                                              ; preds = %613
  br label %621

615:                                              ; preds = %613
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 120, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

616:                                              ; preds = %621, %611
  %617 = landingpad { ptr, i32 }
          cleanup
  %618 = extractvalue { ptr, i32 } %617, 0
  store ptr %618, ptr %12, align 8
  %619 = extractvalue { ptr, i32 } %617, 1
  store i32 %619, ptr %13, align 4
  br label %651

620:                                              ; No predecessors!
  br label %621

621:                                              ; preds = %620, %614
  %622 = invoke noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %623 unwind label %616

623:                                              ; preds = %621
  br i1 %622, label %624, label %625

624:                                              ; preds = %623
  br label %627

625:                                              ; preds = %623
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 121, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

626:                                              ; No predecessors!
  br label %627

627:                                              ; preds = %626, %624
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #8
  store ptr %35, ptr %74, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #8
  %628 = load ptr, ptr %74, align 8, !tbaa !15
  %629 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %628) #8
  %630 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %75, i32 0, i32 0
  store ptr %629, ptr %630, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  %631 = load ptr, ptr %74, align 8, !tbaa !15
  %632 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %631) #8
  %633 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %76, i32 0, i32 0
  store ptr %632, ptr %633, align 8
  br label %634

634:                                              ; preds = %645, %627
  %635 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %76) #8
  br i1 %635, label %637, label %636

636:                                              ; preds = %634
  store i32 27, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  br label %647

637:                                              ; preds = %634
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #8
  %638 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #8
  store ptr %638, ptr %77, align 8, !tbaa !15
  %639 = load i64, ptr %5, align 8, !tbaa !9
  %640 = mul nsw i64 31, %639
  %641 = load ptr, ptr %77, align 8, !tbaa !15
  %642 = load i32, ptr %641, align 4, !tbaa !5
  %643 = sext i32 %642 to i64
  %644 = add nsw i64 %640, %643
  store i64 %644, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  br label %645

645:                                              ; preds = %637
  %646 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #8
  br label %634

647:                                              ; preds = %636
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %24) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr %24) #8
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497) %21) #8
  call void @llvm.lifetime.end.p0(i64 504, ptr %21) #8
  call void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %19) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %19) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %648

648:                                              ; preds = %647
  %649 = load i32, ptr %6, align 4, !tbaa !5
  %650 = add nsw i32 %649, 1
  store i32 %650, ptr %6, align 4, !tbaa !5
  br label %85, !llvm.loop !27

651:                                              ; preds = %616, %610
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %652

652:                                              ; preds = %651, %233
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  br label %653

653:                                              ; preds = %652, %229
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  br label %654

654:                                              ; preds = %653, %225
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %655

655:                                              ; preds = %654, %221
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br label %656

656:                                              ; preds = %655, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %24) #8
  br label %657

657:                                              ; preds = %656, %213
  call void @llvm.lifetime.end.p0(i64 312, ptr %24) #8
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497) %21) #8
  br label %658

658:                                              ; preds = %657, %209
  call void @llvm.lifetime.end.p0(i64 504, ptr %21) #8
  br label %659

659:                                              ; preds = %658, %205, %172
  call void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %19) #8
  br label %660

660:                                              ; preds = %659, %156
  call void @llvm.lifetime.end.p0(i64 96, ptr %19) #8
  br label %661

661:                                              ; preds = %660, %144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %662

662:                                              ; preds = %661, %129
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %663

663:                                              ; preds = %662, %116
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %664

664:                                              ; preds = %663, %101
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  br label %691

665:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #8
  %666 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %667 = getelementptr inbounds %"class.std::chrono::time_point", ptr %78, i32 0, i32 0
  %668 = getelementptr inbounds %"class.std::chrono::duration", ptr %667, i32 0, i32 0
  store i64 %666, ptr %668, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #8
  %669 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %670 = getelementptr inbounds %"class.std::chrono::duration", ptr %80, i32 0, i32 0
  store i64 %669, ptr %670, align 8
  %671 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
  %672 = sitofp i64 %671 to double
  %673 = fdiv double %672, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #8
  store double %673, ptr %79, align 8, !tbaa !28
  %674 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %675 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %674, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %676 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %677 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %676, ptr noundef @_ZSt5fixedRSt8ios_base)
  %678 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %679 = getelementptr inbounds %"struct.std::_Setprecision", ptr %81, i32 0, i32 0
  store i32 %678, ptr %679, align 4
  %680 = getelementptr inbounds %"struct.std::_Setprecision", ptr %81, i32 0, i32 0
  %681 = load i32, ptr %680, align 4
  %682 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %677, i32 %681)
  %683 = load double, ptr %79, align 8, !tbaa !28
  %684 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %682, double noundef %683)
  %685 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %684, ptr noundef @.str.5)
  %686 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %685, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %687 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %688 = load i64, ptr %5, align 8, !tbaa !9
  %689 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %687, i64 noundef %688)
  %690 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %689, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  ret void

691:                                              ; preds = %664
  %692 = load ptr, ptr %12, align 8
  %693 = load i32, ptr %13, align 4
  %694 = insertvalue { ptr, i32 } poison, ptr %692, 0
  %695 = insertvalue { ptr, i32 } %694, i32 %693, 1
  resume { ptr, i32 } %695
}

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11StaticGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11StaticGraph9addBiEdgeEii(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef, i32 noundef) #0 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(497), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(305), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviiiEEC2IZ5test1vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(305), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test1vENK3$_1clEii"(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #6 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(305), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKi(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) #6

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

; Function Attrs: mustprogress uwtable
declare hidden { i8, ptr } @"_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_2EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, i32 noundef, ptr) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden { i8, ptr } @"_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_3EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(305), i32 noundef, i32 noundef, ptr) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #0 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { noreturn nounwind "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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTSSt4pairIbPiE", !22, i64 0, !16, i64 8}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!21, !16, i64 8}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = !{!29, !29, i64 0}
!29 = !{!"double", !7, i64 0}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.StaticGraph = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%struct.WaveletMatrixTreeAggregation = type <{ i32, i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.LCA, %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.15", %"class.std::vector.15", [8 x i8] }>
%struct.LCA = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.FischerHeunStructure }
%struct.FischerHeunStructure = type <{ i32, i32, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", [8 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl" }
%"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl" = type { %"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BitPrefixSumArray, std::allocator<BitPrefixSumArray>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl" }
%"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl" = type { %"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl_data" }
%"struct.std::_Vector_base<R1, std::allocator<R1>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.WaveletMatrixHLD = type <{ %struct.HLD, i32, [4 x i8], %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector.20", [8 x i8] }>
%struct.HLD = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl" }
%"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl" = type { %"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<R2, std::allocator<R2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr }
%class.anon.25 = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i8, ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [123 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %struct.StaticGraph, align 8
  %11 = alloca %struct.WaveletMatrixTreeAggregation, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %struct.WaveletMatrixHLD, align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %class.anon, align 8
  %21 = alloca %class.anon.25, align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca %"class.std::vector", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca i32, align 4
  %40 = alloca %"struct.std::pair", align 8
  %41 = alloca i32, align 4
  %42 = alloca %"struct.std::pair", align 8
  %43 = alloca i32, align 4
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"class.std::chrono::time_point", align 8
  %47 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %48 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  store i64 %48, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %2) #9
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 100, ptr %3, align 4, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %20, i64 8
  %50 = getelementptr inbounds i8, ptr %20, i64 16
  %51 = getelementptr inbounds i8, ptr %20, i64 24
  %52 = getelementptr inbounds i8, ptr %21, i64 8
  %53 = getelementptr inbounds i8, ptr %40, i64 8
  %54 = getelementptr inbounds i8, ptr %42, i64 8
  br label %73

55:                                               ; preds = %._crit_edge221
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #9
  %56 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  store i64 %56, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #9
  %57 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %57, ptr %47, align 8
  %58 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %59 = sitofp i64 %58 to double
  %60 = fdiv double %59, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #9
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %65 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %64, i32 %65)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %66, double noundef %60)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @.str.5)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %70, i64 noundef %.1.lcssa)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret void

73:                                               ; preds = %0, %._crit_edge221
  %.0223 = phi i64 [ 0, %0 ], [ %.1.lcssa, %._crit_edge221 ]
  %.077222 = phi i32 [ 0, %0 ], [ %351, %._crit_edge221 ]
  %74 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %75 = urem i64 %74, 101
  %76 = trunc nuw nsw i64 %75 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %75, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %77 unwind label %79

77:                                               ; preds = %73
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  %78 = icmp ugt i64 %75, 1
  br i1 %78, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %77
  %umax = call i32 @llvm.umax.i32(i32 %76, i32 2)
  %wide.trip.count = zext nneg i32 %umax to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %82, %77
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %75, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %88 unwind label %89

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %372

.lr.ph:                                           ; preds = %.lr.ph.preheader, %82
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %82 ]
  %81 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %82 unwind label %86

82:                                               ; preds = %.lr.ph
  %83 = urem i64 %81, 100
  %84 = trunc nuw nsw i64 %83 to i32
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #9
  store i32 %84, ptr %85, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

86:                                               ; preds = %.lr.ph
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %371

88:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  br i1 %78, label %.lr.ph201.preheader, label %._crit_edge202

.lr.ph201.preheader:                              ; preds = %88
  %umax232 = call i32 @llvm.umax.i32(i32 %76, i32 2)
  %wide.trip.count233 = zext nneg i32 %umax232 to i64
  br label %.lr.ph201

._crit_edge202:                                   ; preds = %92, %88
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %10) #9
  invoke void @_ZN11StaticGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(96) %10, i32 noundef %76)
          to label %.preheader154 unwind label %98

.preheader154:                                    ; preds = %._crit_edge202
  br i1 %78, label %.lr.ph204.preheader, label %._crit_edge205

.lr.ph204.preheader:                              ; preds = %.preheader154
  %umax238 = call i32 @llvm.umax.i32(i32 %76, i32 2)
  %wide.trip.count239 = zext nneg i32 %umax238 to i64
  br label %.lr.ph204

89:                                               ; preds = %._crit_edge
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  br label %370

.lr.ph201:                                        ; preds = %.lr.ph201.preheader, %92
  %indvars.iv229 = phi i64 [ 1, %.lr.ph201.preheader ], [ %indvars.iv.next230, %92 ]
  %91 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %92 unwind label %96

92:                                               ; preds = %.lr.ph201
  %93 = trunc i64 %91 to i32
  %94 = and i32 %93, 1
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv229) #9
  store i32 %94, ptr %95, align 4, !tbaa !5
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %exitcond234.not = icmp eq i64 %indvars.iv.next230, %wide.trip.count233
  br i1 %exitcond234.not, label %._crit_edge202, label %.lr.ph201, !llvm.loop !11

96:                                               ; preds = %.lr.ph201
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %369

._crit_edge205:                                   ; preds = %105, %.preheader154
  invoke void @_ZN11StaticGraph5buildEv(ptr noundef nonnull align 8 dereferenceable(96) %10)
          to label %108 unwind label %123

98:                                               ; preds = %._crit_edge202
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %368

.lr.ph204:                                        ; preds = %.lr.ph204.preheader, %105
  %indvars.iv235 = phi i64 [ 1, %.lr.ph204.preheader ], [ %indvars.iv.next236, %105 ]
  %100 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %101 unwind label %106

101:                                              ; preds = %.lr.ph204
  %102 = urem i64 %100, %indvars.iv235
  %103 = trunc nuw nsw i64 %102 to i32
  %104 = trunc nuw nsw i64 %indvars.iv235 to i32
  invoke void @_ZN11StaticGraph9addBiEdgeEii(ptr noundef nonnull align 8 dereferenceable(96) %10, i32 noundef %103, i32 noundef %104)
          to label %105 unwind label %106

105:                                              ; preds = %101
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next236, %wide.trip.count239
  br i1 %exitcond240.not, label %._crit_edge205, label %.lr.ph204, !llvm.loop !12

106:                                              ; preds = %101, %.lr.ph204
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %367

108:                                              ; preds = %._crit_edge205
  call void @llvm.lifetime.start.p0(i64 504, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %12, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  invoke void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(497) %11, ptr noundef nonnull align 8 dereferenceable(96) %10, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %109 unwind label %125

109:                                              ; preds = %108
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 312, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %14, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  invoke void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(305) %13, ptr noundef nonnull align 8 dereferenceable(96) %10, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %110 unwind label %127

110:                                              ; preds = %109
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  %111 = icmp ult i64 %75, 2
  br i1 %111, label %116, label %112

112:                                              ; preds = %110
  %113 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %114 unwind label %129

114:                                              ; preds = %112
  %115 = urem i64 %113, 101
  br label %116

116:                                              ; preds = %110, %114
  %117 = phi i64 [ %115, %114 ], [ 0, %110 ]
  %118 = trunc nuw nsw i64 %117 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %75, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %119 unwind label %131

119:                                              ; preds = %116
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #9
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %75, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %120 unwind label %133

120:                                              ; preds = %119
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #9
  store ptr %15, ptr %20, align 8, !tbaa !13
  store ptr %17, ptr %49, align 8, !tbaa !13
  store ptr %10, ptr %50, align 8, !tbaa !13
  store ptr %19, ptr %51, align 8, !tbaa !13
  invoke void @"_ZNSt8functionIFviiiEEC2IZ5test1vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %121 unwind label %135

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  %.not = icmp eq i64 %75, 0
  br i1 %.not, label %139, label %122

122:                                              ; preds = %121
  invoke void @_ZNKSt8functionIFviiiEEclEiii(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 0, i32 noundef -1, i32 noundef 0)
          to label %139 unwind label %137

123:                                              ; preds = %._crit_edge205
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %367

125:                                              ; preds = %108
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  br label %366

127:                                              ; preds = %109
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %365

129:                                              ; preds = %112
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %364

131:                                              ; preds = %116
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  br label %363

133:                                              ; preds = %119
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #9
  br label %362

135:                                              ; preds = %120
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  br label %361

137:                                              ; preds = %122
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %360

139:                                              ; preds = %122, %121
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  store ptr %17, ptr %21, align 8, !tbaa !13
  store ptr %15, ptr %52, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  %.not224 = icmp eq i64 %117, 0
  br i1 %.not224, label %._crit_edge217, label %.lr.ph216

._crit_edge217:                                   ; preds = %337, %139
  %140 = invoke noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %339 unwind label %341

.lr.ph216:                                        ; preds = %139, %337
  %.0109214 = phi i32 [ %338, %337 ], [ 0, %139 ]
  %141 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %142 unwind label %155

142:                                              ; preds = %.lr.ph216
  %143 = urem i64 %141, 3
  switch i64 %143, label %229 [
    i64 0, label %.preheader
    i64 1, label %157
  ]

.preheader:                                       ; preds = %142, %145
  %144 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %145 unwind label %.loopexit

145:                                              ; preds = %.preheader
  %146 = urem i64 %144, %75
  %147 = icmp eq i64 %146, 0
  br i1 %147, label %.preheader, label %148, !llvm.loop !15

148:                                              ; preds = %145
  %149 = trunc nuw nsw i64 %146 to i32
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %146) #9
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = xor i32 %151, 1
  store i32 %152, ptr %150, align 4, !tbaa !5
  invoke void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %149, ptr noundef nonnull align 4 dereferenceable(4) %150)
          to label %153 unwind label %.loopexit.split-lp

153:                                              ; preds = %148
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %146) #9
  invoke void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(305) %13, i32 noundef %149, ptr noundef nonnull align 4 dereferenceable(4) %154)
          to label %337 unwind label %.loopexit.split-lp

155:                                              ; preds = %.lr.ph216
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %359

.loopexit:                                        ; preds = %.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %359

.loopexit.split-lp:                               ; preds = %148, %153
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %359

157:                                              ; preds = %142
  %158 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %159 unwind label %180

159:                                              ; preds = %157
  %160 = urem i64 %158, %75
  %161 = trunc nuw nsw i64 %160 to i32
  br label %162

162:                                              ; preds = %164, %159
  %163 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %164 unwind label %182

164:                                              ; preds = %162
  %165 = urem i64 %163, %75
  %166 = icmp eq i64 %160, %165
  br i1 %166, label %162, label %167, !llvm.loop !16

167:                                              ; preds = %164
  %168 = trunc nuw nsw i64 %165 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #9
  %169 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %170 unwind label %184

170:                                              ; preds = %167
  %171 = urem i64 %169, 100
  %172 = trunc nuw nsw i64 %171 to i32
  store i32 %172, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  %173 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %174 unwind label %186

174:                                              ; preds = %170
  %175 = urem i64 %173, 100
  %176 = trunc nuw nsw i64 %175 to i32
  store i32 %176, ptr %26, align 4, !tbaa !5
  %177 = load i32, ptr %25, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, %176
  br i1 %178, label %179, label %188

179:                                              ; preds = %174
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26) #9
  br label %188

180:                                              ; preds = %157
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %359

182:                                              ; preds = %162
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %359

184:                                              ; preds = %167
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %228

186:                                              ; preds = %170
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %227

188:                                              ; preds = %179, %174
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  invoke void @"_ZZ5test1vENK3$_1clEii"(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef %161, i32 noundef %168)
          to label %189 unwind label %193

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #9
  %190 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  store ptr %190, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #9
  %191 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  store ptr %191, ptr %30, align 8
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  br i1 %192, label %.lr.ph208, label %._crit_edge209

._crit_edge209:                                   ; preds = %210, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %213 unwind label %220

193:                                              ; preds = %188
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %226

.lr.ph208:                                        ; preds = %189, %210
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = load i32, ptr %25, align 4, !tbaa !5
  %198 = sext i32 %196 to i64
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %198) #9
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %.not133 = icmp sgt i32 %197, %200
  br i1 %.not133, label %210, label %201

201:                                              ; preds = %.lr.ph208
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %198) #9
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr %26, align 4, !tbaa !5
  %.not134 = icmp sgt i32 %203, %204
  br i1 %.not134, label %210, label %205

205:                                              ; preds = %201
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %198) #9
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = load i32, ptr %27, align 4, !tbaa !5
  %209 = add nsw i32 %208, %207
  store i32 %209, ptr %27, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %205, %201, %.lr.ph208
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  br i1 %212, label %.lr.ph208, label %._crit_edge209

213:                                              ; preds = %._crit_edge209
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #9
  %214 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %161, i32 noundef %168, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %215 unwind label %222

215:                                              ; preds = %213
  store i32 %214, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %216 unwind label %222

216:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #9
  %217 = invoke noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(305) %13, i32 noundef %161, i32 noundef %168, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %218 unwind label %224

218:                                              ; preds = %216
  store i32 %217, ptr %32, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %219 unwind label %224

219:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  br label %337

220:                                              ; preds = %._crit_edge209
  %221 = landingpad { ptr, i32 }
          cleanup
  br label %226

222:                                              ; preds = %215, %213
  %223 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  br label %226

224:                                              ; preds = %218, %216
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  br label %226

226:                                              ; preds = %224, %222, %220, %193
  %.pn127 = phi { ptr, i32 } [ %225, %224 ], [ %223, %222 ], [ %221, %220 ], [ %194, %193 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  br label %227

227:                                              ; preds = %226, %186
  %.pn127.pn = phi { ptr, i32 } [ %.pn127, %226 ], [ %187, %186 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  br label %228

228:                                              ; preds = %227, %184
  %.pn127.pn.pn = phi { ptr, i32 } [ %.pn127.pn, %227 ], [ %185, %184 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  br label %359

229:                                              ; preds = %142
  %230 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %231 unwind label %256

231:                                              ; preds = %229
  %232 = urem i64 %230, %75
  %233 = trunc nuw nsw i64 %232 to i32
  br label %234

234:                                              ; preds = %236, %231
  %235 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %236 unwind label %258

236:                                              ; preds = %234
  %237 = urem i64 %235, %75
  %238 = icmp eq i64 %232, %237
  br i1 %238, label %234, label %239, !llvm.loop !17

239:                                              ; preds = %236
  %240 = trunc nuw nsw i64 %237 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #9
  %241 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %242 unwind label %260

242:                                              ; preds = %239
  %243 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKi(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %233, i32 noundef %233, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %244 unwind label %260

244:                                              ; preds = %242
  %245 = shl i32 %243, 1
  %246 = add i32 %245, 2
  %247 = sext i32 %246 to i64
  %248 = urem i64 %241, %247
  %249 = trunc i64 %248 to i32
  store i32 %249, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #9
  invoke void @"_ZZ5test1vENK3$_1clEii"(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef %233, i32 noundef %240)
          to label %250 unwind label %262

250:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #9
  %251 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  store ptr %251, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #9
  %252 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  store ptr %252, ptr %37, align 8
  %253 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  br i1 %253, label %.lr.ph212, label %._crit_edge213

._crit_edge213:                                   ; preds = %273, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #9
  %254 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %255 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %254, ptr %255)
          to label %276 unwind label %286

256:                                              ; preds = %229
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %359

258:                                              ; preds = %234
  %259 = landingpad { ptr, i32 }
          cleanup
  br label %359

260:                                              ; preds = %242, %239
  %261 = landingpad { ptr, i32 }
          cleanup
  br label %336

262:                                              ; preds = %244
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %335

.lr.ph212:                                        ; preds = %250, %273
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %266) #9
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %.not120 = icmp eq i32 %268, 0
  br i1 %.not120, label %273, label %269

269:                                              ; preds = %.lr.ph212
  %270 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %266) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 4 dereferenceable(4) %270)
          to label %273 unwind label %271

271:                                              ; preds = %269
  %272 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #9
  br label %335

273:                                              ; preds = %269, %.lr.ph212
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %275 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  br i1 %275, label %.lr.ph212, label %._crit_edge213

276:                                              ; preds = %._crit_edge213
  %277 = load i32, ptr %33, align 4, !tbaa !5
  %278 = icmp eq i32 %277, 0
  br i1 %278, label %279, label %290

279:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #9
  %280 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %281 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %282 = invoke ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %280, ptr %281)
          to label %283 unwind label %288

283:                                              ; preds = %279
  store ptr %282, ptr %38, align 8
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %284)
          to label %285 unwind label %288

285:                                              ; preds = %283
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #9
  br label %302

286:                                              ; preds = %293, %._crit_edge213
  %287 = landingpad { ptr, i32 }
          cleanup
  br label %335

288:                                              ; preds = %283, %279
  %289 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #9
  br label %335

290:                                              ; preds = %276
  %291 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %292 = trunc i64 %291 to i32
  %.not118 = icmp sgt i32 %277, %292
  br i1 %.not118, label %298, label %293

293:                                              ; preds = %290
  %294 = load i32, ptr %33, align 4, !tbaa !5
  %295 = add nsw i32 %294, -1
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %296) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %297)
          to label %302 unwind label %286

298:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #9
  store i32 2147483647, ptr %39, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %299 unwind label %300

299:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  br label %302

300:                                              ; preds = %298
  %301 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  br label %335

302:                                              ; preds = %299, %293, %285
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #9
  %303 = invoke { i8, ptr } @"_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_2EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %233, i32 noundef %240, ptr nonnull %33)
          to label %304 unwind label %326

304:                                              ; preds = %302
  %305 = extractvalue { i8, ptr } %303, 0
  store i8 %305, ptr %40, align 8
  %306 = extractvalue { i8, ptr } %303, 1
  store ptr %306, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #9
  %307 = trunc nuw i8 %305 to i1
  br i1 %307, label %308, label %310

308:                                              ; preds = %304
  %309 = load i32, ptr %306, align 4, !tbaa !5
  br label %310

310:                                              ; preds = %304, %308
  %311 = phi i32 [ %309, %308 ], [ 2147483647, %304 ]
  store i32 %311, ptr %41, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %312 unwind label %328

312:                                              ; preds = %310
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #9
  %313 = invoke { i8, ptr } @"_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_3EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(305) %13, i32 noundef %233, i32 noundef %240, ptr nonnull %33)
          to label %314 unwind label %330

314:                                              ; preds = %312
  %315 = extractvalue { i8, ptr } %313, 0
  store i8 %315, ptr %42, align 8
  %316 = extractvalue { i8, ptr } %313, 1
  store ptr %316, ptr %54, align 8
  %317 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIbPiEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #9
  %318 = load i8, ptr %40, align 8, !tbaa !18, !range !21, !noundef !22
  %319 = trunc nuw i8 %318 to i1
  br i1 %319, label %320, label %323

320:                                              ; preds = %314
  %321 = load ptr, ptr %53, align 8, !tbaa !23
  %322 = load i32, ptr %321, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %314, %320
  %324 = phi i32 [ %322, %320 ], [ 2147483647, %314 ]
  store i32 %324, ptr %43, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %325 unwind label %332

325:                                              ; preds = %323
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  br label %337

326:                                              ; preds = %302
  %327 = landingpad { ptr, i32 }
          cleanup
  br label %334

328:                                              ; preds = %310
  %329 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  br label %334

330:                                              ; preds = %312
  %331 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #9
  br label %334

332:                                              ; preds = %323
  %333 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #9
  br label %334

334:                                              ; preds = %332, %330, %328, %326
  %.pn = phi { ptr, i32 } [ %333, %332 ], [ %331, %330 ], [ %329, %328 ], [ %327, %326 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  br label %335

335:                                              ; preds = %262, %271, %334, %300, %288, %286
  %.pn121.pn = phi { ptr, i32 } [ %.pn, %334 ], [ %289, %288 ], [ %287, %286 ], [ %301, %300 ], [ %272, %271 ], [ %263, %262 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #9
  br label %336

336:                                              ; preds = %335, %260
  %.pn121.pn.pn = phi { ptr, i32 } [ %.pn121.pn, %335 ], [ %261, %260 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  br label %359

337:                                              ; preds = %153, %219, %325
  %338 = add nuw nsw i32 %.0109214, 1
  %exitcond241.not = icmp eq i32 %338, %118
  br i1 %exitcond241.not, label %._crit_edge217, label %.lr.ph216, !llvm.loop !24

339:                                              ; preds = %._crit_edge217
  br i1 %140, label %343, label %340

340:                                              ; preds = %339
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 120, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #10
  unreachable

341:                                              ; preds = %343, %._crit_edge217
  %342 = landingpad { ptr, i32 }
          cleanup
  br label %359

343:                                              ; preds = %339
  %344 = invoke noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %345 unwind label %341

345:                                              ; preds = %343
  br i1 %344, label %347, label %346

346:                                              ; preds = %345
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 121, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #10
  unreachable

347:                                              ; preds = %345
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #9
  %348 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  store ptr %348, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #9
  %349 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  store ptr %349, ptr %45, align 8
  %350 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #9
  br i1 %350, label %.lr.ph220, label %._crit_edge221

._crit_edge221:                                   ; preds = %.lr.ph220, %347
  %.1.lcssa = phi i64 [ %.0223, %347 ], [ %356, %.lr.ph220 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %13) #9
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %13) #9
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497) %11) #9
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %11) #9
  call void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %10) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  %351 = add nuw nsw i32 %.077222, 1
  %exitcond242.not = icmp eq i32 %351, 50000
  br i1 %exitcond242.not, label %55, label %73, !llvm.loop !25

.lr.ph220:                                        ; preds = %347, %.lr.ph220
  %.1218 = phi i64 [ %356, %.lr.ph220 ], [ %.0223, %347 ]
  %352 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #9
  %353 = mul nsw i64 %.1218, 31
  %354 = load i32, ptr %352, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = add nsw i64 %353, %355
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #9
  %358 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #9
  br i1 %358, label %.lr.ph220, label %._crit_edge221

359:                                              ; preds = %.loopexit, %.loopexit.split-lp, %155, %182, %228, %180, %258, %336, %256, %341
  %.pn135.pn = phi { ptr, i32 } [ %342, %341 ], [ %156, %155 ], [ %181, %180 ], [ %.pn127.pn.pn, %228 ], [ %183, %182 ], [ %257, %256 ], [ %.pn121.pn.pn, %336 ], [ %259, %258 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %360

360:                                              ; preds = %359, %137
  %.pn135.pn.pn = phi { ptr, i32 } [ %.pn135.pn, %359 ], [ %138, %137 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %361

361:                                              ; preds = %360, %135
  %.pn135.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn, %360 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  br label %362

362:                                              ; preds = %361, %133
  %.pn135.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn, %361 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br label %363

363:                                              ; preds = %362, %131
  %.pn135.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn, %362 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %364

364:                                              ; preds = %363, %129
  %.pn135.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn, %363 ], [ %130, %129 ]
  call void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %13) #9
  br label %365

365:                                              ; preds = %364, %127
  %.pn135.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn, %364 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %13) #9
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497) %11) #9
  br label %366

366:                                              ; preds = %365, %125
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn, %365 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %11) #9
  br label %367

367:                                              ; preds = %366, %123, %106
  %.pn145 = phi { ptr, i32 } [ %107, %106 ], [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn, %366 ], [ %124, %123 ]
  call void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %10) #9
  br label %368

368:                                              ; preds = %367, %98
  %.pn145.pn = phi { ptr, i32 } [ %.pn145, %367 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #9
  br label %369

369:                                              ; preds = %368, %96
  %.pn148 = phi { ptr, i32 } [ %97, %96 ], [ %.pn145.pn, %368 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  br label %370

370:                                              ; preds = %369, %89
  %.pn148.pn = phi { ptr, i32 } [ %.pn148, %369 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %371

371:                                              ; preds = %370, %86
  %.pn151 = phi { ptr, i32 } [ %87, %86 ], [ %.pn148.pn, %370 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br label %372

372:                                              ; preds = %371, %79
  %.pn151.pn = phi { ptr, i32 } [ %.pn151, %371 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn151.pn
}

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11StaticGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11StaticGraph9addBiEdgeEii(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(497), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEEC2I11StaticGraphEERKT_RKSt6vectorIiSaIiEESD_SD_S2_(ptr noundef nonnull align 8 dereferenceable(305), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviiiEEC2IZ5test1vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFviiiEEclEiii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(305), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test1vENK3$_1clEii"(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #6 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(305), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE5queryEiiRKi(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare hidden { i8, ptr } @"_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_2EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef, i32 noundef, ptr) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden { i8, ptr } @"_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEE7bsearchIZ5test1vE3$_3EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(305), i32 noundef, i32 noundef, ptr) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb1ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #8

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { noreturn nounwind "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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!"int", !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}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSSt4pairIbPiE", !20, i64 0, !14, i64 8}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!19, !14, i64 8}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass