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

; 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.tbb::internal::allocate_root_proxy" = type { i8 }
%"class.tbb::internal::allocate_root_with_context_proxy" = type { ptr }
%class.TestContextFpuEnvBody = type { i32, i32, i32 }

@contexts = external dso_local global [16 x ptr], align 16

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK21TestContextFpuEnvBodyclERKN3tbb13blocked_rangeIiEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.tbb::internal::allocate_root_proxy", align 1
  %8 = alloca %"class.tbb::internal::allocate_root_proxy", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.tbb::internal::allocate_root_with_context_proxy", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !9
  call void @_Z10AssertModei(i32 noundef %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %16 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 1
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 2
  %19 = load i32, ptr %18, align 4, !tbaa !12
  %20 = add nsw i32 %19, 2
  %21 = call noundef i32 @_Z11SetNextModeii(i32 noundef %17, i32 noundef %20)
  store i32 %21, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK3tbb13blocked_rangeIiE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  store i32 %23, ptr %6, align 4, !tbaa !13
  %24 = load i32, ptr %6, align 4, !tbaa !13
  %25 = sub nsw i32 %24, 1
  %26 = icmp eq i32 %25, 16
  br i1 %26, label %27, label %43

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  call void @_ZN3tbb4task13allocate_rootEv()
  %28 = call noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 24, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %29 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 0
  %30 = load i32, ptr %29, align 4, !tbaa !14
  %31 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 2
  %34 = load i32, ptr %33, align 4, !tbaa !12
  invoke void @_ZN21TestContextFpuEnvTaskC2Eiii(ptr noundef nonnull align 8 dereferenceable(20) %28, i32 noundef %30, i32 noundef %32, i32 noundef %34)
          to label %35 unwind label %39

35:                                               ; preds = %27
  call void @_ZN3tbb4task19spawn_root_and_waitERS0_(ptr noundef nonnull align 8 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  %36 = load i32, ptr %5, align 4, !tbaa !13
  call void @_Z10AssertModei(i32 noundef %36)
  %37 = load i32, ptr %6, align 4, !tbaa !13
  %38 = add nsw i32 %37, -1
  store i32 %38, ptr %6, align 4, !tbaa !13
  br label %43

39:                                               ; preds = %27
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %9, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %10, align 4
  call void @_ZdlPvRKN3tbb8internal19allocate_root_proxyE(ptr noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %76

43:                                               ; preds = %35, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK3tbb13blocked_rangeIiE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  store i32 %45, ptr %11, align 4, !tbaa !13
  br label %46

46:                                               ; preds = %66, %43
  %47 = load i32, ptr %11, align 4, !tbaa !13
  %48 = load i32, ptr %6, align 4, !tbaa !13
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %73

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %52 = load i32, ptr %11, align 4, !tbaa !13
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [16 x ptr], ptr @contexts, i64 0, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = call ptr @_ZN3tbb4task13allocate_rootERNS_18task_group_contextE(ptr noundef nonnull align 8 dereferenceable(256) %55)
  %57 = getelementptr inbounds %"class.tbb::internal::allocate_root_with_context_proxy", ptr %12, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  %58 = call noundef ptr @_ZnwmRKN3tbb8internal32allocate_root_with_context_proxyE(i64 noundef 24, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %59 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !14
  %61 = load i32, ptr %11, align 4, !tbaa !13
  %62 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 2
  %63 = load i32, ptr %62, align 4, !tbaa !12
  invoke void @_ZN21TestContextFpuEnvTaskC2Eiii(ptr noundef nonnull align 8 dereferenceable(20) %58, i32 noundef %60, i32 noundef %61, i32 noundef %63)
          to label %64 unwind label %69

64:                                               ; preds = %51
  call void @_ZN3tbb4task19spawn_root_and_waitERS0_(ptr noundef nonnull align 8 dereferenceable(8) %58)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %65 = load i32, ptr %5, align 4, !tbaa !13
  call void @_Z10AssertModei(i32 noundef %65)
  br label %66

66:                                               ; preds = %64
  %67 = load i32, ptr %11, align 4, !tbaa !13
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %11, align 4, !tbaa !13
  br label %46, !llvm.loop !15

69:                                               ; preds = %51
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @_ZdlPvRKN3tbb8internal32allocate_root_with_context_proxyE(ptr noundef %58, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %76

73:                                               ; preds = %50
  %74 = getelementptr inbounds %class.TestContextFpuEnvBody, ptr %13, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !9
  call void @_Z7SetModei(i32 noundef %75)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void

76:                                               ; preds = %69, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr %9, align 8
  %79 = load i32, ptr %10, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10AssertModei(i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11SetNextModeii(i32 noundef, i32 noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb4task13allocate_rootEv() #3 align 2

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

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

; 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 noundef i32 @_ZNK3tbb13blocked_rangeIiE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z7SetModei(i32 noundef) #4

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

!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, !11, i64 4}
!10 = !{!"_ZTS21TestContextFpuEnvBody", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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.tbb::internal::allocate_root_proxy" = type { i8 }
%"class.tbb::internal::allocate_root_with_context_proxy" = type { ptr }

@contexts = external dso_local local_unnamed_addr global [16 x ptr], align 16

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK21TestContextFpuEnvBodyclERKN3tbb13blocked_rangeIiEE(ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.tbb::internal::allocate_root_proxy", align 1
  %4 = alloca %"class.tbb::internal::allocate_root_with_context_proxy", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  tail call void @_Z10AssertModei(i32 noundef %6)
  %7 = load i32, ptr %5, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 4, !tbaa !10
  %10 = add nsw i32 %9, 2
  %11 = tail call noundef i32 @_Z11SetNextModeii(i32 noundef %7, i32 noundef %10)
  %12 = tail call noundef i32 @_ZNK3tbb13blocked_rangeIiE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %13 = icmp eq i32 %12, 17
  br i1 %13, label %14, label %22

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  tail call void @_ZN3tbb4task13allocate_rootEv()
  %15 = call noundef ptr @_ZnwmRKN3tbb8internal19allocate_root_proxyE(i64 noundef 24, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %16 = load i32, ptr %0, align 4, !tbaa !11
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = load i32, ptr %8, align 4, !tbaa !10
  invoke void @_ZN21TestContextFpuEnvTaskC2Eiii(ptr noundef nonnull align 8 dereferenceable(20) %15, i32 noundef %16, i32 noundef %17, i32 noundef %18)
          to label %19 unwind label %20

19:                                               ; preds = %14
  call void @_ZN3tbb4task19spawn_root_and_waitERS0_(ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  call void @_Z10AssertModei(i32 noundef %11)
  br label %22

20:                                               ; preds = %14
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvRKN3tbb8internal19allocate_root_proxyE(ptr noundef %15, ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %37

22:                                               ; preds = %19, %2
  %.015 = phi i32 [ 16, %19 ], [ %12, %2 ]
  %23 = call noundef i32 @_ZNK3tbb13blocked_rangeIiE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %24 = icmp slt i32 %23, %.015
  br i1 %24, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %22
  %25 = sext i32 %23 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %34, %22
  %26 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z7SetModei(i32 noundef %26)
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %34
  %indvars.iv = phi i64 [ %25, %.lr.ph.preheader ], [ %indvars.iv.next, %34 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %27 = getelementptr inbounds [16 x ptr], ptr @contexts, i64 0, i64 %indvars.iv
  %28 = load ptr, ptr %27, align 8, !tbaa !12
  %29 = call ptr @_ZN3tbb4task13allocate_rootERNS_18task_group_contextE(ptr noundef nonnull align 8 dereferenceable(256) %28)
  store ptr %29, ptr %4, align 8
  %30 = call noundef ptr @_ZnwmRKN3tbb8internal32allocate_root_with_context_proxyE(i64 noundef 24, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %31 = load i32, ptr %0, align 4, !tbaa !11
  %32 = load i32, ptr %8, align 4, !tbaa !10
  %33 = trunc nsw i64 %indvars.iv to i32
  invoke void @_ZN21TestContextFpuEnvTaskC2Eiii(ptr noundef nonnull align 8 dereferenceable(20) %30, i32 noundef %31, i32 noundef %33, i32 noundef %32)
          to label %34 unwind label %35

34:                                               ; preds = %.lr.ph
  call void @_ZN3tbb4task19spawn_root_and_waitERS0_(ptr noundef nonnull align 8 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_Z10AssertModei(i32 noundef %11)
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %.015, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

35:                                               ; preds = %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvRKN3tbb8internal32allocate_root_with_context_proxyE(ptr noundef %30, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %37

37:                                               ; preds = %35, %20
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %21, %20 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10AssertModei(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11SetNextModeii(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb4task13allocate_rootEv() local_unnamed_addr #3 align 2

; 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 #2

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

; 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 noundef i32 @_ZNK3tbb13blocked_rangeIiE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z7SetModei(i32 noundef) local_unnamed_addr #4

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

!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, !7, i64 4}
!6 = !{!"_ZTS21TestContextFpuEnvBody", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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