; LLVM IR from nsccgz-storage/nvlsm :: util/histogram.ll (ZNK7leveldb9Histogram8ToStringB5cxx11Ev)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.leveldb::Histogram" = type { double, double, double, double, double, [154 x double] }

@_ZN7leveldb9Histogram12kBucketLimitE = external dso_local constant [154 x double], align 16
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7leveldb9Histogram6MedianEv(ptr noundef nonnull align 8 dereferenceable(1272)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7leveldb9Histogram8ToStringB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(1272) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca [200 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  call void @llvm.lifetime.start.p0(i64 200, ptr %6) #5
  %14 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %15 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 2
  %16 = load double, ptr %15, align 8, !tbaa !9
  %17 = call noundef double @_ZNK7leveldb9Histogram7AverageEv(ptr noundef nonnull align 8 dereferenceable(1272) %13)
  %18 = call noundef double @_ZNK7leveldb9Histogram17StandardDeviationEv(ptr noundef nonnull align 8 dereferenceable(1272) %13)
  %19 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %14, i64 noundef 200, ptr noundef @.str, double noundef %16, double noundef %17, double noundef %18) #5
  %20 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %21 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %20)
          to label %22 unwind label %50

22:                                               ; preds = %2
  %23 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %24 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 2
  %25 = load double, ptr %24, align 8, !tbaa !9
  %26 = fcmp oeq double %25, 0.000000e+00
  br i1 %26, label %27, label %28

27:                                               ; preds = %22
  br label %31

28:                                               ; preds = %22
  %29 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 0
  %30 = load double, ptr %29, align 8, !tbaa !12
  br label %31

31:                                               ; preds = %28, %27
  %32 = phi double [ 0.000000e+00, %27 ], [ %30, %28 ]
  %33 = invoke noundef double @_ZNK7leveldb9Histogram6MedianEv(ptr noundef nonnull align 8 dereferenceable(1272) %13)
          to label %34 unwind label %50

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 1
  %36 = load double, ptr %35, align 8, !tbaa !13
  %37 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %23, i64 noundef 200, ptr noundef @.str.1, double noundef %32, double noundef %33, double noundef %36) #5
  %38 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %39 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %38)
          to label %40 unwind label %50

40:                                               ; preds = %34
  %41 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.2)
          to label %42 unwind label %50

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %43 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 2
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = fdiv double 1.000000e+02, %44
  store double %45, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store double 0.000000e+00, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %46

46:                                               ; preds = %120, %42
  %47 = load i32, ptr %11, align 4, !tbaa !15
  %48 = icmp slt i32 %47, 154
  br i1 %48, label %54, label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %132

50:                                               ; preds = %40, %34, %31, %2
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %134

54:                                               ; preds = %46
  %55 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 5
  %56 = load i32, ptr %11, align 4, !tbaa !15
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [154 x double], ptr %55, i64 0, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = fcmp ole double %59, 0.000000e+00
  br i1 %60, label %61, label %62

61:                                               ; preds = %54
  br label %120

62:                                               ; preds = %54
  %63 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 5
  %64 = load i32, ptr %11, align 4, !tbaa !15
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [154 x double], ptr %63, i64 0, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !14
  %68 = load double, ptr %10, align 8, !tbaa !14
  %69 = fadd double %68, %67
  store double %69, ptr %10, align 8, !tbaa !14
  %70 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %71 = load i32, ptr %11, align 4, !tbaa !15
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %62
  br label %80

74:                                               ; preds = %62
  %75 = load i32, ptr %11, align 4, !tbaa !15
  %76 = sub nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [154 x double], ptr @_ZN7leveldb9Histogram12kBucketLimitE, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !14
  br label %80

80:                                               ; preds = %74, %73
  %81 = phi double [ 0.000000e+00, %73 ], [ %79, %74 ]
  %82 = load i32, ptr %11, align 4, !tbaa !15
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [154 x double], ptr @_ZN7leveldb9Histogram12kBucketLimitE, i64 0, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !14
  %86 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 5
  %87 = load i32, ptr %11, align 4, !tbaa !15
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [154 x double], ptr %86, i64 0, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !14
  %91 = load double, ptr %9, align 8, !tbaa !14
  %92 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 5
  %93 = load i32, ptr %11, align 4, !tbaa !15
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [154 x double], ptr %92, i64 0, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !14
  %97 = fmul double %91, %96
  %98 = load double, ptr %9, align 8, !tbaa !14
  %99 = load double, ptr %10, align 8, !tbaa !14
  %100 = fmul double %98, %99
  %101 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %70, i64 noundef 200, ptr noundef @.str.3, double noundef %81, double noundef %85, double noundef %90, double noundef %97, double noundef %100) #5
  %102 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %103 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %102)
          to label %104 unwind label %123

104:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %105 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 5
  %106 = load i32, ptr %11, align 4, !tbaa !15
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [154 x double], ptr %105, i64 0, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !14
  %110 = getelementptr inbounds %"class.leveldb::Histogram", ptr %13, i32 0, i32 2
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = fdiv double %109, %111
  %113 = call double @llvm.fmuladd.f64(double 2.000000e+01, double %112, double 5.000000e-01)
  %114 = fptosi double %113 to i32
  store i32 %114, ptr %12, align 4, !tbaa !15
  %115 = load i32, ptr %12, align 4, !tbaa !15
  %116 = sext i32 %115 to i64
  %117 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEmc(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %116, i8 noundef signext 35)
          to label %118 unwind label %127

118:                                              ; preds = %104
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 10)
          to label %119 unwind label %127

119:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %120

120:                                              ; preds = %119, %61
  %121 = load i32, ptr %11, align 4, !tbaa !15
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %11, align 4, !tbaa !15
  br label %46, !llvm.loop !17

123:                                              ; preds = %80
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  br label %131

127:                                              ; preds = %118, %104
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %134

132:                                              ; preds = %49
  store i1 true, ptr %5, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 200, ptr %6) #5
  %133 = load i1, ptr %5, align 1
  br i1 %133, label %136, label %135

134:                                              ; preds = %131, %50
  call void @llvm.lifetime.end.p0(i64 200, ptr %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %137

135:                                              ; preds = %132
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %136

136:                                              ; preds = %135, %132
  ret void

137:                                              ; preds = %134
  %138 = load ptr, ptr %7, align 8
  %139 = load i32, ptr %8, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #2 align 2

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZN7leveldb9Histogram12kBucketLimitE = external dso_local local_unnamed_addr constant [154 x double], align 16
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7leveldb9Histogram6MedianEv(ptr noundef nonnull align 8 dereferenceable(1272)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7leveldb9Histogram8ToStringB5cxx11Ev(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(1272) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [200 x i8], align 16
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %3) #5
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load double, ptr %4, align 8, !tbaa !5
  %6 = tail call noundef double @_ZNK7leveldb9Histogram7AverageEv(ptr noundef nonnull align 8 dereferenceable(1272) %1)
  %7 = tail call noundef double @_ZNK7leveldb9Histogram17StandardDeviationEv(ptr noundef nonnull align 8 dereferenceable(1272) %1)
  %8 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 200, ptr noundef nonnull @.str, double noundef %5, double noundef %6, double noundef %7) #5
  %9 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %3)
          to label %10 unwind label %43

10:                                               ; preds = %2
  %11 = load double, ptr %4, align 8, !tbaa !5
  %12 = load double, ptr %1, align 8
  %13 = invoke noundef double @_ZNK7leveldb9Histogram6MedianEv(ptr noundef nonnull align 8 dereferenceable(1272) %1)
          to label %14 unwind label %43

14:                                               ; preds = %10
  %15 = fcmp oeq double %11, 0.000000e+00
  %16 = select i1 %15, double 0.000000e+00, double %12
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load double, ptr %17, align 8, !tbaa !10
  %19 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 200, ptr noundef nonnull @.str.1, double noundef %16, double noundef %13, double noundef %18) #5
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %3)
          to label %21 unwind label %43

21:                                               ; preds = %14
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.2)
          to label %.peel.begin unwind label %43

.peel.begin:                                      ; preds = %21
  %23 = load double, ptr %4, align 8, !tbaa !5
  %24 = fdiv double 1.000000e+02, %23
  %25 = getelementptr inbounds i8, ptr %1, i64 40
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = fcmp ugt double %26, 0.000000e+00
  br i1 %27, label %28, label %.peel.next.preheader

28:                                               ; preds = %.peel.begin
  %29 = load double, ptr @_ZN7leveldb9Histogram12kBucketLimitE, align 16, !tbaa !11
  %30 = fmul double %24, %26
  %31 = fmul double %24, %26
  %32 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 200, ptr noundef nonnull @.str.3, double noundef 0.000000e+00, double noundef %29, double noundef %26, double noundef %30, double noundef %31) #5
  %33 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %3)
          to label %34 unwind label %.loopexit.split-lp

34:                                               ; preds = %28
  %35 = load double, ptr %25, align 8, !tbaa !11
  %36 = load double, ptr %4, align 8, !tbaa !5
  %37 = fdiv double %35, %36
  %38 = call double @llvm.fmuladd.f64(double %37, double 2.000000e+01, double 5.000000e-01)
  %39 = fptosi double %38 to i32
  %40 = sext i32 %39 to i64
  %41 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEmc(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %40, i8 noundef signext 35)
          to label %42 unwind label %.loopexit.split-lp32

42:                                               ; preds = %34
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 10)
          to label %.peel.next.preheader unwind label %.loopexit.split-lp32

.peel.next.preheader:                             ; preds = %.peel.begin, %42
  %.01826.ph = phi double [ %26, %42 ], [ 0.000000e+00, %.peel.begin ]
  br label %.peel.next

.loopexit36:                                      ; preds = %68
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %3) #5
  ret void

43:                                               ; preds = %21, %14, %10, %2
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %69

.peel.next:                                       ; preds = %.peel.next.preheader, %68
  %indvars.iv = phi i64 [ %indvars.iv.next, %68 ], [ 1, %.peel.next.preheader ]
  %.01826 = phi double [ %.1, %68 ], [ %.01826.ph, %.peel.next.preheader ]
  %45 = getelementptr inbounds [154 x double], ptr %25, i64 0, i64 %indvars.iv
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = fcmp ugt double %46, 0.000000e+00
  br i1 %47, label %48, label %68

48:                                               ; preds = %.peel.next
  %49 = fadd double %.01826, %46
  %50 = add nsw i64 %indvars.iv, -1
  %51 = getelementptr inbounds [154 x double], ptr @_ZN7leveldb9Histogram12kBucketLimitE, i64 0, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds [154 x double], ptr @_ZN7leveldb9Histogram12kBucketLimitE, i64 0, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = fmul double %24, %46
  %56 = fmul double %24, %49
  %57 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 200, ptr noundef nonnull @.str.3, double noundef %52, double noundef %54, double noundef %46, double noundef %55, double noundef %56) #5
  %58 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %3)
          to label %59 unwind label %.loopexit

59:                                               ; preds = %48
  %60 = load double, ptr %45, align 8, !tbaa !11
  %61 = load double, ptr %4, align 8, !tbaa !5
  %62 = fdiv double %60, %61
  %63 = call double @llvm.fmuladd.f64(double %62, double 2.000000e+01, double 5.000000e-01)
  %64 = fptosi double %63 to i32
  %65 = sext i32 %64 to i64
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEmc(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %65, i8 noundef signext 35)
          to label %67 unwind label %.loopexit31

67:                                               ; preds = %59
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 10)
          to label %68 unwind label %.loopexit31

68:                                               ; preds = %67, %.peel.next
  %.1 = phi double [ %.01826, %.peel.next ], [ %49, %67 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 154
  br i1 %exitcond.not, label %.loopexit36, label %.peel.next, !llvm.loop !12

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

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

.loopexit31:                                      ; preds = %59, %67
  %lpad.loopexit33 = landingpad { ptr, i32 }
          cleanup
  br label %69

.loopexit.split-lp32:                             ; preds = %34, %42
  %lpad.loopexit.split-lp34 = landingpad { ptr, i32 }
          cleanup
  br label %69

69:                                               ; preds = %.loopexit31, %.loopexit.split-lp32, %.loopexit, %.loopexit.split-lp, %43
  %.pn.pn = phi { ptr, i32 } [ %44, %43 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit33, %.loopexit31 ], [ %lpad.loopexit.split-lp34, %.loopexit.split-lp32 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %3) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEmc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i8 noundef signext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #2 align 2

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass