; LLVM IR from ryanlayer/giggle :: src (pq)

; 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.priority = type { i32, [50 x i8] }
%struct.pri_queue_t = type { ptr, i32, i32 }
%struct.q_elem_t = type { ptr, %struct.priority }

@.str.3 = 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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @pricmp(ptr noundef byval(%struct.priority) align 8, ptr noundef byval(%struct.priority) align 8) #3

; 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) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @priq_pop(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.pri_queue_t, ptr %11, i32 0, i32 1
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  store ptr null, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %138

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.pri_queue_t, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  store ptr %19, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.q_elem_t, ptr %20, i64 1
  %22 = getelementptr inbounds %struct.q_elem_t, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  store ptr %23, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %31

26:                                               ; preds = %16
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.q_elem_t, ptr %28, i64 1
  %30 = getelementptr inbounds %struct.q_elem_t, ptr %29, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %30, i64 56, i1 false), !tbaa.struct !16
  br label %31

31:                                               ; preds = %26, %16
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.pri_queue_t, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = add nsw i32 %34, -1
  store i32 %35, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  br label %36

36:                                               ; preds = %83, %31
  %37 = load i32, ptr %9, align 4, !tbaa !17
  %38 = mul nsw i32 %37, 2
  store i32 %38, ptr %10, align 4, !tbaa !17
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.pri_queue_t, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = icmp slt i32 %38, %41
  br i1 %42, label %43, label %93

43:                                               ; preds = %36
  %44 = load i32, ptr %10, align 4, !tbaa !17
  %45 = add nsw i32 %44, 1
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.pri_queue_t, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !9
  %49 = icmp slt i32 %45, %48
  br i1 %49, label %50, label %67

50:                                               ; preds = %43
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %10, align 4, !tbaa !17
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.q_elem_t, ptr %51, i64 %53
  %55 = getelementptr inbounds %struct.q_elem_t, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %10, align 4, !tbaa !17
  %58 = add nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.q_elem_t, ptr %56, i64 %59
  %61 = getelementptr inbounds %struct.q_elem_t, ptr %60, i32 0, i32 1
  %62 = call i32 @pricmp(ptr noundef byval(%struct.priority) align 8 %55, ptr noundef byval(%struct.priority) align 8 %61)
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %50
  %65 = load i32, ptr %10, align 4, !tbaa !17
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %10, align 4, !tbaa !17
  br label %67

67:                                               ; preds = %64, %50, %43
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.pri_queue_t, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.q_elem_t, ptr %68, i64 %72
  %74 = getelementptr inbounds %struct.q_elem_t, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !17
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.q_elem_t, ptr %75, i64 %77
  %79 = getelementptr inbounds %struct.q_elem_t, ptr %78, i32 0, i32 1
  %80 = call i32 @pricmp(ptr noundef byval(%struct.priority) align 8 %74, ptr noundef byval(%struct.priority) align 8 %79)
  %81 = icmp sle i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %67
  br label %93

83:                                               ; preds = %67
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !17
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.q_elem_t, ptr %84, i64 %86
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i32, ptr %10, align 4, !tbaa !17
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.q_elem_t, ptr %88, i64 %90
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %91, i64 64, i1 false), !tbaa.struct !19
  %92 = load i32, ptr %10, align 4, !tbaa !17
  store i32 %92, ptr %9, align 4, !tbaa !17
  br label %36, !llvm.loop !20

93:                                               ; preds = %82, %36
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !17
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.q_elem_t, ptr %94, i64 %96
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.pri_queue_t, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 8, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.q_elem_t, ptr %98, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 8 %103, i64 64, i1 false), !tbaa.struct !19
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.pri_queue_t, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 8, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.pri_queue_t, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !22
  %110 = sdiv i32 %109, 2
  %111 = icmp slt i32 %106, %110
  br i1 %111, label %112, label %136

112:                                              ; preds = %93
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.pri_queue_t, ptr %113, i32 0, i32 1
  %115 = load i32, ptr %114, align 8, !tbaa !9
  %116 = icmp sge i32 %115, 16
  br i1 %116, label %117, label %136

117:                                              ; preds = %112
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.pri_queue_t, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !12
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.pri_queue_t, ptr %121, i32 0, i32 2
  %123 = load i32, ptr %122, align 4, !tbaa !22
  %124 = sdiv i32 %123, 2
  store i32 %124, ptr %122, align 4, !tbaa !22
  %125 = sext i32 %124 to i64
  %126 = mul i64 %125, 64
  %127 = call ptr @realloc(ptr noundef %120, i64 noundef %126) #6
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.pri_queue_t, ptr %128, i32 0, i32 0
  store ptr %127, ptr %129, align 8, !tbaa !12
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.pri_queue_t, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !12
  %133 = icmp eq ptr %132, null
  br i1 %133, label %134, label %135

134:                                              ; preds = %117
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.3) #7
  unreachable

135:                                              ; preds = %117
  br label %136

136:                                              ; preds = %135, %112, %93
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %137, ptr %3, align 8
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %138

138:                                              ; preds = %136, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %139 = load ptr, ptr %3, align 8
  ret ptr %139
}

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

!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 8}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !15, i64 8}
!15 = !{!"", !11, i64 0, !7, i64 4}
!16 = !{i64 0, i64 4, !17, i64 4, i64 50, !18}
!17 = !{!11, !11, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 8, !5, i64 8, i64 4, !17, i64 12, i64 50, !18}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !11, i64 12}


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

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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @pricmp(ptr noundef byval(%struct.priority) align 8, ptr noundef byval(%struct.priority) align 8) local_unnamed_addr #2

; 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) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @priq_pop(ptr nocapture noundef %0, ptr noundef writeonly %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 1
  br i1 %5, label %60, label %6

6:                                                ; preds = %2
  %7 = load ptr, ptr %0, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %7, i64 64
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %12, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %7, i64 72
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %11, i64 56, i1 false), !tbaa.struct !15
  %.pre = load i32, ptr %3, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %10, %6
  %13 = phi i32 [ %.pre, %10 ], [ %4, %6 ]
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %3, align 8, !tbaa !5
  %15 = icmp sgt i32 %13, 3
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12, %36
  %16 = phi i32 [ %40, %36 ], [ %14, %12 ]
  %17 = phi i32 [ %39, %36 ], [ 2, %12 ]
  %.03745 = phi i32 [ %.0, %36 ], [ 1, %12 ]
  %18 = or disjoint i32 %17, 1
  %19 = icmp slt i32 %18, %16
  br i1 %19, label %20, label %27

20:                                               ; preds = %.lr.ph
  %21 = sext i32 %17 to i64
  %22 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %21, i32 1
  %23 = sext i32 %18 to i64
  %24 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %23, i32 1
  %25 = tail call i32 @pricmp(ptr noundef nonnull byval(%struct.priority) align 8 %22, ptr noundef nonnull byval(%struct.priority) align 8 %24)
  %26 = icmp sgt i32 %25, 0
  %spec.select = select i1 %26, i32 %18, i32 %17
  %.pre48 = load i32, ptr %3, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %20, %.lr.ph
  %28 = phi i32 [ %16, %.lr.ph ], [ %.pre48, %20 ]
  %.0 = phi i32 [ %17, %.lr.ph ], [ %spec.select, %20 ]
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %29, i32 1
  %31 = sext i32 %.0 to i64
  %32 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %31
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = tail call i32 @pricmp(ptr noundef nonnull byval(%struct.priority) align 8 %30, ptr noundef nonnull byval(%struct.priority) align 8 %33)
  %35 = icmp slt i32 %34, 1
  br i1 %35, label %.._crit_edge.loopexit_crit_edge, label %36

.._crit_edge.loopexit_crit_edge:                  ; preds = %27
  %.pre49.pre = load i32, ptr %3, align 8, !tbaa !5
  br label %._crit_edge.loopexit

36:                                               ; preds = %27
  %37 = sext i32 %.03745 to i64
  %38 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %37
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %38, ptr noundef nonnull align 8 dereferenceable(64) %32, i64 64, i1 false), !tbaa.struct !18
  %39 = shl nsw i32 %.0, 1
  %40 = load i32, ptr %3, align 8, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %36, %.._crit_edge.loopexit_crit_edge
  %.pre49 = phi i32 [ %.pre49.pre, %.._crit_edge.loopexit_crit_edge ], [ %40, %36 ]
  %.037.lcssa.ph = phi i32 [ %.03745, %.._crit_edge.loopexit_crit_edge ], [ %.0, %36 ]
  %42 = sext i32 %.037.lcssa.ph to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %12
  %43 = phi i32 [ %14, %12 ], [ %.pre49, %._crit_edge.loopexit ]
  %.037.lcssa = phi i64 [ 1, %12 ], [ %42, %._crit_edge.loopexit ]
  %44 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %.037.lcssa
  %45 = sext i32 %43 to i64
  %46 = getelementptr inbounds %struct.q_elem_t, ptr %7, i64 %45
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %44, ptr noundef nonnull align 8 dereferenceable(64) %46, i64 64, i1 false), !tbaa.struct !18
  %47 = load i32, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %0, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !22
  %50 = sdiv i32 %49, 2
  %51 = icmp slt i32 %47, %50
  %52 = icmp sgt i32 %47, 15
  %or.cond = and i1 %52, %51
  br i1 %or.cond, label %53, label %60

53:                                               ; preds = %._crit_edge
  %54 = load ptr, ptr %0, align 8, !tbaa !11
  store i32 %50, ptr %48, align 4, !tbaa !22
  %55 = sext i32 %50 to i64
  %56 = shl nsw i64 %55, 6
  %57 = tail call ptr @realloc(ptr noundef %54, i64 noundef %56) #4
  store ptr %57, ptr %0, align 8, !tbaa !11
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %53
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.3) #5
  unreachable

60:                                               ; preds = %._crit_edge, %53, %2
  %.038 = phi ptr [ null, %2 ], [ %9, %53 ], [ %9, %._crit_edge ]
  ret ptr %.038
}

attributes #0 = { noreturn "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 willreturn allockind("realloc") allocsize(1) 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 #2 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind allocsize(1) }
attributes #5 = { noreturn 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, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"", !7, i64 0, !14, i64 8}
!14 = !{!"", !10, i64 0, !8, i64 4}
!15 = !{i64 0, i64 4, !16, i64 4, i64 50, !17}
!16 = !{!10, !10, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{i64 0, i64 8, !19, i64 8, i64 4, !16, i64 12, i64 50, !17}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !10, i64 12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass