; LLVM IR from dnbaker/sketch :: testsrc/hktest.ll (Z10run_randomv)

; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator" = type { i8 }
%"class.wy::WyRand" = type <{ i64, [2 x i64], i32, [4 x i8] }>
%"class.std::poisson_distribution" = type { %"struct.std::poisson_distribution<>::param_type", %"class.std::normal_distribution" }
%"struct.std::poisson_distribution<>::param_type" = type { double, double, double, double, double, double, double, double, double }
%"class.std::normal_distribution" = type <{ %"struct.std::normal_distribution<>::param_type", double, i8, [7 x i8] }>
%"struct.std::normal_distribution<>::param_type" = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }
%"class.sketch::hk::HeavyKeeper" = type { %"struct.sketch::policy::SizePow2Policy", i64, %"class.std::vector.9", [8 x i8], double, i64, %"class.std::unique_ptr.11" }
%"struct.sketch::policy::SizePow2Policy" = type { i64, i64 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.11" = type { %"struct.std::__uniq_ptr_data.12" }
%"struct.std::__uniq_ptr_data.12" = type { %"class.std::__uniq_ptr_impl.13" }
%"class.std::__uniq_ptr_impl.13" = type { %"class.std::tuple.14" }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.24" = type { %"struct.std::pair", i32 }

@tbsz = external dso_local global i32, align 4
@nh = external dso_local global i32, align 4
@nelem = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10run_randomv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::unique_ptr", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.wy::WyRand", align 8
  %8 = alloca %"class.std::poisson_distribution", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.2", align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %24 = alloca %"class.sketch::hk::HeavyKeeper", align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %28 = alloca i64, align 8
  %29 = alloca %"class.std::unordered_map", align 8
  %30 = alloca %"struct.std::pair", align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %36 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %37 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  %38 = load i32, ptr @nelem, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  store i64 %39, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %40 = load i64, ptr %1, align 8, !tbaa !9
  call void @_ZSt11make_uniqueIA_mENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %2, i64 noundef %40)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  %41 = load i64, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %42 unwind label %55

42:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  %43 = load i64, ptr %1, align 8, !tbaa !9
  invoke void @_ZN2wy6WyRandImLm2ENS_10WyHashFuncEEC2Em(ptr noundef nonnull align 8 dereferenceable(28) %7, i64 noundef %43)
          to label %44 unwind label %59

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 104, ptr %8) #6
  invoke void @_ZNSt20poisson_distributionIiEC2Ed(ptr noundef nonnull align 8 dereferenceable(104) %8, double noundef 4.000000e+00)
          to label %45 unwind label %63

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %46 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  store ptr %46, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %47 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %48 = load i64, ptr %1, align 8, !tbaa !9
  %49 = getelementptr inbounds i64, ptr %47, i64 %48
  store ptr %49, ptr %10, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %69, %45
  %51 = load ptr, ptr %9, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !11
  %53 = icmp ne ptr %51, %52
  br i1 %53, label %67, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %76

55:                                               ; preds = %0
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %5, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %257

59:                                               ; preds = %42
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %5, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %6, align 4
  br label %256

63:                                               ; preds = %44
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %5, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %6, align 4
  br label %255

67:                                               ; preds = %50
  %68 = invoke noundef i64 @_ZN2wy6WyRandImLm2ENS_10WyHashFuncEEclEv(ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %69 unwind label %72

69:                                               ; preds = %67
  %70 = load ptr, ptr %9, align 8, !tbaa !11
  %71 = getelementptr inbounds i64, ptr %70, i32 1
  store ptr %71, ptr %9, align 8, !tbaa !11
  store i64 %68, ptr %70, align 8, !tbaa !9
  br label %50, !llvm.loop !13

72:                                               ; preds = %67
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %5, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %255

76:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr %3, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %77 = load ptr, ptr %11, align 8, !tbaa !11
  %78 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #6
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %80 = load ptr, ptr %11, align 8, !tbaa !11
  %81 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  br label %83

83:                                               ; preds = %97, %76
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %84, label %86, label %85

85:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %108

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  store ptr %87, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %88 = invoke noundef i32 @_ZNSt20poisson_distributionIiEclIN2wy6WyRandImLm2ENS2_10WyHashFuncEEEEEiRT_(ptr noundef nonnull align 8 dereferenceable(104) %8, ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %89 unwind label %99

89:                                               ; preds = %86
  store i32 %88, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !5
  %90 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %91 unwind label %103

91:                                               ; preds = %89
  %92 = load i32, ptr %90, align 4, !tbaa !5
  %93 = invoke noundef double @_ZSt3powIjiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef %92, i32 noundef 3)
          to label %94 unwind label %103

94:                                               ; preds = %91
  %95 = fptoui double %93 to i32
  %96 = load ptr, ptr %14, align 8, !tbaa !11
  store i32 %95, ptr %96, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %97

97:                                               ; preds = %94
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %83

99:                                               ; preds = %86
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %5, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %6, align 4
  br label %107

103:                                              ; preds = %91, %89
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %5, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %255

108:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %129, %108
  %110 = load i64, ptr %18, align 8, !tbaa !9
  %111 = load i64, ptr %1, align 8, !tbaa !9
  %112 = icmp ult i64 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %136

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %115 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %20, i32 0, i32 0
  store ptr %115, ptr %116, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEC2IPmvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  %117 = load i64, ptr %18, align 8, !tbaa !9
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %117) #6
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = zext i32 %119 to i64
  %121 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %122 = load i64, ptr %18, align 8, !tbaa !9
  %123 = getelementptr inbounds i64, ptr %121, i64 %122
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %19, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = invoke ptr @_ZNSt6vectorImSaImEE6insertEN9__gnu_cxx17__normal_iteratorIPKmS1_EEmRS4_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr %125, i64 noundef %120, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %127 unwind label %132

127:                                              ; preds = %114
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %21, i32 0, i32 0
  store ptr %126, ptr %128, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %129

129:                                              ; preds = %127
  %130 = load i64, ptr %18, align 8, !tbaa !9
  %131 = add i64 %130, 1
  store i64 %131, ptr %18, align 8, !tbaa !9
  br label %109, !llvm.loop !15

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

136:                                              ; preds = %113
  %137 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %22, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  %139 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %23, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %22, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %23, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  invoke void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEERN2wy6WyRandImLm2ENS7_10WyHashFuncEEEEvT_SC_OT0_(ptr %142, ptr %144, ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %145 unwind label %160

145:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #6
  %146 = load i32, ptr @tbsz, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = load i32, ptr @nh, align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  invoke void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEEC2IJEEEmmdDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %24, i64 noundef %147, i64 noundef %149, double noundef 1.030000e+00)
          to label %150 unwind label %164

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store ptr %17, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %151 = load ptr, ptr %25, align 8, !tbaa !11
  %152 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #6
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %26, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %154 = load ptr, ptr %25, align 8, !tbaa !11
  %155 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #6
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %27, i32 0, i32 0
  store ptr %155, ptr %156, align 8
  br label %157

157:                                              ; preds = %173, %150
  %158 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br i1 %158, label %168, label %159

159:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %179

160:                                              ; preds = %136
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %5, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %6, align 4
  br label %254

164:                                              ; preds = %145
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %5, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %6, align 4
  br label %253

168:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  %170 = load i64, ptr %169, align 8, !tbaa !9
  store i64 %170, ptr %28, align 8, !tbaa !9
  %171 = invoke noundef i64 @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEE4addhImEEmRKT_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %172 unwind label %175

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %173

173:                                              ; preds = %172
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %157

175:                                              ; preds = %168
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %5, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %252

179:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 56, ptr %29) #6
  call void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  invoke void @_ZNSt4pairIjjEC2IjjTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %180 unwind label %190

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %181 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  store ptr %181, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %182 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %183 = load i64, ptr %1, align 8, !tbaa !9
  %184 = getelementptr inbounds i64, ptr %182, i64 %183
  store ptr %184, ptr %32, align 8, !tbaa !11
  br label %185

185:                                              ; preds = %214, %180
  %186 = load ptr, ptr %31, align 8, !tbaa !11
  %187 = load ptr, ptr %32, align 8, !tbaa !11
  %188 = icmp ne ptr %186, %187
  br i1 %188, label %194, label %189

189:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %221

190:                                              ; preds = %179
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %5, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %6, align 4
  br label %251

194:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %195 = load ptr, ptr %31, align 8, !tbaa !11
  %196 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %197 = ptrtoint ptr %195 to i64
  %198 = ptrtoint ptr %196 to i64
  %199 = sub i64 %197, %198
  %200 = sdiv exact i64 %199, 8
  store i64 %200, ptr %33, align 8, !tbaa !9
  %201 = load i64, ptr %33, align 8, !tbaa !9
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %201) #6
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = getelementptr inbounds %"struct.std::pair", ptr %30, i32 0, i32 0
  store i32 %203, ptr %204, align 4, !tbaa !16
  %205 = load ptr, ptr %31, align 8, !tbaa !11
  %206 = invoke noundef i64 @_ZNK6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEE6queryhImEEmRKT_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 8 dereferenceable(8) %205)
          to label %207 unwind label %217

207:                                              ; preds = %194
  %208 = trunc i64 %206 to i32
  %209 = getelementptr inbounds %"struct.std::pair", ptr %30, i32 0, i32 1
  store i32 %208, ptr %209, align 4, !tbaa !18
  %210 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %211 unwind label %217

211:                                              ; preds = %207
  %212 = load i32, ptr %210, align 4, !tbaa !5
  %213 = add i32 %212, 1
  store i32 %213, ptr %210, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %214

214:                                              ; preds = %211
  %215 = load ptr, ptr %31, align 8, !tbaa !11
  %216 = getelementptr inbounds i64, ptr %215, i32 1
  store ptr %216, ptr %31, align 8, !tbaa !11
  br label %185, !llvm.loop !19

217:                                              ; preds = %207, %194
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %5, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %251

221:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store ptr %29, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %222 = load ptr, ptr %34, align 8, !tbaa !11
  %223 = call ptr @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %222) #6
  %224 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %35, i32 0, i32 0
  %225 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %224, i32 0, i32 0
  store ptr %223, ptr %225, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %226 = load ptr, ptr %34, align 8, !tbaa !11
  %227 = call ptr @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %226) #6
  %228 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %36, i32 0, i32 0
  %229 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %228, i32 0, i32 0
  store ptr %227, ptr %229, align 8
  br label %230

230:                                              ; preds = %248, %221
  %231 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IjjEjELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %231, label %233, label %232

232:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %250

233:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %234 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IjjEjELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  store ptr %234, ptr %37, align 8, !tbaa !11
  %235 = load ptr, ptr @stderr, align 8, !tbaa !11
  %236 = load ptr, ptr %37, align 8, !tbaa !11
  %237 = getelementptr inbounds %"struct.std::pair.24", ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds %"struct.std::pair", ptr %237, i32 0, i32 0
  %239 = load i32, ptr %238, align 4, !tbaa !20
  %240 = load ptr, ptr %37, align 8, !tbaa !11
  %241 = getelementptr inbounds %"struct.std::pair.24", ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds %"struct.std::pair", ptr %241, i32 0, i32 1
  %243 = load i32, ptr %242, align 4, !tbaa !22
  %244 = load ptr, ptr %37, align 8, !tbaa !11
  %245 = getelementptr inbounds %"struct.std::pair.24", ptr %244, i32 0, i32 1
  %246 = load i32, ptr %245, align 4, !tbaa !23
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str, i32 noundef %239, i32 noundef %243, i32 noundef %246) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %248

248:                                              ; preds = %233
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKS1_IjjEjELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br label %230

250:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #6
  call void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #6
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @_ZNSt10unique_ptrIA_mSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void

251:                                              ; preds = %217, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #6
  br label %252

252:                                              ; preds = %251, %175
  call void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #6
  br label %253

253:                                              ; preds = %252, %164
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #6
  br label %254

254:                                              ; preds = %253, %160, %132
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %255

255:                                              ; preds = %254, %107, %72, %63
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #6
  br label %256

256:                                              ; preds = %255, %59
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %257

257:                                              ; preds = %256, %55
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @_ZNSt10unique_ptrIA_mSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %258

258:                                              ; preds = %257
  %259 = load ptr, ptr %5, align 8
  %260 = load i32, ptr %6, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIA_mENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, i64 noundef) #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIjiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

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

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

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

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


; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator" = type { i8 }
%"class.wy::WyRand" = type <{ i64, [2 x i64], i32, [4 x i8] }>
%"class.std::poisson_distribution" = type { %"struct.std::poisson_distribution<>::param_type", %"class.std::normal_distribution" }
%"struct.std::poisson_distribution<>::param_type" = type { double, double, double, double, double, double, double, double, double }
%"class.std::normal_distribution" = type <{ %"struct.std::normal_distribution<>::param_type", double, i8, [7 x i8] }>
%"struct.std::normal_distribution<>::param_type" = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }
%"class.sketch::hk::HeavyKeeper" = type { %"struct.sketch::policy::SizePow2Policy", i64, %"class.std::vector.9", [8 x i8], double, i64, %"class.std::unique_ptr.11" }
%"struct.sketch::policy::SizePow2Policy" = type { i64, i64 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, sse::AlignedAllocator<unsigned long, sse::Alignment::SSE>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.11" = type { %"struct.std::__uniq_ptr_data.12" }
%"struct.std::__uniq_ptr_data.12" = type { %"class.std::__uniq_ptr_impl.13" }
%"class.std::__uniq_ptr_impl.13" = type { %"class.std::tuple.14" }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@tbsz = external dso_local local_unnamed_addr global i32, align 4
@nh = external dso_local local_unnamed_addr global i32, align 4
@nelem = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10run_randomv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::unique_ptr", align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.wy::WyRand", align 8
  %5 = alloca %"class.std::poisson_distribution", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.2", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %13 = alloca %"class.sketch::hk::HeavyKeeper", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.std::unordered_map", align 8
  %18 = alloca %"struct.std::pair", align 4
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = load i32, ptr @nelem, align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @_ZSt11make_uniqueIA_mENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %1, i64 noundef %22)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %23 unwind label %32

23:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN2wy6WyRandImLm2ENS_10WyHashFuncEEC2Em(ptr noundef nonnull align 8 dereferenceable(28) %4, i64 noundef %22)
          to label %24 unwind label %34

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %5) #6
  invoke void @_ZNSt20poisson_distributionIiEC2Ed(ptr noundef nonnull align 8 dereferenceable(104) %5, double noundef 4.000000e+00)
          to label %25 unwind label %36

25:                                               ; preds = %24
  %26 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %27 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %28 = getelementptr inbounds i64, ptr %27, i64 %22
  %.not51 = icmp eq ptr %26, %28
  br i1 %.not51, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %39, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %29 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %29, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %30 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %30, ptr %7, align 8
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %31, label %.lr.ph54, label %._crit_edge55

32:                                               ; preds = %0
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %129

34:                                               ; preds = %23
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %128

36:                                               ; preds = %24
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %127

.lr.ph:                                           ; preds = %25, %39
  %.03852 = phi ptr [ %40, %39 ], [ %26, %25 ]
  %38 = invoke noundef i64 @_ZN2wy6WyRandImLm2ENS_10WyHashFuncEEclEv(ptr noundef nonnull align 8 dereferenceable(28) %4)
          to label %39 unwind label %41

39:                                               ; preds = %.lr.ph
  %40 = getelementptr inbounds i8, ptr %.03852, i64 8
  store i64 %38, ptr %.03852, align 8, !tbaa !9
  %.not = icmp eq ptr %40, %28
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %127

._crit_edge55:                                    ; preds = %45, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %.not71 = icmp eq i32 %21, 0
  br i1 %.not71, label %._crit_edge59, label %.lr.ph58

.lr.ph54:                                         ; preds = %._crit_edge, %45
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %44 = invoke noundef i32 @_ZNSt20poisson_distributionIiEclIN2wy6WyRandImLm2ENS2_10WyHashFuncEEEEEiRT_(ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull align 8 dereferenceable(28) %4)
          to label %45 unwind label %52

45:                                               ; preds = %.lr.ph54
  store i32 %44, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = call noundef double @_ZSt3powIjiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef %47, i32 noundef 3)
  %49 = fptoui double %48 to i32
  store i32 %49, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %51, label %.lr.ph54, label %._crit_edge55

52:                                               ; preds = %.lr.ph54
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %127

._crit_edge59:                                    ; preds = %64, %._crit_edge55
  %54 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %55 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  invoke void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEERN2wy6WyRandImLm2ENS7_10WyHashFuncEEEEvT_SC_OT0_(ptr %54, ptr %55, ptr noundef nonnull align 8 dereferenceable(28) %4)
          to label %68 unwind label %81

.lr.ph58:                                         ; preds = %._crit_edge55, %64
  %.03956 = phi i64 [ %65, %64 ], [ 0, %._crit_edge55 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %56 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %56, ptr %12, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKmSt6vectorImSaImEEEC2IPmvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03956) #6
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = zext i32 %58 to i64
  %60 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %61 = getelementptr inbounds i64, ptr %60, i64 %.03956
  %62 = load ptr, ptr %11, align 8
  %63 = invoke ptr @_ZNSt6vectorImSaImEE6insertEN9__gnu_cxx17__normal_iteratorIPKmS1_EEmRS4_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr %62, i64 noundef %59, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %64 unwind label %66

64:                                               ; preds = %.lr.ph58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %65 = add nuw nsw i64 %.03956, 1
  %exitcond.not = icmp eq i64 %65, %22
  br i1 %exitcond.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !13

66:                                               ; preds = %.lr.ph58
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %126

68:                                               ; preds = %._crit_edge59
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #6
  %69 = load i32, ptr @tbsz, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = load i32, ptr @nh, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  invoke void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEEC2IJEEEmmdDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %13, i64 noundef %70, i64 noundef %72, double noundef 1.030000e+00)
          to label %73 unwind label %83

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %74 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %74, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %75 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %75, ptr %15, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %76, label %.lr.ph61, label %._crit_edge62

._crit_edge62:                                    ; preds = %88, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #6
  call void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @_ZNSt4pairIjjEC2IjjTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %77 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %78 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %79 = getelementptr inbounds i64, ptr %78, i64 %22
  %.not4263 = icmp eq ptr %77, %79
  br i1 %.not4263, label %._crit_edge67, label %.lr.ph66

.lr.ph66:                                         ; preds = %._crit_edge62
  %80 = getelementptr inbounds i8, ptr %18, i64 4
  br label %96

81:                                               ; preds = %._crit_edge59
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %126

83:                                               ; preds = %68
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %125

.lr.ph61:                                         ; preds = %73, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %86 = load i64, ptr %85, align 8, !tbaa !9
  store i64 %86, ptr %16, align 8, !tbaa !9
  %87 = invoke noundef i64 @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEE4addhImEEmRKT_(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %88 unwind label %91

88:                                               ; preds = %.lr.ph61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %90, label %.lr.ph61, label %._crit_edge62

91:                                               ; preds = %.lr.ph61
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %124

._crit_edge67:                                    ; preds = %108, %._crit_edge62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %93 = call ptr @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  store ptr %93, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %94 = call ptr @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  store ptr %94, ptr %20, align 8
  %95 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IjjEjELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %95, label %.lr.ph69, label %._crit_edge70

96:                                               ; preds = %.lr.ph66, %108
  %.04064 = phi ptr [ %77, %.lr.ph66 ], [ %111, %108 ]
  %97 = call noundef ptr @_ZNKSt10unique_ptrIA_mSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %98 = ptrtoint ptr %.04064 to i64
  %99 = ptrtoint ptr %97 to i64
  %100 = sub i64 %98, %99
  %101 = ashr exact i64 %100, 3
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %101) #6
  %103 = load i32, ptr %102, align 4, !tbaa !5
  store i32 %103, ptr %18, align 4, !tbaa !14
  %104 = invoke noundef i64 @_ZNK6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEE6queryhImEEmRKT_(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 8 dereferenceable(8) %.04064)
          to label %105 unwind label %112

105:                                              ; preds = %96
  %106 = trunc i64 %104 to i32
  store i32 %106, ptr %80, align 4, !tbaa !16
  %107 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %108 unwind label %112

108:                                              ; preds = %105
  %109 = load i32, ptr %107, align 4, !tbaa !5
  %110 = add i32 %109, 1
  store i32 %110, ptr %107, align 4, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %.04064, i64 8
  %.not42 = icmp eq ptr %111, %79
  br i1 %.not42, label %._crit_edge67, label %96, !llvm.loop !17

112:                                              ; preds = %105, %96
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  br label %124

._crit_edge70:                                    ; preds = %.lr.ph69, %._crit_edge67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  call void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #6
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt10unique_ptrIA_mSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void

.lr.ph69:                                         ; preds = %._crit_edge67, %.lr.ph69
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IjjEjELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %115 = load ptr, ptr @stderr, align 8, !tbaa !18
  %116 = load i32, ptr %114, align 4, !tbaa !20
  %117 = getelementptr inbounds i8, ptr %114, i64 4
  %118 = load i32, ptr %117, align 4, !tbaa !22
  %119 = getelementptr inbounds i8, ptr %114, i64 8
  %120 = load i32, ptr %119, align 4, !tbaa !23
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str, i32 noundef %116, i32 noundef %118, i32 noundef %120) #7
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKS1_IjjEjELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %123 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IjjEjELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %123, label %.lr.ph69, label %._crit_edge70

124:                                              ; preds = %112, %91
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %113, %112 ]
  call void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #6
  br label %125

125:                                              ; preds = %124, %83
  %.pn.pn = phi { ptr, i32 } [ %.pn, %124 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #6
  br label %126

126:                                              ; preds = %125, %81, %66
  %.pn45 = phi { ptr, i32 } [ %67, %66 ], [ %.pn.pn, %125 ], [ %82, %81 ]
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %127

127:                                              ; preds = %126, %52, %41, %36
  %.pn47 = phi { ptr, i32 } [ %42, %41 ], [ %53, %52 ], [ %.pn45, %126 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5) #6
  br label %128

128:                                              ; preds = %127, %34
  %.pn47.pn = phi { ptr, i32 } [ %.pn47, %127 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %129

129:                                              ; preds = %128, %32
  %.pn47.pn.pn = phi { ptr, i32 } [ %.pn47.pn, %128 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt10unique_ptrIA_mSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn47.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIA_mENSt8__detail9_MakeUniqIT_E7__arrayEm(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, i64 noundef) local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIjiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapISt4pairIjjEjSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sketch2hk11HeavyKeeperILm32ELm32ENS_4hash8WangHashENS_6policy14SizePow2PolicyImEEN2wy6WyRandImLm2ENS7_10WyHashFuncEEEN3sse16AlignedAllocatorImLNSB_9AlignmentE16EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

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

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

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

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


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