; LLVM IR from ewconnell/Netlib :: Sources/ImageCodecs (png)

; 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.CDecoderInfo = type { ptr, ptr, i64, i64, i32, i64, i64, i32 }
%struct.PngContext = type { ptr, ptr, %struct.BufferPos }
%struct.BufferPos = type { ptr, i64, i64 }

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.pngDecodeData = external hidden unnamed_addr constant [61 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

declare i64 @png_get_rowbytes(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @pngDecodeData(ptr noundef byval(%struct.CDecoderInfo) align 8 %0, ptr noundef %1, i64 noundef %2) #5 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i64 %2, ptr %5, align 8, !tbaa !9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  br label %18

17:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 435, ptr noundef @__PRETTY_FUNCTION__.pngDecodeData) #6
  unreachable

18:                                               ; preds = %16
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.CDecoderInfo, ptr %0, i32 0, i32 3
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = icmp eq i64 %19, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  br label %25

24:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 436, ptr noundef @__PRETTY_FUNCTION__.pngDecodeData) #6
  unreachable

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %26 = getelementptr inbounds %struct.CDecoderInfo, ptr %0, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  store ptr %27, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %28 = getelementptr inbounds %struct.CDecoderInfo, ptr %0, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds i64, ptr %29, i64 0
  %31 = load i64, ptr %30, align 8, !tbaa !9
  store i64 %31, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %32 = getelementptr inbounds %struct.CDecoderInfo, ptr %0, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = getelementptr inbounds i64, ptr %33, i64 1
  %35 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %35, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %36 = getelementptr inbounds %struct.CDecoderInfo, ptr %0, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds i64, ptr %37, i64 2
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = mul i64 %40, %41
  %43 = getelementptr inbounds %struct.CDecoderInfo, ptr %0, i32 0, i32 5
  %44 = load i64, ptr %43, align 8, !tbaa !16
  %45 = mul i64 %42, %44
  store i64 %45, ptr %10, align 8, !tbaa !9
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.PngContext, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.PngContext, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !20
  %53 = call i64 @png_get_rowbytes(ptr noundef %49, ptr noundef %52)
  %54 = icmp eq i64 %46, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %25
  br label %57

56:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 442, ptr noundef @__PRETTY_FUNCTION__.pngDecodeData) #6
  unreachable

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %58 = load i64, ptr %7, align 8, !tbaa !9
  %59 = mul i64 8, %58
  %60 = call noalias ptr @malloc(i64 noundef %59) #8
  store ptr %60, ptr %11, align 8, !tbaa !5
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %89

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %64, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !21
  br label %65

65:                                               ; preds = %77, %63
  %66 = load i32, ptr %13, align 4, !tbaa !21
  %67 = sext i32 %66 to i64
  %68 = load i64, ptr %7, align 8, !tbaa !9
  %69 = icmp ult i64 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %83

71:                                               ; preds = %65
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i32, ptr %13, align 4, !tbaa !21
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  store ptr %72, ptr %76, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %71
  %78 = load i32, ptr %13, align 4, !tbaa !21
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %13, align 4, !tbaa !21
  %80 = load i64, ptr %10, align 8, !tbaa !9
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 %80
  store ptr %82, ptr %12, align 8, !tbaa !5
  br label %65, !llvm.loop !22

83:                                               ; preds = %70
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.PngContext, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  call void @png_read_image(ptr noundef %86, ptr noundef %87)
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %88) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %89

89:                                               ; preds = %83, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret i32 0
}

declare void @png_read_image(ptr noundef, ptr noundef) #4

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !10, i64 40, !10, i64 48, !13, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 0}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !10, i64 40}
!17 = !{!18, !6, i64 0}
!18 = !{!"", !6, i64 0, !6, i64 8, !19, i64 16}
!19 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!18, !6, i64 8}
!21 = !{!13, !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"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"

%struct.CDecoderInfo = type { ptr, ptr, i64, i64, i32, i64, i64, i32 }

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.pngDecodeData = external hidden unnamed_addr constant [61 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

declare i64 @png_get_rowbytes(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @pngDecodeData(ptr nocapture noundef readonly byval(%struct.CDecoderInfo) align 8 %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #4 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 435, ptr noundef nonnull @__PRETTY_FUNCTION__.pngDecodeData) #5
  unreachable

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i64 %7, %2
  br i1 %8, label %10, label %9

9:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 436, ptr noundef nonnull @__PRETTY_FUNCTION__.pngDecodeData) #5
  unreachable

10:                                               ; preds = %5
  %11 = load ptr, ptr %0, align 8, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = load i64, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %13, i64 8
  %16 = load i64, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %13, i64 16
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = mul i64 %18, %16
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load i64, ptr %20, align 8, !tbaa !15
  %22 = mul i64 %19, %21
  %23 = load ptr, ptr %11, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %11, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = tail call i64 @png_get_rowbytes(ptr noundef %23, ptr noundef %25) #6
  %27 = icmp eq i64 %22, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 442, ptr noundef nonnull @__PRETTY_FUNCTION__.pngDecodeData) #5
  unreachable

29:                                               ; preds = %10
  %30 = shl i64 %14, 3
  %31 = tail call noalias ptr @malloc(i64 noundef %30) #7
  %.not25 = icmp eq ptr %31, null
  br i1 %.not25, label %52, label %.preheader

.preheader:                                       ; preds = %29
  %.not28 = icmp eq i64 %14, 0
  br i1 %.not28, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %xtraiter = and i64 %14, 7
  %32 = icmp ult i64 %14, 8
  br i1 %32, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %14, -8
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.7, %.lr.ph ]
  %.02026.unr = phi ptr [ %1, %.lr.ph.preheader ], [ %51, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.02026.epil = phi ptr [ %34, %.lr.ph.epil ], [ %.02026.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %33 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.epil
  store ptr %.02026.epil, ptr %33, align 8, !tbaa !20
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %34 = getelementptr inbounds i8, ptr %.02026.epil, i64 %22
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader
  %35 = load ptr, ptr %11, align 8, !tbaa !16
  tail call void @png_read_image(ptr noundef %35, ptr noundef nonnull %31) #6
  tail call void @free(ptr noundef nonnull %31) #6
  br label %52

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.7, %.lr.ph ]
  %.02026 = phi ptr [ %1, %.lr.ph.preheader.new ], [ %51, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %36 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  store ptr %.02026, ptr %36, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %37 = getelementptr inbounds i8, ptr %.02026, i64 %22
  %38 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next
  store ptr %37, ptr %38, align 8, !tbaa !20
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %39 = getelementptr inbounds i8, ptr %37, i64 %22
  %40 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.1
  store ptr %39, ptr %40, align 8, !tbaa !20
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %41 = getelementptr inbounds i8, ptr %39, i64 %22
  %42 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.2
  store ptr %41, ptr %42, align 8, !tbaa !20
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv, 4
  %43 = getelementptr inbounds i8, ptr %41, i64 %22
  %44 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.3
  store ptr %43, ptr %44, align 8, !tbaa !20
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv, 5
  %45 = getelementptr inbounds i8, ptr %43, i64 %22
  %46 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.4
  store ptr %45, ptr %46, align 8, !tbaa !20
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv, 6
  %47 = getelementptr inbounds i8, ptr %45, i64 %22
  %48 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.5
  store ptr %47, ptr %48, align 8, !tbaa !20
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv, 7
  %49 = getelementptr inbounds i8, ptr %47, i64 %22
  %50 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.6
  store ptr %49, ptr %50, align 8, !tbaa !20
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %51 = getelementptr inbounds i8, ptr %49, i64 %22
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !23

52:                                               ; preds = %._crit_edge, %29
  ret i32 0
}

declare void @png_read_image(ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nounwind willreturn allockind("free") 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 #1 = { noreturn 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #3 = { "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 = { noreturn nounwind }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 24}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !10, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !10, i64 40}
!16 = !{!17, !7, i64 0}
!17 = !{!"", !7, i64 0, !7, i64 8, !18, i64 16}
!18 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!17, !7, i64 8}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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