; LLVM IR from ryanlayer/giggle :: lib/htslib (bcf_sr_sort)

; 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.sr_sort_t = type { [256 x i8], i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.__kstring_t, i32, i32, ptr, i32, ptr, ptr, i32, i32, i32, i32 }
%struct.__kstring_t = type { i64, i64, ptr }
%struct.varset_t = type { i32, i32, ptr, i32, ptr }
%struct.kbitset_t = type { i64, [1 x i64] }
%struct.var_t = type { ptr, i32, i32, i32, i32, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 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: nounwind uwtable
define dso_local void @debug_vsets(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %121, %1
  %8 = load i32, ptr %3, align 4, !tbaa !9
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.sr_sort_t, ptr %9, i32 0, i32 4
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = icmp slt i32 %8, %11
  br i1 %12, label %13, label %124

13:                                               ; preds = %7
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.2, i32 noundef %15) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %51, %13
  %18 = load i32, ptr %4, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.sr_sort_t, ptr %20, i32 0, i32 13
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.varset_t, ptr %22, i64 %24
  %26 = getelementptr inbounds %struct.varset_t, ptr %25, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds %struct.kbitset_t, ptr %27, i32 0, i32 0
  %29 = load i64, ptr %28, align 8, !tbaa !18
  %30 = icmp ult i64 %19, %29
  br i1 %30, label %31, label %54

31:                                               ; preds = %17
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, i32 32, i32 58
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.sr_sort_t, ptr %37, i32 0, i32 13
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.varset_t, ptr %39, i64 %41
  %43 = getelementptr inbounds %struct.varset_t, ptr %42, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds %struct.kbitset_t, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1 x i64], ptr %45, i64 0, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !20
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.3, i32 noundef %36, i64 noundef %49) #3
  br label %51

51:                                               ; preds = %31
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %4, align 4, !tbaa !9
  br label %17, !llvm.loop !21

54:                                               ; preds = %17
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.4) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %115, %54
  %58 = load i32, ptr %4, align 4, !tbaa !9
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.sr_sort_t, ptr %59, i32 0, i32 13
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = load i32, ptr %3, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct.varset_t, ptr %61, i64 %63
  %65 = getelementptr inbounds %struct.varset_t, ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = icmp slt i32 %58, %66
  br i1 %67, label %68, label %118

68:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.sr_sort_t, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.sr_sort_t, ptr %72, i32 0, i32 13
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.varset_t, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.varset_t, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !25
  %80 = load i32, ptr %4, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.var_t, ptr %71, i64 %84
  store ptr %85, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.var_t, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.5, ptr noundef %89) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %111, %68
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.var_t, ptr %93, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !28
  %96 = icmp slt i32 %92, %95
  br i1 %96, label %97, label %114

97:                                               ; preds = %91
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = load i32, ptr %5, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 0
  %101 = zext i1 %100 to i64
  %102 = select i1 %100, i32 58, i32 44
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.var_t, ptr %103, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !29
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %105, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.6, i32 noundef %102, i32 noundef %109) #3
  br label %111

111:                                              ; preds = %97
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %5, align 4, !tbaa !9
  br label %91, !llvm.loop !30

114:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %4, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %4, align 4, !tbaa !9
  br label %57, !llvm.loop !31

118:                                              ; preds = %57
  %119 = load ptr, ptr @stderr, align 8, !tbaa !5
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.7) #3
  br label %121

121:                                              ; preds = %118
  %122 = load i32, ptr %3, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %3, align 4, !tbaa !9
  br label %7, !llvm.loop !32

124:                                              ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 272}
!12 = !{!"", !7, i64 0, !10, i64 256, !10, i64 260, !6, i64 264, !10, i64 272, !10, i64 276, !10, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !10, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !13, i64 368, !10, i64 392, !10, i64 396, !6, i64 400, !10, i64 408, !6, i64 416, !6, i64 424, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444}
!13 = !{!"__kstring_t", !14, i64 0, !14, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 328}
!16 = !{!17, !6, i64 24}
!17 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !6, i64 24}
!18 = !{!19, !14, i64 0}
!19 = !{!"kbitset_t", !14, i64 0, !7, i64 8}
!20 = !{!14, !14, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!17, !10, i64 0}
!24 = !{!12, !6, i64 264}
!25 = !{!17, !6, i64 8}
!26 = !{!27, !6, i64 0}
!27 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!28 = !{!27, !10, i64 16}
!29 = !{!27, !6, i64 24}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}


; 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.varset_t = type { i32, i32, ptr, i32, ptr }
%struct.var_t = type { ptr, i32, i32, i32, i32, ptr, ptr, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @debug_vsets(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 272
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph41, label %._crit_edge42

.lr.ph41:                                         ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 328
  %6 = getelementptr inbounds i8, ptr %0, i64 264
  br label %7

7:                                                ; preds = %.lr.ph41, %._crit_edge38
  %indvars.iv52 = phi i64 [ 0, %.lr.ph41 ], [ %indvars.iv.next53, %._crit_edge38 ]
  %8 = load ptr, ptr @stderr, align 8, !tbaa !13
  %9 = trunc nuw nsw i64 %indvars.iv52 to i32
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.2, i32 noundef %9) #2
  %11 = load ptr, ptr %5, align 8, !tbaa !14
  %12 = getelementptr inbounds %struct.varset_t, ptr %11, i64 %indvars.iv52, i32 4
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = load i64, ptr %13, align 8, !tbaa !17
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %7
  %15 = load ptr, ptr @stderr, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %13, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !19
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.3, i32 noundef 32, i64 noundef %17) #2
  %19 = load ptr, ptr %5, align 8, !tbaa !14
  %20 = getelementptr inbounds %struct.varset_t, ptr %19, i64 %indvars.iv52, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = load i64, ptr %21, align 8, !tbaa !17
  %23 = icmp ugt i64 %22, 1
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %24 = phi ptr [ %32, %.lr.ph ], [ %21, %.lr.ph.preheader ]
  %25 = load ptr, ptr @stderr, align 8, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %24, i64 8
  %27 = getelementptr inbounds [1 x i64], ptr %26, i64 0, i64 %indvars.iv
  %28 = load i64, ptr %27, align 8, !tbaa !19
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.3, i32 noundef 58, i64 noundef %28) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = load ptr, ptr %5, align 8, !tbaa !14
  %31 = getelementptr inbounds %struct.varset_t, ptr %30, i64 %indvars.iv52, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = load i64, ptr %32, align 8, !tbaa !17
  %34 = icmp ugt i64 %33, %indvars.iv.next
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.preheader, %7
  %35 = load ptr, ptr @stderr, align 8, !tbaa !13
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.4) #2
  %37 = load ptr, ptr %5, align 8, !tbaa !14
  %38 = getelementptr inbounds %struct.varset_t, ptr %37, i64 %indvars.iv52
  %39 = load i32, ptr %38, align 8, !tbaa !23
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph37, label %._crit_edge38

.lr.ph37:                                         ; preds = %._crit_edge, %._crit_edge34
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %._crit_edge34 ], [ 0, %._crit_edge ]
  %41 = phi ptr [ %70, %._crit_edge34 ], [ %37, %._crit_edge ]
  %42 = load ptr, ptr %6, align 8, !tbaa !24
  %43 = getelementptr inbounds %struct.varset_t, ptr %41, i64 %indvars.iv52, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %45 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv49
  %46 = load i32, ptr %45, align 4, !tbaa !26
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.var_t, ptr %42, i64 %47
  %49 = load ptr, ptr @stderr, align 8, !tbaa !13
  %50 = load ptr, ptr %48, align 8, !tbaa !27
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.5, ptr noundef %50) #2
  %52 = getelementptr inbounds i8, ptr %48, i64 16
  %53 = load i32, ptr %52, align 8, !tbaa !29
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph33, label %._crit_edge34

.lr.ph33:                                         ; preds = %.lr.ph37
  %55 = getelementptr inbounds i8, ptr %48, i64 24
  %56 = load ptr, ptr @stderr, align 8, !tbaa !13
  %57 = load ptr, ptr %55, align 8, !tbaa !30
  %58 = load i32, ptr %57, align 4, !tbaa !26
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.6, i32 noundef 58, i32 noundef %58) #2
  %60 = load i32, ptr %52, align 8, !tbaa !29
  %61 = icmp sgt i32 %60, 1
  br i1 %61, label %.peel.next, label %._crit_edge34

.peel.next:                                       ; preds = %.lr.ph33, %.peel.next
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %.peel.next ], [ 1, %.lr.ph33 ]
  %62 = load ptr, ptr @stderr, align 8, !tbaa !13
  %63 = load ptr, ptr %55, align 8, !tbaa !30
  %64 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv45
  %65 = load i32, ptr %64, align 4, !tbaa !26
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.6, i32 noundef 44, i32 noundef %65) #2
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %67 = load i32, ptr %52, align 8, !tbaa !29
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next46, %68
  br i1 %69, label %.peel.next, label %._crit_edge34, !llvm.loop !31

._crit_edge34:                                    ; preds = %.peel.next, %.lr.ph33, %.lr.ph37
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %70 = load ptr, ptr %5, align 8, !tbaa !14
  %71 = getelementptr inbounds %struct.varset_t, ptr %70, i64 %indvars.iv52
  %72 = load i32, ptr %71, align 8, !tbaa !23
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next50, %73
  br i1 %74, label %.lr.ph37, label %._crit_edge38, !llvm.loop !32

._crit_edge38:                                    ; preds = %._crit_edge34, %._crit_edge
  %75 = load ptr, ptr @stderr, align 8, !tbaa !13
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.7) #2
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %77 = load i32, ptr %2, align 8, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next53, %78
  br i1 %79, label %7, label %._crit_edge42, !llvm.loop !33

._crit_edge42:                                    ; preds = %._crit_edge38, %1
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

attributes #0 = { nofree 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 = { nofree 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 #2 = { cold 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, !9, i64 272}
!6 = !{!"", !7, i64 0, !9, i64 256, !9, i64 260, !10, i64 264, !9, i64 272, !9, i64 276, !9, i64 280, !10, i64 288, !9, i64 296, !9, i64 300, !9, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !11, i64 368, !9, i64 392, !9, i64 396, !10, i64 400, !9, i64 408, !10, i64 416, !10, i64 424, !9, i64 432, !9, i64 436, !9, i64 440, !9, i64 444}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"__kstring_t", !12, i64 0, !12, i64 8, !10, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !10, i64 328}
!15 = !{!16, !10, i64 24}
!16 = !{!"", !9, i64 0, !9, i64 4, !10, i64 8, !9, i64 16, !10, i64 24}
!17 = !{!18, !12, i64 0}
!18 = !{!"kbitset_t", !12, i64 0, !7, i64 8}
!19 = !{!12, !12, i64 0}
!20 = distinct !{!20, !21, !22}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = !{!16, !9, i64 0}
!24 = !{!6, !10, i64 264}
!25 = !{!16, !10, i64 8}
!26 = !{!9, !9, i64 0}
!27 = !{!28, !10, i64 0}
!28 = !{!"", !10, i64 0, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !10, i64 24, !10, i64 32, !10, i64 40}
!29 = !{!28, !9, i64 16}
!30 = !{!28, !10, i64 24}
!31 = distinct !{!31, !21, !22}
!32 = distinct !{!32, !21}
!33 = distinct !{!33, !21}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass