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

; 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.CByteArray = type { ptr, i64 }
%struct.jpeg_compress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x i32], [4 x ptr], [4 x ptr], [16 x i8], [16 x i8], [16 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.jpeg_error_mgr = type { ptr, ptr, ptr, ptr, ptr, i32, %union.anon, i32, i64, ptr, i32, ptr, i32, i32 }
%union.anon = type { [8 x i32], [48 x i8] }

@.str = external hidden unnamed_addr constant [48 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__.jpegEncode = external hidden unnamed_addr constant [85 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: nounwind uwtable
define dso_local { ptr, i64 } @jpegEncode(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #1 {
  %6 = alloca %struct.CByteArray, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.jpeg_compress_struct, align 8
  %16 = alloca %struct.jpeg_error_mgr, align 8
  %17 = alloca i32, align 4
  %18 = alloca [1 x ptr], align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store i64 %4, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = getelementptr inbounds i64, ptr %19, i64 0
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds i64, ptr %23, i64 1
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds i64, ptr %27, i64 2
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %14, align 4, !tbaa !11
  %31 = load i32, ptr %14, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %39, label %33

33:                                               ; preds = %5
  %34 = load i32, ptr %14, align 4, !tbaa !11
  %35 = icmp eq i32 %34, 3
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load i32, ptr %14, align 4, !tbaa !11
  %38 = icmp eq i32 %37, 4
  br i1 %38, label %39, label %40

39:                                               ; preds = %36, %33, %5
  br label %41

40:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 77, ptr noundef @__PRETTY_FUNCTION__.jpegEncode) #5
  unreachable

41:                                               ; preds = %39
  %42 = getelementptr inbounds %struct.CByteArray, ptr %6, i32 0, i32 1
  store i64 0, ptr %42, align 8, !tbaa !13
  %43 = getelementptr inbounds %struct.CByteArray, ptr %6, i32 0, i32 0
  store ptr null, ptr %43, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 584, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 168, ptr %16) #4
  %44 = call ptr @jpeg_std_error(ptr noundef %16)
  %45 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 0
  store ptr %44, ptr %45, align 8, !tbaa !16
  call void @jpeg_CreateCompress(ptr noundef %15, i32 noundef 80, i64 noundef 584)
  %46 = getelementptr inbounds %struct.CByteArray, ptr %6, i32 0, i32 0
  %47 = getelementptr inbounds %struct.CByteArray, ptr %6, i32 0, i32 1
  call void @jpeg_mem_dest(ptr noundef %15, ptr noundef %46, ptr noundef %47)
  %48 = load i32, ptr %12, align 4, !tbaa !11
  %49 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 8
  store i32 %48, ptr %49, align 4, !tbaa !20
  %50 = load i32, ptr %13, align 4, !tbaa !11
  %51 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 7
  store i32 %50, ptr %51, align 8, !tbaa !21
  %52 = load i32, ptr %14, align 4, !tbaa !11
  %53 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 9
  store i32 %52, ptr %53, align 8, !tbaa !22
  %54 = load i32, ptr %14, align 4, !tbaa !11
  %55 = icmp eq i32 %54, 1
  %56 = zext i1 %55 to i64
  %57 = select i1 %55, i32 1, i32 2
  %58 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 10
  store i32 %57, ptr %58, align 4, !tbaa !23
  call void @jpeg_set_defaults(ptr noundef %15)
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = trunc i64 %59 to i32
  call void @jpeg_set_quality(ptr noundef %15, i32 noundef %60, i32 noundef 1)
  call void @jpeg_start_compress(ptr noundef %15, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %61 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 7
  %62 = load i32, ptr %61, align 8, !tbaa !21
  %63 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 9
  %64 = load i32, ptr %63, align 8, !tbaa !22
  %65 = mul i32 %62, %64
  store i32 %65, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  br label %66

66:                                               ; preds = %72, %41
  %67 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 45
  %68 = load i32, ptr %67, align 4, !tbaa !24
  %69 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 8
  %70 = load i32, ptr %69, align 4, !tbaa !20
  %71 = icmp ult i32 %68, %70
  br i1 %71, label %72, label %83

72:                                               ; preds = %66
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %15, i32 0, i32 45
  %75 = load i32, ptr %74, align 4, !tbaa !24
  %76 = load i32, ptr %17, align 4, !tbaa !11
  %77 = mul i32 %75, %76
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %73, i64 %78
  %80 = getelementptr inbounds [1 x ptr], ptr %18, i64 0, i64 0
  store ptr %79, ptr %80, align 8, !tbaa !5
  %81 = getelementptr inbounds [1 x ptr], ptr %18, i64 0, i64 0
  %82 = call i32 @jpeg_write_scanlines(ptr noundef %15, ptr noundef %81, i32 noundef 1)
  br label %66, !llvm.loop !25

83:                                               ; preds = %66
  call void @jpeg_finish_compress(ptr noundef %15)
  call void @jpeg_destroy_compress(ptr noundef %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 168, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 584, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %84 = load { ptr, i64 }, ptr %6, align 8
  ret { ptr, i64 } %84
}

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

declare ptr @jpeg_std_error(ptr noundef) #3

declare void @jpeg_CreateCompress(ptr noundef, i32 noundef, i64 noundef) #3

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

declare void @jpeg_set_defaults(ptr noundef) #3

declare void @jpeg_set_quality(ptr noundef, i32 noundef, i32 noundef) #3

declare void @jpeg_start_compress(ptr noundef, i32 noundef) #3

declare i32 @jpeg_write_scanlines(ptr noundef, ptr noundef, i32 noundef) #3

declare void @jpeg_finish_compress(ptr noundef) #3

declare void @jpeg_destroy_compress(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"", !6, i64 0, !10, i64 8}
!15 = !{!14, !6, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"jpeg_compress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !6, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !18, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !6, i64 104, !7, i64 112, !7, i64 144, !7, i64 160, !7, i64 192, !7, i64 224, !7, i64 240, !7, i64 256, !12, i64 272, !6, i64 280, !12, i64 288, !12, i64 292, !12, i64 296, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324, !7, i64 328, !7, i64 329, !7, i64 330, !19, i64 332, !19, i64 334, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !12, i64 352, !12, i64 356, !12, i64 360, !12, i64 364, !12, i64 368, !7, i64 376, !12, i64 408, !12, i64 412, !12, i64 416, !7, i64 420, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !6, i64 480, !12, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !12, i64 576}
!18 = !{!"double", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!17, !12, i64 52}
!21 = !{!17, !12, i64 48}
!22 = !{!17, !12, i64 56}
!23 = !{!17, !12, i64 60}
!24 = !{!17, !12, i64 340}
!25 = distinct !{!25, !26}
!26 = !{!"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.CByteArray = type { ptr, i64 }
%struct.jpeg_compress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x i32], [4 x ptr], [4 x ptr], [16 x i8], [16 x i8], [16 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.jpeg_error_mgr = type { ptr, ptr, ptr, ptr, ptr, i32, %union.anon, i32, i64, ptr, i32, ptr, i32, i32 }
%union.anon = type { [8 x i32], [48 x i8] }

@.str = external hidden unnamed_addr constant [48 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__.jpegEncode = external hidden unnamed_addr constant [85 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: nounwind uwtable
define dso_local { ptr, i64 } @jpegEncode(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #1 {
  %6 = alloca %struct.CByteArray, align 8
  %7 = alloca %struct.jpeg_compress_struct, align 8
  %8 = alloca %struct.jpeg_error_mgr, align 8
  %9 = alloca [1 x ptr], align 8
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = trunc i64 %11 to i32
  switch i32 %12, label %13 [
    i32 4, label %14
    i32 3, label %14
    i32 1, label %14
  ]

13:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 77, ptr noundef nonnull @__PRETTY_FUNCTION__.jpegEncode) #5
  unreachable

14:                                               ; preds = %5, %5, %5
  %15 = icmp eq i32 %12, 1
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = trunc i64 %17 to i32
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %20 = trunc i64 %19 to i32
  %21 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 584, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %8) #6
  %22 = call ptr @jpeg_std_error(ptr noundef nonnull %8) #6
  store ptr %22, ptr %7, align 8, !tbaa !9
  call void @jpeg_CreateCompress(ptr noundef nonnull %7, i32 noundef 80, i64 noundef 584) #6
  call void @jpeg_mem_dest(ptr noundef nonnull %7, ptr noundef nonnull %6, ptr noundef nonnull %21) #6
  %23 = getelementptr inbounds i8, ptr %7, i64 52
  store i32 %20, ptr %23, align 4, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %7, i64 48
  store i32 %18, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %7, i64 56
  store i32 %12, ptr %25, align 8, !tbaa !17
  %26 = select i1 %15, i32 1, i32 2
  %27 = getelementptr inbounds i8, ptr %7, i64 60
  store i32 %26, ptr %27, align 4, !tbaa !18
  call void @jpeg_set_defaults(ptr noundef nonnull %7) #6
  %28 = trunc i64 %4 to i32
  call void @jpeg_set_quality(ptr noundef nonnull %7, i32 noundef %28, i32 noundef 1) #6
  call void @jpeg_start_compress(ptr noundef nonnull %7, i32 noundef 1) #6
  %29 = load i32, ptr %24, align 8, !tbaa !16
  %30 = load i32, ptr %25, align 8, !tbaa !17
  %31 = mul i32 %30, %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %32 = getelementptr inbounds i8, ptr %7, i64 340
  %33 = load i32, ptr %32, align 4, !tbaa !19
  %34 = load i32, ptr %23, align 4, !tbaa !15
  %35 = icmp ult i32 %33, %34
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %14, %.lr.ph
  %36 = phi i32 [ %41, %.lr.ph ], [ %33, %14 ]
  %37 = mul i32 %31, %36
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %0, i64 %38
  store ptr %39, ptr %9, align 8, !tbaa !20
  %40 = call i32 @jpeg_write_scanlines(ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef 1) #6
  %41 = load i32, ptr %32, align 4, !tbaa !19
  %42 = load i32, ptr %23, align 4, !tbaa !15
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph, %14
  call void @jpeg_finish_compress(ptr noundef nonnull %7) #6
  call void @jpeg_destroy_compress(ptr noundef nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 584, ptr nonnull %7) #6
  %.fca.0.load = load ptr, ptr %6, align 8
  %.fca.0.insert = insertvalue { ptr, i64 } poison, ptr %.fca.0.load, 0
  %.fca.1.load = load i64, ptr %21, align 8
  %.fca.1.insert = insertvalue { ptr, i64 } %.fca.0.insert, i64 %.fca.1.load, 1
  ret { ptr, i64 } %.fca.1.insert
}

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

declare ptr @jpeg_std_error(ptr noundef) local_unnamed_addr #3

declare void @jpeg_CreateCompress(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

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

declare void @jpeg_set_defaults(ptr noundef) local_unnamed_addr #3

declare void @jpeg_set_quality(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @jpeg_start_compress(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @jpeg_write_scanlines(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @jpeg_finish_compress(ptr noundef) local_unnamed_addr #3

declare void @jpeg_destroy_compress(ptr noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { noreturn nounwind }
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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"jpeg_compress_struct", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !11, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !13, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !11, i64 104, !7, i64 112, !7, i64 144, !7, i64 160, !7, i64 192, !7, i64 224, !7, i64 240, !7, i64 256, !12, i64 272, !11, i64 280, !12, i64 288, !12, i64 292, !12, i64 296, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324, !7, i64 328, !7, i64 329, !7, i64 330, !14, i64 332, !14, i64 334, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !12, i64 352, !12, i64 356, !12, i64 360, !12, i64 364, !12, i64 368, !7, i64 376, !12, i64 408, !12, i64 412, !12, i64 416, !7, i64 420, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !11, i64 480, !12, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !12, i64 576}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!10, !12, i64 52}
!16 = !{!10, !12, i64 48}
!17 = !{!10, !12, i64 56}
!18 = !{!10, !12, i64 60}
!19 = !{!10, !12, i64 340}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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