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

; 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::task_scheduler_init" = type { ptr }
%class.RoundingModeCheckBody = type { i32, i32 }

@_ZL8SseModes = external hidden constant [4 x i32], align 16
@_ZL13RoundingModes = external hidden constant [4 x i32], align 16
@.str.17 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26TestArenaFpuEnvPropagationi(i32 noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.tbb::task_scheduler_init", align 8
  %9 = alloca %class.RoundingModeCheckBody, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %63, %1
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 4
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %66

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add nsw i32 %17, %18
  %20 = srem i32 %19, 4
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [4 x i32], ptr @_ZL8SseModes, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %23, ptr %5, align 4, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z10SetSseModei(i32 noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %50, %16
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 4
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %62

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = add nsw i32 %30, %31
  %33 = srem i32 %32, 4
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [4 x i32], ptr @_ZL13RoundingModes, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  store i32 %36, ptr %7, align 4, !tbaa !5
  %37 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z15SetRoundingModei(i32 noundef %37)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef -1, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @_ZN21RoundingModeCheckBodyC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %38, i32 noundef %39)
          to label %40 unwind label %53

40:                                               ; preds = %29
  invoke void @_ZN3tbb10strict_ppl12parallel_forIi21RoundingModeCheckBodyEEvT_S3_S3_RKT0_(i32 noundef 0, i32 noundef 500000, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %41 unwind label %53

41:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %42 = invoke noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext true)
          to label %43 unwind label %57

43:                                               ; preds = %41
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = icmp eq i32 %42, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %49

47:                                               ; preds = %43
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 86, ptr noundef @.str.18, ptr noundef null)
          to label %48 unwind label %57

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48, %46
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %6, align 4, !tbaa !5
  br label %25, !llvm.loop !9

53:                                               ; preds = %40, %29
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %61

57:                                               ; preds = %47, %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  br label %61

61:                                               ; preds = %57, %53
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %67

62:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %3, align 4, !tbaa !5
  br label %12, !llvm.loop !11

66:                                               ; preds = %15
  ret void

67:                                               ; preds = %61
  %68 = load ptr, ptr %10, align 8
  %69 = load i32, ptr %11, align 4
  %70 = insertvalue { ptr, i32 } poison, ptr %68, 0
  %71 = insertvalue { ptr, i32 } %70, i32 %69, 1
  resume { ptr, i32 } %71
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext) #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; 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::task_scheduler_init" = type { ptr }
%class.RoundingModeCheckBody = type { i32, i32 }

@_ZL8SseModes = external hidden local_unnamed_addr constant [4 x i32], align 16
@_ZL13RoundingModes = external hidden local_unnamed_addr constant [4 x i32], align 16
@.str.17 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 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 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 #1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26TestArenaFpuEnvPropagationi(i32 noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.tbb::task_scheduler_init", align 8
  %3 = alloca %class.RoundingModeCheckBody, align 4
  %4 = srem i32 %0, 4
  %5 = sext i32 %4 to i64
  %6 = getelementptr inbounds [4 x i32], ptr @_ZL13RoundingModes, i64 0, i64 %5
  %7 = add nsw i32 %0, 1
  %8 = srem i32 %7, 4
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [4 x i32], ptr @_ZL13RoundingModes, i64 0, i64 %9
  %11 = add nsw i32 %0, 2
  %12 = srem i32 %11, 4
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [4 x i32], ptr @_ZL13RoundingModes, i64 0, i64 %13
  %15 = add nsw i32 %0, 3
  %16 = srem i32 %15, 4
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [4 x i32], ptr @_ZL13RoundingModes, i64 0, i64 %17
  br label %20

19:                                               ; preds = %53
  ret void

20:                                               ; preds = %1, %53
  %.01519 = phi i32 [ 0, %1 ], [ %54, %53 ]
  %21 = add nsw i32 %.01519, %0
  %22 = srem i32 %21, 4
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [4 x i32], ptr @_ZL8SseModes, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z10SetSseModei(i32 noundef %25)
  %26 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z15SetRoundingModei(i32 noundef %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN21RoundingModeCheckBodyC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %26, i32 noundef %25)
  invoke void @_ZN3tbb10strict_ppl12parallel_forIi21RoundingModeCheckBodyEEvT_S3_S3_RKT0_(i32 noundef 0, i32 noundef 500000, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %27 unwind label %55

27:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %28 = invoke noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext true)
          to label %29 unwind label %57

29:                                               ; preds = %27
  %30 = icmp eq i32 %28, %26
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 86, ptr noundef nonnull @.str.18, ptr noundef null)
          to label %32 unwind label %57

32:                                               ; preds = %31, %29
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %33 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z15SetRoundingModei(i32 noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN21RoundingModeCheckBodyC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %33, i32 noundef %25)
  invoke void @_ZN3tbb10strict_ppl12parallel_forIi21RoundingModeCheckBodyEEvT_S3_S3_RKT0_(i32 noundef 0, i32 noundef 500000, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %34 unwind label %55

34:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %35 = invoke noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext true)
          to label %36 unwind label %57

36:                                               ; preds = %34
  %37 = icmp eq i32 %35, %33
  br i1 %37, label %39, label %38

38:                                               ; preds = %36
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 86, ptr noundef nonnull @.str.18, ptr noundef null)
          to label %39 unwind label %57

39:                                               ; preds = %38, %36
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %40 = load i32, ptr %14, align 4, !tbaa !5
  call void @_Z15SetRoundingModei(i32 noundef %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN21RoundingModeCheckBodyC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %40, i32 noundef %25)
  invoke void @_ZN3tbb10strict_ppl12parallel_forIi21RoundingModeCheckBodyEEvT_S3_S3_RKT0_(i32 noundef 0, i32 noundef 500000, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %41 unwind label %55

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %42 = invoke noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext true)
          to label %43 unwind label %57

43:                                               ; preds = %41
  %44 = icmp eq i32 %42, %40
  br i1 %44, label %46, label %45

45:                                               ; preds = %43
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 86, ptr noundef nonnull @.str.18, ptr noundef null)
          to label %46 unwind label %57

46:                                               ; preds = %45, %43
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %47 = load i32, ptr %18, align 4, !tbaa !5
  call void @_Z15SetRoundingModei(i32 noundef %47)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN21RoundingModeCheckBodyC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %47, i32 noundef %25)
  invoke void @_ZN3tbb10strict_ppl12parallel_forIi21RoundingModeCheckBodyEEvT_S3_S3_RKT0_(i32 noundef 0, i32 noundef 500000, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %48 unwind label %55

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %49 = invoke noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext true)
          to label %50 unwind label %57

50:                                               ; preds = %48
  %51 = icmp eq i32 %49, %47
  br i1 %51, label %53, label %52

52:                                               ; preds = %50
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 86, ptr noundef nonnull @.str.18, ptr noundef null)
          to label %53 unwind label %57

53:                                               ; preds = %52, %50
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %54 = add nuw nsw i32 %.01519, 1
  %exitcond.not = icmp eq i32 %54, 4
  br i1 %exitcond.not, label %19, label %20, !llvm.loop !9

55:                                               ; preds = %46, %39, %32, %20
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %59

57:                                               ; preds = %52, %48, %45, %41, %38, %34, %31, %27
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z15GetRoundingModeb(i1 noundef zeroext) 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass