; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (toplevel_unit)

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

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [29 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

declare void @roaring_bitmap_free(ptr noundef) #1

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

declare ptr @roaring_bitmap_create() #1

declare void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare void @roaring_bitmap_set_copy_on_write(ptr noundef, i1 noundef zeroext) #2

declare void @roaring_bitmap_add(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare zeroext i1 @roaring_bitmap_equals(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @test_stress_memory(i1 noundef zeroext %0) #5 {
  %2 = alloca i8, align 1
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = zext i1 %0 to i8
  store i8 %12, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %13

13:                                               ; preds = %60, %1
  %14 = load i64, ptr %3, align 8, !tbaa !9
  %15 = icmp ult i64 %14, 5
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %63

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %18 = call ptr @roaring_bitmap_create()
  store ptr %18, ptr %5, align 8, !tbaa !11
  %19 = load ptr, ptr %5, align 8, !tbaa !11
  %20 = load i8, ptr %2, align 1, !tbaa !5, !range !13, !noundef !14
  %21 = trunc i8 %20 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %19, i1 noundef zeroext %21)
  %22 = load ptr, ptr %5, align 8, !tbaa !11
  %23 = ptrtoint ptr %22 to i64
  call void @_assert_true(i64 noundef %23, ptr noundef @.str.23, ptr noundef @.str.2, i32 noundef 425)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %33, %17
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = icmp ult i64 %25, 1000000
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %36

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %29 = call i32 @rand() #6
  %30 = srem i32 %29, 100000000
  store i32 %30, ptr %7, align 4, !tbaa !15
  %31 = load ptr, ptr %5, align 8, !tbaa !11
  %32 = load i32, ptr %7, align 4, !tbaa !15
  call void @roaring_bitmap_add(ptr noundef %31, i32 noundef %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %33

33:                                               ; preds = %28
  %34 = load i64, ptr %6, align 8, !tbaa !9
  %35 = add i64 %34, 1
  store i64 %35, ptr %6, align 8, !tbaa !9
  br label %24, !llvm.loop !17

36:                                               ; preds = %27
  %37 = load ptr, ptr %5, align 8, !tbaa !11
  %38 = call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %39 = load ptr, ptr %5, align 8, !tbaa !11
  %40 = call i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef %39)
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %42 = load i32, ptr %8, align 4, !tbaa !15
  %43 = zext i32 %42 to i64
  %44 = call noalias ptr @malloc(i64 noundef %43) #7
  store ptr %44, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !11
  %46 = load ptr, ptr %9, align 8, !tbaa !11
  %47 = call i64 @roaring_bitmap_portable_serialize(ptr noundef %45, ptr noundef %46)
  store i64 %47, ptr %10, align 8, !tbaa !9
  %48 = load i64, ptr %10, align 8, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !15
  %50 = zext i32 %49 to i64
  call void @_assert_int_equal(i64 noundef %48, i64 noundef %50, ptr noundef @.str.2, i32 noundef 434)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %51 = load ptr, ptr %9, align 8, !tbaa !11
  %52 = call ptr @roaring_bitmap_portable_deserialize(ptr noundef %51)
  store ptr %52, ptr %11, align 8, !tbaa !11
  %53 = load ptr, ptr %5, align 8, !tbaa !11
  %54 = load ptr, ptr %11, align 8, !tbaa !11
  %55 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %53, ptr noundef %54)
  %56 = zext i1 %55 to i64
  call void @_assert_true(i64 noundef %56, ptr noundef @.str.44, ptr noundef @.str.2, i32 noundef 436)
  %57 = load ptr, ptr %11, align 8, !tbaa !11
  call void @roaring_bitmap_free(ptr noundef %57)
  %58 = load ptr, ptr %9, align 8, !tbaa !11
  call void @free(ptr noundef %58) #6
  %59 = load ptr, ptr %5, align 8, !tbaa !11
  call void @roaring_bitmap_free(ptr noundef %59)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %60

60:                                               ; preds = %36
  %61 = load i64, ptr %3, align 8, !tbaa !9
  %62 = add i64 %61, 1
  store i64 %62, ptr %3, align 8, !tbaa !9
  br label %13, !llvm.loop !19

63:                                               ; preds = %16
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() #4

declare zeroext i1 @roaring_bitmap_run_optimize(ptr noundef) #1

declare i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef) #1

declare i64 @roaring_bitmap_portable_serialize(ptr noundef, ptr noundef) #1

declare void @_assert_int_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) #1

declare ptr @roaring_bitmap_portable_deserialize(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { nounwind allocsize(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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [29 x i8], align 1

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #0

declare ptr @roaring_bitmap_create() local_unnamed_addr #0

declare void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare void @roaring_bitmap_set_copy_on_write(ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @roaring_bitmap_add(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

declare zeroext i1 @roaring_bitmap_equals(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @test_stress_memory(i1 noundef zeroext %0) local_unnamed_addr #4 {
  %2 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %2, i1 noundef zeroext %0)
  %3 = ptrtoint ptr %2 to i64
  tail call void @_assert_true(i64 noundef %3, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 425) #6
  br label %73

4:                                                ; preds = %73
  %5 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %2) #6
  %6 = tail call i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef %2) #6
  %7 = and i64 %6, 4294967295
  %8 = tail call noalias ptr @malloc(i64 noundef %7) #7
  %9 = tail call i64 @roaring_bitmap_portable_serialize(ptr noundef %2, ptr noundef %8) #6
  tail call void @_assert_int_equal(i64 noundef %9, i64 noundef %7, ptr noundef nonnull @.str.2, i32 noundef 434) #6
  %10 = tail call ptr @roaring_bitmap_portable_deserialize(ptr noundef %8) #6
  %11 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %2, ptr noundef %10) #6
  %12 = zext i1 %11 to i64
  tail call void @_assert_true(i64 noundef %12, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 436) #6
  tail call void @roaring_bitmap_free(ptr noundef %10) #6
  tail call void @free(ptr noundef %8) #6
  tail call void @roaring_bitmap_free(ptr noundef %2) #6
  %13 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %13, i1 noundef zeroext %0)
  %14 = ptrtoint ptr %13 to i64
  tail call void @_assert_true(i64 noundef %14, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 425) #6
  br label %15

15:                                               ; preds = %15, %4
  %.02122.1 = phi i64 [ 0, %4 ], [ %18, %15 ]
  %16 = tail call i32 @rand() #6
  %17 = srem i32 %16, 100000000
  tail call void @roaring_bitmap_add(ptr noundef %13, i32 noundef %17) #6
  %18 = add nuw nsw i64 %.02122.1, 1
  %exitcond.1.not = icmp eq i64 %18, 1000000
  br i1 %exitcond.1.not, label %19, label %15, !llvm.loop !5

19:                                               ; preds = %15
  %20 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %13) #6
  %21 = tail call i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef %13) #6
  %22 = and i64 %21, 4294967295
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #7
  %24 = tail call i64 @roaring_bitmap_portable_serialize(ptr noundef %13, ptr noundef %23) #6
  tail call void @_assert_int_equal(i64 noundef %24, i64 noundef %22, ptr noundef nonnull @.str.2, i32 noundef 434) #6
  %25 = tail call ptr @roaring_bitmap_portable_deserialize(ptr noundef %23) #6
  %26 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %13, ptr noundef %25) #6
  %27 = zext i1 %26 to i64
  tail call void @_assert_true(i64 noundef %27, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 436) #6
  tail call void @roaring_bitmap_free(ptr noundef %25) #6
  tail call void @free(ptr noundef %23) #6
  tail call void @roaring_bitmap_free(ptr noundef %13) #6
  %28 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %28, i1 noundef zeroext %0)
  %29 = ptrtoint ptr %28 to i64
  tail call void @_assert_true(i64 noundef %29, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 425) #6
  br label %30

30:                                               ; preds = %30, %19
  %.02122.2 = phi i64 [ 0, %19 ], [ %33, %30 ]
  %31 = tail call i32 @rand() #6
  %32 = srem i32 %31, 100000000
  tail call void @roaring_bitmap_add(ptr noundef %28, i32 noundef %32) #6
  %33 = add nuw nsw i64 %.02122.2, 1
  %exitcond.2.not = icmp eq i64 %33, 1000000
  br i1 %exitcond.2.not, label %34, label %30, !llvm.loop !5

34:                                               ; preds = %30
  %35 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %28) #6
  %36 = tail call i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef %28) #6
  %37 = and i64 %36, 4294967295
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #7
  %39 = tail call i64 @roaring_bitmap_portable_serialize(ptr noundef %28, ptr noundef %38) #6
  tail call void @_assert_int_equal(i64 noundef %39, i64 noundef %37, ptr noundef nonnull @.str.2, i32 noundef 434) #6
  %40 = tail call ptr @roaring_bitmap_portable_deserialize(ptr noundef %38) #6
  %41 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %28, ptr noundef %40) #6
  %42 = zext i1 %41 to i64
  tail call void @_assert_true(i64 noundef %42, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 436) #6
  tail call void @roaring_bitmap_free(ptr noundef %40) #6
  tail call void @free(ptr noundef %38) #6
  tail call void @roaring_bitmap_free(ptr noundef %28) #6
  %43 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %43, i1 noundef zeroext %0)
  %44 = ptrtoint ptr %43 to i64
  tail call void @_assert_true(i64 noundef %44, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 425) #6
  br label %45

45:                                               ; preds = %45, %34
  %.02122.3 = phi i64 [ 0, %34 ], [ %48, %45 ]
  %46 = tail call i32 @rand() #6
  %47 = srem i32 %46, 100000000
  tail call void @roaring_bitmap_add(ptr noundef %43, i32 noundef %47) #6
  %48 = add nuw nsw i64 %.02122.3, 1
  %exitcond.3.not = icmp eq i64 %48, 1000000
  br i1 %exitcond.3.not, label %49, label %45, !llvm.loop !5

49:                                               ; preds = %45
  %50 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %43) #6
  %51 = tail call i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef %43) #6
  %52 = and i64 %51, 4294967295
  %53 = tail call noalias ptr @malloc(i64 noundef %52) #7
  %54 = tail call i64 @roaring_bitmap_portable_serialize(ptr noundef %43, ptr noundef %53) #6
  tail call void @_assert_int_equal(i64 noundef %54, i64 noundef %52, ptr noundef nonnull @.str.2, i32 noundef 434) #6
  %55 = tail call ptr @roaring_bitmap_portable_deserialize(ptr noundef %53) #6
  %56 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %43, ptr noundef %55) #6
  %57 = zext i1 %56 to i64
  tail call void @_assert_true(i64 noundef %57, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 436) #6
  tail call void @roaring_bitmap_free(ptr noundef %55) #6
  tail call void @free(ptr noundef %53) #6
  tail call void @roaring_bitmap_free(ptr noundef %43) #6
  %58 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %58, i1 noundef zeroext %0)
  %59 = ptrtoint ptr %58 to i64
  tail call void @_assert_true(i64 noundef %59, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 425) #6
  br label %60

60:                                               ; preds = %60, %49
  %.02122.4 = phi i64 [ 0, %49 ], [ %63, %60 ]
  %61 = tail call i32 @rand() #6
  %62 = srem i32 %61, 100000000
  tail call void @roaring_bitmap_add(ptr noundef %58, i32 noundef %62) #6
  %63 = add nuw nsw i64 %.02122.4, 1
  %exitcond.4.not = icmp eq i64 %63, 1000000
  br i1 %exitcond.4.not, label %64, label %60, !llvm.loop !5

64:                                               ; preds = %60
  %65 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %58) #6
  %66 = tail call i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef %58) #6
  %67 = and i64 %66, 4294967295
  %68 = tail call noalias ptr @malloc(i64 noundef %67) #7
  %69 = tail call i64 @roaring_bitmap_portable_serialize(ptr noundef %58, ptr noundef %68) #6
  tail call void @_assert_int_equal(i64 noundef %69, i64 noundef %67, ptr noundef nonnull @.str.2, i32 noundef 434) #6
  %70 = tail call ptr @roaring_bitmap_portable_deserialize(ptr noundef %68) #6
  %71 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %58, ptr noundef %70) #6
  %72 = zext i1 %71 to i64
  tail call void @_assert_true(i64 noundef %72, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 436) #6
  tail call void @roaring_bitmap_free(ptr noundef %70) #6
  tail call void @free(ptr noundef %68) #6
  tail call void @roaring_bitmap_free(ptr noundef %58) #6
  ret void

73:                                               ; preds = %1, %73
  %.02122 = phi i64 [ 0, %1 ], [ %76, %73 ]
  %74 = tail call i32 @rand() #6
  %75 = srem i32 %74, 100000000
  tail call void @roaring_bitmap_add(ptr noundef %2, i32 noundef %75) #6
  %76 = add nuw nsw i64 %.02122, 1
  %exitcond.not = icmp eq i64 %76, 1000000
  br i1 %exitcond.not, label %4, label %73, !llvm.loop !5
}

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

declare zeroext i1 @roaring_bitmap_run_optimize(ptr noundef) local_unnamed_addr #0

declare i64 @roaring_bitmap_portable_size_in_bytes(ptr noundef) local_unnamed_addr #0

declare i64 @roaring_bitmap_portable_serialize(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_assert_int_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare ptr @roaring_bitmap_portable_deserialize(ptr noundef) local_unnamed_addr #0

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass