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

; 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.28 = 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.30 = 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.32 = type { ptr, ptr, ptr, ptr }
%class.anon.33 = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i8, ptr }
%class.anon.34 = type { ptr }
%class.anon.35 = 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
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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
@__PRETTY_FUNCTION__._Z5test2v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504)) #2 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 #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 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 #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFviiiEEclEiii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #2 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: 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)) #2 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)) #2 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 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 @_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)) #2

; 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) #2 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) #2 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) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test2v() #2 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.28, align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"struct.std::less", align 1
  %24 = alloca %struct.WaveletMatrixHLD.30, 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.32, align 8
  %34 = alloca %class.anon.33, 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.34, align 8
  %70 = alloca i32, align 4
  %71 = alloca %"struct.std::pair", align 8
  %72 = alloca %class.anon.35, 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 = %631, %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 %648

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 0, 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 %647

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 %646

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 0, 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 %645

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 %644

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 %643

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 %642

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 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 eq i32 %180, 0
  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.32, ptr %33, i32 0, i32 0
  store ptr %28, ptr %196, align 8, !tbaa !15
  %197 = getelementptr inbounds %class.anon.32, ptr %33, i32 0, i32 1
  store ptr %30, ptr %197, align 8, !tbaa !15
  %198 = getelementptr inbounds %class.anon.32, ptr %33, i32 0, i32 2
  store ptr %19, ptr %198, align 8, !tbaa !15
  %199 = getelementptr inbounds %class.anon.32, ptr %33, i32 0, i32 3
  store ptr %32, ptr %199, align 8, !tbaa !15
  invoke void @"_ZNSt8functionIFviiiEEC2IZ5test2vE3$_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 %642

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 %641

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 %640

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 %639

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 %638

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 %637

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 %636

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 %635

237:                                              ; preds = %204, %200
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %238 = getelementptr inbounds %class.anon.33, ptr %34, i32 0, i32 0
  store ptr %30, ptr %238, align 8, !tbaa !15
  %239 = getelementptr inbounds %class.anon.33, 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 = %590, %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 %594

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 %271

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 %279

252:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %253 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %254 unwind label %275

254:                                              ; preds = %252
  %255 = load i32, ptr %8, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = urem i64 %253, %256
  %258 = trunc i64 %257 to i32
  store i32 %258, ptr %40, align 4, !tbaa !5
  %259 = load i32, ptr %40, align 4, !tbaa !5
  %260 = load i32, ptr %40, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %261) #8
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %264 = xor i32 %263, 1
  store i32 %264, ptr %262, align 4, !tbaa !5
  invoke void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %259, ptr noundef nonnull align 4 dereferenceable(4) %262)
          to label %265 unwind label %275

265:                                              ; preds = %254
  %266 = load i32, ptr %40, align 4, !tbaa !5
  %267 = load i32, ptr %40, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %268) #8
  invoke void @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(305) %24, i32 noundef %266, ptr noundef nonnull align 4 dereferenceable(4) %269)
          to label %270 unwind label %275

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

271:                                              ; preds = %245
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %12, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %13, align 4
  br label %593

275:                                              ; preds = %265, %254, %252
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %12, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %593

279:                                              ; preds = %247
  %280 = load i32, ptr %39, align 4, !tbaa !5
  %281 = icmp eq i32 %280, 1
  br i1 %281, label %282, label %395

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

284:                                              ; preds = %282
  %285 = load i32, ptr %8, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = urem i64 %283, %286
  %288 = trunc i64 %287 to i32
  store i32 %288, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %289 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %290 unwind label %311

290:                                              ; preds = %284
  %291 = load i32, ptr %8, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = urem i64 %289, %292
  %294 = trunc i64 %293 to i32
  store i32 %294, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %295 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %296 unwind label %315

296:                                              ; preds = %290
  %297 = urem i64 %295, 100
  %298 = trunc i64 %297 to i32
  store i32 %298, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %299 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %300 unwind label %319

300:                                              ; preds = %296
  %301 = urem i64 %299, 100
  %302 = trunc i64 %301 to i32
  store i32 %302, ptr %44, align 4, !tbaa !5
  %303 = load i32, ptr %43, align 4, !tbaa !5
  %304 = load i32, ptr %44, align 4, !tbaa !5
  %305 = icmp sgt i32 %303, %304
  br i1 %305, label %306, label %323

306:                                              ; preds = %300
  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 %323

307:                                              ; preds = %282
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %12, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %13, align 4
  br label %394

311:                                              ; preds = %284
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %12, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %13, align 4
  br label %393

315:                                              ; preds = %290
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %12, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %13, align 4
  br label %392

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

323:                                              ; preds = %306, %300
  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
  %324 = load i32, ptr %41, align 4, !tbaa !5
  %325 = load i32, ptr %42, align 4, !tbaa !5
  invoke void @"_ZZ5test2vENK3$_1clEii"(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %47, ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef %324, i32 noundef %325)
          to label %326 unwind label %336

326:                                              ; preds = %323
  store ptr %47, ptr %46, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %327 = load ptr, ptr %46, align 8, !tbaa !15
  %328 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #8
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %330 = load ptr, ptr %46, align 8, !tbaa !15
  %331 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %330) #8
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  br label %333

333:                                              ; preds = %364, %326
  %334 = 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 %334, label %340, label %335

335:                                              ; preds = %333
  store i32 17, 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 %366

336:                                              ; preds = %323
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %12, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %390

340:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %341 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  %342 = load i32, ptr %341, align 4, !tbaa !5
  store i32 %342, ptr %50, align 4, !tbaa !5
  %343 = load i32, ptr %43, align 4, !tbaa !5
  %344 = load i32, ptr %50, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %345) #8
  %347 = load i32, ptr %346, align 4, !tbaa !5
  %348 = icmp sle i32 %343, %347
  br i1 %348, label %349, label %363

349:                                              ; preds = %340
  %350 = load i32, ptr %50, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %351) #8
  %353 = load i32, ptr %352, align 4, !tbaa !5
  %354 = load i32, ptr %44, align 4, !tbaa !5
  %355 = icmp sle i32 %353, %354
  br i1 %355, label %356, label %363

356:                                              ; preds = %349
  %357 = load i32, ptr %50, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %358) #8
  %360 = load i32, ptr %359, align 4, !tbaa !5
  %361 = load i32, ptr %45, align 4, !tbaa !5
  %362 = add nsw i32 %361, %360
  store i32 %362, ptr %45, align 4, !tbaa !5
  br label %363

363:                                              ; preds = %356, %349, %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %364

364:                                              ; preds = %363
  %365 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  br label %333

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

367:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %368 = load i32, ptr %41, align 4, !tbaa !5
  %369 = load i32, ptr %42, align 4, !tbaa !5
  %370 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %368, i32 noundef %369, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %371 unwind label %382

371:                                              ; preds = %367
  store i32 %370, 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 %372 unwind label %382

372:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %373 = load i32, ptr %41, align 4, !tbaa !5
  %374 = load i32, ptr %42, align 4, !tbaa !5
  %375 = invoke noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(305) %24, i32 noundef %373, i32 noundef %374, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %376 unwind label %386

376:                                              ; preds = %372
  store i32 %375, 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 %377 unwind label %386

377:                                              ; preds = %376
  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 %588

378:                                              ; preds = %366
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %12, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %13, align 4
  br label %390

382:                                              ; preds = %371, %367
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %12, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %390

386:                                              ; preds = %376, %372
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %12, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %390

390:                                              ; preds = %386, %382, %378, %336
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %391

391:                                              ; preds = %390, %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %392

392:                                              ; preds = %391, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %393

393:                                              ; preds = %392, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %394

394:                                              ; preds = %393, %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %593

395:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %396 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %397 unwind label %431

397:                                              ; preds = %395
  %398 = load i32, ptr %8, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = urem i64 %396, %399
  %401 = trunc i64 %400 to i32
  store i32 %401, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %402 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %403 unwind label %435

403:                                              ; preds = %397
  %404 = load i32, ptr %8, align 4, !tbaa !5
  %405 = sext i32 %404 to i64
  %406 = urem i64 %402, %405
  %407 = trunc i64 %406 to i32
  store i32 %407, ptr %54, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  %408 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %409 unwind label %439

409:                                              ; preds = %403
  %410 = load i32, ptr %53, align 4, !tbaa !5
  %411 = load i32, ptr %53, align 4, !tbaa !5
  %412 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE5queryEiiRKi(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %410, i32 noundef %411, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %413 unwind label %439

413:                                              ; preds = %409
  %414 = add nsw i32 %412, 1
  %415 = mul nsw i32 %414, 2
  %416 = sext i32 %415 to i64
  %417 = urem i64 %408, %416
  %418 = trunc i64 %417 to i32
  store i32 %418, 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
  %419 = load i32, ptr %53, align 4, !tbaa !5
  %420 = load i32, ptr %54, align 4, !tbaa !5
  invoke void @"_ZZ5test2vENK3$_1clEii"(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %58, ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef %419, i32 noundef %420)
          to label %421 unwind label %443

421:                                              ; preds = %413
  store ptr %58, ptr %57, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %422 = load ptr, ptr %57, align 8, !tbaa !15
  %423 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %422) #8
  %424 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  store ptr %423, ptr %424, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %425 = load ptr, ptr %57, align 8, !tbaa !15
  %426 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %425) #8
  %427 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %60, i32 0, i32 0
  store ptr %426, ptr %427, align 8
  br label %428

428:                                              ; preds = %465, %421
  %429 = 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 %429, label %447, label %430

430:                                              ; preds = %428
  store i32 19, 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 %468

431:                                              ; preds = %395
  %432 = landingpad { ptr, i32 }
          cleanup
  %433 = extractvalue { ptr, i32 } %432, 0
  store ptr %433, ptr %12, align 8
  %434 = extractvalue { ptr, i32 } %432, 1
  store i32 %434, ptr %13, align 4
  br label %587

435:                                              ; preds = %397
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %12, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %13, align 4
  br label %586

439:                                              ; preds = %409, %403
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %12, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %13, align 4
  br label %585

443:                                              ; preds = %413
  %444 = landingpad { ptr, i32 }
          cleanup
  %445 = extractvalue { ptr, i32 } %444, 0
  store ptr %445, ptr %12, align 8
  %446 = extractvalue { ptr, i32 } %444, 1
  store i32 %446, ptr %13, align 4
  br label %467

447:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %448 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  %449 = load i32, ptr %448, align 4, !tbaa !5
  store i32 %449, ptr %61, align 4, !tbaa !5
  %450 = load i32, ptr %61, align 4, !tbaa !5
  %451 = sext i32 %450 to i64
  %452 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %451) #8
  %453 = load i32, ptr %452, align 4, !tbaa !5
  %454 = icmp ne i32 %453, 0
  br i1 %454, label %455, label %464

455:                                              ; preds = %447
  %456 = load i32, ptr %61, align 4, !tbaa !5
  %457 = sext i32 %456 to i64
  %458 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %457) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 4 dereferenceable(4) %458)
          to label %459 unwind label %460

459:                                              ; preds = %455
  br label %464

460:                                              ; preds = %455
  %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
  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 %467

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

465:                                              ; preds = %464
  %466 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  br label %428

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

468:                                              ; preds = %430
  %469 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %470 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %62, i32 0, i32 0
  store ptr %469, ptr %470, align 8
  %471 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %472 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %63, i32 0, i32 0
  store ptr %471, ptr %472, align 8
  %473 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %62, i32 0, i32 0
  %474 = load ptr, ptr %473, align 8
  %475 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %63, i32 0, i32 0
  %476 = load ptr, ptr %475, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %474, ptr %476)
          to label %477 unwind label %494

477:                                              ; preds = %468
  %478 = load i32, ptr %55, align 4, !tbaa !5
  %479 = icmp eq i32 %478, 0
  br i1 %479, label %480, label %502

480:                                              ; preds = %477
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %481 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %482 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  store ptr %481, ptr %482, align 8
  %483 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %484 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %66, i32 0, i32 0
  store ptr %483, ptr %484, align 8
  %485 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  %486 = load ptr, ptr %485, align 8
  %487 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %66, i32 0, i32 0
  %488 = load ptr, ptr %487, align 8
  %489 = invoke ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %486, ptr %488)
          to label %490 unwind label %498

490:                                              ; preds = %480
  %491 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %64, i32 0, i32 0
  store ptr %489, ptr %491, align 8
  %492 = 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) %492)
          to label %493 unwind label %498

493:                                              ; preds = %490
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  br label %521

494:                                              ; preds = %508, %468
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %12, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %13, align 4
  br label %584

498:                                              ; preds = %490, %480
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %12, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  br label %584

502:                                              ; preds = %477
  %503 = load i32, ptr %55, align 4, !tbaa !5
  %504 = sub nsw i32 %503, 1
  %505 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %506 = trunc i64 %505 to i32
  %507 = icmp slt i32 %504, %506
  br i1 %507, label %508, label %514

508:                                              ; preds = %502
  %509 = load i32, ptr %55, align 4, !tbaa !5
  %510 = sub nsw i32 %509, 1
  %511 = sext i32 %510 to i64
  %512 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %511) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %512)
          to label %513 unwind label %494

513:                                              ; preds = %508
  br label %520

514:                                              ; preds = %502
  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 %515 unwind label %516

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

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

520:                                              ; preds = %515, %513
  br label %521

521:                                              ; preds = %520, %493
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #8
  %522 = load i32, ptr %53, align 4, !tbaa !5
  %523 = load i32, ptr %54, align 4, !tbaa !5
  %524 = getelementptr inbounds %class.anon.34, ptr %69, i32 0, i32 0
  store ptr %55, ptr %524, align 8, !tbaa !15
  %525 = getelementptr inbounds %class.anon.34, ptr %69, i32 0, i32 0
  %526 = load ptr, ptr %525, align 8
  %527 = invoke { i8, ptr } @"_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE7bsearchIZ5test2vE3$_2EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(497) %21, i32 noundef %522, i32 noundef %523, ptr %526)
          to label %528 unwind label %567

528:                                              ; preds = %521
  %529 = getelementptr inbounds { i8, ptr }, ptr %68, i32 0, i32 0
  %530 = extractvalue { i8, ptr } %527, 0
  store i8 %530, ptr %529, align 8
  %531 = getelementptr inbounds { i8, ptr }, ptr %68, i32 0, i32 1
  %532 = extractvalue { i8, ptr } %527, 1
  store ptr %532, ptr %531, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  %533 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 0
  %534 = load i8, ptr %533, align 8, !tbaa !17, !range !20, !noundef !21
  %535 = trunc i8 %534 to i1
  br i1 %535, label %536, label %540

536:                                              ; preds = %528
  %537 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 1
  %538 = load ptr, ptr %537, align 8, !tbaa !22
  %539 = load i32, ptr %538, align 4, !tbaa !5
  br label %541

540:                                              ; preds = %528
  br label %541

541:                                              ; preds = %540, %536
  %542 = phi i32 [ %539, %536 ], [ 2147483647, %540 ]
  store i32 %542, 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 %543 unwind label %571

543:                                              ; preds = %541
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #8
  %544 = load i32, ptr %53, align 4, !tbaa !5
  %545 = load i32, ptr %54, align 4, !tbaa !5
  %546 = getelementptr inbounds %class.anon.35, ptr %72, i32 0, i32 0
  store ptr %55, ptr %546, align 8, !tbaa !15
  %547 = getelementptr inbounds %class.anon.35, ptr %72, i32 0, i32 0
  %548 = load ptr, ptr %547, align 8
  %549 = invoke { i8, ptr } @"_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE7bsearchIZ5test2vE3$_3EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(305) %24, i32 noundef %544, i32 noundef %545, ptr %548)
          to label %550 unwind label %575

550:                                              ; preds = %543
  %551 = getelementptr inbounds { i8, ptr }, ptr %71, i32 0, i32 0
  %552 = extractvalue { i8, ptr } %549, 0
  store i8 %552, ptr %551, align 8
  %553 = getelementptr inbounds { i8, ptr }, ptr %71, i32 0, i32 1
  %554 = extractvalue { i8, ptr } %549, 1
  store ptr %554, ptr %553, align 8
  %555 = 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
  %556 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 0
  %557 = load i8, ptr %556, align 8, !tbaa !17, !range !20, !noundef !21
  %558 = trunc i8 %557 to i1
  br i1 %558, label %559, label %563

559:                                              ; preds = %550
  %560 = getelementptr inbounds %"struct.std::pair", ptr %68, i32 0, i32 1
  %561 = load ptr, ptr %560, align 8, !tbaa !22
  %562 = load i32, ptr %561, align 4, !tbaa !5
  br label %564

563:                                              ; preds = %550
  br label %564

564:                                              ; preds = %563, %559
  %565 = phi i32 [ %562, %559 ], [ 2147483647, %563 ]
  store i32 %565, 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 %566 unwind label %579

566:                                              ; preds = %564
  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 %588

567:                                              ; preds = %521
  %568 = landingpad { ptr, i32 }
          cleanup
  %569 = extractvalue { ptr, i32 } %568, 0
  store ptr %569, ptr %12, align 8
  %570 = extractvalue { ptr, i32 } %568, 1
  store i32 %570, ptr %13, align 4
  br label %583

571:                                              ; preds = %541
  %572 = landingpad { ptr, i32 }
          cleanup
  %573 = extractvalue { ptr, i32 } %572, 0
  store ptr %573, ptr %12, align 8
  %574 = extractvalue { ptr, i32 } %572, 1
  store i32 %574, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  br label %583

575:                                              ; preds = %543
  %576 = landingpad { ptr, i32 }
          cleanup
  %577 = extractvalue { ptr, i32 } %576, 0
  store ptr %577, ptr %12, align 8
  %578 = extractvalue { ptr, i32 } %576, 1
  store i32 %578, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #8
  br label %583

579:                                              ; preds = %564
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %12, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  br label %583

583:                                              ; preds = %579, %575, %571, %567
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #8
  br label %584

584:                                              ; preds = %583, %516, %498, %494, %467
  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 %585

585:                                              ; preds = %584, %439
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %586

586:                                              ; preds = %585, %435
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  br label %587

587:                                              ; preds = %586, %431
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %593

588:                                              ; preds = %566, %377
  br label %589

589:                                              ; preds = %588, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %590

590:                                              ; preds = %589
  %591 = load i32, ptr %38, align 4, !tbaa !5
  %592 = add nsw i32 %591, 1
  store i32 %592, ptr %38, align 4, !tbaa !5
  br label %240, !llvm.loop !23

593:                                              ; preds = %587, %394, %275, %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %634

594:                                              ; preds = %244
  %595 = 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 %596 unwind label %599

596:                                              ; preds = %594
  br i1 %595, label %597, label %598

597:                                              ; preds = %596
  br label %604

598:                                              ; preds = %596
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 206, ptr noundef @__PRETTY_FUNCTION__._Z5test2v) #9
  unreachable

599:                                              ; preds = %604, %594
  %600 = landingpad { ptr, i32 }
          cleanup
  %601 = extractvalue { ptr, i32 } %600, 0
  store ptr %601, ptr %12, align 8
  %602 = extractvalue { ptr, i32 } %600, 1
  store i32 %602, ptr %13, align 4
  br label %634

603:                                              ; No predecessors!
  br label %604

604:                                              ; preds = %603, %597
  %605 = 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 %606 unwind label %599

606:                                              ; preds = %604
  br i1 %605, label %607, label %608

607:                                              ; preds = %606
  br label %610

608:                                              ; preds = %606
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 207, ptr noundef @__PRETTY_FUNCTION__._Z5test2v) #9
  unreachable

609:                                              ; No predecessors!
  br label %610

610:                                              ; preds = %609, %607
  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
  %611 = load ptr, ptr %74, align 8, !tbaa !15
  %612 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %611) #8
  %613 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %75, i32 0, i32 0
  store ptr %612, ptr %613, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  %614 = load ptr, ptr %74, align 8, !tbaa !15
  %615 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %614) #8
  %616 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %76, i32 0, i32 0
  store ptr %615, ptr %616, align 8
  br label %617

617:                                              ; preds = %628, %610
  %618 = 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 %618, label %620, label %619

619:                                              ; preds = %617
  store i32 21, 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 %630

620:                                              ; preds = %617
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #8
  %621 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #8
  store ptr %621, ptr %77, align 8, !tbaa !15
  %622 = load i64, ptr %5, align 8, !tbaa !9
  %623 = mul nsw i64 31, %622
  %624 = load ptr, ptr %77, align 8, !tbaa !15
  %625 = load i32, ptr %624, align 4, !tbaa !5
  %626 = sext i32 %625 to i64
  %627 = add nsw i64 %623, %626
  store i64 %627, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  br label %628

628:                                              ; preds = %620
  %629 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #8
  br label %617

630:                                              ; preds = %619
  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 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %24) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr %24) #8
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEED2Ev(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 %631

631:                                              ; preds = %630
  %632 = load i32, ptr %6, align 4, !tbaa !5
  %633 = add nsw i32 %632, 1
  store i32 %633, ptr %6, align 4, !tbaa !5
  br label %85, !llvm.loop !24

634:                                              ; preds = %599, %593
  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 %635

635:                                              ; preds = %634, %233
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  br label %636

636:                                              ; preds = %635, %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 %637

637:                                              ; preds = %636, %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 %638

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

639:                                              ; preds = %638, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %24) #8
  br label %640

640:                                              ; preds = %639, %213
  call void @llvm.lifetime.end.p0(i64 312, ptr %24) #8
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497) %21) #8
  br label %641

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

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

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

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

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

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

647:                                              ; preds = %646, %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 %674

648:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #8
  %649 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %650 = getelementptr inbounds %"class.std::chrono::time_point", ptr %78, i32 0, i32 0
  %651 = getelementptr inbounds %"class.std::chrono::duration", ptr %650, i32 0, i32 0
  store i64 %649, ptr %651, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #8
  %652 = 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)
  %653 = getelementptr inbounds %"class.std::chrono::duration", ptr %80, i32 0, i32 0
  store i64 %652, ptr %653, align 8
  %654 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
  %655 = sitofp i64 %654 to double
  %656 = fdiv double %655, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #8
  store double %656, ptr %79, align 8, !tbaa !25
  %657 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %658 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %657, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %659 = 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)
  %660 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %659, ptr noundef @_ZSt5fixedRSt8ios_base)
  %661 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %662 = getelementptr inbounds %"struct.std::_Setprecision", ptr %81, i32 0, i32 0
  store i32 %661, ptr %662, align 4
  %663 = getelementptr inbounds %"struct.std::_Setprecision", ptr %81, i32 0, i32 0
  %664 = load i32, ptr %663, align 4
  %665 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %660, i32 %664)
  %666 = load double, ptr %79, align 8, !tbaa !25
  %667 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %665, double noundef %666)
  %668 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %667, ptr noundef @.str.5)
  %669 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %668, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %670 = 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)
  %671 = load i64, ptr %5, align 8, !tbaa !9
  %672 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %670, i64 noundef %671)
  %673 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %672, 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

674:                                              ; preds = %647
  %675 = load ptr, ptr %12, align 8
  %676 = load i32, ptr %13, align 4
  %677 = insertvalue { ptr, i32 } poison, ptr %675, 0
  %678 = insertvalue { ptr, i32 } %677, i32 %676, 1
  resume { ptr, i32 } %678
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test2vENK3$_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 uwtable
declare dso_local noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE5queryEiiRKiS5_(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)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE5queryEiiRKiS5_(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)) #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #5 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!18, !19, i64 0}
!18 = !{!"_ZTSSt4pairIbPiE", !19, i64 0, !16, i64 8}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!18, !16, i64 8}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = !{!26, !26, i64 0}
!26 = !{!"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.28 = 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.30 = 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.32 = type { ptr, ptr, ptr, ptr }
%class.anon.33 = 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
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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
@__PRETTY_FUNCTION__._Z5test2v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #2 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 #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 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 #2 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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11StaticGraph5buildEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 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 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 @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #2 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: 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 #2 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 #2 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 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 @_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 #2

; 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 #2 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 #2 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 #2 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test2v() local_unnamed_addr #2 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.28, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %struct.WaveletMatrixHLD.30, 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.32, align 8
  %21 = alloca %class.anon.33, 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_edge204
  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.7)
  %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_edge204
  %.0206 = phi i64 [ 0, %0 ], [ %.1.lcssa, %._crit_edge204 ]
  %.072205 = phi i32 [ 0, %0 ], [ %345, %._crit_edge204 ]
  %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 %78

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
  %.not = icmp eq i64 %75, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

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

._crit_edge:                                      ; preds = %81, %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 %87 unwind label %89

78:                                               ; preds = %73
  %79 = 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 %366

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

81:                                               ; preds = %.lr.ph
  %82 = urem i64 %80, 100
  %83 = trunc nuw nsw i64 %82 to i32
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #9
  store i32 %83, ptr %84, 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

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

87:                                               ; 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 %.not, label %._crit_edge187, label %.lr.ph186.preheader

.lr.ph186.preheader:                              ; preds = %87
  %umax213 = call i32 @llvm.umax.i32(i32 %76, i32 1)
  %wide.trip.count214 = zext nneg i32 %umax213 to i64
  br label %.lr.ph186

._crit_edge187:                                   ; preds = %92, %87
  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 %.preheader unwind label %98

.preheader:                                       ; preds = %._crit_edge187
  %88 = icmp ugt i64 %75, 1
  br i1 %88, label %.lr.ph189.preheader, label %._crit_edge190

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

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 %364

.lr.ph186:                                        ; preds = %.lr.ph186.preheader, %92
  %indvars.iv210 = phi i64 [ 0, %.lr.ph186.preheader ], [ %indvars.iv.next211, %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.ph186
  %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.iv210) #9
  store i32 %94, ptr %95, align 4, !tbaa !5
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %exitcond215.not = icmp eq i64 %indvars.iv.next211, %wide.trip.count214
  br i1 %exitcond215.not, label %._crit_edge187, label %.lr.ph186, !llvm.loop !11

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

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

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

.lr.ph189:                                        ; preds = %.lr.ph189.preheader, %105
  %indvars.iv216 = phi i64 [ 1, %.lr.ph189.preheader ], [ %indvars.iv.next217, %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.ph189
  %102 = urem i64 %100, %indvars.iv216
  %103 = trunc nuw nsw i64 %102 to i32
  %104 = trunc nuw nsw i64 %indvars.iv216 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.next217 = add nuw nsw i64 %indvars.iv216, 1
  %exitcond221.not = icmp eq i64 %indvars.iv.next217, %wide.trip.count220
  br i1 %exitcond221.not, label %._crit_edge190, label %.lr.ph189, !llvm.loop !12

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

108:                                              ; preds = %._crit_edge190
  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 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 %124

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 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 %126

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
  br i1 %.not, label %115, label %111

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

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

115:                                              ; preds = %110, %113
  %116 = phi i64 [ %114, %113 ], [ 0, %110 ]
  %117 = trunc nuw nsw i64 %116 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 %118 unwind label %130

118:                                              ; preds = %115
  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 %119 unwind label %132

119:                                              ; preds = %118
  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 @"_ZNSt8functionIFviiiEEC2IZ5test2vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %120 unwind label %134

120:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  br i1 %.not, label %138, label %121

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

122:                                              ; preds = %._crit_edge190
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %361

124:                                              ; preds = %108
  %125 = 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 %360

126:                                              ; preds = %109
  %127 = 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 %359

128:                                              ; preds = %111
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %358

130:                                              ; preds = %115
  %131 = 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 %357

132:                                              ; preds = %118
  %133 = 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 %356

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

136:                                              ; preds = %121
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %354

138:                                              ; preds = %121, %120
  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
  %.not208 = icmp eq i64 %116, 0
  br i1 %.not208, label %._crit_edge200, label %.lr.ph199

._crit_edge200:                                   ; preds = %331, %138
  %139 = 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 %333 unwind label %335

.lr.ph199:                                        ; preds = %138, %331
  %.0104197 = phi i32 [ %332, %331 ], [ 0, %138 ]
  %140 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %141 unwind label %153

141:                                              ; preds = %.lr.ph199
  %142 = urem i64 %140, 3
  switch i64 %142, label %226 [
    i64 0, label %143
    i64 1, label %157
  ]

143:                                              ; preds = %141
  %144 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %145 unwind label %155

145:                                              ; preds = %143
  %146 = urem i64 %144, %75
  %147 = trunc nuw nsw i64 %146 to i32
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %146) #9
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = xor i32 %149, 1
  store i32 %150, ptr %148, align 4, !tbaa !5
  invoke void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %147, ptr noundef nonnull align 4 dereferenceable(4) %148)
          to label %151 unwind label %155

151:                                              ; preds = %145
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %146) #9
  call void @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE6updateEiRKi(ptr noundef nonnull align 8 dereferenceable(305) %13, i32 noundef %147, ptr noundef nonnull align 4 dereferenceable(4) %152)
  br label %331

153:                                              ; preds = %.lr.ph199
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %353

155:                                              ; preds = %145, %143
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %353

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

159:                                              ; preds = %157
  %160 = urem i64 %158, %75
  %161 = trunc nuw nsw i64 %160 to i32
  %162 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %163 unwind label %179

163:                                              ; preds = %159
  %164 = urem i64 %162, %75
  %165 = trunc nuw nsw i64 %164 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #9
  %166 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %167 unwind label %181

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

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

176:                                              ; preds = %171
  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 %185

177:                                              ; preds = %157
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %353

179:                                              ; preds = %159
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %353

181:                                              ; preds = %163
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %225

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

185:                                              ; preds = %176, %171
  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 @"_ZZ5test2vENK3$_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 %165)
          to label %186 unwind label %190

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #9
  %187 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  store ptr %187, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #9
  %188 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  store ptr %188, ptr %30, align 8
  %189 = 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 %189, label %.lr.ph192, label %._crit_edge193

._crit_edge193:                                   ; preds = %207, %186
  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 %210 unwind label %217

190:                                              ; preds = %185
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %223

.lr.ph192:                                        ; preds = %186, %207
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = load i32, ptr %25, align 4, !tbaa !5
  %195 = sext i32 %193 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %195) #9
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %.not123 = icmp sgt i32 %194, %197
  br i1 %.not123, label %207, label %198

198:                                              ; preds = %.lr.ph192
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %195) #9
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = load i32, ptr %26, align 4, !tbaa !5
  %.not124 = icmp sgt i32 %200, %201
  br i1 %.not124, label %207, label %202

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

207:                                              ; preds = %202, %198, %.lr.ph192
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  %209 = 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 %209, label %.lr.ph192, label %._crit_edge193

210:                                              ; preds = %._crit_edge193
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #9
  %211 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %161, i32 noundef %165, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %212 unwind label %219

212:                                              ; preds = %210
  store i32 %211, 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 %213 unwind label %219

213:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #9
  %214 = invoke noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE5queryEiiRKiS5_(ptr noundef nonnull align 8 dereferenceable(305) %13, i32 noundef %161, i32 noundef %165, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %215 unwind label %221

215:                                              ; preds = %213
  store i32 %214, 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 %216 unwind label %221

216:                                              ; preds = %215
  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 %331

217:                                              ; preds = %._crit_edge193
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %223

219:                                              ; preds = %212, %210
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  br label %223

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

223:                                              ; preds = %221, %219, %217, %190
  %.pn117 = phi { ptr, i32 } [ %222, %221 ], [ %220, %219 ], [ %218, %217 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  br label %224

224:                                              ; preds = %223, %183
  %.pn117.pn = phi { ptr, i32 } [ %.pn117, %223 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  br label %225

225:                                              ; preds = %224, %181
  %.pn117.pn.pn = phi { ptr, i32 } [ %.pn117.pn, %224 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  br label %353

226:                                              ; preds = %141
  %227 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %228 unwind label %250

228:                                              ; preds = %226
  %229 = urem i64 %227, %75
  %230 = trunc nuw nsw i64 %229 to i32
  %231 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %232 unwind label %252

232:                                              ; preds = %228
  %233 = urem i64 %231, %75
  %234 = trunc nuw nsw i64 %233 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #9
  %235 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %236 unwind label %254

236:                                              ; preds = %232
  %237 = invoke noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE5queryEiiRKi(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %230, i32 noundef %230, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %238 unwind label %254

238:                                              ; preds = %236
  %239 = shl i32 %237, 1
  %240 = add i32 %239, 2
  %241 = sext i32 %240 to i64
  %242 = urem i64 %235, %241
  %243 = trunc i64 %242 to i32
  store i32 %243, 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 @"_ZZ5test2vENK3$_1clEii"(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef %230, i32 noundef %234)
          to label %244 unwind label %256

244:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #9
  %245 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  store ptr %245, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #9
  %246 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  store ptr %246, ptr %37, align 8
  %247 = 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 %247, label %.lr.ph195, label %._crit_edge196

._crit_edge196:                                   ; preds = %267, %244
  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
  %248 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %249 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %248, ptr %249)
          to label %270 unwind label %280

250:                                              ; preds = %226
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %353

252:                                              ; preds = %228
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %353

254:                                              ; preds = %236, %232
  %255 = landingpad { ptr, i32 }
          cleanup
  br label %330

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

.lr.ph195:                                        ; preds = %244, %267
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %260) #9
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %.not110 = icmp eq i32 %262, 0
  br i1 %.not110, label %267, label %263

263:                                              ; preds = %.lr.ph195
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %260) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 4 dereferenceable(4) %264)
          to label %267 unwind label %265

265:                                              ; preds = %263
  %266 = 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 %329

267:                                              ; preds = %263, %.lr.ph195
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %269 = 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 %269, label %.lr.ph195, label %._crit_edge196

270:                                              ; preds = %._crit_edge196
  %271 = load i32, ptr %33, align 4, !tbaa !5
  %272 = icmp eq i32 %271, 0
  br i1 %272, label %273, label %284

273:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #9
  %274 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %275 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %276 = invoke ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %274, ptr %275)
          to label %277 unwind label %282

277:                                              ; preds = %273
  store ptr %276, ptr %38, align 8
  %278 = 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) %278)
          to label %279 unwind label %282

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

280:                                              ; preds = %287, %._crit_edge196
  %281 = landingpad { ptr, i32 }
          cleanup
  br label %329

282:                                              ; preds = %277, %273
  %283 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #9
  br label %329

284:                                              ; preds = %270
  %285 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %286 = trunc i64 %285 to i32
  %.not108 = icmp sgt i32 %271, %286
  br i1 %.not108, label %292, label %287

287:                                              ; preds = %284
  %288 = load i32, ptr %33, align 4, !tbaa !5
  %289 = add nsw i32 %288, -1
  %290 = sext i32 %289 to i64
  %291 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %290) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %291)
          to label %296 unwind label %280

292:                                              ; preds = %284
  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 %293 unwind label %294

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

294:                                              ; preds = %292
  %295 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  br label %329

296:                                              ; preds = %293, %287, %279
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #9
  %297 = invoke { i8, ptr } @"_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE7bsearchIZ5test2vE3$_2EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(497) %11, i32 noundef %230, i32 noundef %234, ptr nonnull %33)
          to label %298 unwind label %320

298:                                              ; preds = %296
  %299 = extractvalue { i8, ptr } %297, 0
  store i8 %299, ptr %40, align 8
  %300 = extractvalue { i8, ptr } %297, 1
  store ptr %300, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #9
  %301 = trunc nuw i8 %299 to i1
  br i1 %301, label %302, label %304

302:                                              ; preds = %298
  %303 = load i32, ptr %300, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %298, %302
  %305 = phi i32 [ %303, %302 ], [ 2147483647, %298 ]
  store i32 %305, 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 %306 unwind label %322

306:                                              ; preds = %304
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #9
  %307 = invoke { i8, ptr } @"_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE7bsearchIZ5test2vE3$_3EESt4pairIbPiEiiT_"(ptr noundef nonnull align 8 dereferenceable(305) %13, i32 noundef %230, i32 noundef %234, ptr nonnull %33)
          to label %308 unwind label %324

308:                                              ; preds = %306
  %309 = extractvalue { i8, ptr } %307, 0
  store i8 %309, ptr %42, align 8
  %310 = extractvalue { i8, ptr } %307, 1
  store ptr %310, ptr %54, align 8
  %311 = 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
  %312 = load i8, ptr %40, align 8, !tbaa !15, !range !18, !noundef !19
  %313 = trunc nuw i8 %312 to i1
  br i1 %313, label %314, label %317

314:                                              ; preds = %308
  %315 = load ptr, ptr %53, align 8, !tbaa !20
  %316 = load i32, ptr %315, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %308, %314
  %318 = phi i32 [ %316, %314 ], [ 2147483647, %308 ]
  store i32 %318, 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 %319 unwind label %326

319:                                              ; preds = %317
  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 %331

320:                                              ; preds = %296
  %321 = landingpad { ptr, i32 }
          cleanup
  br label %328

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

324:                                              ; preds = %306
  %325 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #9
  br label %328

326:                                              ; preds = %317
  %327 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #9
  br label %328

328:                                              ; preds = %326, %324, %322, %320
  %.pn = phi { ptr, i32 } [ %327, %326 ], [ %325, %324 ], [ %323, %322 ], [ %321, %320 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  br label %329

329:                                              ; preds = %256, %265, %328, %294, %282, %280
  %.pn111.pn = phi { ptr, i32 } [ %.pn, %328 ], [ %283, %282 ], [ %281, %280 ], [ %295, %294 ], [ %266, %265 ], [ %257, %256 ]
  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 %330

330:                                              ; preds = %329, %254
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %329 ], [ %255, %254 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  br label %353

331:                                              ; preds = %216, %319, %151
  %332 = add nuw nsw i32 %.0104197, 1
  %exitcond222.not = icmp eq i32 %332, %117
  br i1 %exitcond222.not, label %._crit_edge200, label %.lr.ph199, !llvm.loop !21

333:                                              ; preds = %._crit_edge200
  br i1 %139, label %337, label %334

334:                                              ; preds = %333
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 206, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test2v) #10
  unreachable

335:                                              ; preds = %337, %._crit_edge200
  %336 = landingpad { ptr, i32 }
          cleanup
  br label %353

337:                                              ; preds = %333
  %338 = 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 %339 unwind label %335

339:                                              ; preds = %337
  br i1 %338, label %341, label %340

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

341:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #9
  %342 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  store ptr %342, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #9
  %343 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  store ptr %343, ptr %45, align 8
  %344 = 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 %344, label %.lr.ph203, label %._crit_edge204

._crit_edge204:                                   ; preds = %.lr.ph203, %341
  %.1.lcssa = phi i64 [ %.0206, %341 ], [ %350, %.lr.ph203 ]
  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 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %13) #9
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %13) #9
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEED2Ev(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
  %345 = add nuw nsw i32 %.072205, 1
  %exitcond223.not = icmp eq i32 %345, 50000
  br i1 %exitcond223.not, label %55, label %73, !llvm.loop !22

.lr.ph203:                                        ; preds = %341, %.lr.ph203
  %.1201 = phi i64 [ %350, %.lr.ph203 ], [ %.0206, %341 ]
  %346 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #9
  %347 = mul nsw i64 %.1201, 31
  %348 = load i32, ptr %346, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = add nsw i64 %347, %349
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #9
  %352 = 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 %352, label %.lr.ph203, label %._crit_edge204

353:                                              ; preds = %153, %155, %179, %225, %177, %252, %330, %250, %335
  %.pn125.pn = phi { ptr, i32 } [ %336, %335 ], [ %156, %155 ], [ %154, %153 ], [ %178, %177 ], [ %.pn117.pn.pn, %225 ], [ %180, %179 ], [ %251, %250 ], [ %.pn111.pn.pn, %330 ], [ %253, %252 ]
  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 %354

354:                                              ; preds = %353, %136
  %.pn125.pn.pn = phi { ptr, i32 } [ %.pn125.pn, %353 ], [ %137, %136 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %355

355:                                              ; preds = %354, %134
  %.pn125.pn.pn.pn = phi { ptr, i32 } [ %.pn125.pn.pn, %354 ], [ %135, %134 ]
  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 %356

356:                                              ; preds = %355, %132
  %.pn125.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn125.pn.pn.pn, %355 ], [ %133, %132 ]
  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 %357

357:                                              ; preds = %356, %130
  %.pn125.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn125.pn.pn.pn.pn, %356 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %358

358:                                              ; preds = %357, %128
  %.pn125.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn125.pn.pn.pn.pn.pn, %357 ], [ %129, %128 ]
  call void @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(305) %13) #9
  br label %359

359:                                              ; preds = %358, %126
  %.pn125.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn125.pn.pn.pn.pn.pn.pn, %358 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %13) #9
  call void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497) %11) #9
  br label %360

360:                                              ; preds = %359, %124
  %.pn125.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn125.pn.pn.pn.pn.pn.pn.pn, %359 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %11) #9
  br label %361

361:                                              ; preds = %360, %122, %106
  %.pn135 = phi { ptr, i32 } [ %107, %106 ], [ %.pn125.pn.pn.pn.pn.pn.pn.pn.pn, %360 ], [ %123, %122 ]
  call void @_ZN11StaticGraphD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %10) #9
  br label %362

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

363:                                              ; preds = %362, %96
  %.pn138 = phi { ptr, i32 } [ %97, %96 ], [ %.pn135.pn, %362 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  br label %364

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

365:                                              ; preds = %364, %85
  %.pn141 = phi { ptr, i32 } [ %86, %85 ], [ %.pn138.pn, %364 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br label %366

366:                                              ; preds = %365, %78
  %.pn141.pn = phi { ptr, i32 } [ %.pn141, %365 ], [ %79, %78 ]
  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 } %.pn141.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEEC2I11StaticGraphEERKT_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 #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test2vENK3$_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 uwtable
declare dso_local noundef i32 @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEE5queryEiiRKiS5_(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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16WaveletMatrixHLDIi2R2Lb0ESt4lessIiEE5queryEiiRKiS5_(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 #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN28WaveletMatrixTreeAggregationIi2R1Lb0ESt4lessIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #5 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!16, !17, i64 0}
!16 = !{!"_ZTSSt4pairIbPiE", !17, i64 0, !14, i64 8}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!16, !14, i64 8}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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