; LLVM IR from aagdev/mlimgsynth :: src/ccommon (image_io_pnm)

; 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.ImageIO = type { ptr, ptr, ptr, ptr, i32, i32 }
%struct.Image = type { ptr, i32, i32, i32, i32, i32, i32 }

; 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 i32 @imgio_pnm_load(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %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 i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, 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 !9
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImageIO, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = call i32 @stream_read_prep(ptr noundef %22, i64 noundef 0)
  %24 = icmp slt i32 %23, 8
  br i1 %24, label %25, label %26

25:                                               ; preds = %3
  store i32 -779, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %130

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImageIO, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = call ptr @stream_buffer_get_(ptr noundef %29, ptr noundef %10)
  store ptr %30, ptr %11, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i32 1
  store ptr %32, ptr %11, align 8, !tbaa !5
  %33 = load i8, ptr %31, align 1, !tbaa !13
  %34 = sext i8 %33 to i32
  %35 = icmp ne i32 %34, 80
  br i1 %35, label %36, label %37

36:                                               ; preds = %26
  store i32 -779, ptr %8, align 4, !tbaa !9
  br label %127

37:                                               ; preds = %26
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i32 1
  store ptr %39, ptr %11, align 8, !tbaa !5
  %40 = load i8, ptr %38, align 1, !tbaa !13
  %41 = sext i8 %40 to i32
  switch i32 %41, label %44 [
    i32 53, label %42
    i32 54, label %43
  ]

42:                                               ; preds = %37
  store i32 1, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %45

43:                                               ; preds = %37
  store i32 258, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %12, align 4, !tbaa !9
  br label %45

44:                                               ; preds = %37
  store i32 -776, ptr %8, align 4, !tbaa !9
  br label %127

45:                                               ; preds = %43, %42
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = call ptr @field_next(ptr noundef %46, ptr noundef %47)
  store ptr %48, ptr %11, align 8, !tbaa !5
  %49 = call i32 @atoi(ptr noundef %48) #6
  store i32 %49, ptr %14, align 4, !tbaa !9
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = call ptr @field_next(ptr noundef %50, ptr noundef %51)
  store ptr %52, ptr %11, align 8, !tbaa !5
  %53 = call i32 @atoi(ptr noundef %52) #6
  store i32 %53, ptr %15, align 4, !tbaa !9
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = call ptr @field_next(ptr noundef %54, ptr noundef %55)
  store ptr %56, ptr %11, align 8, !tbaa !5
  %57 = call i32 @atoi(ptr noundef %56) #6
  store i32 %57, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = icmp slt i32 %58, 1
  br i1 %59, label %66, label %60

60:                                               ; preds = %45
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 1
  br i1 %62, label %66, label %63

63:                                               ; preds = %60
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = icmp slt i32 %64, 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %63, %60, %45
  store i32 -779, ptr %8, align 4, !tbaa !9
  br label %127

67:                                               ; preds = %63
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 255
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  store i32 -776, ptr %8, align 4, !tbaa !9
  br label %127

71:                                               ; preds = %67
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = call ptr @field_next(ptr noundef %72, ptr noundef %73)
  store ptr %74, ptr %11, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImageIO, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  call void @stream_commit(ptr noundef %77, ptr noundef %78)
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = call i32 @img_resize(ptr noundef %79, i32 noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef 0)
  store i32 %83, ptr %8, align 4, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %71
  br label %127

87:                                               ; preds = %71
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Image, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !14
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = mul i32 %90, %91
  %93 = zext i32 %92 to i64
  store i64 %93, ptr %17, align 8, !tbaa !16
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Image, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  store ptr %96, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %121, %87
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.Image, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !19
  %102 = icmp ult i32 %98, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %97
  store i32 4, ptr %9, align 4
  br label %124

104:                                              ; preds = %97
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ImageIO, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  %108 = load i64, ptr %17, align 8, !tbaa !16
  %109 = load ptr, ptr %18, align 8, !tbaa !5
  %110 = call i64 @stream_read(ptr noundef %107, i64 noundef %108, ptr noundef %109)
  %111 = load i64, ptr %17, align 8, !tbaa !16
  %112 = icmp ne i64 %110, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %104
  store i32 -779, ptr %8, align 4, !tbaa !9
  store i32 2, ptr %9, align 4
  br label %124

114:                                              ; preds = %104
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Image, ptr %115, i32 0, i32 3
  %117 = load i32, ptr %116, align 8, !tbaa !20
  %118 = load ptr, ptr %18, align 8, !tbaa !5
  %119 = zext i32 %117 to i64
  %120 = getelementptr inbounds i8, ptr %118, i64 %119
  store ptr %120, ptr %18, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %114
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = add i32 %122, 1
  store i32 %123, ptr %19, align 4, !tbaa !9
  br label %97, !llvm.loop !21

124:                                              ; preds = %113, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %125 = load i32, ptr %9, align 4
  switch i32 %125, label %129 [
    i32 4, label %126
    i32 2, label %127
  ]

126:                                              ; preds = %124
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %129

127:                                              ; preds = %124, %86, %70, %66, %44, %36
  %128 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %128, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %129

129:                                              ; preds = %127, %126, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %130

130:                                              ; preds = %129, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %131 = load i32, ptr %4, align 4
  ret i32 %131
}

declare i32 @stream_read_prep(ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @stream_buffer_get_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @field_next(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @stream_commit(ptr noalias noundef, ptr noalias noundef) #3

declare i32 @img_resize(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stream_read(ptr noalias noundef, i64 noundef, ptr noalias 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 = { "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 = { inlinehint 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 = { inlinehint nounwind willreturn memory(read) 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 = { nounwind willreturn memory(read) }

!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, !6, i64 8}
!12 = !{!"ImageIO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"Image", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!15, !6, i64 0}
!19 = !{!15, !10, i64 12}
!20 = !{!15, !10, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"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 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 i32 @imgio_pnm_load(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call i32 @stream_read_prep(ptr noundef %6, i64 noundef 0) #5
  %8 = icmp slt i32 %7, 8
  br i1 %8, label %56, label %9

9:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = call ptr @stream_buffer_get_(ptr noundef %10, ptr noundef nonnull %4)
  %12 = load i8, ptr %11, align 1, !tbaa !11
  %.not = icmp eq i8 %12, 80
  br i1 %.not, label %13, label %.loopexit

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %11, i64 1
  %15 = getelementptr inbounds i8, ptr %11, i64 2
  %16 = load i8, ptr %14, align 1, !tbaa !11
  switch i8 %16, label %.loopexit [
    i8 53, label %18
    i8 54, label %17
  ]

17:                                               ; preds = %13
  br label %18

18:                                               ; preds = %13, %17
  %.042 = phi i32 [ 3, %17 ], [ 1, %13 ]
  %.041 = phi i32 [ 258, %17 ], [ 1, %13 ]
  %19 = load ptr, ptr %4, align 8, !tbaa !12
  %20 = call ptr @field_next(ptr noundef nonnull %15, ptr noundef %19)
  %21 = call i32 @atoi(ptr nocapture noundef %20) #6
  %22 = load ptr, ptr %4, align 8, !tbaa !12
  %23 = call ptr @field_next(ptr noundef nonnull %20, ptr noundef %22)
  %24 = call i32 @atoi(ptr nocapture noundef %23) #6
  %25 = load ptr, ptr %4, align 8, !tbaa !12
  %26 = call ptr @field_next(ptr noundef nonnull %23, ptr noundef %25)
  %27 = call i32 @atoi(ptr nocapture noundef %26) #6
  %28 = icmp slt i32 %21, 1
  %29 = icmp slt i32 %24, 1
  %or.cond = select i1 %28, i1 true, i1 %29
  %30 = icmp slt i32 %27, 1
  %or.cond3 = select i1 %or.cond, i1 true, i1 %30
  br i1 %or.cond3, label %.loopexit, label %31

31:                                               ; preds = %18
  %.not48 = icmp eq i32 %27, 255
  br i1 %.not48, label %32, label %.loopexit

32:                                               ; preds = %31
  %33 = load ptr, ptr %4, align 8, !tbaa !12
  %34 = call ptr @field_next(ptr noundef nonnull %26, ptr noundef %33)
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  call void @stream_commit(ptr noundef %35, ptr noundef %34)
  %36 = call i32 @img_resize(ptr noundef %2, i32 noundef %21, i32 noundef %24, i32 noundef %.041, i32 noundef 0) #5
  %.not49 = icmp eq i32 %36, 0
  br i1 %.not49, label %37, label %.loopexit

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %2, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = mul i32 %39, %.042
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds i8, ptr %2, i64 12
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %.not59 = icmp eq i32 %43, 0
  br i1 %.not59, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %37
  %44 = load ptr, ptr %2, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %2, i64 16
  br label %46

46:                                               ; preds = %.lr.ph, %49
  %.056 = phi i32 [ 0, %.lr.ph ], [ %53, %49 ]
  %.03655 = phi ptr [ %44, %.lr.ph ], [ %52, %49 ]
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call i64 @stream_read(ptr noundef %47, i64 noundef %41, ptr noundef %.03655)
  %.not50 = icmp eq i64 %48, %41
  br i1 %.not50, label %49, label %.loopexit

49:                                               ; preds = %46
  %50 = load i32, ptr %45, align 8, !tbaa !17
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %.03655, i64 %51
  %53 = add nuw i32 %.056, 1
  %54 = load i32, ptr %42, align 4, !tbaa !15
  %55 = icmp ult i32 %53, %54
  br i1 %55, label %46, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %46, %49, %37, %32, %9, %13, %18, %31
  %.037 = phi i32 [ %36, %32 ], [ -779, %9 ], [ -776, %13 ], [ -779, %18 ], [ -776, %31 ], [ 0, %37 ], [ -779, %46 ], [ 0, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %56

56:                                               ; preds = %3, %.loopexit
  %.1 = phi i32 [ %.037, %.loopexit ], [ -779, %3 ]
  ret i32 %.1
}

declare i32 @stream_read_prep(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @stream_buffer_get_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @field_next(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @stream_commit(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

declare i32 @img_resize(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stream_read(ptr noalias noundef, i64 noundef, ptr noalias noundef) local_unnamed_addr #3

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 = { "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 = { inlinehint 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { nounwind willreturn memory(read) }

!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 = !{!"ImageIO", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"Image", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!15 = !{!14, !10, i64 12}
!16 = !{!14, !7, i64 0}
!17 = !{!14, !10, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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