; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/test/test_critical_section.ll (Z25RunOneCriticalSectionTestiib)

; 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.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"class.tbb::task_scheduler_init" = type { ptr }
%"class.tbb::interface6::enumerable_thread_specific" = type { %"class.tbb::interface6::internal::ets_base", ptr, %"class.tbb::concurrent_vector" }
%"class.tbb::interface6::internal::ets_base" = type { ptr, %"struct.tbb::atomic.0", %"struct.tbb::atomic.4" }
%"struct.tbb::atomic.0" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.1" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.1" = type { %"struct.tbb::internal::atomic_impl.2" }
%"struct.tbb::internal::atomic_impl.2" = type { %"struct.tbb::internal::aligned_storage.3" }
%"struct.tbb::internal::aligned_storage.3" = type { ptr }
%"struct.tbb::atomic.4" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.5" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.5" = type { %"struct.tbb::internal::atomic_impl.6" }
%"struct.tbb::internal::atomic_impl.6" = type { %"struct.tbb::internal::aligned_storage.7" }
%"struct.tbb::internal::aligned_storage.7" = type { i64 }
%"class.tbb::concurrent_vector" = type { [8 x i8], %"class.tbb::internal::concurrent_vector_base_v3" }
%"class.tbb::internal::concurrent_vector_base_v3" = type { ptr, %"struct.tbb::atomic.4", %"struct.tbb::atomic.4", %"struct.tbb::atomic.8", [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"] }
%"struct.tbb::atomic.8" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.9" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.9" = type { %"struct.tbb::internal::atomic_impl.10" }
%"struct.tbb::internal::atomic_impl.10" = type { %"struct.tbb::internal::aligned_storage.11" }
%"struct.tbb::internal::aligned_storage.11" = type { ptr }
%"class.tbb::internal::concurrent_vector_base_v3::segment_t" = type { %"struct.tbb::atomic.12" }
%"struct.tbb::atomic.12" = type { %"struct.tbb::internal::atomic_impl.13" }
%"struct.tbb::internal::atomic_impl.13" = type { %"struct.tbb::internal::aligned_storage.14" }
%"struct.tbb::internal::aligned_storage.14" = type { ptr }
%struct.BusyBody = type <{ ptr, i32, i32, ptr, i8, [7 x i8] }>
%struct.BusyBodyScoped = type <{ ptr, i32, i32, ptr, i8, [7 x i8] }>
%"class.tbb::tick_count" = type { i64 }
%"class.tbb::tick_count::interval_t" = type { i64 }
%"class.tbb::interface6::internal::enumerable_thread_specific_iterator" = type { ptr, i64, ptr }
%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15" = type { ptr, i64, ptr }

@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@.str.19 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1
@_ZL7Verbose = external hidden global i8, align 1
@__FUNCTION__._Z25RunOneCriticalSectionTestiib = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef, i64 noundef, ptr noundef) #1 align 2

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

; 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
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25RunOneCriticalSectionTestiib(i32 noundef %0, i32 noundef %1, i1 noundef zeroext %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca %"class.tbb::task_scheduler_init", align 8
  %8 = alloca %"class.tbb::interface6::enumerable_thread_specific", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.BusyBody, align 8
  %13 = alloca %struct.BusyBodyScoped, align 8
  %14 = alloca %"class.tbb::tick_count", align 8
  %15 = alloca %"class.tbb::tick_count", align 8
  %16 = alloca %"class.tbb::tick_count::interval_t", align 8
  %17 = alloca %"class.tbb::tick_count", align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %24 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %25 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %26 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %27 = alloca double, align 8
  %28 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %29 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %30 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %31 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %32 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  %33 = zext i1 %2 to i8
  store i8 %33, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef -2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #8
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %34 unwind label %90

34:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %38 = trunc i8 %37 to i1
  invoke void @_ZN8BusyBodyC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25) %12, i32 noundef %35, i32 noundef %36, ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef nonnull align 4 dereferenceable(4) %11, i1 noundef zeroext %38)
          to label %39 unwind label %94

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %43 = trunc i8 %42 to i1
  invoke void @_ZN14BusyBodyScopedC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25) %13, i32 noundef %40, i32 noundef %41, ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef nonnull align 4 dereferenceable(4) %11, i1 noundef zeroext %43)
          to label %44 unwind label %98

44:                                               ; preds = %39
  %45 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZN3tbb19task_scheduler_init10initializeEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef %45)
          to label %46 unwind label %98

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  invoke void @_ZN3tbb10tick_countC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %47 unwind label %102

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %48 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %49 unwind label %106

49:                                               ; preds = %47
  %50 = getelementptr inbounds %"class.tbb::tick_count", ptr %15, i32 0, i32 0
  store i64 %48, ptr %50, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %15, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_Z17NativeParallelForIi8BusyBodyEvT_RKT0_(i32 noundef %51, ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %52 unwind label %102

52:                                               ; preds = %49
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = srem i32 300, %54
  %56 = sub nsw i32 300, %55
  %57 = icmp eq i32 %53, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %52
  br label %61

59:                                               ; preds = %52
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 137, ptr noundef @.str.20, ptr noundef null)
          to label %60 unwind label %102

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60, %58
  %62 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !9, !range !11, !noundef !12
  %63 = trunc i8 %62 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  br label %79

65:                                               ; preds = %61
  %66 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str.19, i64 noundef 138, ptr noundef @__FUNCTION__._Z25RunOneCriticalSectionTestiib)
          to label %67 unwind label %102

67:                                               ; preds = %65
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %71 unwind label %110

71:                                               ; preds = %67
  %72 = getelementptr inbounds %"class.tbb::tick_count", ptr %17, i32 0, i32 0
  store i64 %70, ptr %72, align 8
  %73 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %74 unwind label %110

74:                                               ; preds = %71
  %75 = getelementptr inbounds %"class.tbb::tick_count::interval_t", ptr %16, i32 0, i32 0
  store i64 %73, ptr %75, align 8
  %76 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %77 unwind label %110

77:                                               ; preds = %74
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %66, ptr noundef @.str.21, i32 noundef %68, i32 noundef %69, double noundef %76)
          to label %78 unwind label %110

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 1
  br i1 %81, label %82, label %276

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store double 0.000000e+00, ptr %18, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store double 0.000000e+00, ptr %19, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store double 0.000000e+00, ptr %20, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store double 0.000000e+00, ptr %21, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store double 0.000000e+00, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE5beginEv(ptr dead_on_unwind writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %24, ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %83 unwind label %114

83:                                               ; preds = %82
  invoke void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEC2IdEERKNS2_ISB_T_EE(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %84 unwind label %114

84:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  br label %85

85:                                               ; preds = %161, %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE3endEv(ptr dead_on_unwind writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %25, ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %86 unwind label %118

86:                                               ; preds = %85
  %87 = invoke noundef zeroext i1 @_ZN3tbb10interface68internalneINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKddEEbRKNS1_35enumerable_thread_specific_iteratorIT_T0_EERKNSD_ISE_T1_EE(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %88 unwind label %118

88:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br i1 %87, label %122, label %89

89:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br label %167

90:                                               ; preds = %3
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  br label %292

94:                                               ; preds = %34
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %9, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %10, align 4
  br label %291

98:                                               ; preds = %44, %39
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %9, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %10, align 4
  br label %290

102:                                              ; preds = %287, %285, %276, %65, %59, %49, %46
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %9, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %10, align 4
  br label %289

106:                                              ; preds = %47
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %289

110:                                              ; preds = %77, %74, %71, %67
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %289

114:                                              ; preds = %83, %82
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %9, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  br label %166

118:                                              ; preds = %86, %85
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %9, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br label %166

122:                                              ; preds = %88
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %124 unwind label %134

124:                                              ; preds = %122
  %125 = load double, ptr %123, align 8, !tbaa !16
  %126 = load double, ptr %18, align 8, !tbaa !16
  %127 = fadd double %126, %125
  store double %127, ptr %18, align 8, !tbaa !16
  %128 = load double, ptr %19, align 8, !tbaa !16
  %129 = fcmp oeq double %128, 0.000000e+00
  br i1 %129, label %130, label %138

130:                                              ; preds = %124
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %132 unwind label %134

132:                                              ; preds = %130
  %133 = load double, ptr %131, align 8, !tbaa !16
  store double %133, ptr %20, align 8, !tbaa !16
  br label %149

134:                                              ; preds = %155, %149, %144, %138, %130, %122
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %9, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %10, align 4
  br label %166

138:                                              ; preds = %124
  %139 = load double, ptr %20, align 8, !tbaa !16
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %141 unwind label %134

141:                                              ; preds = %138
  %142 = load double, ptr %140, align 8, !tbaa !16
  %143 = fcmp ogt double %139, %142
  br i1 %143, label %144, label %148

144:                                              ; preds = %141
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %146 unwind label %134

146:                                              ; preds = %144
  %147 = load double, ptr %145, align 8, !tbaa !16
  store double %147, ptr %20, align 8, !tbaa !16
  br label %148

148:                                              ; preds = %146, %141
  br label %149

149:                                              ; preds = %148, %132
  %150 = load double, ptr %19, align 8, !tbaa !16
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %152 unwind label %134

152:                                              ; preds = %149
  %153 = load double, ptr %151, align 8, !tbaa !16
  %154 = fcmp olt double %150, %153
  br i1 %154, label %155, label %159

155:                                              ; preds = %152
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %157 unwind label %134

157:                                              ; preds = %155
  %158 = load double, ptr %156, align 8, !tbaa !16
  store double %158, ptr %19, align 8, !tbaa !16
  br label %159

159:                                              ; preds = %157, %152
  br label %160

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  invoke void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEppEi(ptr dead_on_unwind writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator") align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %23, i32 noundef 0)
          to label %161 unwind label %162

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  br label %85, !llvm.loop !18

162:                                              ; preds = %160
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %9, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  br label %166

166:                                              ; preds = %162, %134, %118, %114
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br label %275

167:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %168 = load double, ptr %18, align 8, !tbaa !16
  %169 = load i32, ptr %4, align 4, !tbaa !5
  %170 = sitofp i32 %169 to double
  %171 = fdiv double %168, %170
  store double %171, ptr %27, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE5beginEv(ptr dead_on_unwind writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %29, ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %172 unwind label %179

172:                                              ; preds = %167
  invoke void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEC2IdEERKNS2_ISB_T_EE(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %173 unwind label %179

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

174:                                              ; preds = %198, %173
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE3endEv(ptr dead_on_unwind writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %30, ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %175 unwind label %183

175:                                              ; preds = %174
  %176 = invoke noundef zeroext i1 @_ZN3tbb10interface68internalneINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKddEEbRKNS1_35enumerable_thread_specific_iteratorIT_T0_EERKNSD_ISE_T1_EE(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %177 unwind label %183

177:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  br i1 %176, label %187, label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br label %208

179:                                              ; preds = %172, %167
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %9, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  br label %207

183:                                              ; preds = %175, %174
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %9, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  br label %207

187:                                              ; preds = %177
  %188 = load double, ptr %27, align 8, !tbaa !16
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %190 unwind label %199

190:                                              ; preds = %187
  %191 = load double, ptr %189, align 8, !tbaa !16
  %192 = fsub double %188, %191
  store double %192, ptr %22, align 8, !tbaa !16
  %193 = load double, ptr %22, align 8, !tbaa !16
  %194 = load double, ptr %22, align 8, !tbaa !16
  %195 = load double, ptr %21, align 8, !tbaa !16
  %196 = call double @llvm.fmuladd.f64(double %193, double %194, double %195)
  store double %196, ptr %21, align 8, !tbaa !16
  br label %197

197:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #8
  invoke void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEppEi(ptr dead_on_unwind writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator") align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef 0)
          to label %198 unwind label %203

198:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  br label %174, !llvm.loop !20

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %9, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %10, align 4
  br label %207

203:                                              ; preds = %197
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %9, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  br label %207

207:                                              ; preds = %203, %199, %183, %179
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br label %274

208:                                              ; preds = %178
  %209 = load double, ptr %21, align 8, !tbaa !16
  %210 = load i32, ptr %4, align 4, !tbaa !5
  %211 = sitofp i32 %210 to double
  %212 = fdiv double %209, %211
  %213 = call double @sqrt(double noundef %212) #8
  store double %213, ptr %22, align 8, !tbaa !16
  %214 = load double, ptr %27, align 8, !tbaa !16
  %215 = load double, ptr %19, align 8, !tbaa !16
  %216 = fsub double %215, %214
  store double %216, ptr %19, align 8, !tbaa !16
  %217 = load double, ptr %27, align 8, !tbaa !16
  %218 = load double, ptr %20, align 8, !tbaa !16
  %219 = fsub double %217, %218
  store double %219, ptr %20, align 8, !tbaa !16
  %220 = load double, ptr %19, align 8, !tbaa !16
  %221 = load double, ptr %20, align 8, !tbaa !16
  %222 = fcmp olt double %220, %221
  br i1 %222, label %223, label %225

223:                                              ; preds = %208
  %224 = load double, ptr %20, align 8, !tbaa !16
  store double %224, ptr %19, align 8, !tbaa !16
  br label %225

225:                                              ; preds = %223, %208
  %226 = load double, ptr %22, align 8, !tbaa !16
  %227 = load double, ptr %19, align 8, !tbaa !16
  %228 = fsub double %227, %226
  store double %228, ptr %19, align 8, !tbaa !16
  %229 = load double, ptr %19, align 8, !tbaa !16
  %230 = fcmp ogt double %229, 0.000000e+00
  br i1 %230, label %231, label %233

231:                                              ; preds = %225
  %232 = load double, ptr %19, align 8, !tbaa !16
  br label %234

233:                                              ; preds = %225
  br label %234

234:                                              ; preds = %233, %231
  %235 = phi double [ %232, %231 ], [ 0.000000e+00, %233 ]
  store double %235, ptr %19, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %236 = load double, ptr %19, align 8, !tbaa !16
  %237 = load double, ptr %27, align 8, !tbaa !16
  %238 = fdiv double %236, %237
  store double %238, ptr %32, align 8, !tbaa !16
  %239 = load double, ptr %32, align 8, !tbaa !16
  %240 = fcmp oeq double %239, 0.000000e+00
  br i1 %240, label %241, label %242

241:                                              ; preds = %234
  store double 1.000000e+02, ptr %32, align 8, !tbaa !16
  br label %246

242:                                              ; preds = %234
  %243 = load double, ptr %32, align 8, !tbaa !16
  %244 = call double @log10(double noundef %243) #8
  %245 = fneg double %244
  store double %245, ptr %32, align 8, !tbaa !16
  br label %246

246:                                              ; preds = %242, %241
  %247 = load double, ptr %32, align 8, !tbaa !16
  %248 = fcmp ogt double %247, 2.000000e+00
  br i1 %248, label %249, label %263

249:                                              ; preds = %246
  %250 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !9, !range !11, !noundef !12
  %251 = trunc i8 %250 to i1
  br i1 %251, label %253, label %252

252:                                              ; preds = %249
  br label %258

253:                                              ; preds = %249
  %254 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str.19, i64 noundef 180, ptr noundef @__FUNCTION__._Z25RunOneCriticalSectionTestiib)
          to label %255 unwind label %259

255:                                              ; preds = %253
  %256 = load double, ptr %32, align 8, !tbaa !16
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %254, ptr noundef @.str.22, double noundef %256)
          to label %257 unwind label %259

257:                                              ; preds = %255
  br label %258

258:                                              ; preds = %257, %252
  br label %273

259:                                              ; preds = %269, %267, %255, %253
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %9, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %274

263:                                              ; preds = %246
  %264 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !9, !range !11, !noundef !12
  %265 = trunc i8 %264 to i1
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  br label %272

267:                                              ; preds = %263
  %268 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str.19, i64 noundef 183, ptr noundef @__FUNCTION__._Z25RunOneCriticalSectionTestiib)
          to label %269 unwind label %259

269:                                              ; preds = %267
  %270 = load double, ptr %32, align 8, !tbaa !16
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %268, ptr noundef @.str.23, double noundef %270)
          to label %271 unwind label %259

271:                                              ; preds = %269
  br label %272

272:                                              ; preds = %271, %266
  br label %273

273:                                              ; preds = %272, %258
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %276

274:                                              ; preds = %259, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %275

275:                                              ; preds = %274, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %289

276:                                              ; preds = %273, %79
  store i32 0, ptr %11, align 4, !tbaa !5
  %277 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_Z17NativeParallelForIi14BusyBodyScopedEvT_RKT0_(i32 noundef %277, ptr noundef nonnull align 8 dereferenceable(25) %13)
          to label %278 unwind label %102

278:                                              ; preds = %276
  %279 = load i32, ptr %11, align 4, !tbaa !5
  %280 = load i32, ptr %4, align 4, !tbaa !5
  %281 = srem i32 300, %280
  %282 = sub nsw i32 300, %281
  %283 = icmp eq i32 %279, %282
  br i1 %283, label %284, label %285

284:                                              ; preds = %278
  br label %287

285:                                              ; preds = %278
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 188, ptr noundef @.str.20, ptr noundef null)
          to label %286 unwind label %102

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286, %284
  invoke void @_ZN3tbb19task_scheduler_init9terminateEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %288 unwind label %102

288:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %8) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #8
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret void

289:                                              ; preds = %275, %110, %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %290

290:                                              ; preds = %289, %98
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  br label %291

291:                                              ; preds = %290, %94
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %8) #8
  br label %292

292:                                              ; preds = %291, %90
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #8
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %293

293:                                              ; preds = %292
  %294 = load ptr, ptr %9, align 8
  %295 = load i32, ptr %10, align 4
  %296 = insertvalue { ptr, i32 } poison, ptr %294, 0
  %297 = insertvalue { ptr, i32 } %296, i32 %295, 1
  resume { ptr, i32 } %297
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8BusyBodyC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14BusyBodyScopedC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) unnamed_addr #2 align 2

declare void @_ZN3tbb19task_scheduler_init10initializeEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbb10tick_count3nowEv() #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEppEi(ptr dead_on_unwind noalias writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1 align 2

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #7

; Function Attrs: nounwind
declare double @log10(double noundef) #7

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

declare void @_ZN3tbb19task_scheduler_init9terminateEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

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


; 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.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"class.tbb::task_scheduler_init" = type { ptr }
%"class.tbb::interface6::enumerable_thread_specific" = type { %"class.tbb::interface6::internal::ets_base", ptr, %"class.tbb::concurrent_vector" }
%"class.tbb::interface6::internal::ets_base" = type { ptr, %"struct.tbb::atomic.0", %"struct.tbb::atomic.4" }
%"struct.tbb::atomic.0" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.1" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.1" = type { %"struct.tbb::internal::atomic_impl.2" }
%"struct.tbb::internal::atomic_impl.2" = type { %"struct.tbb::internal::aligned_storage.3" }
%"struct.tbb::internal::aligned_storage.3" = type { ptr }
%"struct.tbb::atomic.4" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.5" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.5" = type { %"struct.tbb::internal::atomic_impl.6" }
%"struct.tbb::internal::atomic_impl.6" = type { %"struct.tbb::internal::aligned_storage.7" }
%"struct.tbb::internal::aligned_storage.7" = type { i64 }
%"class.tbb::concurrent_vector" = type { [8 x i8], %"class.tbb::internal::concurrent_vector_base_v3" }
%"class.tbb::internal::concurrent_vector_base_v3" = type { ptr, %"struct.tbb::atomic.4", %"struct.tbb::atomic.4", %"struct.tbb::atomic.8", [3 x %"class.tbb::internal::concurrent_vector_base_v3::segment_t"] }
%"struct.tbb::atomic.8" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic.9" }
%"struct.tbb::internal::atomic_impl_with_arithmetic.9" = type { %"struct.tbb::internal::atomic_impl.10" }
%"struct.tbb::internal::atomic_impl.10" = type { %"struct.tbb::internal::aligned_storage.11" }
%"struct.tbb::internal::aligned_storage.11" = type { ptr }
%"class.tbb::internal::concurrent_vector_base_v3::segment_t" = type { %"struct.tbb::atomic.12" }
%"struct.tbb::atomic.12" = type { %"struct.tbb::internal::atomic_impl.13" }
%"struct.tbb::internal::atomic_impl.13" = type { %"struct.tbb::internal::aligned_storage.14" }
%"struct.tbb::internal::aligned_storage.14" = type { ptr }
%struct.BusyBody = type <{ ptr, i32, i32, ptr, i8, [7 x i8] }>
%struct.BusyBodyScoped = type <{ ptr, i32, i32, ptr, i8, [7 x i8] }>
%"class.tbb::tick_count" = type { i64 }
%"class.tbb::tick_count::interval_t" = type { i64 }
%"class.tbb::interface6::internal::enumerable_thread_specific_iterator" = type { ptr, i64, ptr }
%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15" = type { ptr, i64, ptr }

@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@.str.19 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1
@_ZL7Verbose = external hidden local_unnamed_addr global i8, align 1
@__FUNCTION__._Z25RunOneCriticalSectionTestiib = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 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 nounwind uwtable
declare dso_local noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1 align 2

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

; 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
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25RunOneCriticalSectionTestiib(i32 noundef %0, i32 noundef %1, i1 noundef zeroext %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.tbb::task_scheduler_init", align 8
  %5 = alloca %"class.tbb::interface6::enumerable_thread_specific", align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.BusyBody, align 8
  %8 = alloca %struct.BusyBodyScoped, align 8
  %9 = alloca %"class.tbb::tick_count", align 8
  %10 = alloca %"class.tbb::tick_count::interval_t", align 8
  %11 = alloca %"class.tbb::tick_count", align 8
  %12 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %13 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %14 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %15 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %16 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  %17 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %18 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15", align 8
  %19 = alloca %"class.tbb::interface6::internal::enumerable_thread_specific_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef -2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #7
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %20 unwind label %54

20:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  invoke void @_ZN8BusyBodyC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25) %7, i32 noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(96) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, i1 noundef zeroext %2)
          to label %21 unwind label %56

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZN14BusyBodyScopedC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25) %8, i32 noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(96) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, i1 noundef zeroext %2)
          to label %22 unwind label %58

22:                                               ; preds = %21
  invoke void @_ZN3tbb19task_scheduler_init10initializeEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %0)
          to label %23 unwind label %58

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN3tbb10tick_countC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %24 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %25 unwind label %62

25:                                               ; preds = %23
  store i64 %24, ptr %9, align 8, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !5
  invoke void @_Z17NativeParallelForIi8BusyBodyEvT_RKT0_(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %26 unwind label %60

26:                                               ; preds = %25
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = srem i32 300, %0
  %29 = sub nuw nsw i32 300, %28
  %30 = icmp eq i32 %27, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 137, ptr noundef nonnull @.str.20, ptr noundef null)
          to label %32 unwind label %60

32:                                               ; preds = %31, %26
  %33 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !11, !range !13, !noundef !14
  %34 = trunc nuw i8 %33 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  br i1 %34, label %35, label %43

35:                                               ; preds = %32
  %36 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str.19, i64 noundef 138, ptr noundef nonnull @__FUNCTION__._Z25RunOneCriticalSectionTestiib)
  %37 = invoke i64 @_ZN3tbb10tick_count3nowEv()
          to label %38 unwind label %64

38:                                               ; preds = %35
  store i64 %37, ptr %11, align 8
  %39 = invoke i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %40 unwind label %64

40:                                               ; preds = %38
  store i64 %39, ptr %10, align 8
  %41 = invoke noundef double @_ZNK3tbb10tick_count10interval_t7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %42 unwind label %64

42:                                               ; preds = %40
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %36, ptr noundef nonnull @.str.21, i32 noundef %0, i32 noundef %1, double noundef %41)
          to label %43 unwind label %64

43:                                               ; preds = %42, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %44 = icmp sgt i32 %0, 1
  br i1 %44, label %45, label %145

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %13, ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %46 unwind label %66

46:                                               ; preds = %45
  call void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEC2IdEERKNS2_ISB_T_EE(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %47

47:                                               ; preds = %100, %46
  %.052 = phi double [ 0.000000e+00, %46 ], [ %74, %100 ]
  %.049 = phi double [ 0.000000e+00, %46 ], [ %.150, %100 ]
  %.047 = phi double [ 0.000000e+00, %46 ], [ %.148, %100 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %14, ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %48 unwind label %68

48:                                               ; preds = %47
  %49 = invoke noundef zeroext i1 @_ZN3tbb10interface68internalneINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKddEEbRKNS1_35enumerable_thread_specific_iteratorIT_T0_EERKNSD_ISE_T1_EE(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %50 unwind label %68

50:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br i1 %49, label %70, label %51

51:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  %52 = uitofp nneg i32 %0 to double
  %53 = fdiv double %.052, %52
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #7
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %17, ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %102 unwind label %118

54:                                               ; preds = %3
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %155

56:                                               ; preds = %20
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %154

58:                                               ; preds = %22, %21
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %153

60:                                               ; preds = %150, %149, %145, %31, %25
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %152

62:                                               ; preds = %23
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %152

64:                                               ; preds = %42, %40, %38, %35
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %152

66:                                               ; preds = %45
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %101

68:                                               ; preds = %48, %47
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %101

70:                                               ; preds = %50
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %72 unwind label %80

72:                                               ; preds = %70
  %73 = load double, ptr %71, align 8, !tbaa !15
  %74 = fadd double %.052, %73
  %75 = fcmp oeq double %.049, 0.000000e+00
  br i1 %75, label %76, label %82

76:                                               ; preds = %72
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %78 unwind label %80

78:                                               ; preds = %76
  %79 = load double, ptr %77, align 8, !tbaa !15
  br label %91

80:                                               ; preds = %96, %91, %87, %82, %76, %70
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %101

82:                                               ; preds = %72
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %84 unwind label %80

84:                                               ; preds = %82
  %85 = load double, ptr %83, align 8, !tbaa !15
  %86 = fcmp ogt double %.047, %85
  br i1 %86, label %87, label %91

87:                                               ; preds = %84
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %89 unwind label %80

89:                                               ; preds = %87
  %90 = load double, ptr %88, align 8, !tbaa !15
  br label %91

91:                                               ; preds = %84, %89, %78
  %.148 = phi double [ %79, %78 ], [ %90, %89 ], [ %.047, %84 ]
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %93 unwind label %80

93:                                               ; preds = %91
  %94 = load double, ptr %92, align 8, !tbaa !15
  %95 = fcmp olt double %.049, %94
  br i1 %95, label %96, label %100

96:                                               ; preds = %93
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %98 unwind label %80

98:                                               ; preds = %96
  %99 = load double, ptr %97, align 8, !tbaa !15
  br label %100

100:                                              ; preds = %93, %98
  %.150 = phi double [ %99, %98 ], [ %.049, %93 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  call void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEppEi(ptr dead_on_unwind nonnull writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  br label %47, !llvm.loop !17

101:                                              ; preds = %80, %68, %66
  %.pn67 = phi { ptr, i32 } [ %81, %80 ], [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %152

102:                                              ; preds = %51
  call void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEC2IdEERKNS2_ISB_T_EE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  br label %103

103:                                              ; preds = %124, %102
  %.046 = phi double [ 0.000000e+00, %102 ], [ %127, %124 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  invoke void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8 %18, ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %104 unwind label %120

104:                                              ; preds = %103
  %105 = invoke noundef zeroext i1 @_ZN3tbb10interface68internalneINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKddEEbRKNS1_35enumerable_thread_specific_iteratorIT_T0_EERKNSD_ISE_T1_EE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %106 unwind label %120

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br i1 %105, label %122, label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  %108 = fdiv double %.046, %52
  %109 = call double @sqrt(double noundef %108) #7
  %110 = fsub double %.049, %53
  %111 = fsub double %53, %.047
  %112 = fcmp olt double %110, %111
  %.251 = select i1 %112, double %111, double %110
  %113 = fsub double %.251, %109
  %114 = fcmp ogt double %113, 0.000000e+00
  %115 = select i1 %114, double %113, double 0.000000e+00
  %116 = fdiv double %115, %53
  %117 = fcmp oeq double %116, 0.000000e+00
  br i1 %117, label %.thread, label %131

118:                                              ; preds = %51
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  br label %130

120:                                              ; preds = %104, %103
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %130

122:                                              ; preds = %106
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %124 unwind label %128

124:                                              ; preds = %122
  %125 = load double, ptr %123, align 8, !tbaa !15
  %126 = fsub double %53, %125
  %127 = call double @llvm.fmuladd.f64(double %126, double %126, double %.046)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  call void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEppEi(ptr dead_on_unwind nonnull writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %103, !llvm.loop !19

128:                                              ; preds = %122
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %130

130:                                              ; preds = %128, %120, %118
  %.pn = phi { ptr, i32 } [ %129, %128 ], [ %121, %120 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %152

131:                                              ; preds = %107
  %132 = call double @log10(double noundef %116) #7
  %133 = fneg double %132
  %134 = fcmp olt double %132, -2.000000e+00
  br i1 %134, label %.thread, label %139

.thread:                                          ; preds = %107, %131
  %.075 = phi double [ %133, %131 ], [ 1.000000e+02, %107 ]
  %135 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !11, !range !13, !noundef !14
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %.invoke, label %145

137:                                              ; preds = %.invoke
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %152

139:                                              ; preds = %131
  %140 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !11, !range !13, !noundef !14
  %141 = trunc nuw i8 %140 to i1
  br i1 %141, label %.invoke, label %145

.invoke:                                          ; preds = %139, %.thread
  %.sink = phi i64 [ 180, %.thread ], [ 183, %139 ]
  %142 = phi ptr [ @.str.22, %.thread ], [ @.str.23, %139 ]
  %143 = phi double [ %.075, %.thread ], [ %133, %139 ]
  %144 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str.19, i64 noundef %.sink, ptr noundef nonnull @__FUNCTION__._Z25RunOneCriticalSectionTestiib)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %144, ptr noundef nonnull %142, double noundef %143)
          to label %145 unwind label %137

145:                                              ; preds = %.invoke, %.thread, %139, %43
  store i32 0, ptr %6, align 4, !tbaa !5
  invoke void @_Z17NativeParallelForIi14BusyBodyScopedEvT_RKT0_(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(25) %8)
          to label %146 unwind label %60

146:                                              ; preds = %145
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = icmp eq i32 %147, %29
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 188, ptr noundef nonnull @.str.20, ptr noundef null)
          to label %150 unwind label %60

150:                                              ; preds = %149, %146
  invoke void @_ZN3tbb19task_scheduler_init9terminateEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %151 unwind label %60

151:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %5) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #7
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret void

152:                                              ; preds = %101, %137, %130, %64, %62, %60
  %.pn67.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %65, %64 ], [ %63, %62 ], [ %.pn67, %101 ], [ %.pn, %130 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %153

153:                                              ; preds = %152, %58
  %.pn67.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn, %152 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %154

154:                                              ; preds = %153, %56
  %.pn67.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn.pn, %153 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %5) #7
  br label %155

155:                                              ; preds = %154, %54
  %.pn67.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn.pn.pn, %154 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #7
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn67.pn.pn.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8BusyBodyC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14BusyBodyScopedC2EiiRN3tbb10interface626enumerable_thread_specificIdNS0_23cache_aligned_allocatorIdEELNS0_18ets_key_usage_typeE1EEERib(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) unnamed_addr #2 align 2

declare void @_ZN3tbb19task_scheduler_init10initializeEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbb10tick_count3nowEv() local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN3tbbmiERKNS_10tick_countES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb10interface626enumerable_thread_specificIdNS_23cache_aligned_allocatorIdEELNS_18ets_key_usage_typeE1EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator.15") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb10interface68internal35enumerable_thread_specific_iteratorINS_17concurrent_vectorINS_8internal6paddedINS1_11ets_elementIdEELm128EEENS_23cache_aligned_allocatorIS8_EEEEKdEppEi(ptr dead_on_unwind noalias writable sret(%"class.tbb::interface6::internal::enumerable_thread_specific_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

declare void @_ZN3tbb19task_scheduler_init9terminateEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopUnrollPass,SROAPass,SimplifyCFGPass