; LLVM IR from tessarin/dither :: src (main)

; 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.MCTriplet = type { [3 x i8] }
%struct.DTImage = type { i32, i32, i32, i64, ptr }
%struct.DTPixel = type { i8, i8, i8 }
%struct.DTPalette = type { i32, ptr }

; 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: 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) #1

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

16:                                               ; preds = %55, %2
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.DTImage, ptr %19, i32 0, i32 3
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = icmp ult i64 %18, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %58

24:                                               ; preds = %16
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds %struct.MCTriplet, ptr %25, i64 %27
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #6
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.DTImage, ptr %29, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.DTPixel, ptr %31, i64 %33
  %35 = getelementptr inbounds %struct.DTPixel, ptr %34, i32 0, i32 0
  %36 = load i8, ptr %35, align 1, !tbaa !15
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.DTImage, ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.DTPixel, ptr %39, i64 %41
  %43 = getelementptr inbounds %struct.DTPixel, ptr %42, i32 0, i32 1
  %44 = load i8, ptr %43, align 1, !tbaa !17
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.DTImage, ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.DTPixel, ptr %47, i64 %49
  %51 = getelementptr inbounds %struct.DTPixel, ptr %50, i32 0, i32 2
  %52 = load i8, ptr %51, align 1, !tbaa !18
  %53 = call i24 @MCTripletMake(i8 noundef zeroext %36, i8 noundef zeroext %44, i8 noundef zeroext %52)
  %54 = getelementptr inbounds %struct.MCTriplet, ptr %9, i32 0, i32 0
  store i24 %53, ptr %54, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %28, ptr align 1 %9, i64 3, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #6
  br label %55

55:                                               ; preds = %24
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !9
  br label %16, !llvm.loop !21

58:                                               ; preds = %23
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.DTImage, ptr %60, i32 0, i32 3
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = trunc i64 %62 to i32
  %64 = load i32, ptr %4, align 4, !tbaa !9
  %65 = sitofp i32 %64 to double
  %66 = call double @log2(double noundef %65) #6
  %67 = fptoui double %66 to i8
  %68 = call ptr @MCQuantizeData(ptr noundef %59, i32 noundef %63, i8 noundef zeroext %67)
  store ptr %68, ptr %6, align 8, !tbaa !5
  %69 = call noalias ptr @malloc(i64 noundef 16) #7
  store ptr %69, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.DTPalette, ptr %71, i32 0, i32 0
  store i32 %70, ptr %72, align 8, !tbaa !23
  %73 = load i32, ptr %4, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = mul i64 3, %74
  %76 = call noalias ptr @malloc(i64 noundef %75) #7
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.DTPalette, ptr %77, i32 0, i32 1
  store ptr %76, ptr %78, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %127, %58
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %4, align 4, !tbaa !9
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %130

84:                                               ; preds = %79
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.MCTriplet, ptr %85, i64 %87
  %89 = getelementptr inbounds %struct.MCTriplet, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds [3 x i8], ptr %89, i64 0, i64 0
  %91 = load i8, ptr %90, align 1, !tbaa !20
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.DTPalette, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !25
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.DTPixel, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.DTPixel, ptr %97, i32 0, i32 0
  store i8 %91, ptr %98, align 1, !tbaa !15
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.MCTriplet, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.MCTriplet, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds [3 x i8], ptr %103, i64 0, i64 1
  %105 = load i8, ptr %104, align 1, !tbaa !20
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.DTPalette, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !25
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %struct.DTPixel, ptr %108, i64 %110
  %112 = getelementptr inbounds %struct.DTPixel, ptr %111, i32 0, i32 1
  store i8 %105, ptr %112, align 1, !tbaa !17
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.MCTriplet, ptr %113, i64 %115
  %117 = getelementptr inbounds %struct.MCTriplet, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds [3 x i8], ptr %117, i64 0, i64 2
  %119 = load i8, ptr %118, align 1, !tbaa !20
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.DTPalette, ptr %120, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !25
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %struct.DTPixel, ptr %122, i64 %124
  %126 = getelementptr inbounds %struct.DTPixel, ptr %125, i32 0, i32 2
  store i8 %119, ptr %126, align 1, !tbaa !18
  br label %127

127:                                              ; preds = %84
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %10, align 4, !tbaa !9
  br label %79, !llvm.loop !26

130:                                              ; preds = %83
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %131) #6
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %132) #6
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret ptr %133
}

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

declare i24 @MCTripletMake(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #4

declare ptr @MCQuantizeData(ptr noundef, i32 noundef, i8 noundef zeroext) #4

; Function Attrs: nounwind
declare double @log2(double noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 "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 = { 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, !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, !13, i64 16}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !6, i64 24}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 24}
!15 = !{!16, !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!17 = !{!16, !7, i64 1}
!18 = !{!16, !7, i64 2}
!19 = !{i64 0, i64 3, !20}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !10, i64 0}
!24 = !{!"", !10, i64 0, !6, i64 8}
!25 = !{!24, !6, i64 8}
!26 = distinct !{!26, !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.MCTriplet = type { [3 x i8] }
%struct.DTPixel = type { i8, i8, i8 }

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @QuantizedPaletteForImage(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = mul i64 %4, 3
  %6 = tail call noalias ptr @malloc(i64 noundef %5) #5
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  br label %19

._crit_edge.loopexit:                             ; preds = %19
  %8 = trunc i64 %29 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.lcssa = phi i32 [ 0, %2 ], [ %8, %._crit_edge.loopexit ]
  %9 = sitofp i32 %1 to double
  %10 = tail call double @log2(double noundef %9) #6
  %11 = fptoui double %10 to i8
  %12 = tail call ptr @MCQuantizeData(ptr noundef %6, i32 noundef %.lcssa, i8 noundef zeroext %11) #6
  %13 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  store i32 %1, ptr %13, align 8, !tbaa !12
  %14 = sext i32 %1 to i64
  %15 = mul nsw i64 %14, 3
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #5
  %17 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %16, ptr %17, align 8, !tbaa !14
  %18 = icmp sgt i32 %1, 0
  br i1 %18, label %.lr.ph42.preheader, label %._crit_edge43

.lr.ph42.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph42

19:                                               ; preds = %.lr.ph, %19
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %19 ]
  %20 = getelementptr inbounds %struct.MCTriplet, ptr %6, i64 %indvars.iv
  %21 = load ptr, ptr %7, align 8, !tbaa !15
  %22 = getelementptr inbounds %struct.DTPixel, ptr %21, i64 %indvars.iv
  %23 = load i8, ptr %22, align 1, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %22, i64 1
  %25 = load i8, ptr %24, align 1, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %22, i64 2
  %27 = load i8, ptr %26, align 1, !tbaa !19
  %28 = tail call i24 @MCTripletMake(i8 noundef zeroext %23, i8 noundef zeroext %25, i8 noundef zeroext %27) #6
  store i24 %28, ptr %20, align 1, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %30 = icmp ugt i64 %29, %indvars.iv.next
  br i1 %30, label %19, label %._crit_edge.loopexit, !llvm.loop !21

._crit_edge43:                                    ; preds = %.lr.ph42, %._crit_edge
  tail call void @free(ptr noundef %6) #6
  tail call void @free(ptr noundef %12) #6
  ret ptr %13

.lr.ph42:                                         ; preds = %.lr.ph42.preheader, %.lr.ph42
  %indvars.iv46 = phi i64 [ 0, %.lr.ph42.preheader ], [ %indvars.iv.next47, %.lr.ph42 ]
  %31 = getelementptr inbounds %struct.MCTriplet, ptr %12, i64 %indvars.iv46
  %32 = load i8, ptr %31, align 1, !tbaa !20
  %33 = getelementptr inbounds %struct.DTPixel, ptr %16, i64 %indvars.iv46
  store i8 %32, ptr %33, align 1, !tbaa !16
  %34 = getelementptr inbounds i8, ptr %31, i64 1
  %35 = load i8, ptr %34, align 1, !tbaa !20
  %36 = getelementptr inbounds %struct.DTPixel, ptr %16, i64 %indvars.iv46, i32 1
  store i8 %35, ptr %36, align 1, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %31, i64 2
  %38 = load i8, ptr %37, align 1, !tbaa !20
  %39 = getelementptr inbounds %struct.DTPixel, ptr %16, i64 %indvars.iv46, i32 2
  store i8 %38, ptr %39, align 1, !tbaa !19
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge43, label %.lr.ph42, !llvm.loop !23
}

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

declare i24 @MCTripletMake(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

declare ptr @MCQuantizeData(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log2(double noundef) local_unnamed_addr #3

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

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


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