; LLVM IR from AngelPn/DBMS-Simulator :: src (HP)

; 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.HP_info = type { i32, i32, i8, ptr, i32, i32 }
%struct.record = type { i32, [15 x i8], [25 x i8], [50 x i8] }

@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

declare void @BF_PrintError(ptr noundef) #0

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

declare i32 @BF_ReadBlock(i32 noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare ptr @get_key(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HP_GetAllEntries(ptr noundef byval(%struct.HP_info) align 8 %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.record, align 8
  %14 = alloca %struct.record, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.HP_info, ptr %0, i32 0, i32 1
  %16 = load i32, ptr %15, align 4, !tbaa !11
  %17 = getelementptr inbounds %struct.HP_info, ptr %0, i32 0, i32 5
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = call i32 @BF_ReadBlock(i32 noundef %16, i32 noundef %18, ptr noundef %8)
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %95

22:                                               ; preds = %2
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 512
  %25 = getelementptr inbounds i8, ptr %24, i64 -8
  %26 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %26, ptr %6, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %84, %22
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = icmp ne i32 %28, -1
  br i1 %29, label %30, label %89

30:                                               ; preds = %27
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %7, align 4, !tbaa !9
  %33 = getelementptr inbounds %struct.HP_info, ptr %0, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = call i32 @BF_ReadBlock(i32 noundef %34, i32 noundef %35, ptr noundef %8)
  %37 = icmp slt i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %30
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %95

39:                                               ; preds = %30
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 512
  %42 = getelementptr inbounds i8, ptr %41, i64 -4
  %43 = load i32, ptr %42, align 4, !tbaa !9
  store i32 %43, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %79, %39
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 4, ptr %9, align 4
  br label %82

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 %52, 96
  %54 = getelementptr inbounds i8, ptr %50, i64 %53
  store ptr %54, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HP_info, ptr %0, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = call ptr @get_key(ptr noundef %55, ptr noundef %57)
  store ptr %58, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %63

61:                                               ; preds = %49
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 4 %62, i64 96, i1 false), !tbaa.struct !15
  call void @print_record(ptr noundef byval(%struct.record) align 8 %13)
  call void @llvm.lifetime.end.p0(i64 96, ptr %13) #5
  br label %75

63:                                               ; preds = %49
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.HP_info, ptr %0, i32 0, i32 4
  %67 = load i32, ptr %66, align 8, !tbaa !17
  %68 = sext i32 %67 to i64
  %69 = call i32 @memcmp(ptr noundef %64, ptr noundef %65, i64 noundef %68) #6
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %74

71:                                               ; preds = %63
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 4 %72, i64 96, i1 false), !tbaa.struct !15
  call void @print_record(ptr noundef byval(%struct.record) align 8 %14)
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #5
  %73 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %73, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %76

74:                                               ; preds = %63
  br label %75

75:                                               ; preds = %74, %61
  store i32 0, ptr %9, align 4
  br label %76

76:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %77 = load i32, ptr %9, align 4
  switch i32 %77, label %82 [
    i32 0, label %78
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !9
  br label %44, !llvm.loop !18

82:                                               ; preds = %76, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %83 = load i32, ptr %9, align 4
  switch i32 %83, label %95 [
    i32 4, label %84
  ]

84:                                               ; preds = %82
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 512
  %87 = getelementptr inbounds i8, ptr %86, i64 -8
  %88 = load i32, ptr %87, align 4, !tbaa !9
  store i32 %88, ptr %6, align 4, !tbaa !9
  br label %27, !llvm.loop !20

89:                                               ; preds = %27
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %94

92:                                               ; preds = %89
  %93 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %93, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %95

94:                                               ; preds = %89
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %95

95:                                               ; preds = %94, %92, %82, %38, %21
  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
  %96 = load i32, ptr %3, align 4
  ret i32 %96
}

declare void @print_record(ptr noundef byval(%struct.record) align 8) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 }
attributes #6 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"HP_info", !10, i64 0, !10, i64 4, !7, i64 8, !6, i64 16, !10, i64 24, !10, i64 28}
!13 = !{!12, !10, i64 28}
!14 = !{!12, !6, i64 16}
!15 = !{i64 0, i64 4, !9, i64 4, i64 15, !16, i64 19, i64 25, !16, i64 44, i64 50, !16}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !10, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.HP_info = type { i32, i32, i8, ptr, i32, i32 }
%struct.record = type { i32, [15 x i8], [25 x i8], [50 x i8] }

@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

declare void @BF_PrintError(ptr noundef) local_unnamed_addr #0

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

declare i32 @BF_ReadBlock(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare ptr @get_key(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @HP_GetAllEntries(ptr nocapture noundef readonly byval(%struct.HP_info) align 8 %0, ptr noundef readonly %1) local_unnamed_addr #3 {
  %3 = alloca ptr, align 8
  %4 = alloca %struct.record, align 8
  %5 = alloca %struct.record, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load i32, ptr %6, align 4, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %0, i64 28
  %9 = load i32, ptr %8, align 4, !tbaa !12
  %10 = call i32 @BF_ReadBlock(i32 noundef %7, i32 noundef %9, ptr noundef nonnull %3) #5
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %29, label %.preheader

.preheader:                                       ; preds = %2
  %.pn37 = load ptr, ptr %3, align 8, !tbaa !5
  %.023.in38 = getelementptr inbounds i8, ptr %.pn37, i64 504
  %.02339 = load i32, ptr %.023.in38, align 4, !tbaa !13
  %.not40 = icmp eq i32 %.02339, -1
  br i1 %.not40, label %._crit_edge, label %.lr.ph43

.lr.ph43:                                         ; preds = %.preheader
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8
  %14 = icmp eq ptr %1, null
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i32, ptr %15, align 8
  %17 = sext i32 %16 to i64
  br i1 %14, label %.lr.ph43.split.us, label %.lr.ph43.split

.lr.ph43.split.us:                                ; preds = %.lr.ph43, %.loopexit.us
  %.02342.us = phi i32 [ %.023.us, %.loopexit.us ], [ %.02339, %.lr.ph43 ]
  %.02241.us = phi i32 [ %18, %.loopexit.us ], [ 0, %.lr.ph43 ]
  %18 = add nuw nsw i32 %.02241.us, 1
  %19 = call i32 @BF_ReadBlock(i32 noundef %7, i32 noundef %.02342.us, ptr noundef nonnull %3) #5
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %.split.us, label %21

21:                                               ; preds = %.lr.ph43.split.us
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 508
  %24 = load i32, ptr %23, align 4, !tbaa !13
  %.not2535.us = icmp sgt i32 %24, 0
  br i1 %.not2535.us, label %.lr.ph.us.preheader, label %.loopexit.us

.lr.ph.us.preheader:                              ; preds = %21
  %wide.trip.count55 = zext nneg i32 %24 to i64
  br label %.lr.ph.us

.loopexit.us.loopexit:                            ; preds = %.lr.ph.us
  %.pn.us.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %.loopexit.us

.loopexit.us:                                     ; preds = %.loopexit.us.loopexit, %21
  %.pn.us = phi ptr [ %.pn.us.pre, %.loopexit.us.loopexit ], [ %22, %21 ]
  %.023.in.us = getelementptr inbounds i8, ptr %.pn.us, i64 504
  %.023.us = load i32, ptr %.023.in.us, align 4, !tbaa !13
  %.not.us = icmp eq i32 %.023.us, -1
  br i1 %.not.us, label %._crit_edge, label %.lr.ph43.split.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv52 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next53, %.lr.ph.us ]
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = mul nuw nsw i64 %indvars.iv52, 96
  %27 = getelementptr inbounds i8, ptr %25, i64 %26
  %28 = call ptr @get_key(ptr noundef %27, ptr noundef %13) #5
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 4 dereferenceable(96) %27, i64 96, i1 false), !tbaa.struct !14
  call void @print_record(ptr noundef nonnull byval(%struct.record) align 8 %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %wide.trip.count55
  br i1 %exitcond56.not, label %.loopexit.us.loopexit, label %.lr.ph.us, !llvm.loop !16

29:                                               ; preds = %2
  call void @BF_PrintError(ptr noundef nonnull @.str.3) #5
  br label %44

.loopexit.loopexit:                               ; preds = %42
  %.pn.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %33
  %.pn = phi ptr [ %.pn.pre, %.loopexit.loopexit ], [ %34, %33 ]
  %.023.in = getelementptr inbounds i8, ptr %.pn, i64 504
  %.023 = load i32, ptr %.023.in, align 4, !tbaa !13
  %.not = icmp eq i32 %.023, -1
  br i1 %.not, label %._crit_edge, label %.lr.ph43.split

.lr.ph43.split:                                   ; preds = %.lr.ph43, %.loopexit
  %.02342 = phi i32 [ %.023, %.loopexit ], [ %.02339, %.lr.ph43 ]
  %.02241 = phi i32 [ %30, %.loopexit ], [ 0, %.lr.ph43 ]
  %30 = add nuw nsw i32 %.02241, 1
  %31 = call i32 @BF_ReadBlock(i32 noundef %7, i32 noundef %.02342, ptr noundef nonnull %3) #5
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.split.us, label %33

.split.us:                                        ; preds = %.lr.ph43.split, %.lr.ph43.split.us
  call void @BF_PrintError(ptr noundef nonnull @.str.3) #5
  br label %44

33:                                               ; preds = %.lr.ph43.split
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 508
  %36 = load i32, ptr %35, align 4, !tbaa !13
  %.not2535 = icmp sgt i32 %36, 0
  br i1 %.not2535, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %33
  %wide.trip.count = zext nneg i32 %36 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %42
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %42 ]
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = mul nuw nsw i64 %indvars.iv, 96
  %39 = getelementptr inbounds i8, ptr %37, i64 %38
  %40 = call ptr @get_key(ptr noundef %39, ptr noundef %13) #5
  %bcmp = call i32 @bcmp(ptr nonnull %1, ptr %40, i64 %17)
  %41 = icmp eq i32 %bcmp, 0
  br i1 %41, label %.thread29, label %42

.thread29:                                        ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %5, ptr noundef nonnull align 4 dereferenceable(96) %39, i64 96, i1 false), !tbaa.struct !14
  call void @print_record(ptr noundef nonnull byval(%struct.record) align 8 %5) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #5
  br label %44

42:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit.loopexit, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit, %.loopexit.us, %.preheader
  %.022.lcssa = phi i32 [ 0, %.preheader ], [ %18, %.loopexit.us ], [ %30, %.loopexit ]
  %43 = icmp eq ptr %1, null
  %.022. = select i1 %43, i32 %.022.lcssa, i32 -1
  br label %44

44:                                               ; preds = %.thread29, %._crit_edge, %.split.us, %29
  %.4 = phi i32 [ -1, %29 ], [ -1, %.split.us ], [ %.022., %._crit_edge ], [ %30, %.thread29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.4
}

declare void @print_record(ptr noundef byval(%struct.record) align 8) local_unnamed_addr #0

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #4

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { nofree nounwind willreturn memory(argmem: read) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"HP_info", !11, i64 0, !11, i64 4, !7, i64 8, !6, i64 16, !11, i64 24, !11, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 28}
!13 = !{!11, !11, i64 0}
!14 = !{i64 0, i64 4, !13, i64 4, i64 15, !15, i64 19, i64 25, !15, i64 44, i64 50, !15}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass