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

; 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"

%"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 }
%"struct.rml::MemPoolPolicy" = type { ptr, ptr, i64, i32, i32 }

@.str.20 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@_ZL11liveRegions = external hidden global %"struct.tbb::atomic", align 4
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [36 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
define dso_local void @_Z13TestPoolResetv() #1 {
  %1 = alloca %"struct.rml::MemPoolPolicy", align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #4
  call void @_ZN3rml13MemPoolPolicyC2EPFPvlRmEPFilS1_mEmbb(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @_ZL12getMallocMemlRm, ptr noundef @_ZL12putMallocMemlPvm, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %7 = call noundef i32 @_ZN3rml14pool_create_v1ElPKNS_13MemPoolPolicyEPPNS_10MemoryPoolE(i64 noundef 0, ptr noundef %1, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %25, %0
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 100
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %28

12:                                               ; preds = %8
  %13 = load ptr, ptr %2, align 8, !tbaa !9
  %14 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %13, i64 noundef 8)
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  br label %18

17:                                               ; preds = %12
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 94, ptr noundef @.str.21, ptr noundef null)
  br label %18

18:                                               ; preds = %17, %16
  %19 = load ptr, ptr %2, align 8, !tbaa !9
  %20 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %19, i64 noundef 51200)
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %18
  br label %24

23:                                               ; preds = %18
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 95, ptr noundef @.str.22, ptr noundef null)
  br label %24

24:                                               ; preds = %23, %22
  br label %25

25:                                               ; preds = %24
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %3, align 4, !tbaa !5
  br label %8, !llvm.loop !11

28:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %29 = call noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL11liveRegions)
  store i32 %29, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  %30 = load ptr, ptr %2, align 8, !tbaa !9
  %31 = call noundef zeroext i1 @_ZN3rml10pool_resetEPNS_10MemoryPoolE(ptr noundef %30)
  %32 = zext i1 %31 to i8
  store i8 %32, ptr %5, align 1, !tbaa !13
  %33 = load i8, ptr %5, align 1, !tbaa !13, !range !15, !noundef !16
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %36

35:                                               ; preds = %28
  br label %37

36:                                               ; preds = %28
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 99, ptr noundef @.str.23, ptr noundef null)
  br label %37

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

38:                                               ; preds = %55, %37
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 100
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %58

42:                                               ; preds = %38
  %43 = load ptr, ptr %2, align 8, !tbaa !9
  %44 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %43, i64 noundef 8)
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  br label %48

47:                                               ; preds = %42
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 101, ptr noundef @.str.21, ptr noundef null)
  br label %48

48:                                               ; preds = %47, %46
  %49 = load ptr, ptr %2, align 8, !tbaa !9
  %50 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %49, i64 noundef 51200)
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  br label %54

53:                                               ; preds = %48
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 102, ptr noundef @.str.22, ptr noundef null)
  br label %54

54:                                               ; preds = %53, %52
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %6, align 4, !tbaa !5
  br label %38, !llvm.loop !17

58:                                               ; preds = %41
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = call noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL11liveRegions)
  %61 = icmp eq i32 %59, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  br label %64

63:                                               ; preds = %58
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 105, ptr noundef @.str.24, ptr noundef @.str.25)
  br label %64

64:                                               ; preds = %63, %62
  %65 = load ptr, ptr %2, align 8, !tbaa !9
  %66 = call noundef zeroext i1 @_ZN3rml12pool_destroyEPNS_10MemoryPoolE(ptr noundef %65)
  %67 = zext i1 %66 to i8
  store i8 %67, ptr %5, align 1, !tbaa !13
  %68 = load i8, ptr %5, align 1, !tbaa !13, !range !15, !noundef !16
  %69 = trunc i8 %68 to i1
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  br label %72

71:                                               ; preds = %64
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 107, ptr noundef @.str.23, ptr noundef null)
  br label %72

72:                                               ; preds = %71, %70
  %73 = call noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL11liveRegions)
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  br label %77

76:                                               ; preds = %72
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.20, i32 noundef 108, ptr noundef @.str.26, ptr noundef @.str.27)
  br label %77

77:                                               ; preds = %76, %75
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL12getMallocMemlRm(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12putMallocMemlPvm(i64 noundef, ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rml13MemPoolPolicyC2EPFPvlRmEPFilS1_mEmbb(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #2 align 2

declare noundef i32 @_ZN3rml14pool_create_v1ElPKNS_13MemPoolPolicyEPPNS_10MemoryPoolE(i64 noundef, ptr noundef, ptr noundef) #3

declare noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef, i64 noundef) #3

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

declare noundef zeroext i1 @_ZN3rml10pool_resetEPNS_10MemoryPoolE(ptr noundef) #3

declare noundef zeroext i1 @_ZN3rml12pool_destroyEPNS_10MemoryPoolE(ptr noundef) #3

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 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !12}


; 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"

%"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 }
%"struct.rml::MemPoolPolicy" = type { ptr, ptr, i64, i32, i32 }

@.str.20 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@_ZL11liveRegions = external hidden global %"struct.tbb::atomic", align 4
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [36 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
define dso_local void @_Z13TestPoolResetv() local_unnamed_addr #1 {
  %1 = alloca %"struct.rml::MemPoolPolicy", align 8
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @_ZN3rml13MemPoolPolicyC2EPFPvlRmEPFilS1_mEmbb(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @_ZL12getMallocMemlRm, ptr noundef nonnull @_ZL12putMallocMemlPvm, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %3 = call noundef i32 @_ZN3rml14pool_create_v1ElPKNS_13MemPoolPolicyEPPNS_10MemoryPoolE(i64 noundef 0, ptr noundef nonnull %1, ptr noundef nonnull %2)
  br label %8

4:                                                ; preds = %16
  %5 = call noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL11liveRegions)
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = call noundef zeroext i1 @_ZN3rml10pool_resetEPNS_10MemoryPoolE(ptr noundef %6)
  br i1 %7, label %.preheader, label %18

8:                                                ; preds = %0, %16
  %.0712 = phi i32 [ 0, %0 ], [ %17, %16 ]
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %9, i64 noundef 8)
  %.not10 = icmp eq ptr %10, null
  br i1 %.not10, label %11, label %12

11:                                               ; preds = %8
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 94, ptr noundef nonnull @.str.21, ptr noundef null)
  br label %12

12:                                               ; preds = %8, %11
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %13, i64 noundef 51200)
  %.not11 = icmp eq ptr %14, null
  br i1 %.not11, label %15, label %16

15:                                               ; preds = %12
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 95, ptr noundef nonnull @.str.22, ptr noundef null)
  br label %16

16:                                               ; preds = %15, %12
  %17 = add nuw nsw i32 %.0712, 1
  %exitcond.not = icmp eq i32 %17, 100
  br i1 %exitcond.not, label %4, label %8, !llvm.loop !9

18:                                               ; preds = %4
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 99, ptr noundef nonnull @.str.23, ptr noundef null)
  br label %.preheader

.preheader:                                       ; preds = %4, %18
  br label %22

19:                                               ; preds = %30
  %20 = call noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL11liveRegions)
  %21 = icmp eq i32 %5, %20
  br i1 %21, label %33, label %32

22:                                               ; preds = %.preheader, %30
  %.013 = phi i32 [ %31, %30 ], [ 0, %.preheader ]
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %23, i64 noundef 8)
  %.not8 = icmp eq ptr %24, null
  br i1 %.not8, label %25, label %26

25:                                               ; preds = %22
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 101, ptr noundef nonnull @.str.21, ptr noundef null)
  br label %26

26:                                               ; preds = %22, %25
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = call noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef %27, i64 noundef 51200)
  %.not9 = icmp eq ptr %28, null
  br i1 %.not9, label %29, label %30

29:                                               ; preds = %26
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 102, ptr noundef nonnull @.str.22, ptr noundef null)
  br label %30

30:                                               ; preds = %29, %26
  %31 = add nuw nsw i32 %.013, 1
  %exitcond14.not = icmp eq i32 %31, 100
  br i1 %exitcond14.not, label %19, label %22, !llvm.loop !11

32:                                               ; preds = %19
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 105, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.25)
  br label %33

33:                                               ; preds = %19, %32
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = call noundef zeroext i1 @_ZN3rml12pool_destroyEPNS_10MemoryPoolE(ptr noundef %34)
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 107, ptr noundef nonnull @.str.23, ptr noundef null)
  br label %37

37:                                               ; preds = %33, %36
  %38 = call noundef i32 @_ZNVK3tbb8internal11atomic_implIiEcviEv(ptr noundef nonnull align 4 dereferenceable(4) @_ZL11liveRegions)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %40, label %39

39:                                               ; preds = %37
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.20, i32 noundef 108, ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.27)
  br label %40

40:                                               ; preds = %37, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL12getMallocMemlRm(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12putMallocMemlPvm(i64 noundef, ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rml13MemPoolPolicyC2EPFPvlRmEPFilS1_mEmbb(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #2 align 2

declare noundef i32 @_ZN3rml14pool_create_v1ElPKNS_13MemPoolPolicyEPPNS_10MemoryPoolE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef ptr @_ZN3rml11pool_mallocEPNS_10MemoryPoolEm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN3rml10pool_resetEPNS_10MemoryPoolE(ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN3rml12pool_destroyEPNS_10MemoryPoolE(ptr noundef) local_unnamed_addr #3

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 = { "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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass