; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Common/UniqBlocks.ll (ZN11CUniqBlocks7AddUniqEPKhm)

; 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.CUniqBlocks = type { %class.CObjectVector, %class.CRecordVector.0, %class.CRecordVector.0 }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%class.CRecordVector.0 = type { ptr, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11CUniqBlocks7AddUniqEPKhm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1, i64 noundef %2) #0 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %18 = getelementptr inbounds %struct.CUniqBlocks, ptr %17, i32 0, i32 1
  %19 = call noundef i32 @_ZNK13CRecordVectorIjE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  store i32 %19, ptr %9, align 4, !tbaa !11
  br label %20

20:                                               ; preds = %81, %3
  %21 = load i32, ptr %8, align 4, !tbaa !11
  %22 = load i32, ptr %9, align 4, !tbaa !11
  %23 = icmp ne i32 %21, %22
  br i1 %23, label %24, label %82

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %25 = load i32, ptr %8, align 4, !tbaa !11
  %26 = load i32, ptr %9, align 4, !tbaa !11
  %27 = add i32 %25, %26
  %28 = udiv i32 %27, 2
  store i32 %28, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %29 = getelementptr inbounds %struct.CUniqBlocks, ptr %17, i32 0, i32 1
  %30 = load i32, ptr %10, align 4, !tbaa !11
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %29, i32 noundef %30)
  %32 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %32, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %33 = getelementptr inbounds %struct.CUniqBlocks, ptr %17, i32 0, i32 0
  %34 = load i32, ptr %11, align 4, !tbaa !11
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEEixEj(ptr noundef nonnull align 8 dereferenceable(16) %33, i32 noundef %34)
  store ptr %35, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNK7CBufferIhE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
  store i64 %37, ptr %13, align 8, !tbaa !9
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = load i64, ptr %13, align 8, !tbaa !9
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %41, label %43

41:                                               ; preds = %24
  %42 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %42, ptr %9, align 4, !tbaa !11
  br label %78

43:                                               ; preds = %24
  %44 = load i64, ptr %7, align 8, !tbaa !9
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = icmp ugt i64 %44, %45
  br i1 %46, label %47, label %50

47:                                               ; preds = %43
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = add i32 %48, 1
  store i32 %49, ptr %8, align 4, !tbaa !11
  br label %77

50:                                               ; preds = %43
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %50
  %54 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %54, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %79

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = call noundef ptr @_ZNK7CBufferIhEcvPKhEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
  %59 = load i64, ptr %7, align 8, !tbaa !9
  %60 = call i32 @memcmp(ptr noundef %56, ptr noundef %58, i64 noundef %59) #5
  store i32 %60, ptr %15, align 4, !tbaa !11
  %61 = load i32, ptr %15, align 4, !tbaa !11
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %55
  %64 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %64, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %74

65:                                               ; preds = %55
  %66 = load i32, ptr %15, align 4, !tbaa !11
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %69, ptr %9, align 4, !tbaa !11
  br label %73

70:                                               ; preds = %65
  %71 = load i32, ptr %10, align 4, !tbaa !11
  %72 = add i32 %71, 1
  store i32 %72, ptr %8, align 4, !tbaa !11
  br label %73

73:                                               ; preds = %70, %68
  store i32 0, ptr %14, align 4
  br label %74

74:                                               ; preds = %73, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %75 = load i32, ptr %14, align 4
  switch i32 %75, label %79 [
    i32 0, label %76
  ]

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76, %47
  br label %78

78:                                               ; preds = %77, %41
  store i32 0, ptr %14, align 4
  br label %79

79:                                               ; preds = %78, %74, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %80 = load i32, ptr %14, align 4
  switch i32 %80, label %93 [
    i32 0, label %81
  ]

81:                                               ; preds = %79
  br label %20, !llvm.loop !13

82:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %83 = getelementptr inbounds %struct.CUniqBlocks, ptr %17, i32 0, i32 0
  %84 = call noundef i32 @_ZNK13CObjectVectorI7CBufferIhEE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %83)
  store i32 %84, ptr %16, align 4, !tbaa !11
  %85 = getelementptr inbounds %struct.CUniqBlocks, ptr %17, i32 0, i32 1
  %86 = load i32, ptr %8, align 4, !tbaa !11
  %87 = load i32, ptr %16, align 4, !tbaa !11
  call void @_ZN13CRecordVectorIjE6InsertEjj(ptr noundef nonnull align 8 dereferenceable(16) %85, i32 noundef %86, i32 noundef %87)
  %88 = getelementptr inbounds %struct.CUniqBlocks, ptr %17, i32 0, i32 0
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEE6AddNewEv(ptr noundef nonnull align 8 dereferenceable(16) %88)
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZN7CBufferIhE8CopyFromEPKhm(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef %90, i64 noundef %91)
  %92 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %92, ptr %4, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %93

93:                                               ; preds = %82, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %94 = load i32, ptr %4, align 4
  ret i32 %94
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #0 align 2

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13CRecordVectorIjE6InsertEjj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #0 align 2

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

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11CUniqBlocks7AddUniqEPKhm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = tail call noundef i32 @_ZNK13CRecordVectorIjE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %6 = icmp eq i64 %2, 0
  br i1 %6, label %.outer.outer.us, label %.outer.outer

.outer.outer.us:                                  ; preds = %3
  %.not6063.us = icmp eq i32 %5, 0
  br i1 %.not6063.us, label %.outer._crit_edge, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.outer.outer.us, %.outer.loopexit.us
  %.039.ph64.us = phi i32 [ %7, %.outer.loopexit.us ], [ %5, %.outer.outer.us ]
  %7 = lshr i32 %.039.ph64.us, 1
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %7)
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEEixEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %9)
  %11 = tail call noundef i64 @_ZNK7CBufferIhE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %.not100 = icmp eq i64 %11, 0
  br i1 %.not100, label %.thread, label %.outer.loopexit.us, !llvm.loop !9

.outer.loopexit.us:                               ; preds = %.lr.ph.us.preheader
  %.not60.us = icmp ult i32 %.039.ph64.us, 2
  br i1 %.not60.us, label %.outer._crit_edge, label %.lr.ph.us.preheader

.outer.outer:                                     ; preds = %3, %24
  %.039.ph.ph = phi i32 [ %.140, %24 ], [ %5, %3 ]
  %.032.ph.ph = phi i32 [ %.234, %24 ], [ 0, %3 ]
  %.not6063 = icmp eq i32 %.032.ph.ph, %.039.ph.ph
  br i1 %.not6063, label %.outer._crit_edge, label %.lr.ph

.outer.loopexit:                                  ; preds = %12
  %.not60 = icmp eq i32 %.03261, %14
  br i1 %.not60, label %.outer._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.outer.outer, %.outer.loopexit
  %.032.ph65 = phi i32 [ %.03261, %.outer.loopexit ], [ %.032.ph.ph, %.outer.outer ]
  %.039.ph64 = phi i32 [ %14, %.outer.loopexit ], [ %.039.ph.ph, %.outer.outer ]
  br label %12

12:                                               ; preds = %.lr.ph, %22
  %.03261 = phi i32 [ %.032.ph65, %.lr.ph ], [ %23, %22 ]
  %13 = add i32 %.03261, %.039.ph64
  %14 = lshr i32 %13, 1
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %14)
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEEixEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %16)
  %18 = tail call noundef i64 @_ZNK7CBufferIhE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %19 = icmp ugt i64 %18, %2
  br i1 %19, label %.outer.loopexit, label %20, !llvm.loop !9

20:                                               ; preds = %12
  %21 = icmp ult i64 %18, %2
  br i1 %21, label %22, label %24

22:                                               ; preds = %20
  %23 = add nuw i32 %14, 1
  %.not = icmp eq i32 %23, %.039.ph64
  br i1 %.not, label %.outer._crit_edge, label %12, !llvm.loop !9

24:                                               ; preds = %20
  %25 = tail call noundef ptr @_ZNK7CBufferIhEcvPKhEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %26 = tail call i32 @memcmp(ptr noundef %1, ptr noundef %25, i64 noundef %2) #3
  %.not47.not = icmp eq i32 %26, 0
  %27 = icmp slt i32 %26, 0
  %28 = add nuw i32 %14, 1
  %.140 = select i1 %27, i32 %14, i32 %.039.ph64
  %29 = icmp slt i32 %26, 1
  %.234 = select i1 %29, i32 %.03261, i32 %28
  br i1 %.not47.not, label %.thread, label %.outer.outer, !llvm.loop !9

.outer._crit_edge:                                ; preds = %.outer.outer, %.outer.loopexit, %22, %.outer.loopexit.us, %.outer.outer.us
  %.032.lcssa = phi i32 [ 0, %.outer.outer.us ], [ 0, %.outer.loopexit.us ], [ %.039.ph64, %22 ], [ %.03261, %.outer.loopexit ], [ %.039.ph.ph, %.outer.outer ]
  %30 = tail call noundef i32 @_ZNK13CObjectVectorI7CBufferIhEE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  tail call void @_ZN13CRecordVectorIjE6InsertEjj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.032.lcssa, i32 noundef %30)
  %31 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEE6AddNewEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  tail call void @_ZN7CBufferIhE8CopyFromEPKhm(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %1, i64 noundef %2)
  br label %.thread

.thread:                                          ; preds = %24, %.lr.ph.us.preheader, %.outer._crit_edge
  %.4 = phi i32 [ %30, %.outer._crit_edge ], [ %9, %.lr.ph.us.preheader ], [ %16, %24 ]
  ret i32 %.4
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7CBufferIhE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13CRecordVectorIjE6InsertEjj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7CBufferIhEE6AddNewEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

attributes #0 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 willreturn memory(read) }

!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: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass