; LLVM IR from aap/librw :: src/image.ll (ZN2rw10ColorQuant8addImageEPNS_5ImageE)

; 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.rw::RGBA" = type { i8, i8, i8, i8 }
%"struct.rw::Image" = type { i32, i32, i32, i32, i32, i32, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw10ColorQuant8addImageEPNS_5ImageE = external hidden unnamed_addr constant [39 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: 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

declare void @_ZN2rw27conv_RGBA8888_from_ARGB1555EPhS0_(ptr noundef, ptr noundef) #3

declare void @_ZN2rw25conv_RGBA8888_from_RGB888EPhS0_(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw10ColorQuant8addImageEPNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.rw::RGBA", align 1
  %6 = alloca [4 x i8], align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.rw::RGBA", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.rw::Image", ptr %15, i32 0, i32 6
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %18

18:                                               ; preds = %91, %2
  %19 = load i32, ptr %8, align 4, !tbaa !12
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.rw::Image", ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !13
  %23 = icmp slt i32 %19, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %18
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %94

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %26, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %27

27:                                               ; preds = %81, %25
  %28 = load i32, ptr %11, align 4, !tbaa !12
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.rw::Image", ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = icmp slt i32 %28, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %27
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %84

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %35, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.rw::Image", ptr %36, i32 0, i32 3
  %38 = load i32, ptr %37, align 4, !tbaa !15
  switch i32 %38, label %60 [
    i32 4, label %39
    i32 8, label %39
    i32 32, label %51
    i32 24, label %54
    i32 16, label %57
  ]

39:                                               ; preds = %34, %34
  %40 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.rw::Image", ptr %41, i32 0, i32 7
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 0
  %46 = load i8, ptr %45, align 1, !tbaa !17
  %47 = zext i8 %46 to i32
  %48 = mul nsw i32 %47, 4
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i8, ptr %43, i64 %49
  call void @_ZN2rw27conv_RGBA8888_from_RGBA8888EPhS0_(ptr noundef %40, ptr noundef %50)
  br label %61

51:                                               ; preds = %34
  %52 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN2rw27conv_RGBA8888_from_RGBA8888EPhS0_(ptr noundef %52, ptr noundef %53)
  br label %61

54:                                               ; preds = %34
  %55 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN2rw25conv_RGBA8888_from_RGB888EPhS0_(ptr noundef %55, ptr noundef %56)
  br label %61

57:                                               ; preds = %34
  %58 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN2rw27conv_RGBA8888_from_ARGB1555EPhS0_(ptr noundef %58, ptr noundef %59)
  br label %61

60:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.2, i32 noundef 1244, ptr noundef @__PRETTY_FUNCTION__._ZN2rw10ColorQuant8addImageEPNS_5ImageE) #6
  unreachable

61:                                               ; preds = %57, %54, %51, %39
  %62 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %63 = load i8, ptr %62, align 1, !tbaa !17
  %64 = getelementptr inbounds %"struct.rw::RGBA", ptr %5, i32 0, i32 0
  store i8 %63, ptr %64, align 1, !tbaa !18
  %65 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 1
  %66 = load i8, ptr %65, align 1, !tbaa !17
  %67 = getelementptr inbounds %"struct.rw::RGBA", ptr %5, i32 0, i32 1
  store i8 %66, ptr %67, align 1, !tbaa !20
  %68 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 2
  %69 = load i8, ptr %68, align 1, !tbaa !17
  %70 = getelementptr inbounds %"struct.rw::RGBA", ptr %5, i32 0, i32 2
  store i8 %69, ptr %70, align 1, !tbaa !21
  %71 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 3
  %72 = load i8, ptr %71, align 1, !tbaa !17
  %73 = getelementptr inbounds %"struct.rw::RGBA", ptr %5, i32 0, i32 3
  store i8 %72, ptr %73, align 1, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 %5, i64 4, i1 false), !tbaa.struct !23
  %74 = load i32, ptr %13, align 1
  call void @_ZN2rw10ColorQuant8addColorENS_4RGBAE(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 %74)
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.rw::Image", ptr %75, i32 0, i32 4
  %77 = load i32, ptr %76, align 8, !tbaa !24
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = sext i32 %77 to i64
  %80 = getelementptr inbounds i8, ptr %78, i64 %79
  store ptr %80, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %81

81:                                               ; preds = %61
  %82 = load i32, ptr %11, align 4, !tbaa !12
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %11, align 4, !tbaa !12
  br label %27, !llvm.loop !25

84:                                               ; preds = %33
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.rw::Image", ptr %85, i32 0, i32 5
  %87 = load i32, ptr %86, align 4, !tbaa !27
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = sext i32 %87 to i64
  %90 = getelementptr inbounds i8, ptr %88, i64 %89
  store ptr %90, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %91

91:                                               ; preds = %84
  %92 = load i32, ptr %8, align 4, !tbaa !12
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %8, align 4, !tbaa !12
  br label %18, !llvm.loop !28

94:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw10ColorQuant8addColorENS_4RGBAE(ptr noundef nonnull align 8 dereferenceable(24), i32) #4 align 2

declare void @_ZN2rw27conv_RGBA8888_from_RGBA8888EPhS0_(ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { "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 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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"_ZTSN2rw5ImageE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !6, i64 32}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTSN2rw4RGBAE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!20 = !{!19, !7, i64 1}
!21 = !{!19, !7, i64 2}
!22 = !{!19, !7, i64 3}
!23 = !{i64 0, i64 1, !17, i64 1, i64 1, !17, i64 2, i64 1, !17, i64 3, i64 1, !17}
!24 = !{!10, !11, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !11, i64 20}
!28 = distinct !{!28, !26}


; 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"

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw10ColorQuant8addImageEPNS_5ImageE = external hidden unnamed_addr constant [39 x i8], align 1

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

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

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

declare void @_ZN2rw27conv_RGBA8888_from_ARGB1555EPhS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN2rw25conv_RGBA8888_from_RGB888EPhS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw10ColorQuant8addImageEPNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #3 align 2 {
  %3 = alloca [4 x i8], align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader.lr.ph, label %._crit_edge27

.preheader.lr.ph:                                 ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = getelementptr inbounds i8, ptr %1, i64 12
  %9 = getelementptr inbounds i8, ptr %1, i64 32
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = getelementptr inbounds i8, ptr %1, i64 20
  %12 = load i32, ptr %7, align 4, !tbaa !11
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.preheader.preheader, label %._crit_edge27

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %16 = phi i32 [ %19, %._crit_edge ], [ %5, %.preheader.preheader ]
  %17 = phi i32 [ %20, %._crit_edge ], [ %12, %.preheader.preheader ]
  %.026 = phi ptr [ %23, %._crit_edge ], [ %15, %.preheader.preheader ]
  %.02025 = phi i32 [ %24, %._crit_edge ], [ 0, %.preheader.preheader ]
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge27:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  ret void

._crit_edge.loopexit:                             ; preds = %39
  %.pre = load i32, ptr %4, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %19 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %16, %.preheader ]
  %20 = phi i32 [ %45, %._crit_edge.loopexit ], [ %17, %.preheader ]
  %21 = load i32, ptr %11, align 4, !tbaa !13
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds i8, ptr %.026, i64 %22
  %24 = add nuw nsw i32 %.02025, 1
  %25 = icmp slt i32 %24, %19
  br i1 %25, label %.preheader, label %._crit_edge27, !llvm.loop !14

.lr.ph:                                           ; preds = %.preheader, %39
  %.02124 = phi i32 [ %44, %39 ], [ 0, %.preheader ]
  %.02223 = phi ptr [ %43, %39 ], [ %.026, %.preheader ]
  %26 = load i32, ptr %8, align 4, !tbaa !17
  %27 = add i32 %26, -4
  %28 = call i32 @llvm.fshl.i32(i32 %27, i32 %27, i32 30)
  switch i32 %28, label %38 [
    i32 0, label %29
    i32 1, label %29
    i32 7, label %35
    i32 5, label %36
    i32 3, label %37
  ]

29:                                               ; preds = %.lr.ph, %.lr.ph
  %30 = load ptr, ptr %9, align 8, !tbaa !18
  %31 = load i8, ptr %.02223, align 1, !tbaa !19
  %32 = zext i8 %31 to i64
  %33 = shl nuw nsw i64 %32, 2
  %34 = getelementptr inbounds i8, ptr %30, i64 %33
  call void @_ZN2rw27conv_RGBA8888_from_RGBA8888EPhS0_(ptr noundef nonnull %3, ptr noundef %34)
  br label %39

35:                                               ; preds = %.lr.ph
  call void @_ZN2rw27conv_RGBA8888_from_RGBA8888EPhS0_(ptr noundef nonnull %3, ptr noundef %.02223)
  br label %39

36:                                               ; preds = %.lr.ph
  call void @_ZN2rw25conv_RGBA8888_from_RGB888EPhS0_(ptr noundef nonnull %3, ptr noundef %.02223)
  br label %39

37:                                               ; preds = %.lr.ph
  call void @_ZN2rw27conv_RGBA8888_from_ARGB1555EPhS0_(ptr noundef nonnull %3, ptr noundef %.02223)
  br label %39

38:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.2, i32 noundef 1244, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN2rw10ColorQuant8addImageEPNS_5ImageE) #6
  unreachable

39:                                               ; preds = %37, %36, %35, %29
  %40 = load i32, ptr %3, align 4
  call void @_ZN2rw10ColorQuant8addColorENS_4RGBAE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 %40)
  %41 = load i32, ptr %10, align 8, !tbaa !20
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i8, ptr %.02223, i64 %42
  %44 = add nuw nsw i32 %.02124, 1
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !21
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw10ColorQuant8addColorENS_4RGBAE(ptr noundef nonnull align 8 dereferenceable(24), i32) local_unnamed_addr #3 align 2

declare void @_ZN2rw27conv_RGBA8888_from_RGBA8888EPhS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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, !7, i64 8}
!6 = !{!"_ZTSN2rw5ImageE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !7, i64 20}
!14 = distinct !{!14, !15, !16}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = !{!6, !7, i64 12}
!18 = !{!6, !10, i64 32}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !7, i64 16}
!21 = distinct !{!21, !15}


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