; LLVM IR from o0o0o0o0o0o0o/image-processing-from-scratch :: ImageMatting/Eigen/bench/tensors/benchmark_main.ll (ZN7testing9Benchmark10RunWithArgEi)

; 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.testing::Benchmark" = type { ptr, ptr, ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZL17g_flops_processed = external hidden global i64, align 8
@_ZL25g_benchmark_total_time_ns = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZL19g_name_column_width = external hidden global i32, align 4
@stdout = external global ptr, align 8

; 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: mustprogress uwtable
define dso_local void @_ZN7testing9Benchmark10RunWithArgEi(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [100 x i8], align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca [100 x i8], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !9
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZN7testing9Benchmark20RunRepeatedlyWithArgEii(ptr noundef nonnull align 8 dereferenceable(48) %14, i32 noundef %15, i32 noundef %16)
  br label %17

17:                                               ; preds = %43, %2
  %18 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !11
  %19 = sitofp i64 %18 to double
  %20 = fcmp olt double %19, 1.000000e+09
  br i1 %20, label %21, label %25

21:                                               ; preds = %17
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = sitofp i32 %22 to double
  %24 = fcmp olt double %23, 1.000000e+09
  br label %25

25:                                               ; preds = %21, %17
  %26 = phi i1 [ false, %17 ], [ %24, %21 ]
  br i1 %26, label %27, label %59

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %28 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %28, ptr %6, align 4, !tbaa !9
  %29 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !11
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = sdiv i64 %29, %31
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %27
  store i32 1000000000, ptr %5, align 4, !tbaa !9
  br label %43

35:                                               ; preds = %27
  %36 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !11
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = sdiv i64 %36, %38
  %40 = sitofp i64 %39 to double
  %41 = fdiv double 1.000000e+09, %40
  %42 = fptosi double %41 to i32
  store i32 %42, ptr %5, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %35, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = sdiv i32 %47, 2
  %49 = add nsw i32 %46, %48
  store i32 %49, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = mul nsw i32 100, %50
  store i32 %51, ptr %9, align 4, !tbaa !9
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %52)
  %54 = load i32, ptr %53, align 4, !tbaa !9
  store i32 %54, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = call noundef i32 @_ZL5Roundi(i32 noundef %55)
  store i32 %56, ptr %5, align 4, !tbaa !9
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZN7testing9Benchmark20RunRepeatedlyWithArgEii(ptr noundef nonnull align 8 dereferenceable(48) %14, i32 noundef %57, i32 noundef %58)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %17, !llvm.loop !13

59:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 100, ptr %10) #6
  %60 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  store i8 0, ptr %60, align 16, !tbaa !15
  %61 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !11
  %62 = icmp sgt i64 %61, 0
  br i1 %62, label %63, label %78

63:                                               ; preds = %59
  %64 = load i64, ptr @_ZL17g_flops_processed, align 8, !tbaa !11
  %65 = icmp sgt i64 %64, 0
  br i1 %65, label %66, label %78

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %67 = load i64, ptr @_ZL17g_flops_processed, align 8, !tbaa !11
  %68 = sitofp i64 %67 to double
  %69 = fdiv double %68, 1.000000e+06
  store double %69, ptr %11, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %70 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !11
  %71 = sitofp i64 %70 to double
  %72 = fdiv double %71, 1.000000e+09
  store double %72, ptr %12, align 8, !tbaa !16
  %73 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  %74 = load double, ptr %11, align 8, !tbaa !16
  %75 = load double, ptr %12, align 8, !tbaa !16
  %76 = fdiv double %74, %75
  %77 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %73, i64 noundef 100, ptr noundef @.str.3, double noundef %76) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %78

78:                                               ; preds = %66, %63, %59
  call void @llvm.lifetime.start.p0(i64 100, ptr %13) #6
  %79 = getelementptr inbounds %"class.testing::Benchmark", ptr %14, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %110

82:                                               ; preds = %78
  %83 = load i32, ptr %4, align 4, !tbaa !9
  %84 = icmp sge i32 %83, 1048576
  br i1 %84, label %85, label %92

85:                                               ; preds = %82
  %86 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %87 = getelementptr inbounds %"class.testing::Benchmark", ptr %14, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !24
  %89 = load i32, ptr %4, align 4, !tbaa !9
  %90 = sdiv i32 %89, 1048576
  %91 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %86, i64 noundef 100, ptr noundef @.str.4, ptr noundef %88, i32 noundef %90) #6
  br label %109

92:                                               ; preds = %82
  %93 = load i32, ptr %4, align 4, !tbaa !9
  %94 = icmp sge i32 %93, 1024
  br i1 %94, label %95, label %102

95:                                               ; preds = %92
  %96 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %97 = getelementptr inbounds %"class.testing::Benchmark", ptr %14, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load i32, ptr %4, align 4, !tbaa !9
  %100 = sdiv i32 %99, 1024
  %101 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %96, i64 noundef 100, ptr noundef @.str.5, ptr noundef %98, i32 noundef %100) #6
  br label %108

102:                                              ; preds = %92
  %103 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %104 = getelementptr inbounds %"class.testing::Benchmark", ptr %14, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = load i32, ptr %4, align 4, !tbaa !9
  %107 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %103, i64 noundef 100, ptr noundef @.str.6, ptr noundef %105, i32 noundef %106) #6
  br label %108

108:                                              ; preds = %102, %95
  br label %109

109:                                              ; preds = %108, %85
  br label %115

110:                                              ; preds = %78
  %111 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %112 = getelementptr inbounds %"class.testing::Benchmark", ptr %14, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !24
  %114 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %111, i64 noundef 100, ptr noundef @.str.7, ptr noundef %113) #6
  br label %115

115:                                              ; preds = %110, %109
  %116 = load i32, ptr @_ZL19g_name_column_width, align 4, !tbaa !9
  %117 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !11
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = sdiv i64 %119, %121
  %123 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %116, ptr noundef %117, i32 noundef %118, i64 noundef %122, ptr noundef %123)
  %125 = load ptr, ptr @stdout, align 8, !tbaa !5
  %126 = call i32 @fflush(ptr noundef %125)
  call void @llvm.lifetime.end.p0(i64 100, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5Roundi(i32 noundef) #3

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

declare i32 @printf(ptr noundef, ...) #5

declare i32 @fflush(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !6, i64 16}
!19 = !{!"_ZTSN7testing9BenchmarkE", !6, i64 0, !6, i64 8, !6, i64 16, !20, i64 24}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!19, !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@_ZL17g_flops_processed = external hidden local_unnamed_addr global i64, align 8
@_ZL25g_benchmark_total_time_ns = external hidden local_unnamed_addr global i64, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZL19g_name_column_width = external hidden local_unnamed_addr global i32, align 4
@stdout = external local_unnamed_addr global ptr, align 8

; 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 uwtable
define dso_local void @_ZN7testing9Benchmark10RunWithArgEi(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [100 x i8], align 16
  %7 = alloca [100 x i8], align 16
  tail call void @_ZN7testing9Benchmark20RunRepeatedlyWithArgEii(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef 1, i32 noundef %1)
  %8 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !5
  %9 = icmp slt i64 %8, 1000000000
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %10 = phi i64 [ %25, %.lr.ph ], [ %8, %2 ]
  %.028 = phi i32 [ %24, %.lr.ph ], [ 1, %2 ]
  %11 = sext i32 %.028 to i64
  %12 = sdiv i64 %10, %11
  %13 = icmp eq i64 %12, 0
  %14 = sitofp i64 %12 to double
  %15 = fdiv double 1.000000e+09, %14
  %16 = fptosi double %15 to i32
  %.1 = select i1 %13, i32 1000000000, i32 %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %17 = add nsw i32 %.028, 1
  store i32 %17, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %18 = sdiv i32 %.1, 2
  %19 = add nsw i32 %18, %.1
  store i32 %19, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %20 = mul nsw i32 %.028, 100
  store i32 %20, ptr %5, align 4, !tbaa !9
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %23 = load i32, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %24 = call noundef i32 @_ZL5Roundi(i32 noundef %23)
  call void @_ZN7testing9Benchmark20RunRepeatedlyWithArgEii(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %24, i32 noundef %1)
  %25 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !5
  %26 = icmp slt i64 %25, 1000000000
  %27 = icmp slt i32 %24, 1000000000
  %28 = and i1 %27, %26
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %2
  %.0.lcssa = phi i32 [ 1, %2 ], [ %24, %.lr.ph ]
  %.lcssa = phi i64 [ %8, %2 ], [ %25, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %6) #5
  store i8 0, ptr %6, align 16, !tbaa !13
  %29 = icmp sgt i64 %.lcssa, 0
  %30 = load i64, ptr @_ZL17g_flops_processed, align 8
  %31 = icmp sgt i64 %30, 0
  %or.cond = select i1 %29, i1 %31, i1 false
  br i1 %or.cond, label %32, label %41

32:                                               ; preds = %._crit_edge
  %33 = insertelement <2 x i64> poison, i64 %30, i64 0
  %34 = insertelement <2 x i64> %33, i64 %.lcssa, i64 1
  %35 = uitofp <2 x i64> %34 to <2 x double>
  %36 = fdiv <2 x double> %35, <double 1.000000e+06, double 1.000000e+09>
  %37 = extractelement <2 x double> %36, i64 0
  %38 = extractelement <2 x double> %36, i64 1
  %39 = fdiv double %37, %38
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 100, ptr noundef nonnull @.str.3, double noundef %39) #5
  br label %41

41:                                               ; preds = %32, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %7) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %.not = icmp eq ptr %43, null
  br i1 %.not, label %58, label %44

44:                                               ; preds = %41
  %45 = icmp sgt i32 %1, 1048575
  br i1 %45, label %46, label %50

46:                                               ; preds = %44
  %47 = load ptr, ptr %0, align 8, !tbaa !21
  %48 = lshr i32 %1, 20
  %49 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 100, ptr noundef nonnull @.str.4, ptr noundef %47, i32 noundef %48) #5
  br label %61

50:                                               ; preds = %44
  %51 = icmp sgt i32 %1, 1023
  %52 = load ptr, ptr %0, align 8, !tbaa !21
  br i1 %51, label %53, label %56

53:                                               ; preds = %50
  %54 = lshr i32 %1, 10
  %55 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 100, ptr noundef nonnull @.str.5, ptr noundef %52, i32 noundef %54) #5
  br label %61

56:                                               ; preds = %50
  %57 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 100, ptr noundef nonnull @.str.6, ptr noundef %52, i32 noundef %1) #5
  br label %61

58:                                               ; preds = %41
  %59 = load ptr, ptr %0, align 8, !tbaa !21
  %60 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 100, ptr noundef nonnull @.str.7, ptr noundef %59) #5
  br label %61

61:                                               ; preds = %46, %56, %53, %58
  %62 = load i32, ptr @_ZL19g_name_column_width, align 4, !tbaa !9
  %63 = load i64, ptr @_ZL25g_benchmark_total_time_ns, align 8, !tbaa !5
  %64 = sext i32 %.0.lcssa to i64
  %65 = sdiv i64 %63, %64
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %62, ptr noundef nonnull %7, i32 noundef %.0.lcssa, i64 noundef %65, ptr noundef nonnull %6)
  %67 = load ptr, ptr @stdout, align 8, !tbaa !22
  %68 = call i32 @fflush(ptr noundef %67)
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %6) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing9Benchmark20RunRepeatedlyWithArgEii(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5Roundi(i32 noundef) local_unnamed_addr #3

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 16}
!15 = !{!"_ZTSN7testing9BenchmarkE", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!15, !16, i64 0}
!22 = !{!16, !16, i64 0}


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