; LLVM IR from simbody/simbody :: SimTKcommon/src (ParallelExecutor)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%class.anon = type { ptr }
%"class.SimTK::ParallelExecutorImpl" = type <{ %"class.SimTK::PIMPLImplementation.base", i8, [3 x i8], %"class.std::mutex", %"class.std::condition_variable", %"class.std::condition_variable", %"class.SimTK::Array_", %"class.SimTK::Array_.0", ptr, i32, i32, i32, [4 x i8] }>
%"class.SimTK::PIMPLImplementation.base" = type <{ ptr, i32 }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.SimTK::Array_" = type { %"class.SimTK::ArrayView_" }
%"class.SimTK::ArrayView_" = type { %"class.SimTK::ArrayViewConst_" }
%"class.SimTK::ArrayViewConst_" = type { ptr, i32, i32 }
%"class.SimTK::Array_.0" = type { %"class.SimTK::ArrayView_.1" }
%"class.SimTK::ArrayView_.1" = type { %"class.SimTK::ArrayViewConst_.2" }
%"class.SimTK::ArrayViewConst_.2" = type { ptr, i32, i32 }
%"class.SimTK::ThreadInfo" = type <{ i32, [4 x i8], ptr, i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEi = external hidden unnamed_addr constant [73 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZNK5SimTK6Array_ISt6threadjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZN5SimTK6Array_INS_10ThreadInfoEjEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 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: nounwind
declare void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48)) #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5SimTK6Array_ISt6threadjEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEi(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::thread", align 8
  %11 = alloca %"class.std::reference_wrapper", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::unique_lock", align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.anon, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8
  %18 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 11
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp slt i32 %19, 2
  br i1 %20, label %21, label %45

21:                                               ; preds = %3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !25
  %24 = getelementptr inbounds ptr, ptr %23, i64 3
  %25 = load ptr, ptr %24, align 8
  call void %25(ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %37, %21
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %40

31:                                               ; preds = %26
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = load ptr, ptr %32, align 8, !tbaa !25
  %35 = getelementptr inbounds ptr, ptr %34, i64 2
  %36 = load ptr, ptr %35, align 8
  call void %36(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %33)
  br label %37

37:                                               ; preds = %31
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %7, align 4, !tbaa !9
  br label %26, !llvm.loop !27

40:                                               ; preds = %30
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  %43 = getelementptr inbounds ptr, ptr %42, i64 4
  %44 = load ptr, ptr %43, align 8
  call void %44(ptr noundef nonnull align 8 dereferenceable(8) %41)
  br label %128

45:                                               ; preds = %3
  %46 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 6
  %47 = call noundef i32 @_ZNK5SimTK6Array_ISt6threadjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %46)
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 11
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = icmp ult i64 %48, %51
  br i1 %52, label %53, label %93

53:                                               ; preds = %45
  %54 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 6
  %55 = call noundef i32 @_ZNK5SimTK6Array_ISt6threadjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  br label %60

58:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 90, ptr noundef @__PRETTY_FUNCTION__._ZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEi) #9
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  %61 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 7
  %62 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 11
  %63 = load i32, ptr %62, align 8, !tbaa !11
  call void @_ZN5SimTK6Array_INS_10ThreadInfoEjE7reserveEj(ptr noundef nonnull align 8 dereferenceable(16) %61, i32 noundef %63)
  %64 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 6
  %65 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 11
  %66 = load i32, ptr %65, align 8, !tbaa !11
  call void @_ZN5SimTK6Array_ISt6threadjE6resizeEj(ptr noundef nonnull align 8 dereferenceable(16) %64, i32 noundef %66)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %85, %60
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 11
  %70 = load i32, ptr %69, align 8, !tbaa !11
  %71 = icmp slt i32 %68, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %92

73:                                               ; preds = %67
  %74 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store ptr %17, ptr %9, align 8, !tbaa !5
  call void @_ZN5SimTK6Array_INS_10ThreadInfoEjE12emplace_backIJRiPNS_20ParallelExecutorImplEEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %75 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 7
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN5SimTK6Array_INS_10ThreadInfoEjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %75, i32 noundef %76)
  %78 = call ptr @_ZSt3refIN5SimTK10ThreadInfoEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(17) %77) #8
  %79 = getelementptr inbounds %"class.std::reference_wrapper", ptr %11, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  call void @_ZNSt6threadC2IRFvRN5SimTK10ThreadInfoEEJSt17reference_wrapperIS2_EEvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @_ZN5SimTKL10threadBodyERNS_10ThreadInfoE, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %80 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 6
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5SimTK6Array_ISt6threadjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %80, i32 noundef %81)
          to label %83 unwind label %88

83:                                               ; preds = %73
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6threadaSEOS_(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %85

85:                                               ; preds = %83
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %8, align 4, !tbaa !9
  br label %67, !llvm.loop !29

88:                                               ; preds = %73
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %12, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %13, align 4
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %134

92:                                               ; preds = %72
  br label %93

93:                                               ; preds = %92, %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %94 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 3
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %14, ptr noundef nonnull align 8 dereferenceable(40) %94)
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 8
  store ptr %95, ptr %96, align 8, !tbaa !30
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 9
  store i32 %97, ptr %98, align 8, !tbaa !31
  %99 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 10
  store i32 0, ptr %99, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %117, %93
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 7
  %103 = invoke noundef i32 @_ZNK5SimTK6Array_INS_10ThreadInfoEjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %102)
          to label %104 unwind label %107

104:                                              ; preds = %100
  %105 = icmp slt i32 %101, %103
  br i1 %105, label %111, label %106

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %120

107:                                              ; preds = %111, %100
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %133

111:                                              ; preds = %104
  %112 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 7
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZN5SimTK6Array_INS_10ThreadInfoEjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %112, i32 noundef %113)
          to label %115 unwind label %107

115:                                              ; preds = %111
  %116 = getelementptr inbounds %"class.SimTK::ThreadInfo", ptr %114, i32 0, i32 3
  store i8 1, ptr %116, align 8, !tbaa !33
  br label %117

117:                                              ; preds = %115
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %15, align 4, !tbaa !9
  br label %100, !llvm.loop !35

120:                                              ; preds = %106
  %121 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 4
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %121) #8
  %122 = getelementptr inbounds %"class.SimTK::ParallelExecutorImpl", ptr %17, i32 0, i32 5
  %123 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  store ptr %17, ptr %123, align 8, !tbaa !36
  %124 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  invoke void @"_ZNSt18condition_variable4waitIZN5SimTK20ParallelExecutorImpl7executeERNS1_16ParallelExecutor4TaskEiE3$_0EEvRSt11unique_lockISt5mutexET_"(ptr noundef nonnull align 8 dereferenceable(48) %122, ptr noundef nonnull align 8 dereferenceable(9) %14, ptr %125)
          to label %126 unwind label %129

126:                                              ; preds = %120
  invoke void @_ZNSt11unique_lockISt5mutexE6unlockEv(ptr noundef nonnull align 8 dereferenceable(9) %14)
          to label %127 unwind label %129

127:                                              ; preds = %126
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %128

128:                                              ; preds = %127, %40
  ret void

129:                                              ; preds = %126, %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %12, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %13, align 4
  br label %133

133:                                              ; preds = %129, %107
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %134

134:                                              ; preds = %133, %88
  %135 = load ptr, ptr %12, align 8
  %136 = load i32, ptr %13, align 4
  %137 = insertvalue { ptr, i32 } poison, ptr %135, 0
  %138 = insertvalue { ptr, i32 } %137, i32 %136, 1
  resume { ptr, i32 } %138
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5SimTK6Array_INS_10ThreadInfoEjE12emplace_backIJRiPNS_20ParallelExecutorImplEEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5SimTKL10threadBodyERNS_10ThreadInfoE(ptr noundef nonnull align 8 dereferenceable(17)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refIN5SimTK10ThreadInfoEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(17)) #6

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5SimTK6Array_INS_10ThreadInfoEjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #7 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt18condition_variable4waitIZN5SimTK20ParallelExecutorImpl7executeERNS1_16ParallelExecutor4TaskEiE3$_0EEvRSt11unique_lockISt5mutexET_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(9), ptr) #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 200}
!12 = !{!"_ZTSN5SimTK20ParallelExecutorImplE", !13, i64 0, !14, i64 12, !15, i64 16, !17, i64 56, !17, i64 104, !19, i64 152, !22, i64 168, !6, i64 184, !10, i64 192, !10, i64 196, !10, i64 200}
!13 = !{!"_ZTSN5SimTK19PIMPLImplementationINS_16ParallelExecutorENS_20ParallelExecutorImplEEE", !6, i64 0, !10, i64 8}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt5mutex", !16, i64 0}
!16 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!17 = !{!"_ZTSSt18condition_variable", !18, i64 0}
!18 = !{!"_ZTSSt9__condvar", !7, i64 0}
!19 = !{!"_ZTSN5SimTK6Array_ISt6threadjEE", !20, i64 0}
!20 = !{!"_ZTSN5SimTK10ArrayView_ISt6threadjEE", !21, i64 0}
!21 = !{!"_ZTSN5SimTK15ArrayViewConst_ISt6threadjEE", !6, i64 0, !10, i64 8, !10, i64 12}
!22 = !{!"_ZTSN5SimTK6Array_INS_10ThreadInfoEjEE", !23, i64 0}
!23 = !{!"_ZTSN5SimTK10ArrayView_INS_10ThreadInfoEjEE", !24, i64 0}
!24 = !{!"_ZTSN5SimTK15ArrayViewConst_INS_10ThreadInfoEjEE", !6, i64 0, !10, i64 8, !10, i64 12}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!12, !6, i64 184}
!31 = !{!12, !10, i64 192}
!32 = !{!12, !10, i64 196}
!33 = !{!34, !14, i64 16}
!34 = !{!"_ZTSN5SimTK10ThreadInfoE", !10, i64 0, !6, i64 8, !14, i64 16}
!35 = distinct !{!35, !28}
!36 = !{!37, !6, i64 0}
!37 = !{!"_ZTSZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEiE3$_0", !6, i64 0}


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

%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEi = external hidden unnamed_addr constant [73 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZNK5SimTK6Array_ISt6threadjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZN5SimTK6Array_INS_10ThreadInfoEjEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 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: nounwind
declare void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5SimTK6Array_ISt6threadjEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEi(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::thread", align 8
  %7 = alloca %"class.std::reference_wrapper", align 8
  %8 = alloca %"class.std::unique_lock", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 200
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = icmp slt i32 %10, 2
  br i1 %11, label %12, label %24

12:                                               ; preds = %3
  %13 = load ptr, ptr %1, align 8, !tbaa !23
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = load ptr, ptr %14, align 8
  tail call void %15(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %16 = icmp sgt i32 %2, 0
  br i1 %16, label %.lr.ph27, label %._crit_edge28

._crit_edge28:                                    ; preds = %.lr.ph27, %12
  %17 = load ptr, ptr %1, align 8, !tbaa !23
  %18 = getelementptr inbounds i8, ptr %17, i64 32
  %19 = load ptr, ptr %18, align 8
  tail call void %19(ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %74

.lr.ph27:                                         ; preds = %12, %.lr.ph27
  %.025 = phi i32 [ %23, %.lr.ph27 ], [ 0, %12 ]
  %20 = load ptr, ptr %1, align 8, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = load ptr, ptr %21, align 8
  tail call void %22(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %.025)
  %23 = add nuw nsw i32 %.025, 1
  %exitcond.not = icmp eq i32 %23, %2
  br i1 %exitcond.not, label %._crit_edge28, label %.lr.ph27, !llvm.loop !25

24:                                               ; preds = %3
  %25 = getelementptr inbounds i8, ptr %0, i64 152
  %26 = tail call noundef i32 @_ZNK5SimTK6Array_ISt6threadjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  %27 = zext i32 %26 to i64
  %28 = load i32, ptr %9, align 8, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp ult i64 %27, %29
  br i1 %30, label %31, label %54

31:                                               ; preds = %24
  %32 = tail call noundef i32 @_ZNK5SimTK6Array_ISt6threadjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 90, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5SimTK20ParallelExecutorImpl7executeERNS_16ParallelExecutor4TaskEi) #8
  unreachable

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %0, i64 168
  %37 = load i32, ptr %9, align 8, !tbaa !5
  tail call void @_ZN5SimTK6Array_INS_10ThreadInfoEjE7reserveEj(ptr noundef nonnull align 8 dereferenceable(16) %36, i32 noundef %37)
  %38 = load i32, ptr %9, align 8, !tbaa !5
  tail call void @_ZN5SimTK6Array_ISt6threadjE6resizeEj(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 0, ptr %4, align 4, !tbaa !27
  %39 = load i32, ptr %9, align 8, !tbaa !5
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %46, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %54

.lr.ph:                                           ; preds = %35, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr %0, ptr %5, align 8, !tbaa !28
  call void @_ZN5SimTK6Array_INS_10ThreadInfoEjE12emplace_backIJRiPNS_20ParallelExecutorImplEEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %41 = load i32, ptr %4, align 4, !tbaa !27
  %42 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN5SimTK6Array_INS_10ThreadInfoEjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %36, i32 noundef %41)
  %43 = call ptr @_ZSt3refIN5SimTK10ThreadInfoEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(17) %42) #9
  store ptr %43, ptr %7, align 8
  call void @_ZNSt6threadC2IRFvRN5SimTK10ThreadInfoEEJSt17reference_wrapperIS2_EEvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @_ZN5SimTKL10threadBodyERNS_10ThreadInfoE, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %44 = load i32, ptr %4, align 4, !tbaa !27
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5SimTK6Array_ISt6threadjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %44)
          to label %46 unwind label %52

46:                                               ; preds = %.lr.ph
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6threadaSEOS_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %48 = load i32, ptr %4, align 4, !tbaa !27
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %4, align 4, !tbaa !27
  %50 = load i32, ptr %9, align 8, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.lr.ph, label %._crit_edge, !llvm.loop !29

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %78

54:                                               ; preds = %._crit_edge, %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %8, ptr noundef nonnull align 8 dereferenceable(40) %55)
  %56 = getelementptr inbounds i8, ptr %0, i64 184
  store ptr %1, ptr %56, align 8, !tbaa !30
  %57 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 %2, ptr %57, align 8, !tbaa !31
  %58 = getelementptr inbounds i8, ptr %0, i64 196
  store i32 0, ptr %58, align 4, !tbaa !32
  %59 = getelementptr inbounds i8, ptr %0, i64 168
  %60 = call noundef i32 @_ZNK5SimTK6Array_INS_10ThreadInfoEjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph23, label %._crit_edge24

._crit_edge24:                                    ; preds = %67, %54
  %62 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %62) #9
  %63 = getelementptr inbounds i8, ptr %0, i64 104
  invoke void @"_ZNSt18condition_variable4waitIZN5SimTK20ParallelExecutorImpl7executeERNS1_16ParallelExecutor4TaskEiE3$_0EEvRSt11unique_lockISt5mutexET_"(ptr noundef nonnull align 8 dereferenceable(48) %63, ptr noundef nonnull align 8 dereferenceable(9) %8, ptr nonnull %0)
          to label %72 unwind label %75

64:                                               ; preds = %.lr.ph23
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %77

.lr.ph23:                                         ; preds = %54, %67
  %.01421 = phi i32 [ %69, %67 ], [ 0, %54 ]
  %66 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZN5SimTK6Array_INS_10ThreadInfoEjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %59, i32 noundef %.01421)
          to label %67 unwind label %64

67:                                               ; preds = %.lr.ph23
  %68 = getelementptr inbounds i8, ptr %66, i64 16
  store i8 1, ptr %68, align 8, !tbaa !33
  %69 = add nuw nsw i32 %.01421, 1
  %70 = call noundef i32 @_ZNK5SimTK6Array_INS_10ThreadInfoEjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %.lr.ph23, label %._crit_edge24, !llvm.loop !35

72:                                               ; preds = %._crit_edge24
  invoke void @_ZNSt11unique_lockISt5mutexE6unlockEv(ptr noundef nonnull align 8 dereferenceable(9) %8)
          to label %73 unwind label %75

73:                                               ; preds = %72
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %74

74:                                               ; preds = %73, %._crit_edge28
  ret void

75:                                               ; preds = %72, %._crit_edge24
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %77

77:                                               ; preds = %75, %64
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %76, %75 ]
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %78

78:                                               ; preds = %77, %52
  %.pn19 = phi { ptr, i32 } [ %53, %52 ], [ %.pn, %77 ]
  resume { ptr, i32 } %.pn19
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5SimTKL10threadBodyERNS_10ThreadInfoE(ptr noundef nonnull align 8 dereferenceable(17)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refIN5SimTK10ThreadInfoEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #6

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5SimTK6Array_INS_10ThreadInfoEjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt18condition_variable4waitIZN5SimTK20ParallelExecutorImpl7executeERNS1_16ParallelExecutor4TaskEiE3$_0EEvRSt11unique_lockISt5mutexET_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(9), ptr) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { alwaysinline 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { noreturn 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 = { 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 #7 = { alwaysinline 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 #8 = { noreturn nounwind }
attributes #9 = { 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, !11, i64 200}
!6 = !{!"_ZTSN5SimTK20ParallelExecutorImplE", !7, i64 0, !12, i64 12, !13, i64 16, !15, i64 56, !15, i64 104, !17, i64 152, !20, i64 168, !8, i64 184, !11, i64 192, !11, i64 196, !11, i64 200}
!7 = !{!"_ZTSN5SimTK19PIMPLImplementationINS_16ParallelExecutorENS_20ParallelExecutorImplEEE", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"_ZTSSt5mutex", !14, i64 0}
!14 = !{!"_ZTSSt12__mutex_base", !9, i64 0}
!15 = !{!"_ZTSSt18condition_variable", !16, i64 0}
!16 = !{!"_ZTSSt9__condvar", !9, i64 0}
!17 = !{!"_ZTSN5SimTK6Array_ISt6threadjEE", !18, i64 0}
!18 = !{!"_ZTSN5SimTK10ArrayView_ISt6threadjEE", !19, i64 0}
!19 = !{!"_ZTSN5SimTK15ArrayViewConst_ISt6threadjEE", !8, i64 0, !11, i64 8, !11, i64 12}
!20 = !{!"_ZTSN5SimTK6Array_INS_10ThreadInfoEjEE", !21, i64 0}
!21 = !{!"_ZTSN5SimTK10ArrayView_INS_10ThreadInfoEjEE", !22, i64 0}
!22 = !{!"_ZTSN5SimTK15ArrayViewConst_INS_10ThreadInfoEjEE", !8, i64 0, !11, i64 8, !11, i64 12}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !10, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!11, !11, i64 0}
!28 = !{!8, !8, i64 0}
!29 = distinct !{!29, !26}
!30 = !{!6, !8, i64 184}
!31 = !{!6, !11, i64 192}
!32 = !{!6, !11, i64 196}
!33 = !{!34, !12, i64 16}
!34 = !{!"_ZTSN5SimTK10ThreadInfoE", !11, i64 0, !8, i64 8, !12, i64 16}
!35 = distinct !{!35, !26}


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