; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngread)

; 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.png_info_struct = type { i32, i32, i32, i64, ptr, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, [8 x i8], float, i8, i32, i32, ptr, %struct.png_time_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, %struct.png_color_16_struct, i32, i32, i8, i32, i32, i8, ptr, float, float, float, float, float, float, float, float, ptr, i32, i32, ptr, ptr, i8, i8, i32, ptr, i64, ptr, ptr, i32, i8, ptr, i32, i8, double, double, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_time_struct = type { i16, i8, i8, i8, i8, i8 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i32, i32, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, float, float, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, ptr, i8, i16, i16, i16, i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, %struct.png_unknown_chunk_t, i32, i32, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_row_info_struct = type { i32, i64, i8, i8, i8, i8 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

@.str.17 = external hidden unnamed_addr constant [49 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
declare dso_local void @png_read_info(ptr noundef, ptr noundef) #1

declare void @png_error(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_update_info(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_image(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_end(ptr noundef, ptr noundef) #1

declare void @png_free_data(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @png_read_png(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %4
  store i32 1, ptr %10, align 4
  br label %198

16:                                               ; preds = %4
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_read_info(ptr noundef %17, ptr noundef %18)
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.png_info_struct, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = zext i32 %21 to i64
  %23 = icmp ugt i64 %22, 536870911
  br i1 %23, label %24, label %26

24:                                               ; preds = %16
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_error(ptr noundef %25, ptr noundef @.str.17)
  br label %26

26:                                               ; preds = %24, %16
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = and i32 %27, 1
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_strip_16(ptr noundef %31)
  br label %32

32:                                               ; preds = %30, %26
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = and i32 %33, 2
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_strip_alpha(ptr noundef %37)
  br label %38

38:                                               ; preds = %36, %32
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = and i32 %39, 8
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %38
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_packswap(ptr noundef %43)
  br label %44

44:                                               ; preds = %42, %38
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = and i32 %45, 16
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %68

48:                                               ; preds = %44
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.png_struct_def, ptr %49, i32 0, i32 51
  %51 = load i8, ptr %50, align 1, !tbaa !20
  %52 = zext i8 %51 to i32
  %53 = icmp slt i32 %52, 8
  br i1 %53, label %65, label %54

54:                                               ; preds = %48
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.png_struct_def, ptr %55, i32 0, i32 50
  %57 = load i8, ptr %56, align 2, !tbaa !25
  %58 = zext i8 %57 to i32
  %59 = icmp eq i32 %58, 3
  br i1 %59, label %65, label %60

60:                                               ; preds = %54
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call i32 @png_get_valid(ptr noundef %61, ptr noundef %62, i32 noundef 16)
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %60, %54, %48
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_expand(ptr noundef %66)
  br label %67

67:                                               ; preds = %65, %60
  br label %68

68:                                               ; preds = %67, %44
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = and i32 %69, 32
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_invert_mono(ptr noundef %73)
  br label %74

74:                                               ; preds = %72, %68
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = and i32 %75, 64
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %89

78:                                               ; preds = %74
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call i32 @png_get_valid(ptr noundef %79, ptr noundef %80, i32 noundef 2)
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %89

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = call i32 @png_get_sBIT(ptr noundef %84, ptr noundef %85, ptr noundef %11)
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  call void @png_set_shift(ptr noundef %87, ptr noundef %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %89

89:                                               ; preds = %83, %78, %74
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = and i32 %90, 128
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_bgr(ptr noundef %94)
  br label %95

95:                                               ; preds = %93, %89
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = and i32 %96, 256
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_swap_alpha(ptr noundef %100)
  br label %101

101:                                              ; preds = %99, %95
  %102 = load i32, ptr %7, align 4, !tbaa !9
  %103 = and i32 %102, 512
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_swap(ptr noundef %106)
  br label %107

107:                                              ; preds = %105, %101
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = and i32 %108, 1024
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_invert_alpha(ptr noundef %112)
  br label %113

113:                                              ; preds = %111, %107
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = and i32 %114, 8192
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %113
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_gray_to_rgb(ptr noundef %118)
  br label %119

119:                                              ; preds = %117, %113
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_read_update_info(ptr noundef %120, ptr noundef %121)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %122, ptr noundef %123, i32 noundef 64, i32 noundef 0)
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.png_info_struct, ptr %124, i32 0, i32 62
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = icmp eq ptr %126, null
  br i1 %127, label %128, label %181

128:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.png_info_struct, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = zext i32 %132 to i64
  %134 = mul i64 %133, 8
  %135 = call ptr @png_malloc(ptr noundef %129, i64 noundef %134)
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.png_info_struct, ptr %136, i32 0, i32 62
  store ptr %135, ptr %137, align 8, !tbaa !26
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %151, %128
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.png_info_struct, ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 4, !tbaa !11
  %143 = icmp ult i32 %139, %142
  br i1 %143, label %144, label %154

144:                                              ; preds = %138
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.png_info_struct, ptr %145, i32 0, i32 62
  %147 = load ptr, ptr %146, align 8, !tbaa !26
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds ptr, ptr %147, i64 %149
  store ptr null, ptr %150, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %144
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %12, align 4, !tbaa !9
  br label %138, !llvm.loop !27

154:                                              ; preds = %138
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.png_info_struct, ptr %155, i32 0, i32 48
  %157 = load i32, ptr %156, align 4, !tbaa !29
  %158 = or i32 %157, 64
  store i32 %158, ptr %156, align 4, !tbaa !29
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %177, %154
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.png_info_struct, ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = icmp slt i32 %160, %163
  br i1 %164, label %165, label %180

165:                                              ; preds = %159
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = call i64 @png_get_rowbytes(ptr noundef %167, ptr noundef %168)
  %170 = call ptr @png_malloc(ptr noundef %166, i64 noundef %169)
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.png_info_struct, ptr %171, i32 0, i32 62
  %173 = load ptr, ptr %172, align 8, !tbaa !26
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %173, i64 %175
  store ptr %170, ptr %176, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %165
  %178 = load i32, ptr %9, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %9, align 4, !tbaa !9
  br label %159, !llvm.loop !30

180:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %181

181:                                              ; preds = %180, %119
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.png_info_struct, ptr %183, i32 0, i32 62
  %185 = load ptr, ptr %184, align 8, !tbaa !26
  call void @png_read_image(ptr noundef %182, ptr noundef %185)
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.png_info_struct, ptr %186, i32 0, i32 2
  %188 = load i32, ptr %187, align 8, !tbaa !31
  %189 = zext i32 %188 to i64
  %190 = or i64 %189, 32768
  %191 = trunc i64 %190 to i32
  store i32 %191, ptr %187, align 8, !tbaa !31
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_read_end(ptr noundef %192, ptr noundef %193)
  %194 = load i32, ptr %7, align 4, !tbaa !9
  %195 = add nsw i32 %194, 0
  store i32 %195, ptr %7, align 4, !tbaa !9
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = getelementptr inbounds i8, ptr %196, i64 0
  store ptr %197, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %198

198:                                              ; preds = %181, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %199 = load i32, ptr %10, align 4
  switch i32 %199, label %201 [
    i32 0, label %200
    i32 1, label %200
  ]

200:                                              ; preds = %198, %198
  ret void

201:                                              ; preds = %198
  unreachable
}

declare void @png_set_strip_16(ptr noundef) #2

declare void @png_set_strip_alpha(ptr noundef) #2

declare void @png_set_packswap(ptr noundef) #2

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

declare void @png_set_expand(ptr noundef) #2

declare void @png_set_invert_mono(ptr noundef) #2

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

declare void @png_set_shift(ptr noundef, ptr noundef) #2

declare void @png_set_bgr(ptr noundef) #2

declare void @png_set_swap_alpha(ptr noundef) #2

declare void @png_set_swap(ptr noundef) #2

declare void @png_set_invert_alpha(ptr noundef) #2

declare void @png_set_gray_to_rgb(ptr noundef) #2

declare ptr @png_malloc(ptr noundef, i64 noundef) #2

declare i64 @png_get_rowbytes(ptr noundef, ptr noundef) #2

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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"png_info_struct", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !6, i64 24, !14, i64 32, !14, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !15, i64 52, !7, i64 56, !10, i64 60, !10, i64 64, !6, i64 72, !16, i64 80, !17, i64 88, !6, i64 96, !18, i64 104, !18, i64 114, !10, i64 124, !10, i64 128, !7, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !6, i64 152, !15, i64 160, !15, i64 164, !15, i64 168, !15, i64 172, !15, i64 176, !15, i64 180, !15, i64 184, !15, i64 188, !6, i64 192, !10, i64 200, !10, i64 204, !6, i64 208, !6, i64 216, !7, i64 224, !7, i64 225, !10, i64 228, !6, i64 232, !13, i64 240, !6, i64 248, !6, i64 256, !10, i64 264, !7, i64 268, !6, i64 272, !10, i64 280, !7, i64 284, !19, i64 288, !19, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360}
!13 = !{!"long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_time_struct", !14, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!19 = !{!"double", !7, i64 0}
!20 = !{!21, !7, i64 591}
!21 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !7, i64 280, !7, i64 281, !10, i64 284, !10, i64 288, !10, i64 292, !22, i64 296, !6, i64 408, !13, i64 416, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !13, i64 464, !13, i64 472, !10, i64 480, !10, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !23, i64 536, !10, i64 560, !10, i64 564, !6, i64 568, !14, i64 576, !14, i64 578, !7, i64 580, !7, i64 585, !7, i64 586, !7, i64 587, !7, i64 588, !7, i64 589, !7, i64 590, !7, i64 591, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !14, i64 598, !7, i64 600, !15, i64 604, !18, i64 608, !18, i64 618, !6, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !15, i64 652, !15, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !17, i64 712, !17, i64 717, !6, i64 728, !18, i64 736, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !10, i64 824, !10, i64 828, !13, i64 832, !13, i64 840, !13, i64 848, !13, i64 856, !10, i64 864, !10, i64 868, !13, i64 872, !13, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !7, i64 928, !7, i64 929, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !10, i64 984, !6, i64 992, !6, i64 1000, !10, i64 1008, !6, i64 1016, !7, i64 1024, !14, i64 1026, !14, i64 1028, !14, i64 1030, !10, i64 1032, !10, i64 1036, !7, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !7, i64 1104, !10, i64 1108, !10, i64 1112, !10, i64 1116, !24, i64 1120, !10, i64 1152, !10, i64 1156, !6, i64 1160, !10, i64 1168}
!22 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !13, i64 96, !13, i64 104}
!23 = !{!"png_row_info_struct", !10, i64 0, !13, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!24 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !13, i64 16, !7, i64 24}
!25 = !{!21, !7, i64 590}
!26 = !{!12, !6, i64 320}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !10, i64 228}
!30 = distinct !{!30, !28}
!31 = !{!12, !10, i64 8}


; 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.17 = external hidden unnamed_addr constant [49 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
declare dso_local void @png_read_info(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_update_info(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_image(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_end(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_free_data(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @png_read_png(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #1 {
  %5 = alloca ptr, align 8
  %6 = icmp eq ptr %0, null
  br i1 %6, label %98, label %7

7:                                                ; preds = %4
  tail call void @png_read_info(ptr noundef nonnull %0, ptr noundef %1)
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp ugt i32 %9, 536870911
  br i1 %10, label %11, label %12

11:                                               ; preds = %7
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.17) #3
  br label %12

12:                                               ; preds = %11, %7
  %13 = and i32 %2, 1
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %15, label %14

14:                                               ; preds = %12
  tail call void @png_set_strip_16(ptr noundef nonnull %0) #3
  br label %15

15:                                               ; preds = %14, %12
  %16 = and i32 %2, 2
  %.not65 = icmp eq i32 %16, 0
  br i1 %.not65, label %18, label %17

17:                                               ; preds = %15
  tail call void @png_set_strip_alpha(ptr noundef nonnull %0) #3
  br label %18

18:                                               ; preds = %17, %15
  %19 = and i32 %2, 8
  %.not66 = icmp eq i32 %19, 0
  br i1 %.not66, label %21, label %20

20:                                               ; preds = %18
  tail call void @png_set_packswap(ptr noundef nonnull %0) #3
  br label %21

21:                                               ; preds = %20, %18
  %22 = and i32 %2, 16
  %.not67 = icmp eq i32 %22, 0
  br i1 %.not67, label %34, label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 591
  %25 = load i8, ptr %24, align 1, !tbaa !18
  %26 = icmp ult i8 %25, 8
  br i1 %26, label %33, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %0, i64 590
  %29 = load i8, ptr %28, align 2, !tbaa !23
  %30 = icmp eq i8 %29, 3
  br i1 %30, label %33, label %31

31:                                               ; preds = %27
  %32 = tail call i32 @png_get_valid(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 16) #3
  %.not68 = icmp eq i32 %32, 0
  br i1 %.not68, label %34, label %33

33:                                               ; preds = %31, %27, %23
  tail call void @png_set_expand(ptr noundef nonnull %0) #3
  br label %34

34:                                               ; preds = %31, %33, %21
  %35 = and i32 %2, 32
  %.not69 = icmp eq i32 %35, 0
  br i1 %.not69, label %37, label %36

36:                                               ; preds = %34
  tail call void @png_set_invert_mono(ptr noundef nonnull %0) #3
  br label %37

37:                                               ; preds = %36, %34
  %38 = and i32 %2, 64
  %.not70 = icmp eq i32 %38, 0
  br i1 %.not70, label %44, label %39

39:                                               ; preds = %37
  %40 = tail call i32 @png_get_valid(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 2) #3
  %.not71 = icmp eq i32 %40, 0
  br i1 %.not71, label %44, label %41

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %42 = call i32 @png_get_sBIT(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %5) #3
  %43 = load ptr, ptr %5, align 8, !tbaa !24
  call void @png_set_shift(ptr noundef nonnull %0, ptr noundef %43) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %44

44:                                               ; preds = %41, %39, %37
  %45 = and i32 %2, 128
  %.not72 = icmp eq i32 %45, 0
  br i1 %.not72, label %47, label %46

46:                                               ; preds = %44
  call void @png_set_bgr(ptr noundef nonnull %0) #3
  br label %47

47:                                               ; preds = %46, %44
  %48 = and i32 %2, 256
  %.not73 = icmp eq i32 %48, 0
  br i1 %.not73, label %50, label %49

49:                                               ; preds = %47
  call void @png_set_swap_alpha(ptr noundef nonnull %0) #3
  br label %50

50:                                               ; preds = %49, %47
  %51 = and i32 %2, 512
  %.not74 = icmp eq i32 %51, 0
  br i1 %.not74, label %53, label %52

52:                                               ; preds = %50
  call void @png_set_swap(ptr noundef nonnull %0) #3
  br label %53

53:                                               ; preds = %52, %50
  %54 = and i32 %2, 1024
  %.not75 = icmp eq i32 %54, 0
  br i1 %.not75, label %56, label %55

55:                                               ; preds = %53
  call void @png_set_invert_alpha(ptr noundef nonnull %0) #3
  br label %56

56:                                               ; preds = %55, %53
  %57 = and i32 %2, 8192
  %.not76 = icmp eq i32 %57, 0
  br i1 %.not76, label %59, label %58

58:                                               ; preds = %56
  call void @png_set_gray_to_rgb(ptr noundef nonnull %0) #3
  br label %59

59:                                               ; preds = %58, %56
  call void @png_read_update_info(ptr noundef nonnull %0, ptr noundef nonnull %1)
  call void @png_free_data(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 64, i32 noundef 0) #3
  %60 = getelementptr inbounds i8, ptr %1, i64 320
  %61 = load ptr, ptr %60, align 8, !tbaa !25
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %.loopexit

63:                                               ; preds = %59
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = shl nuw nsw i64 %65, 3
  %67 = call ptr @png_malloc(ptr noundef nonnull %0, i64 noundef %66) #3
  store ptr %67, ptr %60, align 8, !tbaa !25
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %.not81 = icmp eq i32 %68, 0
  br i1 %.not81, label %._crit_edge.thread, label %.lr.ph.preheader

._crit_edge.thread:                               ; preds = %63
  %69 = getelementptr inbounds i8, ptr %1, i64 228
  %70 = load i32, ptr %69, align 4, !tbaa !26
  %71 = or i32 %70, 64
  store i32 %71, ptr %69, align 4, !tbaa !26
  br label %.loopexit

.lr.ph.preheader:                                 ; preds = %63
  %wide.trip.count = zext i32 %68 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %72 = icmp ult i32 %68, 4
  br i1 %72, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %73 = load ptr, ptr %60, align 8, !tbaa !25
  %74 = getelementptr inbounds ptr, ptr %73, i64 %indvars.iv
  store ptr null, ptr %74, align 8, !tbaa !24
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %75 = load ptr, ptr %60, align 8, !tbaa !25
  %76 = getelementptr inbounds ptr, ptr %75, i64 %indvars.iv.next
  store ptr null, ptr %76, align 8, !tbaa !24
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %77 = load ptr, ptr %60, align 8, !tbaa !25
  %78 = getelementptr inbounds ptr, ptr %77, i64 %indvars.iv.next.1
  store ptr null, ptr %78, align 8, !tbaa !24
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %79 = load ptr, ptr %60, align 8, !tbaa !25
  %80 = getelementptr inbounds ptr, ptr %79, i64 %indvars.iv.next.2
  store ptr null, ptr %80, align 8, !tbaa !24
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !27

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %81 = load ptr, ptr %60, align 8, !tbaa !25
  %82 = getelementptr inbounds ptr, ptr %81, i64 %indvars.iv.epil
  store ptr null, ptr %82, align 8, !tbaa !24
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %83 = getelementptr inbounds i8, ptr %1, i64 228
  %84 = load i32, ptr %83, align 4, !tbaa !26
  %85 = or i32 %84, 64
  store i32 %85, ptr %83, align 4, !tbaa !26
  %86 = icmp sgt i32 %68, 0
  br i1 %86, label %.lr.ph80, label %.loopexit

.lr.ph80:                                         ; preds = %._crit_edge, %.lr.ph80
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.lr.ph80 ], [ 0, %._crit_edge ]
  %87 = call i64 @png_get_rowbytes(ptr noundef %0, ptr noundef nonnull %1) #3
  %88 = call ptr @png_malloc(ptr noundef %0, i64 noundef %87) #3
  %89 = load ptr, ptr %60, align 8, !tbaa !25
  %90 = getelementptr inbounds ptr, ptr %89, i64 %indvars.iv83
  store ptr %88, ptr %90, align 8, !tbaa !24
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = icmp slt i64 %indvars.iv.next84, %92
  br i1 %93, label %.lr.ph80, label %.loopexit, !llvm.loop !31

.loopexit:                                        ; preds = %.lr.ph80, %._crit_edge.thread, %._crit_edge, %59
  %94 = load ptr, ptr %60, align 8, !tbaa !25
  call void @png_read_image(ptr noundef %0, ptr noundef %94)
  %95 = getelementptr inbounds i8, ptr %1, i64 8
  %96 = load i32, ptr %95, align 8, !tbaa !32
  %97 = or i32 %96, 32768
  store i32 %97, ptr %95, align 8, !tbaa !32
  call void @png_read_end(ptr noundef %0, ptr noundef nonnull %1)
  br label %98

98:                                               ; preds = %4, %.loopexit
  ret void
}

declare void @png_set_strip_16(ptr noundef) local_unnamed_addr #2

declare void @png_set_strip_alpha(ptr noundef) local_unnamed_addr #2

declare void @png_set_packswap(ptr noundef) local_unnamed_addr #2

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

declare void @png_set_expand(ptr noundef) local_unnamed_addr #2

declare void @png_set_invert_mono(ptr noundef) local_unnamed_addr #2

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

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

declare void @png_set_bgr(ptr noundef) local_unnamed_addr #2

declare void @png_set_swap_alpha(ptr noundef) local_unnamed_addr #2

declare void @png_set_swap(ptr noundef) local_unnamed_addr #2

declare void @png_set_invert_alpha(ptr noundef) local_unnamed_addr #2

declare void @png_set_gray_to_rgb(ptr noundef) local_unnamed_addr #2

declare ptr @png_malloc(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i64 @png_get_rowbytes(ptr noundef, ptr noundef) local_unnamed_addr #2

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 = { 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 4}
!6 = !{!"png_info_struct", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !12, i64 34, !8, i64 36, !8, i64 37, !8, i64 38, !8, i64 39, !8, i64 40, !8, i64 41, !8, i64 42, !8, i64 43, !8, i64 44, !13, i64 52, !8, i64 56, !7, i64 60, !7, i64 64, !11, i64 72, !14, i64 80, !15, i64 88, !11, i64 96, !16, i64 104, !16, i64 114, !7, i64 124, !7, i64 128, !8, i64 132, !7, i64 136, !7, i64 140, !8, i64 144, !11, i64 152, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !11, i64 192, !7, i64 200, !7, i64 204, !11, i64 208, !11, i64 216, !8, i64 224, !8, i64 225, !7, i64 228, !11, i64 232, !10, i64 240, !11, i64 248, !11, i64 256, !7, i64 264, !8, i64 268, !11, i64 272, !7, i64 280, !8, i64 284, !17, i64 288, !17, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!"png_time_struct", !12, i64 0, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6}
!15 = !{!"png_color_8_struct", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4}
!16 = !{!"png_color_16_struct", !8, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8}
!17 = !{!"double", !8, i64 0}
!18 = !{!19, !8, i64 591}
!19 = !{!"png_struct_def", !8, i64 0, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !8, i64 280, !8, i64 281, !7, i64 284, !7, i64 288, !7, i64 292, !20, i64 296, !11, i64 408, !10, i64 416, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !10, i64 464, !10, i64 472, !7, i64 480, !7, i64 484, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !21, i64 536, !7, i64 560, !7, i64 564, !11, i64 568, !12, i64 576, !12, i64 578, !8, i64 580, !8, i64 585, !8, i64 586, !8, i64 587, !8, i64 588, !8, i64 589, !8, i64 590, !8, i64 591, !8, i64 592, !8, i64 593, !8, i64 594, !8, i64 595, !8, i64 596, !12, i64 598, !8, i64 600, !13, i64 604, !16, i64 608, !16, i64 618, !11, i64 632, !7, i64 640, !7, i64 644, !7, i64 648, !13, i64 652, !13, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !15, i64 712, !15, i64 717, !11, i64 728, !16, i64 736, !11, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, i64 816, !7, i64 824, !7, i64 828, !10, i64 832, !10, i64 840, !10, i64 848, !10, i64 856, !7, i64 864, !7, i64 868, !10, i64 872, !10, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !8, i64 928, !8, i64 929, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !11, i64 976, !7, i64 984, !11, i64 992, !11, i64 1000, !7, i64 1008, !11, i64 1016, !8, i64 1024, !12, i64 1026, !12, i64 1028, !12, i64 1030, !7, i64 1032, !7, i64 1036, !8, i64 1040, !11, i64 1048, !11, i64 1056, !11, i64 1064, !11, i64 1072, !11, i64 1080, !11, i64 1088, !11, i64 1096, !8, i64 1104, !7, i64 1108, !7, i64 1112, !7, i64 1116, !22, i64 1120, !7, i64 1152, !7, i64 1156, !11, i64 1160, !7, i64 1168}
!20 = !{!"z_stream_s", !11, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !7, i64 32, !10, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !10, i64 96, !10, i64 104}
!21 = !{!"png_row_info_struct", !7, i64 0, !10, i64 8, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19}
!22 = !{!"png_unknown_chunk_t", !8, i64 0, !11, i64 8, !10, i64 16, !8, i64 24}
!23 = !{!19, !8, i64 590}
!24 = !{!11, !11, i64 0}
!25 = !{!6, !11, i64 320}
!26 = !{!6, !7, i64 228}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = distinct !{!31, !28}
!32 = !{!6, !7, i64 8}


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