; LLVM IR from dnbaker/sketch :: testsrc (expsampletest)

; 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"

%"struct.std::array" = type { [5 x double] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::allocator" = type { i8 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.anon = type { i8 }
%class.anon.6 = type { i8 }
%class.anon.8 = type { ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_Z4gettv() #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.std::array", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::mersenne_twister_engine", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca %"class.std::allocator.2", align 1
  %20 = alloca %"class.std::chrono::time_point", align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::chrono::time_point", align 8
  %23 = alloca double, align 8
  %24 = alloca %"class.std::chrono::time_point", align 8
  %25 = alloca %"class.std::chrono::time_point", align 8
  %26 = alloca %"class.std::chrono::time_point", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"class.std::chrono::time_point", align 8
  %29 = alloca %"class.std::chrono::time_point", align 8
  %30 = alloca %"class.std::chrono::time_point", align 8
  %31 = alloca %"class.std::chrono::time_point", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %35 = alloca %class.anon, align 1
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %37 = alloca %"class.std::chrono::time_point", align 8
  %38 = alloca %"class.std::chrono::time_point", align 8
  %39 = alloca %"class.std::chrono::time_point", align 8
  %40 = alloca %"class.std::chrono::time_point", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %44 = alloca %class.anon.6, align 1
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %46 = alloca %"class.std::chrono::time_point", align 8
  %47 = alloca %"class.std::chrono::time_point", align 8
  %48 = alloca %"class.std::chrono::time_point", align 8
  %49 = alloca %"class.std::chrono::time_point", align 8
  %50 = alloca i64, align 8
  %51 = alloca %"class.std::chrono::time_point", align 8
  %52 = alloca %"class.std::chrono::time_point", align 8
  %53 = alloca %"class.std::chrono::time_point", align 8
  %54 = alloca %"class.std::chrono::time_point", align 8
  %55 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %56 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %57 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %58 = alloca %class.anon.8, align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %60 = alloca %"class.std::chrono::time_point", align 8
  %61 = alloca %"class.std::chrono::time_point", align 8
  %62 = alloca %"class.std::chrono::time_point", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = icmp sle i32 %63, 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %2
  br label %71

66:                                               ; preds = %2
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 1
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call i64 @strtoull(ptr noundef %69, ptr noundef null, i32 noundef 10) #9
  br label %71

71:                                               ; preds = %66, %65
  %72 = phi i64 [ 1333337, %65 ], [ %70, %66 ]
  store i64 %72, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = icmp sle i32 %73, 2
  br i1 %74, label %75, label %76

75:                                               ; preds = %71
  br label %81

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 1
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = call i64 @strtoull(ptr noundef %79, ptr noundef null, i32 noundef 10) #9
  br label %81

81:                                               ; preds = %76, %75
  %82 = phi i64 [ 133333700, %75 ], [ %80, %76 ]
  store i64 %82, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #9
  %83 = load i64, ptr %6, align 8, !tbaa !11
  call void @_ZN6sketch3wmhL26compute_truncexp_constantsIdEESt5arrayIT_Lm5EEm(ptr dead_on_unwind writable sret(%"struct.std::array") align 8 %8, i64 noundef %83) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #9
  %84 = load i64, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #9
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  invoke void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %84, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %85 unwind label %96

85:                                               ; preds = %81
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 2504, ptr %13) #9
  invoke void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2504) %13)
          to label %86 unwind label %100

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store ptr %9, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %90 = load ptr, ptr %14, align 8, !tbaa !9
  %91 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #9
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  br label %93

93:                                               ; preds = %109, %86
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br i1 %94, label %104, label %95

95:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %115

96:                                               ; preds = %81
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %11, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %12, align 4
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  br label %347

100:                                              ; preds = %85
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  br label %346

104:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  store ptr %105, ptr %17, align 8, !tbaa !9
  %106 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %13)
          to label %107 unwind label %111

107:                                              ; preds = %104
  %108 = load ptr, ptr %17, align 8, !tbaa !9
  store i64 %106, ptr %108, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %109

109:                                              ; preds = %107
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br label %93

111:                                              ; preds = %104
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %346

115:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #9
  %116 = load i64, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #9
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %116, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %117 unwind label %126

117:                                              ; preds = %115
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %118 = call i64 @_Z4gettv()
  %119 = getelementptr inbounds %"class.std::chrono::time_point", ptr %20, i32 0, i32 0
  %120 = getelementptr inbounds %"class.std::chrono::duration", ptr %119, i32 0, i32 0
  store i64 %118, ptr %120, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %121

121:                                              ; preds = %140, %117
  %122 = load i64, ptr %21, align 8, !tbaa !11
  %123 = load i64, ptr %7, align 8, !tbaa !11
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %130, label %125

125:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %143

126:                                              ; preds = %115
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #9
  br label %345

130:                                              ; preds = %121
  %131 = load i64, ptr %21, align 8, !tbaa !11
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %131) #9
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = uitofp i64 %133 to double
  %135 = call double @llvm.fma.f64(double %134, double 0x3BF0000000000000, double -1.000000e+00)
  %136 = call double @log1p(double noundef %135) #9
  %137 = fneg double %136
  %138 = load i64, ptr %21, align 8, !tbaa !11
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %138) #9
  store double %137, ptr %139, align 8, !tbaa !13
  br label %140

140:                                              ; preds = %130
  %141 = load i64, ptr %21, align 8, !tbaa !11
  %142 = add i64 %141, 1
  store i64 %142, ptr %21, align 8, !tbaa !11
  br label %121, !llvm.loop !15

143:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %144 = call i64 @_Z4gettv()
  %145 = getelementptr inbounds %"class.std::chrono::time_point", ptr %22, i32 0, i32 0
  %146 = getelementptr inbounds %"class.std::chrono::duration", ptr %145, i32 0, i32 0
  store i64 %144, ptr %146, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %22, i64 8, i1 false), !tbaa.struct !17
  %147 = getelementptr inbounds %"class.std::chrono::time_point", ptr %24, i32 0, i32 0
  %148 = getelementptr inbounds %"class.std::chrono::duration", ptr %147, i32 0, i32 0
  %149 = load i64, ptr %148, align 8
  %150 = getelementptr inbounds %"class.std::chrono::time_point", ptr %25, i32 0, i32 0
  %151 = getelementptr inbounds %"class.std::chrono::duration", ptr %150, i32 0, i32 0
  %152 = load i64, ptr %151, align 8
  %153 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %149, i64 %152)
          to label %154 unwind label %168

154:                                              ; preds = %143
  store double %153, ptr %23, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %155 = call i64 @_Z4gettv()
  %156 = getelementptr inbounds %"class.std::chrono::time_point", ptr %26, i32 0, i32 0
  %157 = getelementptr inbounds %"class.std::chrono::duration", ptr %156, i32 0, i32 0
  store i64 %155, ptr %157, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %26, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  %158 = load ptr, ptr @stderr, align 8, !tbaa !9
  %159 = load double, ptr %23, align 8, !tbaa !13
  %160 = invoke noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %161 unwind label %168

161:                                              ; preds = %154
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str, double noundef %159, double noundef %160) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %182, %161
  %164 = load i64, ptr %27, align 8, !tbaa !11
  %165 = load i64, ptr %7, align 8, !tbaa !11
  %166 = icmp ult i64 %164, %165
  br i1 %166, label %172, label %167

167:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %185

168:                                              ; preds = %264, %252, %234, %230, %218, %200, %196, %185, %154, %143
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %11, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %12, align 4
  br label %344

172:                                              ; preds = %163
  %173 = load i64, ptr %27, align 8, !tbaa !11
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %173) #9
  %175 = load i64, ptr %174, align 8, !tbaa !11
  %176 = uitofp i64 %175 to double
  %177 = fmul double %176, 0x3BF0000000000000
  %178 = call double @log(double noundef %177) #9
  %179 = fneg double %178
  %180 = load i64, ptr %27, align 8, !tbaa !11
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %180) #9
  store double %179, ptr %181, align 8, !tbaa !13
  br label %182

182:                                              ; preds = %172
  %183 = load i64, ptr %27, align 8, !tbaa !11
  %184 = add i64 %183, 1
  store i64 %184, ptr %27, align 8, !tbaa !11
  br label %163, !llvm.loop !18

185:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %186 = call i64 @_Z4gettv()
  %187 = getelementptr inbounds %"class.std::chrono::time_point", ptr %28, i32 0, i32 0
  %188 = getelementptr inbounds %"class.std::chrono::duration", ptr %187, i32 0, i32 0
  store i64 %186, ptr %188, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %22, i64 8, i1 false), !tbaa.struct !17
  %189 = getelementptr inbounds %"class.std::chrono::time_point", ptr %29, i32 0, i32 0
  %190 = getelementptr inbounds %"class.std::chrono::duration", ptr %189, i32 0, i32 0
  %191 = load i64, ptr %190, align 8
  %192 = getelementptr inbounds %"class.std::chrono::time_point", ptr %30, i32 0, i32 0
  %193 = getelementptr inbounds %"class.std::chrono::duration", ptr %192, i32 0, i32 0
  %194 = load i64, ptr %193, align 8
  %195 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %191, i64 %194)
          to label %196 unwind label %168

196:                                              ; preds = %185
  store double %195, ptr %23, align 8, !tbaa !13
  %197 = load ptr, ptr @stderr, align 8, !tbaa !9
  %198 = load double, ptr %23, align 8, !tbaa !13
  %199 = invoke noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %200 unwind label %168

200:                                              ; preds = %196
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.1, double noundef %198, double noundef %199) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %202 = call i64 @_Z4gettv()
  %203 = getelementptr inbounds %"class.std::chrono::time_point", ptr %31, i32 0, i32 0
  %204 = getelementptr inbounds %"class.std::chrono::duration", ptr %203, i32 0, i32 0
  store i64 %202, ptr %204, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %31, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  %205 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %205, ptr %206, align 8
  %207 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  %209 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %34, i32 0, i32 0
  store ptr %209, ptr %210, align 8
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8
  %213 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %34, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8
  %217 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_0ET0_T_SD_SC_T1_"(ptr %212, ptr %214, ptr %216)
          to label %218 unwind label %168

218:                                              ; preds = %200
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %36, i32 0, i32 0
  store ptr %217, ptr %219, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %220 = call i64 @_Z4gettv()
  %221 = getelementptr inbounds %"class.std::chrono::time_point", ptr %37, i32 0, i32 0
  %222 = getelementptr inbounds %"class.std::chrono::duration", ptr %221, i32 0, i32 0
  store i64 %220, ptr %222, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %37, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %22, i64 8, i1 false), !tbaa.struct !17
  %223 = getelementptr inbounds %"class.std::chrono::time_point", ptr %38, i32 0, i32 0
  %224 = getelementptr inbounds %"class.std::chrono::duration", ptr %223, i32 0, i32 0
  %225 = load i64, ptr %224, align 8
  %226 = getelementptr inbounds %"class.std::chrono::time_point", ptr %39, i32 0, i32 0
  %227 = getelementptr inbounds %"class.std::chrono::duration", ptr %226, i32 0, i32 0
  %228 = load i64, ptr %227, align 8
  %229 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %225, i64 %228)
          to label %230 unwind label %168

230:                                              ; preds = %218
  store double %229, ptr %23, align 8, !tbaa !13
  %231 = load ptr, ptr @stderr, align 8, !tbaa !9
  %232 = load double, ptr %23, align 8, !tbaa !13
  %233 = invoke noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %234 unwind label %168

234:                                              ; preds = %230
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.2, double noundef %232, double noundef %233) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %236 = call i64 @_Z4gettv()
  %237 = getelementptr inbounds %"class.std::chrono::time_point", ptr %40, i32 0, i32 0
  %238 = getelementptr inbounds %"class.std::chrono::duration", ptr %237, i32 0, i32 0
  store i64 %236, ptr %238, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %40, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  %239 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  %241 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  %243 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %43, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %43, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8
  %251 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_1ET0_T_SD_SC_T1_"(ptr %246, ptr %248, ptr %250)
          to label %252 unwind label %168

252:                                              ; preds = %234
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %45, i32 0, i32 0
  store ptr %251, ptr %253, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %254 = call i64 @_Z4gettv()
  %255 = getelementptr inbounds %"class.std::chrono::time_point", ptr %46, i32 0, i32 0
  %256 = getelementptr inbounds %"class.std::chrono::duration", ptr %255, i32 0, i32 0
  store i64 %254, ptr %256, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %46, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %22, i64 8, i1 false), !tbaa.struct !17
  %257 = getelementptr inbounds %"class.std::chrono::time_point", ptr %47, i32 0, i32 0
  %258 = getelementptr inbounds %"class.std::chrono::duration", ptr %257, i32 0, i32 0
  %259 = load i64, ptr %258, align 8
  %260 = getelementptr inbounds %"class.std::chrono::time_point", ptr %48, i32 0, i32 0
  %261 = getelementptr inbounds %"class.std::chrono::duration", ptr %260, i32 0, i32 0
  %262 = load i64, ptr %261, align 8
  %263 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %259, i64 %262)
          to label %264 unwind label %168

264:                                              ; preds = %252
  store double %263, ptr %23, align 8, !tbaa !13
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = load double, ptr %23, align 8, !tbaa !13
  %267 = invoke noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %268 unwind label %168

268:                                              ; preds = %264
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.3, double noundef %266, double noundef %267) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %270 = call i64 @_Z4gettv()
  %271 = getelementptr inbounds %"class.std::chrono::time_point", ptr %49, i32 0, i32 0
  %272 = getelementptr inbounds %"class.std::chrono::duration", ptr %271, i32 0, i32 0
  store i64 %270, ptr %272, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  store i64 0, ptr %50, align 8, !tbaa !11
  br label %273

273:                                              ; preds = %284, %268
  %274 = load i64, ptr %50, align 8, !tbaa !11
  %275 = load i64, ptr %7, align 8, !tbaa !11
  %276 = icmp ult i64 %274, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  br label %287

278:                                              ; preds = %273
  %279 = load i64, ptr %50, align 8, !tbaa !11
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %279) #9
  %281 = call noundef double @_ZN6sketch3wmhL14truncexpsampleIdEET_RmRKSt5arrayIS2_Lm5EE(ptr noundef nonnull align 8 dereferenceable(8) %280, ptr noundef nonnull align 8 dereferenceable(40) %8) #9
  %282 = load i64, ptr %50, align 8, !tbaa !11
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %282) #9
  store double %281, ptr %283, align 8, !tbaa !13
  br label %284

284:                                              ; preds = %278
  %285 = load i64, ptr %50, align 8, !tbaa !11
  %286 = add i64 %285, 1
  store i64 %286, ptr %50, align 8, !tbaa !11
  br label %273, !llvm.loop !19

287:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  %288 = call i64 @_Z4gettv()
  %289 = getelementptr inbounds %"class.std::chrono::time_point", ptr %51, i32 0, i32 0
  %290 = getelementptr inbounds %"class.std::chrono::duration", ptr %289, i32 0, i32 0
  store i64 %288, ptr %290, align 8
  %291 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 8 %49, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %51, i64 8, i1 false), !tbaa.struct !17
  %292 = getelementptr inbounds %"class.std::chrono::time_point", ptr %52, i32 0, i32 0
  %293 = getelementptr inbounds %"class.std::chrono::duration", ptr %292, i32 0, i32 0
  %294 = load i64, ptr %293, align 8
  %295 = getelementptr inbounds %"class.std::chrono::time_point", ptr %53, i32 0, i32 0
  %296 = getelementptr inbounds %"class.std::chrono::duration", ptr %295, i32 0, i32 0
  %297 = load i64, ptr %296, align 8
  %298 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %294, i64 %297)
          to label %299 unwind label %340

299:                                              ; preds = %287
  %300 = invoke noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %301 unwind label %340

301:                                              ; preds = %299
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %291, ptr noundef @.str.4, double noundef %298, double noundef %300) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #9
  %303 = call i64 @_Z4gettv()
  %304 = getelementptr inbounds %"class.std::chrono::time_point", ptr %54, i32 0, i32 0
  %305 = getelementptr inbounds %"class.std::chrono::duration", ptr %304, i32 0, i32 0
  store i64 %303, ptr %305, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 8 %54, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  %306 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %307 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %55, i32 0, i32 0
  store ptr %306, ptr %307, align 8
  %308 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %309 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %56, i32 0, i32 0
  store ptr %308, ptr %309, align 8
  %310 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %311 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %57, i32 0, i32 0
  store ptr %310, ptr %311, align 8
  %312 = getelementptr inbounds %class.anon.8, ptr %58, i32 0, i32 0
  store ptr %8, ptr %312, align 8, !tbaa !9
  %313 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %55, i32 0, i32 0
  %314 = load ptr, ptr %313, align 8
  %315 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %56, i32 0, i32 0
  %316 = load ptr, ptr %315, align 8
  %317 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %57, i32 0, i32 0
  %318 = load ptr, ptr %317, align 8
  %319 = getelementptr inbounds %class.anon.8, ptr %58, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8
  %321 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_2ET0_T_SD_SC_T1_"(ptr %314, ptr %316, ptr %318, ptr %320)
          to label %322 unwind label %340

322:                                              ; preds = %301
  %323 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %59, i32 0, i32 0
  store ptr %321, ptr %323, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #9
  %324 = call i64 @_Z4gettv()
  %325 = getelementptr inbounds %"class.std::chrono::time_point", ptr %60, i32 0, i32 0
  %326 = getelementptr inbounds %"class.std::chrono::duration", ptr %325, i32 0, i32 0
  store i64 %324, ptr %326, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %60, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  %327 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %49, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %51, i64 8, i1 false), !tbaa.struct !17
  %328 = getelementptr inbounds %"class.std::chrono::time_point", ptr %61, i32 0, i32 0
  %329 = getelementptr inbounds %"class.std::chrono::duration", ptr %328, i32 0, i32 0
  %330 = load i64, ptr %329, align 8
  %331 = getelementptr inbounds %"class.std::chrono::time_point", ptr %62, i32 0, i32 0
  %332 = getelementptr inbounds %"class.std::chrono::duration", ptr %331, i32 0, i32 0
  %333 = load i64, ptr %332, align 8
  %334 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %330, i64 %333)
          to label %335 unwind label %340

335:                                              ; preds = %322
  %336 = invoke noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %337 unwind label %340

337:                                              ; preds = %335
  %338 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %327, ptr noundef @.str.5, double noundef %334, double noundef %336) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 2504, ptr %13) #9
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  %339 = load i32, ptr %3, align 4
  ret i32 %339

340:                                              ; preds = %335, %322, %301, %299, %287
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %11, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %344

344:                                              ; preds = %340, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  br label %345

345:                                              ; preds = %344, %126
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  br label %346

346:                                              ; preds = %345, %111, %100
  call void @llvm.lifetime.end.p0(i64 2504, ptr %13) #9
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %347

347:                                              ; preds = %346, %96
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %348

348:                                              ; preds = %347
  %349 = load ptr, ptr %11, align 8
  %350 = load i32, ptr %12, align 4
  %351 = insertvalue { ptr, i32 } poison, ptr %349, 0
  %352 = insertvalue { ptr, i32 } %351, i32 %350, 1
  resume { ptr, i32 } %352
}

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

; Function Attrs: nounwind
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN6sketch3wmhL26compute_truncexp_constantsIdEESt5arrayIT_Lm5EEm(ptr dead_on_unwind noalias writable sret(%"struct.std::array") align 8, i64 noundef) #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 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)) #4

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

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

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

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

; Function Attrs: nounwind
declare double @log1p(double noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fma.f64(double, double, double) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64, i64) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: nounwind
declare double @log(double noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_0ET0_T_SD_SC_T1_"(ptr, ptr, ptr) #5

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_1ET0_T_SD_SC_T1_"(ptr, ptr, ptr) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN6sketch3wmhL14truncexpsampleIdEET_RmRKSt5arrayIS2_Lm5EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) #8

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_2ET0_T_SD_SC_T1_"(ptr, ptr, ptr, ptr) #5

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

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

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

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

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


; 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"

%"struct.std::array" = type { [5 x double] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::allocator" = type { i8 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_Z4gettv() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::array", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::mersenne_twister_engine", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = icmp slt i32 %0, 2
  br i1 %11, label %.thread, label %12

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = tail call i64 @strtoull(ptr nocapture noundef %14, ptr noundef null, i32 noundef 10) #10
  %16 = icmp eq i32 %0, 2
  br i1 %16, label %.thread, label %17

17:                                               ; preds = %12
  %18 = load ptr, ptr %13, align 8, !tbaa !5
  %19 = tail call i64 @strtoull(ptr nocapture noundef %18, ptr noundef null, i32 noundef 10) #10
  br label %.thread

.thread:                                          ; preds = %2, %12, %17
  %20 = phi i64 [ %15, %17 ], [ %15, %12 ], [ 1333337, %2 ]
  %21 = phi i64 [ %19, %17 ], [ 133333700, %12 ], [ 133333700, %2 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #10
  call void @_ZN6sketch3wmhL26compute_truncexp_constantsIdEESt5arrayIT_Lm5EEm(ptr dead_on_unwind nonnull writable sret(%"struct.std::array") align 8 %3, i64 noundef %20) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #10
  invoke void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %21, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %22 unwind label %27

22:                                               ; preds = %.thread
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %6) #10
  invoke void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2504) %6)
          to label %23 unwind label %29

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %24 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  store ptr %24, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  %25 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  store ptr %25, ptr %8, align 8
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %33, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #10
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #10
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %21, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %38 unwind label %42

27:                                               ; preds = %.thread
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10
  br label %125

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %124

.lr.ph:                                           ; preds = %23, %33
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  %32 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %6)
          to label %33 unwind label %36

33:                                               ; preds = %.lr.ph
  store i64 %32, ptr %31, align 8, !tbaa !9
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  br i1 %35, label %.lr.ph, label %._crit_edge

36:                                               ; preds = %.lr.ph
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  br label %124

38:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #10
  %39 = call i64 @_Z4gettv()
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %._crit_edge91, label %.lr.ph90

._crit_edge91:                                    ; preds = %.lr.ph90, %38
  %40 = call i64 @_Z4gettv()
  %41 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %39, i64 %40)
          to label %52 unwind label %59

42:                                               ; preds = %._crit_edge
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #10
  br label %123

.lr.ph90:                                         ; preds = %38, %.lr.ph90
  %.07988 = phi i64 [ %51, %.lr.ph90 ], [ 0, %38 ]
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.07988) #10
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = uitofp i64 %45 to double
  %47 = call double @llvm.fma.f64(double %46, double 0x3BF0000000000000, double -1.000000e+00)
  %48 = call double @log1p(double noundef %47) #10
  %49 = fneg double %48
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.07988) #10
  store double %49, ptr %50, align 8, !tbaa !11
  %51 = add nuw i64 %.07988, 1
  %exitcond.not = icmp eq i64 %51, %21
  br i1 %exitcond.not, label %._crit_edge91, label %.lr.ph90, !llvm.loop !13

52:                                               ; preds = %._crit_edge91
  %53 = call i64 @_Z4gettv()
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = call noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, double noundef %41, double noundef %55) #11
  br i1 %.not, label %._crit_edge95, label %.lr.ph94

._crit_edge95:                                    ; preds = %.lr.ph94, %52
  %57 = call i64 @_Z4gettv()
  %58 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %53, i64 %57)
          to label %69 unwind label %59

59:                                               ; preds = %90, %81, %78, %69, %._crit_edge95, %._crit_edge91
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %122

.lr.ph94:                                         ; preds = %52, %.lr.ph94
  %.08092 = phi i64 [ %68, %.lr.ph94 ], [ 0, %52 ]
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.08092) #10
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = uitofp i64 %62 to double
  %64 = fmul double %63, 0x3BF0000000000000
  %65 = call double @log(double noundef %64) #10
  %66 = fneg double %65
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.08092) #10
  store double %66, ptr %67, align 8, !tbaa !11
  %68 = add nuw i64 %.08092, 1
  %exitcond102.not = icmp eq i64 %68, %21
  br i1 %exitcond102.not, label %._crit_edge95, label %.lr.ph94, !llvm.loop !15

69:                                               ; preds = %._crit_edge95
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.1, double noundef %58, double noundef %71) #11
  %73 = call i64 @_Z4gettv()
  %74 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %75 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %76 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %77 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_0ET0_T_SD_SC_T1_"(ptr %74, ptr %75, ptr %76)
          to label %78 unwind label %59

78:                                               ; preds = %69
  %79 = call i64 @_Z4gettv()
  %80 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %73, i64 %79)
          to label %81 unwind label %59

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.2, double noundef %80, double noundef %83) #11
  %85 = call i64 @_Z4gettv()
  %86 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %87 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %88 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %89 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_1ET0_T_SD_SC_T1_"(ptr %86, ptr %87, ptr %88)
          to label %90 unwind label %59

90:                                               ; preds = %81
  %91 = call i64 @_Z4gettv()
  %92 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %85, i64 %91)
          to label %93 unwind label %59

93:                                               ; preds = %90
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.3, double noundef %92, double noundef %95) #11
  %97 = call i64 @_Z4gettv()
  br i1 %.not, label %._crit_edge99, label %.lr.ph98

._crit_edge99:                                    ; preds = %.lr.ph98, %93
  %98 = call i64 @_Z4gettv()
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %97, i64 %98)
          to label %105 unwind label %120

.lr.ph98:                                         ; preds = %93, %.lr.ph98
  %.08196 = phi i64 [ %104, %.lr.ph98 ], [ 0, %93 ]
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.08196) #10
  %102 = call noundef double @_ZN6sketch3wmhL14truncexpsampleIdEET_RmRKSt5arrayIS2_Lm5EE(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull align 8 dereferenceable(40) %3) #10
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.08196) #10
  store double %102, ptr %103, align 8, !tbaa !11
  %104 = add nuw i64 %.08196, 1
  %exitcond103.not = icmp eq i64 %104, %21
  br i1 %exitcond103.not, label %._crit_edge99, label %.lr.ph98, !llvm.loop !16

105:                                              ; preds = %._crit_edge99
  %106 = call noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.4, double noundef %100, double noundef %106) #11
  %108 = call i64 @_Z4gettv()
  %109 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %110 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %111 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %112 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_2ET0_T_SD_SC_T1_"(ptr %109, ptr %110, ptr %111, ptr nonnull %3)
          to label %113 unwind label %120

113:                                              ; preds = %105
  %114 = call i64 @_Z4gettv()
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = invoke noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64 %108, i64 %114)
          to label %117 unwind label %120

117:                                              ; preds = %113
  %118 = call noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.5, double noundef %116, double noundef %118) #11
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %6) #10
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #10
  ret i32 0

120:                                              ; preds = %113, %105, %._crit_edge99
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %122

122:                                              ; preds = %120, %59
  %.pn = phi { ptr, i32 } [ %121, %120 ], [ %60, %59 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  br label %123

123:                                              ; preds = %122, %42
  %.pn.pn = phi { ptr, i32 } [ %.pn, %122 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #10
  br label %124

124:                                              ; preds = %123, %36, %29
  %.pn85 = phi { ptr, i32 } [ %37, %36 ], [ %.pn.pn, %123 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %6) #10
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  br label %125

125:                                              ; preds = %124, %27
  %.pn85.pn = phi { ptr, i32 } [ %.pn85, %124 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn85.pn
}

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoull(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN6sketch3wmhL26compute_truncexp_constantsIdEESt5arrayIT_Lm5EEm(ptr dead_on_unwind noalias writable sret(%"struct.std::array") align 8, i64 noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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 #4

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log1p(double noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fma.f64(double, double, double) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z10timepassedINSt6chrono10time_pointINS0_3_V212system_clockENS0_8durationIlSt5ratioILl1ELl1000000000EEEEEEEDaT_S9_(i64, i64) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3avgISt6vectorIdSaIdEEEdRT_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_0ET0_T_SD_SC_T1_"(ptr, ptr, ptr) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_1ET0_T_SD_SC_T1_"(ptr, ptr, ptr) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN6sketch3wmhL14truncexpsampleIdEET_RmRKSt5arrayIS2_Lm5EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #9

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS1_IPdS3_IdSaIdEEEEZ4mainE3$_2ET0_T_SD_SC_T1_"(ptr, ptr, ptr, ptr) local_unnamed_addr #5

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

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

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

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

attributes #0 = { 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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn "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 = { 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 #5 = { 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 #6 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { alwaysinline 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 #10 = { nounwind }
attributes #11 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass