; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseImageSaveJpeg.ll (ZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_m)

; 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::ImageJpegSaver" = type { %"class.Simd::ImageSaver", %"struct.Simd::Array", ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, [64 x float], [64 x float], [64 x i8], [64 x i8] }
%"struct.Simd::Array" = type { ptr, i64 }

@_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_mE9FILL_BITS = external hidden constant [2 x i16], align 2

; 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: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808)) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56), i8 noundef zeroext) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef, i32 noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_m(ptr noundef nonnull align 8 dereferenceable(808) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6) unnamed_addr #1 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca [3 x i32], align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i64 %6, ptr %14, align 8, !tbaa !9
  %18 = load ptr, ptr %8, align 8
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds ptr, ptr %19, i64 5
  %21 = load ptr, ptr %20, align 8
  call void %21(ptr noundef nonnull align 8 dereferenceable(808) %18)
  call void @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808) %18)
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #5
  call void @llvm.memset.p0.i64(ptr align 4 %15, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !13
  br label %22

22:                                               ; preds = %84, %7
  %23 = load i32, ptr %16, align 4, !tbaa !13
  %24 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 1
  %25 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %24, i32 0, i32 1
  %26 = load i64, ptr %25, align 8, !tbaa !15
  %27 = trunc i64 %26 to i32
  %28 = icmp slt i32 %23, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %89

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %31 = load i32, ptr %16, align 4, !tbaa !13
  %32 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %18, i32 0, i32 9
  %33 = load i32, ptr %32, align 8, !tbaa !22
  %34 = add nsw i32 %31, %33
  %35 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %35, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !15
  %38 = trunc i64 %37 to i32
  %39 = call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %34, i32 noundef %38)
  %40 = load i32, ptr %16, align 4, !tbaa !13
  %41 = sub nsw i32 %39, %40
  store i32 %41, ptr %17, align 4, !tbaa !13
  %42 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %18, i32 0, i32 6
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %44 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 2
  %45 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 1
  %46 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !27
  %48 = trunc i64 %47 to i32
  %49 = load i32, ptr %17, align 4, !tbaa !13
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i64, ptr %10, align 8, !tbaa !9
  %52 = trunc i64 %51 to i32
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i64, ptr %12, align 8, !tbaa !9
  %55 = trunc i64 %54 to i32
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = load i64, ptr %14, align 8, !tbaa !9
  %58 = trunc i64 %57 to i32
  %59 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %18, i32 0, i32 11
  %60 = getelementptr inbounds [64 x float], ptr %59, i64 0, i64 0
  %61 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %18, i32 0, i32 12
  %62 = getelementptr inbounds [64 x float], ptr %61, i64 0, i64 0
  %63 = getelementptr inbounds [3 x i32], ptr %15, i64 0, i64 0
  call void %43(ptr noundef nonnull align 8 dereferenceable(56) %44, i32 noundef %48, i32 noundef %49, ptr noundef %50, i32 noundef %52, ptr noundef %53, i32 noundef %55, ptr noundef %56, i32 noundef %58, ptr noundef %60, ptr noundef %62, ptr noundef %63)
  %64 = load i32, ptr %17, align 4, !tbaa !13
  %65 = sext i32 %64 to i64
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = mul i64 %65, %66
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 %67
  store ptr %69, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr %17, align 4, !tbaa !13
  %71 = sdiv i32 %70, 2
  %72 = sext i32 %71 to i64
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = mul i64 %72, %73
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 %74
  store ptr %76, ptr %11, align 8, !tbaa !5
  %77 = load i32, ptr %17, align 4, !tbaa !13
  %78 = sdiv i32 %77, 2
  %79 = sext i32 %78 to i64
  %80 = load i64, ptr %14, align 8, !tbaa !9
  %81 = mul i64 %79, %80
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 %81
  store ptr %83, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %84

84:                                               ; preds = %30
  %85 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %18, i32 0, i32 9
  %86 = load i32, ptr %85, align 8, !tbaa !22
  %87 = load i32, ptr %16, align 4, !tbaa !13
  %88 = add nsw i32 %87, %86
  store i32 %88, ptr %16, align 4, !tbaa !13
  br label %22, !llvm.loop !28

89:                                               ; preds = %29
  %90 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 2
  call void @_ZN4Simd4Base9WriteBitsERNS_18OutputMemoryStreamEPKt(ptr noundef nonnull align 8 dereferenceable(56) %90, ptr noundef @_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_mE9FILL_BITS)
  %91 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 2
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %91, i8 noundef zeroext -1)
  %92 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %18, i32 0, i32 2
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %92, i8 noundef zeroext -39)
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #5
  ret i1 true
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !10, i64 16}
!16 = !{!"_ZTSN4Simd10ImageSaverE", !17, i64 8, !21, i64 40}
!17 = !{!"_ZTSN4Simd15ImageSaverParamE", !10, i64 0, !10, i64 8, !18, i64 16, !19, i64 20, !14, i64 24, !20, i64 28}
!18 = !{!"_ZTS19SimdPixelFormatType", !7, i64 0}
!19 = !{!"_ZTS17SimdImageFileType", !7, i64 0}
!20 = !{!"_ZTS11SimdYuvType", !7, i64 0}
!21 = !{!"_ZTSN4Simd18OutputMemoryStreamE", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!22 = !{!23, !14, i64 160}
!23 = !{!"_ZTSN4Simd4Base14ImageJpegSaverE", !16, i64 0, !24, i64 96, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !25, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !7, i64 168, !7, i64 424, !7, i64 680, !7, i64 744}
!24 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!25 = !{!"bool", !7, i64 0}
!26 = !{!23, !6, i64 144}
!27 = !{!16, !10, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"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"

@_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_mE9FILL_BITS = external hidden constant [2 x i16], align 2

; 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: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_m(ptr noundef nonnull align 8 dereferenceable(808) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6) unnamed_addr #1 align 2 {
  %8 = alloca [3 x i32], align 4
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 40
  %11 = load ptr, ptr %10, align 8
  tail call void %11(ptr noundef nonnull align 8 dereferenceable(808) %0)
  tail call void @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, i8 0, i64 12, i1 false)
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !8
  %14 = trunc i64 %13 to i32
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  %18 = getelementptr inbounds i8, ptr %0, i64 144
  %19 = getelementptr inbounds i8, ptr %0, i64 40
  %20 = trunc i64 %2 to i32
  %21 = trunc i64 %4 to i32
  %22 = trunc i64 %6 to i32
  %23 = getelementptr inbounds i8, ptr %0, i64 168
  %24 = getelementptr inbounds i8, ptr %0, i64 424
  %.pre = load i32, ptr %17, align 8, !tbaa !19
  br label %26

._crit_edge:                                      ; preds = %26, %7
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN4Simd4Base9WriteBitsERNS_18OutputMemoryStreamEPKt(ptr noundef nonnull align 8 dereferenceable(56) %25, ptr noundef nonnull @_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mS3_mE9FILL_BITS)
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %25, i8 noundef zeroext -1)
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %25, i8 noundef zeroext -39)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  ret i1 true

26:                                               ; preds = %.lr.ph, %26
  %27 = phi i32 [ %.pre, %.lr.ph ], [ %44, %26 ]
  %28 = phi i32 [ %14, %.lr.ph ], [ %47, %26 ]
  %.027 = phi ptr [ %1, %.lr.ph ], [ %37, %26 ]
  %.02026 = phi i32 [ 0, %.lr.ph ], [ %45, %26 ]
  %.02125 = phi ptr [ %3, %.lr.ph ], [ %41, %26 ]
  %.02224 = phi ptr [ %5, %.lr.ph ], [ %43, %26 ]
  %29 = add nsw i32 %27, %.02026
  %30 = call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %29, i32 noundef %28)
  %31 = sub nsw i32 %30, %.02026
  %32 = load ptr, ptr %18, align 8, !tbaa !23
  %33 = load i64, ptr %16, align 8, !tbaa !24
  %34 = trunc i64 %33 to i32
  call void %32(ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %34, i32 noundef %31, ptr noundef %.027, i32 noundef %20, ptr noundef %.02125, i32 noundef %21, ptr noundef %.02224, i32 noundef %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %8)
  %35 = sext i32 %31 to i64
  %36 = mul i64 %35, %2
  %37 = getelementptr inbounds i8, ptr %.027, i64 %36
  %38 = sdiv i32 %31, 2
  %39 = sext i32 %38 to i64
  %40 = mul i64 %39, %4
  %41 = getelementptr inbounds i8, ptr %.02125, i64 %40
  %42 = mul i64 %39, %6
  %43 = getelementptr inbounds i8, ptr %.02224, i64 %42
  %44 = load i32, ptr %17, align 8, !tbaa !19
  %45 = add nsw i32 %44, %.02026
  %46 = load i64, ptr %12, align 8, !tbaa !8
  %47 = trunc i64 %46 to i32
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %26, label %._crit_edge, !llvm.loop !25
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 16}
!9 = !{!"_ZTSN4Simd10ImageSaverE", !10, i64 8, !17, i64 40}
!10 = !{!"_ZTSN4Simd15ImageSaverParamE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 20, !15, i64 24, !16, i64 28}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTS19SimdPixelFormatType", !12, i64 0}
!14 = !{!"_ZTS17SimdImageFileType", !12, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = !{!"_ZTS11SimdYuvType", !12, i64 0}
!17 = !{!"_ZTSN4Simd18OutputMemoryStreamE", !11, i64 0, !18, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!18 = !{!"any pointer", !12, i64 0}
!19 = !{!20, !15, i64 160}
!20 = !{!"_ZTSN4Simd4Base14ImageJpegSaverE", !9, i64 0, !21, i64 96, !18, i64 112, !18, i64 120, !18, i64 128, !18, i64 136, !18, i64 144, !22, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !12, i64 168, !12, i64 424, !12, i64 680, !12, i64 744}
!21 = !{!"_ZTSN4Simd5ArrayIhEE", !18, i64 0, !11, i64 8}
!22 = !{!"bool", !12, i64 0}
!23 = !{!20, !18, i64 144}
!24 = !{!9, !11, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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