; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/perf/perf.ll (ZN4Perf8internal12PrintResultsEv)

; 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.Perf::SessionSettings" = type { i64, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl" }
%"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl" = type { %"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Perf::internal::TestResults" = type <{ ptr, i64, %"class.std::vector.14", %"class.std::vector.14", %"class.std::vector.19", %"class.std::vector.24", ptr, i8, [7 x i8] }>
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<Perf::internal::TimingSeries, std::allocator<Perf::internal::TimingSeries>>::_Vector_impl" }
%"struct.std::_Vector_base<Perf::internal::TimingSeries, std::allocator<Perf::internal::TimingSeries>>::_Vector_impl" = type { %"struct.std::_Vector_base<Perf::internal::TimingSeries, std::allocator<Perf::internal::TimingSeries>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Perf::internal::TimingSeries, std::allocator<Perf::internal::TimingSeries>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<Perf::internal::RunResults, std::allocator<Perf::internal::RunResults>>::_Vector_impl" }
%"struct.std::_Vector_base<Perf::internal::RunResults, std::allocator<Perf::internal::RunResults>>::_Vector_impl" = type { %"struct.std::_Vector_base<Perf::internal::RunResults, std::allocator<Perf::internal::RunResults>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Perf::internal::RunResults, std::allocator<Perf::internal::RunResults>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Perf::internal::RunResults" = type { %"struct.Perf::internal::RunConfig", %"struct.Perf::internal::TimingSeries" }
%"struct.Perf::internal::RunConfig" = type { i32, i32, i32, i32, i32 }
%"struct.Perf::internal::TimingSeries" = type { %"class.std::vector", double, double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@NumCpus = external dso_local global i32, align 4
@_ZN4Perf11theSettingsE = external dso_local global %"struct.Perf::SessionSettings", align 8
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZN4Perf8internal13TitleFieldLenE = external dso_local global i64, align 8
@_ZN4Perf8internal16WorkloadFieldLenE = external dso_local global i64, align 8
@_ZN4Perf8internal13MaxTbbMastersE = external dso_local global i32, align 4
@_ZN4Perf8internal23AffinitizationModeNamesE = external dso_local global [2 x ptr], align 16
@_ZN4Perf8internal10theSessionE = external dso_local global %"class.std::vector.0", align 8
@_ZN4Perf8internalL7NumRunsE = external hidden global i64, align 8
@.str.24 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZN4Perf8internal10TlsTimingsE = external dso_local global ptr, align 8
@_ZN4Perf8internal7ResFileE = external dso_local global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [2 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Perf8internal12TimingSeriesD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Perf8internal6ReportEPKcz(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Perf8internal12PrintResultsEv() #5 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = load ptr, ptr getelementptr inbounds (%"struct.Perf::SessionSettings", ptr @_ZN4Perf11theSettingsE, i32 0, i32 1), align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %0
  %15 = load ptr, ptr getelementptr inbounds (%"struct.Perf::SessionSettings", ptr @_ZN4Perf11theSettingsE, i32 0, i32 1), align 8, !tbaa !5
  %16 = call noalias ptr @fopen(ptr noundef %15, ptr noundef @.str.44)
  store ptr %16, ptr @_ZN4Perf8internal7ResFileE, align 8, !tbaa !11
  br label %17

17:                                               ; preds = %14, %0
  %18 = load i64, ptr @_ZN4Perf8internal13TitleFieldLenE, align 8, !tbaa !12
  %19 = load i64, ptr @_ZN4Perf8internal16WorkloadFieldLenE, align 8, !tbaa !12
  %20 = load i32, ptr @_ZN4Perf8internal13MaxTbbMastersE, align 4, !tbaa !13
  %21 = icmp sgt i32 %20, 1
  %22 = zext i1 %21 to i64
  %23 = select i1 %21, ptr @.str.47, ptr @.str.48
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.45, i64 noundef %18, ptr noundef @.str.46, i64 noundef %19, ptr noundef @.str.16, ptr noundef %23)
  %24 = load i64, ptr @_ZN4Perf11theSettingsE, align 8, !tbaa !15
  %25 = and i64 %24, 32
  %26 = icmp ne i64 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %17
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.49)
  br label %28

28:                                               ; preds = %27, %17
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.50, i32 noundef 10, ptr noundef @.str.51, i32 noundef 12, ptr noundef @.str.52, i32 noundef 10, ptr noundef @.str.53, i32 noundef 10, ptr noundef @.str.54)
  %29 = load i64, ptr @_ZN4Perf8internalL7NumRunsE, align 8, !tbaa !12
  %30 = load i32, ptr @NumCpus, align 4, !tbaa !13
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.55, i64 noundef %29, i32 noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  store i64 0, ptr %1, align 8, !tbaa !12
  br label %31

31:                                               ; preds = %153, %28
  %32 = load i64, ptr %1, align 8, !tbaa !12
  %33 = call noundef i64 @_ZNKSt6vectorIN4Perf8internal11TestResultsESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN4Perf8internal10theSessionE) #6
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %156

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %37 = load i64, ptr %1, align 8, !tbaa !12
  %38 = call noundef nonnull align 8 dereferenceable(121) ptr @_ZNSt6vectorIN4Perf8internal11TestResultsESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN4Perf8internal10theSessionE, i64 noundef %37) #6
  store ptr %38, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !12
  br label %39

39:                                               ; preds = %149, %36
  %40 = load i64, ptr %4, align 8, !tbaa !12
  %41 = load ptr, ptr %3, align 8, !tbaa !11
  %42 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %41, i32 0, i32 5
  %43 = call noundef i64 @_ZNKSt6vectorIN4Perf8internal10RunResultsESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = icmp ult i64 %40, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %39
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %152

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %47 = load ptr, ptr %3, align 8, !tbaa !11
  %48 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %47, i32 0, i32 5
  %49 = load i64, ptr %4, align 8, !tbaa !12
  %50 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4Perf8internal10RunResultsESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #6
  store ptr %50, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %51 = load ptr, ptr %5, align 8, !tbaa !11
  %52 = getelementptr inbounds %"struct.Perf::internal::RunResults", ptr %51, i32 0, i32 0
  store ptr %52, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %53 = load ptr, ptr %6, align 8, !tbaa !11
  %54 = getelementptr inbounds %"struct.Perf::internal::RunConfig", ptr %53, i32 0, i32 4
  %55 = load i32, ptr %54, align 4, !tbaa !16
  store i32 %55, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %56 = load ptr, ptr %5, align 8, !tbaa !11
  %57 = getelementptr inbounds %"struct.Perf::internal::RunResults", ptr %56, i32 0, i32 1
  store ptr %57, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %58 = load ptr, ptr %3, align 8, !tbaa !11
  %59 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %58, i32 0, i32 3
  %60 = load i32, ptr %7, align 4, !tbaa !13
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN4Perf8internal12TimingSeriesESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #6
  %63 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %62, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !18
  store double %64, ptr %9, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %65 = load ptr, ptr %8, align 8, !tbaa !11
  %66 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %65, i32 0, i32 1
  %67 = load double, ptr %66, align 8, !tbaa !18
  %68 = load double, ptr %9, align 8, !tbaa !25
  %69 = fsub double %67, %68
  store double %69, ptr %10, align 8, !tbaa !25
  %70 = load i64, ptr @_ZN4Perf8internal13TitleFieldLenE, align 8, !tbaa !12
  %71 = load ptr, ptr %3, align 8, !tbaa !11
  %72 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %71, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !26
  %74 = load i64, ptr @_ZN4Perf8internal16WorkloadFieldLenE, align 8, !tbaa !12
  %75 = load ptr, ptr %3, align 8, !tbaa !11
  %76 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %75, i32 0, i32 4
  %77 = load i32, ptr %7, align 4, !tbaa !13
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #6
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.56, i64 noundef %70, ptr noundef %73, i64 noundef %74, ptr noundef %80)
  %81 = load i32, ptr @_ZN4Perf8internal13MaxTbbMastersE, align 4, !tbaa !13
  %82 = icmp sgt i32 %81, 1
  br i1 %82, label %83, label %91

83:                                               ; preds = %46
  %84 = load ptr, ptr %6, align 8, !tbaa !11
  %85 = getelementptr inbounds %"struct.Perf::internal::RunConfig", ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !41
  %87 = sub nsw i32 %86, 1
  %88 = load ptr, ptr %6, align 8, !tbaa !11
  %89 = getelementptr inbounds %"struct.Perf::internal::RunConfig", ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !42
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.57, i32 noundef %87, i32 noundef %90)
  br label %95

91:                                               ; preds = %46
  %92 = load ptr, ptr %6, align 8, !tbaa !11
  %93 = getelementptr inbounds %"struct.Perf::internal::RunConfig", ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !41
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.58, i32 noundef %94)
  br label %95

95:                                               ; preds = %91, %83
  %96 = load i64, ptr @_ZN4Perf11theSettingsE, align 8, !tbaa !15
  %97 = and i64 %96, 32
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %106

99:                                               ; preds = %95
  %100 = load ptr, ptr %6, align 8, !tbaa !11
  %101 = getelementptr inbounds %"struct.Perf::internal::RunConfig", ptr %100, i32 0, i32 3
  %102 = load i32, ptr %101, align 4, !tbaa !43
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [2 x ptr], ptr @_ZN4Perf8internal23AffinitizationModeNamesE, i64 0, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.59, ptr noundef %105)
  br label %106

106:                                              ; preds = %99, %95
  %107 = load double, ptr %10, align 8, !tbaa !25
  %108 = load ptr, ptr %8, align 8, !tbaa !11
  %109 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %108, i32 0, i32 4
  %110 = load double, ptr %109, align 8, !tbaa !44
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.60, i32 noundef 10, double noundef %107, double noundef %110)
  %111 = load ptr, ptr %3, align 8, !tbaa !11
  %112 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %111, i32 0, i32 1
  %113 = load i64, ptr %112, align 8, !tbaa !45
  %114 = and i64 %113, 1
  %115 = icmp ne i64 %114, 0
  br i1 %115, label %116, label %137

116:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %117 = load ptr, ptr %3, align 8, !tbaa !11
  %118 = getelementptr inbounds %"struct.Perf::internal::TestResults", ptr %117, i32 0, i32 2
  %119 = load i32, ptr %7, align 4, !tbaa !13
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN4Perf8internal12TimingSeriesESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #6
  %122 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %121, i32 0, i32 1
  %123 = load double, ptr %122, align 8, !tbaa !18
  %124 = load double, ptr %9, align 8, !tbaa !25
  %125 = fsub double %123, %124
  %126 = load ptr, ptr %6, align 8, !tbaa !11
  %127 = getelementptr inbounds %"struct.Perf::internal::RunConfig", ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 4, !tbaa !46
  %129 = sitofp i32 %128 to double
  %130 = fdiv double %125, %129
  store double %130, ptr %11, align 8, !tbaa !25
  %131 = load double, ptr %10, align 8, !tbaa !25
  %132 = load double, ptr %11, align 8, !tbaa !25
  %133 = fsub double %131, %132
  %134 = fmul double 1.000000e+02, %133
  %135 = load double, ptr %11, align 8, !tbaa !25
  %136 = fdiv double %134, %135
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.61, i32 noundef 12, double noundef %136)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %138

137:                                              ; preds = %106
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.62, i32 noundef 6, ptr noundef @.str.63, i32 noundef 6, ptr noundef @.str.24)
  br label %138

138:                                              ; preds = %137, %116
  %139 = load ptr, ptr %8, align 8, !tbaa !11
  %140 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %139, i32 0, i32 2
  %141 = load double, ptr %140, align 8, !tbaa !47
  %142 = load double, ptr %9, align 8, !tbaa !25
  %143 = fsub double %141, %142
  %144 = load ptr, ptr %8, align 8, !tbaa !11
  %145 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %144, i32 0, i32 3
  %146 = load double, ptr %145, align 8, !tbaa !48
  %147 = load double, ptr %9, align 8, !tbaa !25
  %148 = fsub double %146, %147
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.64, i32 noundef 10, double noundef %143, i32 noundef 10, double noundef %148)
  call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef @.str.65)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %149

149:                                              ; preds = %138
  %150 = load i64, ptr %4, align 8, !tbaa !12
  %151 = add i64 %150, 1
  store i64 %151, ptr %4, align 8, !tbaa !12
  br label %39, !llvm.loop !49

152:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %1, align 8, !tbaa !12
  %155 = add i64 %154, 1
  store i64 %155, ptr %1, align 8, !tbaa !12
  br label %31, !llvm.loop !51

156:                                              ; preds = %35
  %157 = load ptr, ptr @_ZN4Perf8internal10TlsTimingsE, align 8, !tbaa !11
  %158 = icmp eq ptr %157, null
  br i1 %158, label %171, label %159

159:                                              ; preds = %156
  %160 = getelementptr inbounds i8, ptr %157, i64 -8
  %161 = load i64, ptr %160, align 8
  %162 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %157, i64 %161
  %163 = icmp eq ptr %157, %162
  br i1 %163, label %168, label %164

164:                                              ; preds = %164, %159
  %165 = phi ptr [ %162, %159 ], [ %166, %164 ]
  %166 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %165, i64 -1
  call void @_ZN4Perf8internal12TimingSeriesD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %166) #6
  %167 = icmp eq ptr %166, %157
  br i1 %167, label %168, label %164

168:                                              ; preds = %164, %159
  %169 = mul i64 56, %161
  %170 = add i64 %169, 8
  call void @_ZdaPvm(ptr noundef %160, i64 noundef %170) #7
  br label %171

171:                                              ; preds = %168, %156
  %172 = load ptr, ptr @_ZN4Perf8internal7ResFileE, align 8, !tbaa !11
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %177

174:                                              ; preds = %171
  %175 = load ptr, ptr @_ZN4Perf8internal7ResFileE, align 8, !tbaa !11
  %176 = call i32 @fclose(ptr noundef %175)
  br label %177

177:                                              ; preds = %174, %171
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { nobuiltin 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 = { 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 = { nounwind }
attributes #7 = { builtin 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, !10, i64 8}
!6 = !{!"_ZTSN4Perf15SessionSettingsE", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !14, i64 16}
!17 = !{!"_ZTSN4Perf8internal9RunConfigE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!18 = !{!19, !24, i64 24}
!19 = !{!"_ZTSN4Perf8internal12TimingSeriesE", !20, i64 0, !24, i64 24, !24, i64 32, !24, i64 40, !24, i64 48}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"double", !8, i64 0}
!25 = !{!24, !24, i64 0}
!26 = !{!27, !10, i64 112}
!27 = !{!"_ZTSN4Perf8internal11TestResultsE", !10, i64 0, !7, i64 8, !28, i64 16, !28, i64 40, !32, i64 64, !36, i64 88, !10, i64 112, !40, i64 120}
!28 = !{!"_ZTSSt6vectorIN4Perf8internal12TimingSeriesESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN4Perf8internal12TimingSeriesESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal12TimingSeriesESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal12TimingSeriesESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!32 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{!"_ZTSSt6vectorIN4Perf8internal10RunResultsESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN4Perf8internal10RunResultsESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal10RunResultsESaIS2_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal10RunResultsESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!40 = !{!"bool", !8, i64 0}
!41 = !{!17, !14, i64 4}
!42 = !{!17, !14, i64 8}
!43 = !{!17, !14, i64 12}
!44 = !{!19, !24, i64 48}
!45 = !{!27, !7, i64 8}
!46 = !{!17, !14, i64 0}
!47 = !{!19, !24, i64 32}
!48 = !{!19, !24, i64 40}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = distinct !{!51, !50}


; 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.Perf::SessionSettings" = type { i64, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl" }
%"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl" = type { %"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Perf::internal::TestResults, std::allocator<Perf::internal::TestResults>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Perf::internal::TimingSeries" = type { %"class.std::vector", double, double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@NumCpus = external dso_local local_unnamed_addr global i32, align 4
@_ZN4Perf11theSettingsE = external dso_local local_unnamed_addr global %"struct.Perf::SessionSettings", align 8
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZN4Perf8internal13TitleFieldLenE = external dso_local local_unnamed_addr global i64, align 8
@_ZN4Perf8internal16WorkloadFieldLenE = external dso_local local_unnamed_addr global i64, align 8
@_ZN4Perf8internal13MaxTbbMastersE = external dso_local local_unnamed_addr global i32, align 4
@_ZN4Perf8internal23AffinitizationModeNamesE = external dso_local local_unnamed_addr global [2 x ptr], align 16
@_ZN4Perf8internal10theSessionE = external dso_local global %"class.std::vector.0", align 8
@_ZN4Perf8internalL7NumRunsE = external hidden local_unnamed_addr global i64, align 8
@.str.24 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZN4Perf8internal10TlsTimingsE = external dso_local local_unnamed_addr global ptr, align 8
@_ZN4Perf8internal7ResFileE = external dso_local local_unnamed_addr global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Perf8internal6ReportEPKcz(ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Perf8internal12PrintResultsEv() local_unnamed_addr #2 {
  %1 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN4Perf11theSettingsE, i64 8), align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %2

2:                                                ; preds = %0
  %3 = tail call noalias ptr @fopen(ptr noundef nonnull %1, ptr noundef nonnull @.str.44)
  store ptr %3, ptr @_ZN4Perf8internal7ResFileE, align 8, !tbaa !11
  br label %4

4:                                                ; preds = %2, %0
  %5 = load i64, ptr @_ZN4Perf8internal13TitleFieldLenE, align 8, !tbaa !12
  %6 = load i64, ptr @_ZN4Perf8internal16WorkloadFieldLenE, align 8, !tbaa !12
  %7 = load i32, ptr @_ZN4Perf8internal13MaxTbbMastersE, align 4, !tbaa !13
  %8 = icmp sgt i32 %7, 1
  %9 = select i1 %8, ptr @.str.47, ptr @.str.48
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.45, i64 noundef %5, ptr noundef nonnull @.str.46, i64 noundef %6, ptr noundef nonnull @.str.16, ptr noundef nonnull %9)
  %10 = load i64, ptr @_ZN4Perf11theSettingsE, align 8, !tbaa !15
  %11 = and i64 %10, 32
  %.not40 = icmp eq i64 %11, 0
  br i1 %.not40, label %13, label %12

12:                                               ; preds = %4
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.49)
  br label %13

13:                                               ; preds = %12, %4
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.50, i32 noundef 10, ptr noundef nonnull @.str.51, i32 noundef 12, ptr noundef nonnull @.str.52, i32 noundef 10, ptr noundef nonnull @.str.53, i32 noundef 10, ptr noundef nonnull @.str.54)
  %14 = load i64, ptr @_ZN4Perf8internalL7NumRunsE, align 8, !tbaa !12
  %15 = load i32, ptr @NumCpus, align 4, !tbaa !13
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.55, i64 noundef %14, i32 noundef %15)
  %16 = tail call noundef i64 @_ZNKSt6vectorIN4Perf8internal11TestResultsESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN4Perf8internal10theSessionE) #4
  %.not49 = icmp eq i64 %16, 0
  br i1 %.not49, label %._crit_edge48, label %.lr.ph47

._crit_edge48:                                    ; preds = %._crit_edge, %13
  %17 = load ptr, ptr @_ZN4Perf8internal10TlsTimingsE, align 8, !tbaa !11
  %18 = icmp eq ptr %17, null
  br i1 %18, label %101, label %91

.lr.ph47:                                         ; preds = %13, %._crit_edge
  %.045 = phi i64 [ %27, %._crit_edge ], [ 0, %13 ]
  %19 = tail call noundef nonnull align 8 dereferenceable(121) ptr @_ZNSt6vectorIN4Perf8internal11TestResultsESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN4Perf8internal10theSessionE, i64 noundef %.045) #4
  %20 = getelementptr inbounds i8, ptr %19, i64 88
  %21 = tail call noundef i64 @_ZNKSt6vectorIN4Perf8internal10RunResultsESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %.not50 = icmp eq i64 %21, 0
  br i1 %.not50, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph47
  %22 = getelementptr inbounds i8, ptr %19, i64 40
  %23 = getelementptr inbounds i8, ptr %19, i64 112
  %24 = getelementptr inbounds i8, ptr %19, i64 64
  %25 = getelementptr inbounds i8, ptr %19, i64 8
  %26 = getelementptr inbounds i8, ptr %19, i64 16
  br label %30

._crit_edge:                                      ; preds = %81, %.lr.ph47
  %27 = add nuw i64 %.045, 1
  %28 = tail call noundef i64 @_ZNKSt6vectorIN4Perf8internal11TestResultsESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN4Perf8internal10theSessionE) #4
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %.lr.ph47, label %._crit_edge48, !llvm.loop !16

30:                                               ; preds = %.lr.ph, %81
  %.03544 = phi i64 [ 0, %.lr.ph ], [ %88, %81 ]
  %31 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4Perf8internal10RunResultsESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %.03544) #4
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %33 = load i32, ptr %32, align 8, !tbaa !18
  %34 = sext i32 %33 to i64
  %35 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN4Perf8internal12TimingSeriesESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %34) #4
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = load double, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %31, i64 48
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = fsub double %39, %37
  %41 = load i64, ptr @_ZN4Perf8internal13TitleFieldLenE, align 8, !tbaa !12
  %42 = load ptr, ptr %23, align 8, !tbaa !27
  %43 = load i64, ptr @_ZN4Perf8internal16WorkloadFieldLenE, align 8, !tbaa !12
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %34) #4
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.56, i64 noundef %41, ptr noundef %42, i64 noundef %43, ptr noundef %45)
  %46 = load i32, ptr @_ZN4Perf8internal13MaxTbbMastersE, align 4, !tbaa !13
  %47 = icmp sgt i32 %46, 1
  %48 = getelementptr inbounds i8, ptr %31, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !42
  br i1 %47, label %50, label %54

50:                                               ; preds = %30
  %51 = add nsw i32 %49, -1
  %52 = getelementptr inbounds i8, ptr %31, i64 8
  %53 = load i32, ptr %52, align 8, !tbaa !43
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.57, i32 noundef %51, i32 noundef %53)
  br label %55

54:                                               ; preds = %30
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.58, i32 noundef %49)
  br label %55

55:                                               ; preds = %54, %50
  %56 = load i64, ptr @_ZN4Perf11theSettingsE, align 8, !tbaa !15
  %57 = and i64 %56, 32
  %.not42 = icmp eq i64 %57, 0
  br i1 %.not42, label %64, label %58

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %31, i64 12
  %60 = load i32, ptr %59, align 4, !tbaa !44
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2 x ptr], ptr @_ZN4Perf8internal23AffinitizationModeNamesE, i64 0, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.59, ptr noundef %63)
  br label %64

64:                                               ; preds = %58, %55
  %65 = getelementptr inbounds i8, ptr %31, i64 72
  %66 = load double, ptr %65, align 8, !tbaa !45
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.60, i32 noundef 10, double noundef %40, double noundef %66)
  %67 = load i64, ptr %25, align 8, !tbaa !46
  %68 = and i64 %67, 1
  %.not43 = icmp eq i64 %68, 0
  br i1 %.not43, label %80, label %69

69:                                               ; preds = %64
  %70 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorIN4Perf8internal12TimingSeriesESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %34) #4
  %71 = getelementptr inbounds i8, ptr %70, i64 24
  %72 = load double, ptr %71, align 8, !tbaa !20
  %73 = fsub double %72, %37
  %74 = load i32, ptr %31, align 8, !tbaa !47
  %75 = sitofp i32 %74 to double
  %76 = fdiv double %73, %75
  %77 = fsub double %40, %76
  %78 = fmul double %77, 1.000000e+02
  %79 = fdiv double %78, %76
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.61, i32 noundef 12, double noundef %79)
  br label %81

80:                                               ; preds = %64
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.62, i32 noundef 6, ptr noundef nonnull @.str.63, i32 noundef 6, ptr noundef nonnull @.str.24)
  br label %81

81:                                               ; preds = %80, %69
  %82 = getelementptr inbounds i8, ptr %31, i64 56
  %83 = load double, ptr %82, align 8, !tbaa !48
  %84 = fsub double %83, %37
  %85 = getelementptr inbounds i8, ptr %31, i64 64
  %86 = load double, ptr %85, align 8, !tbaa !49
  %87 = fsub double %86, %37
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.64, i32 noundef 10, double noundef %84, i32 noundef 10, double noundef %87)
  tail call void (ptr, ...) @_ZN4Perf8internal6ReportEPKcz(ptr noundef nonnull @.str.65)
  %88 = add nuw i64 %.03544, 1
  %89 = tail call noundef i64 @_ZNKSt6vectorIN4Perf8internal10RunResultsESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %90 = icmp ult i64 %88, %89
  br i1 %90, label %30, label %._crit_edge, !llvm.loop !50

91:                                               ; preds = %._crit_edge48
  %92 = getelementptr inbounds i8, ptr %17, i64 -8
  %93 = load i64, ptr %92, align 8
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %91
  %95 = getelementptr inbounds %"struct.Perf::internal::TimingSeries", ptr %17, i64 %93
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %96 = phi ptr [ %97, %.preheader ], [ %95, %.preheader.preheader ]
  %97 = getelementptr inbounds i8, ptr %96, i64 -56
  tail call void @_ZN4Perf8internal12TimingSeriesD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %97) #4
  %98 = icmp eq ptr %97, %17
  br i1 %98, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %91
  %99 = mul i64 %93, 56
  %100 = add i64 %99, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %92, i64 noundef %100) #5
  br label %101

101:                                              ; preds = %.loopexit, %._crit_edge48
  %102 = load ptr, ptr @_ZN4Perf8internal7ResFileE, align 8, !tbaa !11
  %.not41 = icmp eq ptr %102, null
  br i1 %.not41, label %105, label %103

103:                                              ; preds = %101
  %104 = tail call i32 @fclose(ptr noundef nonnull %102)
  br label %105

105:                                              ; preds = %103, %101
  ret void
}

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 = { nobuiltin 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 = { nounwind }
attributes #5 = { builtin 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, !10, i64 8}
!6 = !{!"_ZTSN4Perf15SessionSettingsE", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !14, i64 16}
!19 = !{!"_ZTSN4Perf8internal9RunConfigE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!20 = !{!21, !26, i64 24}
!21 = !{!"_ZTSN4Perf8internal12TimingSeriesE", !22, i64 0, !26, i64 24, !26, i64 32, !26, i64 40, !26, i64 48}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!26 = !{!"double", !8, i64 0}
!27 = !{!28, !10, i64 112}
!28 = !{!"_ZTSN4Perf8internal11TestResultsE", !10, i64 0, !7, i64 8, !29, i64 16, !29, i64 40, !33, i64 64, !37, i64 88, !10, i64 112, !41, i64 120}
!29 = !{!"_ZTSSt6vectorIN4Perf8internal12TimingSeriesESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN4Perf8internal12TimingSeriesESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal12TimingSeriesESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal12TimingSeriesESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!33 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!37 = !{!"_ZTSSt6vectorIN4Perf8internal10RunResultsESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIN4Perf8internal10RunResultsESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal10RunResultsESaIS2_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN4Perf8internal10RunResultsESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!41 = !{!"bool", !8, i64 0}
!42 = !{!19, !14, i64 4}
!43 = !{!19, !14, i64 8}
!44 = !{!19, !14, i64 12}
!45 = !{!21, !26, i64 48}
!46 = !{!28, !7, i64 8}
!47 = !{!19, !14, i64 0}
!48 = !{!21, !26, i64 32}
!49 = !{!21, !26, i64 40}
!50 = distinct !{!50, !17}


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