; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseImageSaveBmp.ll (ZN4Simd4Base13ImageBmpSaver8ToStreamEPKhm)

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

%"class.Simd::ImageSaver" = type { ptr, %"struct.Simd::ImageSaverParam", %"class.Simd::OutputMemoryStream" }
%"struct.Simd::ImageSaverParam" = type { i64, i64, i32, i32, i32, i32 }
%"class.Simd::OutputMemoryStream" = type { i64, ptr, i64, i64, i64, i64, i64 }
%"class.Simd::Base::ImageBmpSaver" = type { %"class.Simd::ImageSaver", ptr, i64, i64, i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Simd4Base13ImageBmpSaver8ToStreamEPKhm(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %10 = load ptr, ptr %4, align 8
  %11 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 2
  %12 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 2
  %13 = load i64, ptr %12, align 8, !tbaa !11
  %14 = icmp eq i64 %13, 4
  %15 = zext i1 %14 to i64
  %16 = select i1 %14, i32 108, i32 40
  %17 = add nsw i32 14, %16
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 1
  %20 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %19, i32 0, i32 1
  %21 = load i64, ptr %20, align 8, !tbaa !20
  %22 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 3
  %23 = load i64, ptr %22, align 8, !tbaa !21
  %24 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 4
  %25 = load i64, ptr %24, align 8, !tbaa !22
  %26 = add i64 %23, %25
  %27 = mul i64 %21, %26
  %28 = add i64 %18, %27
  call void @_ZN4Simd18OutputMemoryStream7ReserveEm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef %28)
  call void @_ZN4Simd4Base13ImageBmpSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(128) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !23
  %29 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 1
  %30 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !20
  %32 = sub i64 %31, 1
  %33 = load i64, ptr %6, align 8, !tbaa !9
  %34 = mul i64 %32, %33
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 %34
  store ptr %36, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %88, %3
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 1
  %40 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !20
  %42 = icmp ult i64 %38, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %91

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %45 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 2
  %46 = call noundef ptr @_ZN4Simd18OutputMemoryStream7CurrentEv(ptr noundef nonnull align 8 dereferenceable(56) %45)
  store ptr %46, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 2
  %48 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 2
  %49 = call noundef i64 @_ZNK4Simd18OutputMemoryStream3PosEv(ptr noundef nonnull align 8 dereferenceable(56) %48)
  %50 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 3
  %51 = load i64, ptr %50, align 8, !tbaa !21
  %52 = add i64 %49, %51
  call void @_ZN4Simd18OutputMemoryStream4SeekEm(ptr noundef nonnull align 8 dereferenceable(56) %47, i64 noundef %52)
  %53 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %70

56:                                               ; preds = %44
  %57 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !24
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !25
  %63 = load i64, ptr %6, align 8, !tbaa !9
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 3
  %66 = load i64, ptr %65, align 8, !tbaa !21
  %67 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 4
  %68 = load i64, ptr %67, align 8, !tbaa !22
  %69 = add i64 %66, %68
  call void %58(ptr noundef %59, i64 noundef %62, i64 noundef 1, i64 noundef %63, ptr noundef %64, i64 noundef %69)
  br label %75

70:                                               ; preds = %44
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 3
  %74 = load i64, ptr %73, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %71, ptr align 1 %72, i64 %74, i1 false)
  br label %75

75:                                               ; preds = %70, %56
  %76 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 4
  %77 = load i64, ptr %76, align 8, !tbaa !22
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %10, i32 0, i32 2
  %81 = getelementptr inbounds %"class.Simd::Base::ImageBmpSaver", ptr %10, i32 0, i32 4
  %82 = load i64, ptr %81, align 8, !tbaa !22
  call void @_ZN4Simd18OutputMemoryStream5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef %7, i64 noundef %82)
  br label %83

83:                                               ; preds = %79, %75
  %84 = load i64, ptr %6, align 8, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = sub i64 0, %84
  %87 = getelementptr inbounds i8, ptr %85, i64 %86
  store ptr %87, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %88

88:                                               ; preds = %83
  %89 = load i64, ptr %8, align 8, !tbaa !9
  %90 = add i64 %89, 1
  store i64 %90, ptr %8, align 8, !tbaa !9
  br label %37, !llvm.loop !26

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream7ReserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base13ImageBmpSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd18OutputMemoryStream7CurrentEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream4SeekEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4Simd18OutputMemoryStream3PosEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i64 noundef) #1 align 2

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

attributes #0 = { 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 #1 = { alwaysinline 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress 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 }

!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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 104}
!12 = !{!"_ZTSN4Simd4Base13ImageBmpSaverE", !13, i64 0, !6, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!13 = !{!"_ZTSN4Simd10ImageSaverE", !14, i64 8, !19, i64 40}
!14 = !{!"_ZTSN4Simd15ImageSaverParamE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 20, !17, i64 24, !18, i64 28}
!15 = !{!"_ZTS19SimdPixelFormatType", !7, i64 0}
!16 = !{!"_ZTS17SimdImageFileType", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTS11SimdYuvType", !7, i64 0}
!19 = !{!"_ZTSN4Simd18OutputMemoryStreamE", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!20 = !{!13, !10, i64 16}
!21 = !{!12, !10, i64 112}
!22 = !{!12, !10, i64 120}
!23 = !{!17, !17, i64 0}
!24 = !{!12, !6, i64 96}
!25 = !{!13, !10, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Simd4Base13ImageBmpSaver8ToStreamEPKhm(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca i32, align 4
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i64 %7, 4
  %9 = select i1 %8, i64 122, i64 54
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i64, ptr %11, align 8, !tbaa !18
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  %14 = load i64, ptr %13, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  %16 = load i64, ptr %15, align 8, !tbaa !20
  %17 = add i64 %16, %14
  %18 = mul i64 %17, %12
  %19 = add i64 %18, %9
  tail call void @_ZN4Simd18OutputMemoryStream7ReserveEm(ptr noundef nonnull align 8 dereferenceable(56) %5, i64 noundef %19)
  tail call void @_ZN4Simd4Base13ImageBmpSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !21
  %20 = load i64, ptr %11, align 8, !tbaa !18
  %.not17 = icmp eq i64 %20, 0
  br i1 %.not17, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %21 = add i64 %20, -1
  %22 = mul i64 %21, %2
  %23 = getelementptr inbounds i8, ptr %1, i64 %22
  %24 = getelementptr inbounds i8, ptr %0, i64 96
  %25 = sub i64 0, %2
  br label %26

._crit_edge:                                      ; preds = %42, %3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret i1 true

26:                                               ; preds = %.lr.ph, %42
  %.016 = phi ptr [ %23, %.lr.ph ], [ %43, %42 ]
  %.01115 = phi i64 [ 0, %.lr.ph ], [ %44, %42 ]
  %27 = call noundef ptr @_ZN4Simd18OutputMemoryStream7CurrentEv(ptr noundef nonnull align 8 dereferenceable(56) %5)
  %28 = call noundef i64 @_ZNK4Simd18OutputMemoryStream3PosEv(ptr noundef nonnull align 8 dereferenceable(56) %5)
  %29 = load i64, ptr %13, align 8, !tbaa !19
  %30 = add i64 %29, %28
  call void @_ZN4Simd18OutputMemoryStream4SeekEm(ptr noundef nonnull align 8 dereferenceable(56) %5, i64 noundef %30)
  %31 = load ptr, ptr %24, align 8, !tbaa !22
  %.not = icmp eq ptr %31, null
  br i1 %.not, label %37, label %32

32:                                               ; preds = %26
  %33 = load i64, ptr %10, align 8, !tbaa !23
  %34 = load i64, ptr %13, align 8, !tbaa !19
  %35 = load i64, ptr %15, align 8, !tbaa !20
  %36 = add i64 %35, %34
  call void %31(ptr noundef %.016, i64 noundef %33, i64 noundef 1, i64 noundef %2, ptr noundef %27, i64 noundef %36)
  br label %39

37:                                               ; preds = %26
  %38 = load i64, ptr %13, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %27, ptr align 1 %.016, i64 %38, i1 false)
  br label %39

39:                                               ; preds = %37, %32
  %40 = load i64, ptr %15, align 8, !tbaa !20
  %.not14 = icmp eq i64 %40, 0
  br i1 %.not14, label %42, label %41

41:                                               ; preds = %39
  call void @_ZN4Simd18OutputMemoryStream5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull %4, i64 noundef %40)
  br label %42

42:                                               ; preds = %41, %39
  %43 = getelementptr inbounds i8, ptr %.016, i64 %25
  %44 = add nuw i64 %.01115, 1
  %45 = load i64, ptr %11, align 8, !tbaa !18
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %26, label %._crit_edge, !llvm.loop !24
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream7ReserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base13ImageBmpSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd18OutputMemoryStream7CurrentEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream4SeekEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4Simd18OutputMemoryStream3PosEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 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) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream5WriteEPKvm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { 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 #1 = { alwaysinline 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 104}
!6 = !{!"_ZTSN4Simd4Base13ImageBmpSaverE", !7, i64 0, !17, i64 96, !9, i64 104, !9, i64 112, !9, i64 120}
!7 = !{!"_ZTSN4Simd10ImageSaverE", !8, i64 8, !16, i64 40}
!8 = !{!"_ZTSN4Simd15ImageSaverParamE", !9, i64 0, !9, i64 8, !12, i64 16, !13, i64 20, !14, i64 24, !15, i64 28}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS19SimdPixelFormatType", !10, i64 0}
!13 = !{!"_ZTS17SimdImageFileType", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"_ZTS11SimdYuvType", !10, i64 0}
!16 = !{!"_ZTSN4Simd18OutputMemoryStreamE", !9, i64 0, !17, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48}
!17 = !{!"any pointer", !10, i64 0}
!18 = !{!7, !9, i64 16}
!19 = !{!6, !9, i64 112}
!20 = !{!6, !9, i64 120}
!21 = !{!14, !14, i64 0}
!22 = !{!6, !17, i64 96}
!23 = !{!7, !9, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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