; LLVM IR from yinqiwen/ardb :: src/db/codec.ll (ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb)

; 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.ardb::Slice" = type { ptr, i64 }
%"struct.ardb::KeyObject" = type { %"struct.ardb::Data", i8, [7 x i8], %"struct.ardb::Data", %"class.std::vector" }
%"struct.ardb::Data" = type <{ i64, i32, i8, [3 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ardb::Data, std::allocator<ardb::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<ardb::Data, std::allocator<ardb::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<ardb::Data, std::allocator<ardb::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ardb::Data, std::allocator<ardb::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [64 x i8], align 1
@__FUNCTION__._ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(13) ptr @_ZNKSt6vectorIN4ardb4DataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() #2

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4ardb9KeyObject12EncodePrefixERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(33)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb6Buffer9WriteByteEc(ptr noundef nonnull align 8 dereferenceable(33), i8 noundef signext) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb(ptr dead_on_unwind noalias writable sret(%"class.ardb::Slice") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef nonnull align 8 dereferenceable(33) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %13 = zext i1 %3 to i8
  store i8 %13, ptr %9, align 1, !tbaa !9
  %14 = zext i1 %4 to i8
  store i8 %14, ptr %10, align 1, !tbaa !9
  %15 = load ptr, ptr %7, align 8
  %16 = load i8, ptr %9, align 1, !tbaa !9, !range !11, !noundef !12
  %17 = trunc i8 %16 to i1
  br i1 %17, label %18, label %29

18:                                               ; preds = %5
  %19 = call noundef zeroext i1 @_ZNK4ardb9KeyObject7IsValidEv(ptr noundef nonnull align 8 dereferenceable(64) %15)
  br i1 %19, label %29, label %20

20:                                               ; preds = %18
  br label %21

21:                                               ; preds = %20
  %22 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %23 = call noundef zeroext i1 %22(i32 noundef 2)
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %26 = call noundef i32 @_ZNK4ardb9KeyObject7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(64) %15)
  call void (i32, ptr, ptr, i32, ptr, ...) %25(i32 noundef 2, ptr noundef @.str, ptr noundef @__FUNCTION__._ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb, i32 noundef 230, ptr noundef @.str.3, i32 noundef %26)
  br label %27

27:                                               ; preds = %24, %21
  br label %28

28:                                               ; preds = %27
  call void @_ZN4ardb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %67

29:                                               ; preds = %18, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNK4ardb6Buffer13GetWriteIndexEv(ptr noundef nonnull align 8 dereferenceable(33) %30)
  store i64 %31, ptr %11, align 8, !tbaa !13
  %32 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %37

34:                                               ; preds = %29
  %35 = getelementptr inbounds %"struct.ardb::KeyObject", ptr %15, i32 0, i32 0
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK4ardb4Data6EncodeERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %35, ptr noundef nonnull align 8 dereferenceable(33) %36)
  br label %37

37:                                               ; preds = %34, %29
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK4ardb9KeyObject12EncodePrefixERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(33) %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.ardb::KeyObject", ptr %15, i32 0, i32 4
  %41 = call noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = trunc i64 %41 to i8
  %43 = call noundef i32 @_ZN4ardb6Buffer9WriteByteEc(ptr noundef nonnull align 8 dereferenceable(33) %39, i8 noundef signext %42)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %44

44:                                               ; preds = %55, %37
  %45 = load i64, ptr %12, align 8, !tbaa !13
  %46 = getelementptr inbounds %"struct.ardb::KeyObject", ptr %15, i32 0, i32 4
  %47 = call noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = icmp ult i64 %45, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %58

50:                                               ; preds = %44
  %51 = getelementptr inbounds %"struct.ardb::KeyObject", ptr %15, i32 0, i32 4
  %52 = load i64, ptr %12, align 8, !tbaa !13
  %53 = call noundef nonnull align 8 dereferenceable(13) ptr @_ZNKSt6vectorIN4ardb4DataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %52) #6
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK4ardb4Data6EncodeERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %53, ptr noundef nonnull align 8 dereferenceable(33) %54)
  br label %55

55:                                               ; preds = %50
  %56 = load i64, ptr %12, align 8, !tbaa !13
  %57 = add i64 %56, 1
  store i64 %57, ptr %12, align 8, !tbaa !13
  br label %44, !llvm.loop !15

58:                                               ; preds = %49
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = call noundef ptr @_ZNK4ardb6Buffer12GetRawBufferEv(ptr noundef nonnull align 8 dereferenceable(33) %59)
  %61 = load i64, ptr %11, align 8, !tbaa !13
  %62 = getelementptr inbounds i8, ptr %60, i64 %61
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = call noundef i64 @_ZNK4ardb6Buffer13GetWriteIndexEv(ptr noundef nonnull align 8 dereferenceable(33) %63)
  %65 = load i64, ptr %11, align 8, !tbaa !13
  %66 = sub i64 %64, %65
  call void @_ZN4ardb5SliceC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %62, i64 noundef %66)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %67

67:                                               ; preds = %58, %28
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4ardb9KeyObject7IsValidEv(ptr noundef nonnull align 8 dereferenceable(64)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4ardb9KeyObject7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(64)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4ardb6Buffer13GetWriteIndexEv(ptr noundef nonnull align 8 dereferenceable(33)) #5 align 2

declare void @_ZNK4ardb4Data6EncodeERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(13), ptr noundef nonnull align 8 dereferenceable(33)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4ardb6Buffer12GetRawBufferEv(ptr noundef nonnull align 8 dereferenceable(33)) #5 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 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 = { 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 #6 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, 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.ardb::Slice" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [64 x i8], align 1
@__FUNCTION__._ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(13) ptr @_ZNKSt6vectorIN4ardb4DataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() local_unnamed_addr #1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4ardb9KeyObject12EncodePrefixERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb6Buffer9WriteByteEc(ptr noundef nonnull align 8 dereferenceable(33), i8 noundef signext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb(ptr dead_on_unwind noalias writable sret(%"class.ardb::Slice") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef nonnull align 8 dereferenceable(33) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) local_unnamed_addr #2 align 2 {
  br i1 %3, label %6, label %15

6:                                                ; preds = %5
  %7 = tail call noundef zeroext i1 @_ZNK4ardb9KeyObject7IsValidEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  br i1 %7, label %15, label %8

8:                                                ; preds = %6
  %9 = tail call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %10 = tail call noundef zeroext i1 %9(i32 noundef 2)
  br i1 %10, label %11, label %14

11:                                               ; preds = %8
  %12 = tail call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %13 = tail call noundef i32 @_ZNK4ardb9KeyObject7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(64) %1)
  tail call void (i32, ptr, ptr, i32, ptr, ...) %12(i32 noundef 2, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZNK4ardb9KeyObject6EncodeERNS_6BufferEbb, i32 noundef 230, ptr noundef nonnull @.str.3, i32 noundef %13)
  br label %14

14:                                               ; preds = %8, %11
  tail call void @_ZN4ardb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %32

15:                                               ; preds = %6, %5
  %16 = tail call noundef i64 @_ZNK4ardb6Buffer13GetWriteIndexEv(ptr noundef nonnull align 8 dereferenceable(33) %2)
  br i1 %4, label %17, label %18

17:                                               ; preds = %15
  tail call void @_ZNK4ardb4Data6EncodeERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %1, ptr noundef nonnull align 8 dereferenceable(33) %2)
  br label %18

18:                                               ; preds = %17, %15
  tail call void @_ZNK4ardb9KeyObject12EncodePrefixERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef nonnull align 8 dereferenceable(33) %2)
  %19 = getelementptr inbounds i8, ptr %1, i64 40
  %20 = tail call noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %21 = trunc i64 %20 to i8
  %22 = tail call noundef i32 @_ZN4ardb6Buffer9WriteByteEc(ptr noundef nonnull align 8 dereferenceable(33) %2, i8 noundef signext %21)
  %23 = tail call noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %18
  %24 = tail call noundef ptr @_ZNK4ardb6Buffer12GetRawBufferEv(ptr noundef nonnull align 8 dereferenceable(33) %2)
  %25 = getelementptr inbounds i8, ptr %24, i64 %16
  %26 = tail call noundef i64 @_ZNK4ardb6Buffer13GetWriteIndexEv(ptr noundef nonnull align 8 dereferenceable(33) %2)
  %27 = sub i64 %26, %16
  tail call void @_ZN4ardb5SliceC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %25, i64 noundef %27)
  br label %32

.lr.ph:                                           ; preds = %18, %.lr.ph
  %.014 = phi i64 [ %29, %.lr.ph ], [ 0, %18 ]
  %28 = tail call noundef nonnull align 8 dereferenceable(13) ptr @_ZNKSt6vectorIN4ardb4DataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.014) #5
  tail call void @_ZNK4ardb4Data6EncodeERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %28, ptr noundef nonnull align 8 dereferenceable(33) %2)
  %29 = add nuw i64 %.014, 1
  %30 = tail call noundef i64 @_ZNKSt6vectorIN4ardb4DataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !5

32:                                               ; preds = %._crit_edge, %14
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4ardb9KeyObject7IsValidEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4ardb9KeyObject7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4ardb6Buffer13GetWriteIndexEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #4 align 2

declare void @_ZNK4ardb4Data6EncodeERNS_6BufferE(ptr noundef nonnull align 8 dereferenceable(13), ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb5SliceC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #0 align 2

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


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