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

; 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] }>
%"struct.tbb::atomic" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic" }
%"struct.tbb::internal::atomic_impl_with_arithmetic" = type { %"struct.tbb::internal::atomic_impl" }
%"struct.tbb::internal::atomic_impl" = type { %"struct.tbb::internal::aligned_storage" }
%"struct.tbb::internal::aligned_storage" = type { i32 }
%"class.tbb::task_scheduler_init" = type { ptr }
%"class.tbb::internal::allocate_root_proxy" = type { i8 }
%class.DagTask = type { %"class.tbb::task", i32, i32, i64, i64, ptr, ptr }
%"class.tbb::task" = type { ptr }

@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@_ZL7Verbose = external hidden global i8, align 1
@.str.17 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZN7DagTask15execution_countE = external dso_local global %"struct.tbb::atomic", align 4
@_ZN7DagTask17destruction_countE = external dso_local global %"struct.tbb::atomic", align 4
@__FUNCTION__._Z7TestDagi = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [37 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
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 nounwind uwtable
declare dso_local void @_ZN3tbb4task13allocate_rootEv() #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

; Function Attrs: nounwind
declare i32 @sched_yield() #5

declare void @_ZN3tbb10interface58internal9task_base7destroyERNS_4taskE(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7TestDagi(i32 noundef %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.tbb::task_scheduler_init", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [10 x [10 x ptr]], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.tbb::internal::allocate_root_proxy", align 1
  %12 = alloca %"class.tbb::internal::allocate_root_proxy", align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %15 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = trunc i8 %15 to i1
  br i1 %16, label %18, label %17

17:                                               ; preds = %1
  br label %21

18:                                               ; preds = %1
  %19 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str.17, i64 noundef 480, ptr noundef @__FUNCTION__._Z7TestDagi)
  %20 = load i32, ptr %2, align 4, !tbaa !5
  call void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %19, ptr noundef @.str.28, i32 noundef %20)
  br label %21

21:                                               ; preds = %18, %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %22 = load i32, ptr %2, align 4, !tbaa !5
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %22, i64 noundef 0)
  %23 = invoke noundef i32 @_ZN3tbb6atomicIiEaSEi(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask15execution_countE, i32 noundef 0)
          to label %24 unwind label %31

24:                                               ; preds = %21
  %25 = invoke noundef i32 @_ZN3tbb6atomicIiEaSEi(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask17destruction_countE, i32 noundef 0)
          to label %26 unwind label %31

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 10, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 800, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %66, %26
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 10
  br i1 %29, label %35, label %30

30:                                               ; preds = %27
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %69

31:                                               ; preds = %24, %21
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %4, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %5, align 4
  br label %196

35:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %53, %35
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 10
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %65

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  invoke void @_ZN3tbb4task13allocate_rootEv()
          to label %41 unwind label %56

41:                                               ; preds = %40
  %42 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %43 unwind label %56

43:                                               ; preds = %41
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %42, i32 noundef %44, i32 noundef %45)
          to label %46 unwind label %60

46:                                               ; preds = %43
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 %48
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [10 x ptr], ptr %49, i64 0, i64 %51
  store ptr %42, ptr %52, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %53

53:                                               ; preds = %46
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %10, align 4, !tbaa !5
  br label %36, !llvm.loop !15

56:                                               ; preds = %41, %40
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  br label %64

60:                                               ; preds = %43
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %4, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %5, align 4
  call void @_ZdlPvRKN3tbb8internal19allocate_root_proxyE(ptr noundef %42, ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  br label %64

64:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %195

65:                                               ; preds = %39
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !5
  br label %27, !llvm.loop !17

69:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %149, %69
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 10
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %152

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %141, %74
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = icmp slt i32 %76, 10
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %148

79:                                               ; preds = %75
  %80 = load i32, ptr %13, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  %82 = icmp slt i32 %81, 10
  br i1 %82, label %83, label %92

83:                                               ; preds = %79
  %84 = load i32, ptr %13, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 %86
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [10 x ptr], ptr %87, i64 0, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !13
  br label %93

92:                                               ; preds = %79
  br label %93

93:                                               ; preds = %92, %83
  %94 = phi ptr [ %91, %83 ], [ null, %92 ]
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 %96
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10 x ptr], ptr %97, i64 0, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  %102 = getelementptr inbounds %class.DagTask, ptr %101, i32 0, i32 5
  store ptr %94, ptr %102, align 8, !tbaa !18
  %103 = load i32, ptr %14, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  %105 = icmp slt i32 %104, 10
  br i1 %105, label %106, label %115

106:                                              ; preds = %93
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 %108
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [10 x ptr], ptr %109, i64 0, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !13
  br label %116

115:                                              ; preds = %93
  br label %116

116:                                              ; preds = %115, %106
  %117 = phi ptr [ %114, %106 ], [ null, %115 ]
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 %119
  %121 = load i32, ptr %14, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [10 x ptr], ptr %120, i64 0, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = getelementptr inbounds %class.DagTask, ptr %124, i32 0, i32 6
  store ptr %117, ptr %125, align 8, !tbaa !22
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 %127
  %129 = load i32, ptr %14, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [10 x ptr], ptr %128, i64 0, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !13
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 0
  %135 = zext i1 %134 to i32
  %136 = load i32, ptr %14, align 4, !tbaa !5
  %137 = icmp sgt i32 %136, 0
  %138 = zext i1 %137 to i32
  %139 = add nsw i32 %135, %138
  invoke void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 noundef %139)
          to label %140 unwind label %144

140:                                              ; preds = %116
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %14, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %14, align 4, !tbaa !5
  br label %75, !llvm.loop !23

144:                                              ; preds = %116
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %4, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %195

148:                                              ; preds = %78
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %13, align 4, !tbaa !5
  br label %70, !llvm.loop !24

152:                                              ; preds = %73
  %153 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 9
  %154 = getelementptr inbounds [10 x ptr], ptr %153, i64 0, i64 9
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  invoke void @_ZN3tbb4task19increment_ref_countEv(ptr noundef nonnull align 8 dereferenceable(8) %155)
          to label %156 unwind label %190

156:                                              ; preds = %152
  %157 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 9
  %158 = getelementptr inbounds [10 x ptr], ptr %157, i64 0, i64 9
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 0
  %161 = getelementptr inbounds [10 x ptr], ptr %160, i64 0, i64 0
  %162 = load ptr, ptr %161, align 16, !tbaa !13
  invoke void @_ZN3tbb4task22spawn_and_wait_for_allERS0_(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull align 8 dereferenceable(8) %162)
          to label %163 unwind label %190

163:                                              ; preds = %156
  %164 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask15execution_countE)
          to label %165 unwind label %190

165:                                              ; preds = %163
  %166 = icmp eq i32 %164, 99
  br i1 %166, label %167, label %168

167:                                              ; preds = %165
  br label %170

168:                                              ; preds = %165
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 497, ptr noundef @.str.29, ptr noundef null)
          to label %169 unwind label %190

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169, %167
  %171 = getelementptr inbounds [10 x [10 x ptr]], ptr %7, i64 0, i64 9
  %172 = getelementptr inbounds [10 x ptr], ptr %171, i64 0, i64 9
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  invoke void @_ZN3tbb10interface58internal9task_base7destroyERNS_4taskE(ptr noundef nonnull align 8 dereferenceable(8) %173)
          to label %174 unwind label %190

174:                                              ; preds = %170
  %175 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask17destruction_countE)
          to label %176 unwind label %190

176:                                              ; preds = %174
  %177 = load i32, ptr %2, align 4, !tbaa !5
  %178 = sub nsw i32 100, %177
  %179 = icmp sgt i32 %175, %178
  br i1 %179, label %180, label %181

180:                                              ; preds = %176
  br label %183

181:                                              ; preds = %176
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 499, ptr noundef @.str.30, ptr noundef null)
          to label %182 unwind label %190

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182, %180
  br label %184

184:                                              ; preds = %188, %183
  %185 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask17destruction_countE)
          to label %186 unwind label %190

186:                                              ; preds = %184
  %187 = icmp ne i32 %185, 100
  br i1 %187, label %188, label %194

188:                                              ; preds = %186
  %189 = call i32 @sched_yield() #7
  br label %184, !llvm.loop !25

190:                                              ; preds = %184, %181, %174, %170, %168, %163, %156, %152
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %4, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %5, align 4
  br label %195

194:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 800, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void

195:                                              ; preds = %190, %144, %64
  call void @llvm.lifetime.end.p0(i64 800, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %196

196:                                              ; preds = %195, %31
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr %4, align 8
  %199 = load i32, ptr %5, align 4
  %200 = insertvalue { ptr, i32 } poison, ptr %198, 0
  %201 = insertvalue { ptr, i32 } %200, i32 %199, 1
  resume { ptr, i32 } %201
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb4task22spawn_and_wait_for_allERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 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 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { "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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !14, i64 32}
!19 = !{!"_ZTS7DagTask", !20, i64 0, !6, i64 8, !6, i64 12, !21, i64 16, !21, i64 24, !14, i64 32, !14, i64 40}
!20 = !{!"_ZTSN3tbb4taskE"}
!21 = !{!"long long", !7, i64 0}
!22 = !{!19, !14, i64 40}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}


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

%"class.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"struct.tbb::atomic" = type { %"struct.tbb::internal::atomic_impl_with_arithmetic" }
%"struct.tbb::internal::atomic_impl_with_arithmetic" = type { %"struct.tbb::internal::atomic_impl" }
%"struct.tbb::internal::atomic_impl" = type { %"struct.tbb::internal::aligned_storage" }
%"struct.tbb::internal::aligned_storage" = type { i32 }
%"class.tbb::task_scheduler_init" = type { ptr }
%"class.tbb::internal::allocate_root_proxy" = type { i8 }

@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@_ZL7Verbose = external hidden local_unnamed_addr global i8, align 1
@.str.17 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZN7DagTask15execution_countE = external dso_local global %"struct.tbb::atomic", align 4
@_ZN7DagTask17destruction_countE = external dso_local global %"struct.tbb::atomic", align 4
@__FUNCTION__._Z7TestDagi = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [37 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
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 nounwind uwtable
declare dso_local void @_ZN3tbb4task13allocate_rootEv() local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

; Function Attrs: nounwind
declare i32 @sched_yield() local_unnamed_addr #5

declare void @_ZN3tbb10interface58internal9task_base7destroyERNS_4taskE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7TestDagi(i32 noundef %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.tbb::task_scheduler_init", align 8
  %3 = alloca [10 x [10 x ptr]], align 16
  %4 = alloca %"class.tbb::internal::allocate_root_proxy", align 1
  %5 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !5, !range !9, !noundef !10
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %7, label %9

7:                                                ; preds = %1
  %8 = tail call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str.17, i64 noundef 480, ptr noundef nonnull @__FUNCTION__._Z7TestDagi)
  tail call void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %8, ptr noundef nonnull @.str.28, i32 noundef %0)
  br label %9

9:                                                ; preds = %1, %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %0, i64 noundef 0)
  %10 = invoke noundef i32 @_ZN3tbb6atomicIiEaSEi(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask15execution_countE, i32 noundef 0)
          to label %11 unwind label %15

11:                                               ; preds = %9
  %12 = invoke noundef i32 @_ZN3tbb6atomicIiEaSEi(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask17destruction_countE, i32 noundef 0)
          to label %13 unwind label %15

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %3) #8
  br label %.preheader45

.preheader45:                                     ; preds = %13, %55
  %indvars.iv = phi i64 [ 0, %13 ], [ %indvars.iv.next, %55 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %14 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %17 unwind label %134

15:                                               ; preds = %11, %9
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %296

17:                                               ; preds = %.preheader45
  %18 = trunc nuw nsw i64 %indvars.iv to i32
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %14, i32 noundef %18, i32 noundef 0)
          to label %19 unwind label %136

19:                                               ; preds = %17
  %20 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 0
  store ptr %14, ptr %20, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %21 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %22 unwind label %134

22:                                               ; preds = %19
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %21, i32 noundef %18, i32 noundef 1)
          to label %23 unwind label %136

23:                                               ; preds = %22
  %24 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 1
  store ptr %21, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %25 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %26 unwind label %134

26:                                               ; preds = %23
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %25, i32 noundef %18, i32 noundef 2)
          to label %27 unwind label %136

27:                                               ; preds = %26
  %28 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 2
  store ptr %25, ptr %28, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %29 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %30 unwind label %134

30:                                               ; preds = %27
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %29, i32 noundef %18, i32 noundef 3)
          to label %31 unwind label %136

31:                                               ; preds = %30
  %32 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 3
  store ptr %29, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %33 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %34 unwind label %134

34:                                               ; preds = %31
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %33, i32 noundef %18, i32 noundef 4)
          to label %35 unwind label %136

35:                                               ; preds = %34
  %36 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 4
  store ptr %33, ptr %36, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %37 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %38 unwind label %134

38:                                               ; preds = %35
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %37, i32 noundef %18, i32 noundef 5)
          to label %39 unwind label %136

39:                                               ; preds = %38
  %40 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 5
  store ptr %37, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %41 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %42 unwind label %134

42:                                               ; preds = %39
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %41, i32 noundef %18, i32 noundef 6)
          to label %43 unwind label %136

43:                                               ; preds = %42
  %44 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 6
  store ptr %41, ptr %44, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %45 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %46 unwind label %134

46:                                               ; preds = %43
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %45, i32 noundef %18, i32 noundef 7)
          to label %47 unwind label %136

47:                                               ; preds = %46
  %48 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 7
  store ptr %45, ptr %48, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %49 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %50 unwind label %134

50:                                               ; preds = %47
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %49, i32 noundef %18, i32 noundef 8)
          to label %51 unwind label %136

51:                                               ; preds = %50
  %52 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 8
  store ptr %49, ptr %52, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZN3tbb4task13allocate_rootEv()
  %53 = invoke noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 48, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %54 unwind label %134

54:                                               ; preds = %51
  invoke void @_ZN7DagTaskC2Eii(ptr noundef nonnull align 8 dereferenceable(48) %53, i32 noundef %18, i32 noundef 9)
          to label %55 unwind label %136

55:                                               ; preds = %54
  %56 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv, i64 9
  store ptr %53, ptr %56, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond.not, label %.split.us.peel, label %.preheader45, !llvm.loop !13

.split.us.peel:                                   ; preds = %55
  %57 = getelementptr inbounds i8, ptr %3, i64 80
  %58 = load ptr, ptr %57, align 16, !tbaa !11
  %59 = load ptr, ptr %3, align 16, !tbaa !11
  %60 = getelementptr inbounds i8, ptr %59, i64 32
  store ptr %58, ptr %60, align 8, !tbaa !15
  %61 = getelementptr inbounds i8, ptr %3, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds i8, ptr %59, i64 40
  store ptr %62, ptr %63, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %59, i32 noundef 0)
  %64 = getelementptr inbounds i8, ptr %3, i64 88
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds i8, ptr %3, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds i8, ptr %67, i64 32
  store ptr %65, ptr %68, align 8, !tbaa !15
  %69 = getelementptr inbounds i8, ptr %3, i64 16
  %70 = load ptr, ptr %69, align 16, !tbaa !11
  %71 = getelementptr inbounds i8, ptr %67, i64 40
  store ptr %70, ptr %71, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %67, i32 noundef 1)
  %72 = getelementptr inbounds i8, ptr %3, i64 96
  %73 = load ptr, ptr %72, align 16, !tbaa !11
  %74 = getelementptr inbounds i8, ptr %3, i64 16
  %75 = load ptr, ptr %74, align 16, !tbaa !11
  %76 = getelementptr inbounds i8, ptr %75, i64 32
  store ptr %73, ptr %76, align 8, !tbaa !15
  %77 = getelementptr inbounds i8, ptr %3, i64 24
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %75, i64 40
  store ptr %78, ptr %79, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %75, i32 noundef 1)
  %80 = getelementptr inbounds i8, ptr %3, i64 104
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds i8, ptr %3, i64 24
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %83, i64 32
  store ptr %81, ptr %84, align 8, !tbaa !15
  %85 = getelementptr inbounds i8, ptr %3, i64 32
  %86 = load ptr, ptr %85, align 16, !tbaa !11
  %87 = getelementptr inbounds i8, ptr %83, i64 40
  store ptr %86, ptr %87, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef 1)
  %88 = getelementptr inbounds i8, ptr %3, i64 112
  %89 = load ptr, ptr %88, align 16, !tbaa !11
  %90 = getelementptr inbounds i8, ptr %3, i64 32
  %91 = load ptr, ptr %90, align 16, !tbaa !11
  %92 = getelementptr inbounds i8, ptr %91, i64 32
  store ptr %89, ptr %92, align 8, !tbaa !15
  %93 = getelementptr inbounds i8, ptr %3, i64 40
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds i8, ptr %91, i64 40
  store ptr %94, ptr %95, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %91, i32 noundef 1)
  %96 = getelementptr inbounds i8, ptr %3, i64 120
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds i8, ptr %3, i64 40
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds i8, ptr %99, i64 32
  store ptr %97, ptr %100, align 8, !tbaa !15
  %101 = getelementptr inbounds i8, ptr %3, i64 48
  %102 = load ptr, ptr %101, align 16, !tbaa !11
  %103 = getelementptr inbounds i8, ptr %99, i64 40
  store ptr %102, ptr %103, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %99, i32 noundef 1)
  %104 = getelementptr inbounds i8, ptr %3, i64 128
  %105 = load ptr, ptr %104, align 16, !tbaa !11
  %106 = getelementptr inbounds i8, ptr %3, i64 48
  %107 = load ptr, ptr %106, align 16, !tbaa !11
  %108 = getelementptr inbounds i8, ptr %107, i64 32
  store ptr %105, ptr %108, align 8, !tbaa !15
  %109 = getelementptr inbounds i8, ptr %3, i64 56
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds i8, ptr %107, i64 40
  store ptr %110, ptr %111, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %107, i32 noundef 1)
  %112 = getelementptr inbounds i8, ptr %3, i64 136
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds i8, ptr %3, i64 56
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds i8, ptr %115, i64 32
  store ptr %113, ptr %116, align 8, !tbaa !15
  %117 = getelementptr inbounds i8, ptr %3, i64 64
  %118 = load ptr, ptr %117, align 16, !tbaa !11
  %119 = getelementptr inbounds i8, ptr %115, i64 40
  store ptr %118, ptr %119, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %115, i32 noundef 1)
  %120 = getelementptr inbounds i8, ptr %3, i64 144
  %121 = load ptr, ptr %120, align 16, !tbaa !11
  %122 = getelementptr inbounds i8, ptr %3, i64 64
  %123 = load ptr, ptr %122, align 16, !tbaa !11
  %124 = getelementptr inbounds i8, ptr %123, i64 32
  store ptr %121, ptr %124, align 8, !tbaa !15
  %125 = getelementptr inbounds i8, ptr %3, i64 72
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = getelementptr inbounds i8, ptr %123, i64 40
  store ptr %126, ptr %127, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %123, i32 noundef 1)
  %128 = getelementptr inbounds i8, ptr %3, i64 152
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = getelementptr inbounds i8, ptr %3, i64 72
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds i8, ptr %131, i64 32
  store ptr %129, ptr %132, align 8, !tbaa !15
  %133 = getelementptr inbounds i8, ptr %131, i64 40
  store ptr null, ptr %133, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %131, i32 noundef 1)
  br label %.preheader

134:                                              ; preds = %51, %47, %43, %39, %35, %31, %27, %23, %19, %.preheader45
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %138

136:                                              ; preds = %54, %50, %46, %42, %38, %34, %30, %26, %22, %17
  %.lcssa = phi ptr [ %14, %17 ], [ %21, %22 ], [ %25, %26 ], [ %29, %30 ], [ %33, %34 ], [ %37, %38 ], [ %41, %42 ], [ %45, %46 ], [ %49, %50 ], [ %53, %54 ]
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvRKN3tbb8internal19allocate_root_proxyE(ptr noundef %.lcssa, ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  br label %138

138:                                              ; preds = %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %295

.preheader:                                       ; preds = %.split.us, %.split.us.peel
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.split.us ], [ 1, %.split.us.peel ]
  %.not39 = icmp eq i64 %indvars.iv62, 9
  br i1 %.not39, label %.split.us.thread, label %.split.us

.split.us.thread:                                 ; preds = %.preheader
  %139 = getelementptr inbounds i8, ptr %3, i64 720
  %140 = load ptr, ptr %139, align 16, !tbaa !11
  %141 = getelementptr inbounds i8, ptr %140, i64 32
  store ptr null, ptr %141, align 8, !tbaa !15
  %142 = getelementptr inbounds i8, ptr %3, i64 728
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = getelementptr inbounds i8, ptr %140, i64 40
  store ptr %143, ptr %144, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %140, i32 noundef 1)
  %145 = getelementptr inbounds i8, ptr %3, i64 728
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = getelementptr inbounds i8, ptr %146, i64 32
  store ptr null, ptr %147, align 8, !tbaa !15
  %148 = getelementptr inbounds i8, ptr %3, i64 736
  %149 = load ptr, ptr %148, align 16, !tbaa !11
  %150 = getelementptr inbounds i8, ptr %146, i64 40
  store ptr %149, ptr %150, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %146, i32 noundef 2)
  %151 = getelementptr inbounds i8, ptr %3, i64 736
  %152 = load ptr, ptr %151, align 16, !tbaa !11
  %153 = getelementptr inbounds i8, ptr %152, i64 32
  store ptr null, ptr %153, align 8, !tbaa !15
  %154 = getelementptr inbounds i8, ptr %3, i64 744
  %155 = load ptr, ptr %154, align 8, !tbaa !11
  %156 = getelementptr inbounds i8, ptr %152, i64 40
  store ptr %155, ptr %156, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %152, i32 noundef 2)
  %157 = getelementptr inbounds i8, ptr %3, i64 744
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %158, i64 32
  store ptr null, ptr %159, align 8, !tbaa !15
  %160 = getelementptr inbounds i8, ptr %3, i64 752
  %161 = load ptr, ptr %160, align 16, !tbaa !11
  %162 = getelementptr inbounds i8, ptr %158, i64 40
  store ptr %161, ptr %162, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 noundef 2)
  %163 = getelementptr inbounds i8, ptr %3, i64 752
  %164 = load ptr, ptr %163, align 16, !tbaa !11
  %165 = getelementptr inbounds i8, ptr %164, i64 32
  store ptr null, ptr %165, align 8, !tbaa !15
  %166 = getelementptr inbounds i8, ptr %3, i64 760
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = getelementptr inbounds i8, ptr %164, i64 40
  store ptr %167, ptr %168, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %164, i32 noundef 2)
  %169 = getelementptr inbounds i8, ptr %3, i64 760
  %170 = load ptr, ptr %169, align 8, !tbaa !11
  %171 = getelementptr inbounds i8, ptr %170, i64 32
  store ptr null, ptr %171, align 8, !tbaa !15
  %172 = getelementptr inbounds i8, ptr %3, i64 768
  %173 = load ptr, ptr %172, align 16, !tbaa !11
  %174 = getelementptr inbounds i8, ptr %170, i64 40
  store ptr %173, ptr %174, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %170, i32 noundef 2)
  %175 = getelementptr inbounds i8, ptr %3, i64 768
  %176 = load ptr, ptr %175, align 16, !tbaa !11
  %177 = getelementptr inbounds i8, ptr %176, i64 32
  store ptr null, ptr %177, align 8, !tbaa !15
  %178 = getelementptr inbounds i8, ptr %3, i64 776
  %179 = load ptr, ptr %178, align 8, !tbaa !11
  %180 = getelementptr inbounds i8, ptr %176, i64 40
  store ptr %179, ptr %180, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %176, i32 noundef 2)
  %181 = getelementptr inbounds i8, ptr %3, i64 776
  %182 = load ptr, ptr %181, align 8, !tbaa !11
  %183 = getelementptr inbounds i8, ptr %182, i64 32
  store ptr null, ptr %183, align 8, !tbaa !15
  %184 = getelementptr inbounds i8, ptr %3, i64 784
  %185 = load ptr, ptr %184, align 16, !tbaa !11
  %186 = getelementptr inbounds i8, ptr %182, i64 40
  store ptr %185, ptr %186, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %182, i32 noundef 2)
  %187 = getelementptr inbounds i8, ptr %3, i64 784
  %188 = load ptr, ptr %187, align 16, !tbaa !11
  %189 = getelementptr inbounds i8, ptr %188, i64 32
  store ptr null, ptr %189, align 8, !tbaa !15
  %190 = getelementptr inbounds i8, ptr %3, i64 792
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  %192 = getelementptr inbounds i8, ptr %188, i64 40
  store ptr %191, ptr %192, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %188, i32 noundef 2)
  %193 = getelementptr inbounds i8, ptr %3, i64 792
  %194 = load ptr, ptr %193, align 8, !tbaa !11
  %195 = getelementptr inbounds i8, ptr %194, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %195, i8 0, i64 16, i1 false)
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %194, i32 noundef 2)
  %196 = getelementptr inbounds i8, ptr %3, i64 792
  %197 = load ptr, ptr %196, align 8, !tbaa !11
  call void @_ZN3tbb4task19increment_ref_countEv(ptr noundef nonnull align 8 dereferenceable(8) %197)
  %198 = load ptr, ptr %3, align 16, !tbaa !11
  invoke void @_ZN3tbb4task22spawn_and_wait_for_allERS0_(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef nonnull align 8 dereferenceable(8) %198)
          to label %277 unwind label %.loopexit.split-lp

.split.us:                                        ; preds = %.preheader
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %199 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 0
  %200 = load ptr, ptr %199, align 16, !tbaa !11
  %201 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 0
  %202 = load ptr, ptr %201, align 16, !tbaa !11
  %203 = getelementptr inbounds i8, ptr %202, i64 32
  store ptr %200, ptr %203, align 8, !tbaa !15
  %204 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 1
  %205 = load ptr, ptr %204, align 8, !tbaa !11
  %206 = getelementptr inbounds i8, ptr %202, i64 40
  store ptr %205, ptr %206, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %202, i32 noundef 1)
  %207 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 1
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  %209 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 1
  %210 = load ptr, ptr %209, align 8, !tbaa !11
  %211 = getelementptr inbounds i8, ptr %210, i64 32
  store ptr %208, ptr %211, align 8, !tbaa !15
  %212 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 2
  %213 = load ptr, ptr %212, align 16, !tbaa !11
  %214 = getelementptr inbounds i8, ptr %210, i64 40
  store ptr %213, ptr %214, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %210, i32 noundef 2)
  %215 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 2
  %216 = load ptr, ptr %215, align 16, !tbaa !11
  %217 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 2
  %218 = load ptr, ptr %217, align 16, !tbaa !11
  %219 = getelementptr inbounds i8, ptr %218, i64 32
  store ptr %216, ptr %219, align 8, !tbaa !15
  %220 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 3
  %221 = load ptr, ptr %220, align 8, !tbaa !11
  %222 = getelementptr inbounds i8, ptr %218, i64 40
  store ptr %221, ptr %222, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %218, i32 noundef 2)
  %223 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 3
  %224 = load ptr, ptr %223, align 8, !tbaa !11
  %225 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 3
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  %227 = getelementptr inbounds i8, ptr %226, i64 32
  store ptr %224, ptr %227, align 8, !tbaa !15
  %228 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 4
  %229 = load ptr, ptr %228, align 16, !tbaa !11
  %230 = getelementptr inbounds i8, ptr %226, i64 40
  store ptr %229, ptr %230, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %226, i32 noundef 2)
  %231 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 4
  %232 = load ptr, ptr %231, align 16, !tbaa !11
  %233 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 4
  %234 = load ptr, ptr %233, align 16, !tbaa !11
  %235 = getelementptr inbounds i8, ptr %234, i64 32
  store ptr %232, ptr %235, align 8, !tbaa !15
  %236 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 5
  %237 = load ptr, ptr %236, align 8, !tbaa !11
  %238 = getelementptr inbounds i8, ptr %234, i64 40
  store ptr %237, ptr %238, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %234, i32 noundef 2)
  %239 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 5
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 5
  %242 = load ptr, ptr %241, align 8, !tbaa !11
  %243 = getelementptr inbounds i8, ptr %242, i64 32
  store ptr %240, ptr %243, align 8, !tbaa !15
  %244 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 6
  %245 = load ptr, ptr %244, align 16, !tbaa !11
  %246 = getelementptr inbounds i8, ptr %242, i64 40
  store ptr %245, ptr %246, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %242, i32 noundef 2)
  %247 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 6
  %248 = load ptr, ptr %247, align 16, !tbaa !11
  %249 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 6
  %250 = load ptr, ptr %249, align 16, !tbaa !11
  %251 = getelementptr inbounds i8, ptr %250, i64 32
  store ptr %248, ptr %251, align 8, !tbaa !15
  %252 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 7
  %253 = load ptr, ptr %252, align 8, !tbaa !11
  %254 = getelementptr inbounds i8, ptr %250, i64 40
  store ptr %253, ptr %254, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %250, i32 noundef 2)
  %255 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 7
  %256 = load ptr, ptr %255, align 8, !tbaa !11
  %257 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 7
  %258 = load ptr, ptr %257, align 8, !tbaa !11
  %259 = getelementptr inbounds i8, ptr %258, i64 32
  store ptr %256, ptr %259, align 8, !tbaa !15
  %260 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 8
  %261 = load ptr, ptr %260, align 16, !tbaa !11
  %262 = getelementptr inbounds i8, ptr %258, i64 40
  store ptr %261, ptr %262, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %258, i32 noundef 2)
  %263 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 8
  %264 = load ptr, ptr %263, align 16, !tbaa !11
  %265 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 8
  %266 = load ptr, ptr %265, align 16, !tbaa !11
  %267 = getelementptr inbounds i8, ptr %266, i64 32
  store ptr %264, ptr %267, align 8, !tbaa !15
  %268 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 9
  %269 = load ptr, ptr %268, align 8, !tbaa !11
  %270 = getelementptr inbounds i8, ptr %266, i64 40
  store ptr %269, ptr %270, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %266, i32 noundef 2)
  %271 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv.next63, i64 9
  %272 = load ptr, ptr %271, align 8, !tbaa !11
  %273 = getelementptr inbounds [10 x [10 x ptr]], ptr %3, i64 0, i64 %indvars.iv62, i64 9
  %274 = load ptr, ptr %273, align 8, !tbaa !11
  %275 = getelementptr inbounds i8, ptr %274, i64 32
  store ptr %272, ptr %275, align 8, !tbaa !15
  %276 = getelementptr inbounds i8, ptr %274, i64 40
  store ptr null, ptr %276, align 8, !tbaa !20
  call void @_ZN3tbb4task13set_ref_countEi(ptr noundef nonnull align 8 dereferenceable(8) %274, i32 noundef 2)
  br label %.preheader, !llvm.loop !21

277:                                              ; preds = %.split.us.thread
  %278 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask15execution_countE)
          to label %279 unwind label %.loopexit.split-lp

279:                                              ; preds = %277
  %280 = icmp eq i32 %278, 99
  br i1 %280, label %282, label %281

281:                                              ; preds = %279
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 497, ptr noundef nonnull @.str.29, ptr noundef null)
          to label %282 unwind label %.loopexit.split-lp

282:                                              ; preds = %281, %279
  invoke void @_ZN3tbb10interface58internal9task_base7destroyERNS_4taskE(ptr noundef nonnull align 8 dereferenceable(8) %197)
          to label %283 unwind label %.loopexit.split-lp

283:                                              ; preds = %282
  %284 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask17destruction_countE)
          to label %285 unwind label %.loopexit.split-lp

285:                                              ; preds = %283
  %286 = sub nsw i32 100, %0
  %287 = icmp sgt i32 %284, %286
  br i1 %287, label %.preheader72, label %288

288:                                              ; preds = %285
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 499, ptr noundef nonnull @.str.30, ptr noundef null)
          to label %.preheader72 unwind label %.loopexit.split-lp

.preheader72:                                     ; preds = %288, %285
  br label %289

289:                                              ; preds = %.preheader72, %292
  %290 = invoke noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7DagTask17destruction_countE)
          to label %291 unwind label %.loopexit

291:                                              ; preds = %289
  %.not = icmp eq i32 %290, 100
  br i1 %.not, label %294, label %292

292:                                              ; preds = %291
  %293 = call i32 @sched_yield() #8
  br label %289, !llvm.loop !23

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

.loopexit.split-lp:                               ; preds = %.split.us.thread, %277, %281, %282, %283, %288
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %295

294:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #8
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret void

295:                                              ; preds = %.loopexit, %.loopexit.split-lp, %138
  %.pn.pn = phi { ptr, i32 } [ %.pn, %138 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #8
  br label %296

296:                                              ; preds = %295, %15
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %295 ], [ %16, %15 ]
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 32}
!16 = !{!"_ZTS7DagTask", !17, i64 0, !18, i64 8, !18, i64 12, !19, i64 16, !19, i64 24, !12, i64 32, !12, i64 40}
!17 = !{!"_ZTSN3tbb4taskE"}
!18 = !{!"int", !7, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!16, !12, i64 40}
!21 = distinct !{!21, !14, !22}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = distinct !{!23, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass