; LLVM IR from mkazhdan/DMG :: Util/PNG (pngrutil)

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

@.str.93 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [27 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

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

; 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 i64 @png_get_int_32(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noundef, i64 noundef) #2

declare void @png_warning(ptr noundef, ptr noundef) #1

declare ptr @png_malloc_warn(ptr noundef, i64 noundef) #1

declare void @png_free(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_pCAL(ptr noundef %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.png_struct_def, ptr %19, i32 0, i32 12
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = and i64 %21, 1
  %23 = icmp ne i64 %22, 0
  br i1 %23, label %26, label %24

24:                                               ; preds = %3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_error(ptr noundef %25, ptr noundef @.str.93)
  br label %53

26:                                               ; preds = %3
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 12
  %29 = load i64, ptr %28, align 8, !tbaa !11
  %30 = and i64 %29, 4
  %31 = icmp ne i64 %30, 0
  br i1 %31, label %32, label %37

32:                                               ; preds = %26
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %33, ptr noundef @.str.94)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load i64, ptr %6, align 8, !tbaa !9
  %36 = call i32 @png_crc_finish(ptr noundef %34, i64 noundef %35)
  store i32 1, ptr %18, align 4
  br label %236

37:                                               ; preds = %26
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %51

40:                                               ; preds = %37
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.png_info_struct, ptr %41, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !21
  %44 = and i64 %43, 1024
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %46, label %51

46:                                               ; preds = %40
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %47, ptr noundef @.str.95)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = call i32 @png_crc_finish(ptr noundef %48, i64 noundef %49)
  store i32 1, ptr %18, align 4
  br label %236

51:                                               ; preds = %40, %37
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52, %24
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load i64, ptr %6, align 8, !tbaa !9
  %56 = add i64 %55, 1
  %57 = call ptr @png_malloc_warn(ptr noundef %54, i64 noundef %56)
  store ptr %57, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %62

60:                                               ; preds = %53
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %61, ptr noundef @.str.96)
  store i32 1, ptr %18, align 4
  br label %236

62:                                               ; preds = %53
  %63 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %63, ptr %16, align 8, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = load i64, ptr %16, align 8, !tbaa !9
  call void @png_crc_read(ptr noundef %64, ptr noundef %65, i64 noundef %66)
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call i32 @png_crc_finish(ptr noundef %67, i64 noundef 0)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %62
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free(ptr noundef %71, ptr noundef %72)
  store i32 1, ptr %18, align 4
  br label %236

73:                                               ; preds = %62
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load i64, ptr %16, align 8, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %74, i64 %75
  store i8 0, ptr %76, align 1, !tbaa !25
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %77, ptr %12, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %83, %73
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i8, ptr %79, align 1, !tbaa !25
  %81 = icmp ne i8 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %78
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i32 1
  store ptr %85, ptr %12, align 8, !tbaa !5
  br label %78, !llvm.loop !26

86:                                               ; preds = %78
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = getelementptr inbounds i8, ptr %87, i64 %88
  store ptr %89, ptr %14, align 8, !tbaa !5
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 12
  %93 = icmp ule ptr %90, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %86
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %95, ptr noundef @.str.97)
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free(ptr noundef %96, ptr noundef %97)
  store i32 1, ptr %18, align 4
  br label %236

98:                                               ; preds = %86
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 1
  %101 = call i64 @png_get_int_32(ptr noundef %100)
  store i64 %101, ptr %8, align 8, !tbaa !9
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 5
  %104 = call i64 @png_get_int_32(ptr noundef %103)
  store i64 %104, ptr %9, align 8, !tbaa !9
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 9
  %107 = load i8, ptr %106, align 1, !tbaa !25
  store i8 %107, ptr %10, align 1, !tbaa !25
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 10
  %110 = load i8, ptr %109, align 1, !tbaa !25
  store i8 %110, ptr %11, align 1, !tbaa !25
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 11
  store ptr %112, ptr %13, align 8, !tbaa !5
  %113 = load i8, ptr %10, align 1, !tbaa !25
  %114 = zext i8 %113 to i32
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %120

116:                                              ; preds = %98
  %117 = load i8, ptr %11, align 1, !tbaa !25
  %118 = zext i8 %117 to i32
  %119 = icmp ne i32 %118, 2
  br i1 %119, label %144, label %120

120:                                              ; preds = %116, %98
  %121 = load i8, ptr %10, align 1, !tbaa !25
  %122 = zext i8 %121 to i32
  %123 = icmp eq i32 %122, 1
  br i1 %123, label %124, label %128

124:                                              ; preds = %120
  %125 = load i8, ptr %11, align 1, !tbaa !25
  %126 = zext i8 %125 to i32
  %127 = icmp ne i32 %126, 3
  br i1 %127, label %144, label %128

128:                                              ; preds = %124, %120
  %129 = load i8, ptr %10, align 1, !tbaa !25
  %130 = zext i8 %129 to i32
  %131 = icmp eq i32 %130, 2
  br i1 %131, label %132, label %136

132:                                              ; preds = %128
  %133 = load i8, ptr %11, align 1, !tbaa !25
  %134 = zext i8 %133 to i32
  %135 = icmp ne i32 %134, 3
  br i1 %135, label %144, label %136

136:                                              ; preds = %132, %128
  %137 = load i8, ptr %10, align 1, !tbaa !25
  %138 = zext i8 %137 to i32
  %139 = icmp eq i32 %138, 3
  br i1 %139, label %140, label %148

140:                                              ; preds = %136
  %141 = load i8, ptr %11, align 1, !tbaa !25
  %142 = zext i8 %141 to i32
  %143 = icmp ne i32 %142, 4
  br i1 %143, label %144, label %148

144:                                              ; preds = %140, %132, %124, %116
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %145, ptr noundef @.str.98)
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free(ptr noundef %146, ptr noundef %147)
  store i32 1, ptr %18, align 4
  br label %236

148:                                              ; preds = %140, %136
  %149 = load i8, ptr %10, align 1, !tbaa !25
  %150 = zext i8 %149 to i32
  %151 = icmp sge i32 %150, 4
  br i1 %151, label %152, label %154

152:                                              ; preds = %148
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %153, ptr noundef @.str.99)
  br label %154

154:                                              ; preds = %152, %148
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %156, ptr %12, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %162, %155
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i8, ptr %158, align 1, !tbaa !25
  %160 = icmp ne i8 %159, 0
  br i1 %160, label %161, label %165

161:                                              ; preds = %157
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i32 1
  store ptr %164, ptr %12, align 8, !tbaa !5
  br label %157, !llvm.loop !28

165:                                              ; preds = %157
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i8, ptr %11, align 1, !tbaa !25
  %168 = zext i8 %167 to i64
  %169 = mul i64 %168, 8
  %170 = call ptr @png_malloc_warn(ptr noundef %166, i64 noundef %169)
  store ptr %170, ptr %15, align 8, !tbaa !5
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = icmp eq ptr %171, null
  br i1 %172, label %173, label %177

173:                                              ; preds = %165
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free(ptr noundef %174, ptr noundef %175)
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %176, ptr noundef @.str.100)
  store i32 1, ptr %18, align 4
  br label %236

177:                                              ; preds = %165
  store i32 0, ptr %17, align 4, !tbaa !29
  br label %178

178:                                              ; preds = %217, %177
  %179 = load i32, ptr %17, align 4, !tbaa !29
  %180 = load i8, ptr %11, align 1, !tbaa !25
  %181 = zext i8 %180 to i32
  %182 = icmp slt i32 %179, %181
  br i1 %182, label %183, label %220

183:                                              ; preds = %178
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds i8, ptr %184, i32 1
  store ptr %185, ptr %12, align 8, !tbaa !5
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load ptr, ptr %15, align 8, !tbaa !5
  %188 = load i32, ptr %17, align 4, !tbaa !29
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds ptr, ptr %187, i64 %189
  store ptr %186, ptr %190, align 8, !tbaa !5
  br label %191

191:                                              ; preds = %203, %183
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = icmp ule ptr %192, %193
  br i1 %194, label %195, label %200

195:                                              ; preds = %191
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i8, ptr %196, align 1, !tbaa !25
  %198 = sext i8 %197 to i32
  %199 = icmp ne i32 %198, 0
  br label %200

200:                                              ; preds = %195, %191
  %201 = phi i1 [ false, %191 ], [ %199, %195 ]
  br i1 %201, label %202, label %206

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %204, i32 1
  store ptr %205, ptr %12, align 8, !tbaa !5
  br label %191, !llvm.loop !30

206:                                              ; preds = %200
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = icmp ugt ptr %207, %208
  br i1 %209, label %210, label %216

210:                                              ; preds = %206
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %211, ptr noundef @.str.97)
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free(ptr noundef %212, ptr noundef %213)
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load ptr, ptr %15, align 8, !tbaa !5
  call void @png_free(ptr noundef %214, ptr noundef %215)
  store i32 1, ptr %18, align 4
  br label %236

216:                                              ; preds = %206
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %17, align 4, !tbaa !29
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %17, align 4, !tbaa !29
  br label %178, !llvm.loop !31

220:                                              ; preds = %178
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = load i64, ptr %8, align 8, !tbaa !9
  %225 = load i64, ptr %9, align 8, !tbaa !9
  %226 = load i8, ptr %10, align 1, !tbaa !25
  %227 = zext i8 %226 to i32
  %228 = load i8, ptr %11, align 1, !tbaa !25
  %229 = zext i8 %228 to i32
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  call void @png_set_pCAL(ptr noundef %221, ptr noundef %222, ptr noundef %223, i64 noundef %224, i64 noundef %225, i32 noundef %227, i32 noundef %229, ptr noundef %230, ptr noundef %231)
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_free(ptr noundef %232, ptr noundef %233)
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  call void @png_free(ptr noundef %234, ptr noundef %235)
  store i32 0, ptr %18, align 4
  br label %236

236:                                              ; preds = %220, %210, %173, %144, %94, %70, %60, %46, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %237 = load i32, ptr %18, align 4
  switch i32 %237, label %239 [
    i32 0, label %238
    i32 1, label %238
  ]

238:                                              ; preds = %236, %236
  ret void

239:                                              ; preds = %236
  unreachable
}

declare void @png_set_pCAL(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 280}
!12 = !{!"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, !7, i64 272, !7, i64 273, !10, i64 280, !10, i64 288, !10, i64 296, !13, i64 304, !6, i64 416, !10, i64 424, !14, i64 432, !14, i64 436, !14, i64 440, !14, i64 444, !14, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !15, i64 568, !10, i64 592, !10, i64 600, !6, i64 608, !16, i64 616, !16, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !16, i64 638, !7, i64 640, !17, i64 644, !18, i64 648, !18, i64 658, !6, i64 672, !10, i64 680, !10, i64 688, !14, i64 696, !17, i64 700, !17, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !19, i64 760, !19, i64 765, !6, i64 776, !18, i64 784, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !14, i64 920, !14, i64 924, !10, i64 928, !10, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !7, i64 984, !7, i64 985, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !10, i64 1040, !6, i64 1048, !6, i64 1056, !14, i64 1064, !6, i64 1072, !7, i64 1080, !16, i64 1082, !16, i64 1084, !16, i64 1086, !10, i64 1088, !10, i64 1096, !7, i64 1104, !7, i64 1105, !10, i64 1112, !10, i64 1120, !6, i64 1128, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !6, i64 1176, !7, i64 1184, !10, i64 1192, !10, i64 1200, !20, i64 1208, !10, i64 1240, !10, i64 1248}
!13 = !{!"z_stream_s", !6, i64 0, !14, i64 8, !10, i64 16, !6, i64 24, !14, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !10, i64 96, !10, i64 104}
!14 = !{!"int", !7, i64 0}
!15 = !{!"png_row_info_struct", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!16 = !{!"short", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!19 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!20 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !10, i64 16, !7, i64 24}
!21 = !{!22, !10, i64 16}
!22 = !{!"png_info_struct", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !16, i64 40, !16, i64 42, !7, i64 44, !7, i64 45, !7, i64 46, !7, i64 47, !7, i64 48, !7, i64 49, !7, i64 50, !7, i64 51, !7, i64 52, !17, i64 60, !7, i64 64, !14, i64 68, !14, i64 72, !6, i64 80, !23, i64 88, !19, i64 96, !6, i64 104, !18, i64 112, !18, i64 122, !10, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !6, i64 184, !17, i64 192, !17, i64 196, !17, i64 200, !17, i64 204, !17, i64 208, !17, i64 212, !17, i64 216, !17, i64 220, !6, i64 224, !10, i64 232, !10, i64 240, !6, i64 248, !6, i64 256, !7, i64 264, !7, i64 265, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312, !7, i64 320, !6, i64 328, !10, i64 336, !7, i64 344, !24, i64 352, !24, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456}
!23 = !{!"png_time_struct", !16, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!24 = !{!"double", !7, i64 0}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!14, !14, i64 0}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}


; 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.93 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [27 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @png_get_int_32(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @png_malloc_warn(ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @png_free(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_pCAL(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 280
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = and i64 %5, 1
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %7, label %8

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

8:                                                ; preds = %3
  %9 = and i64 %5, 4
  %.not108 = icmp eq i64 %9, 0
  br i1 %.not108, label %12, label %10

10:                                               ; preds = %8
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.94) #2
  %11 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i64 noundef %2)
  br label %73

12:                                               ; preds = %8
  %.not109 = icmp eq ptr %1, null
  br i1 %.not109, label %19, label %13

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !19
  %16 = and i64 %15, 1024
  %.not110 = icmp eq i64 %16, 0
  br i1 %.not110, label %19, label %17

17:                                               ; preds = %13
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.95) #2
  %18 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i64 noundef %2)
  br label %73

19:                                               ; preds = %13, %12, %7
  %20 = add i64 %2, 1
  %21 = tail call ptr @png_malloc_warn(ptr noundef nonnull %0, i64 noundef %20) #2
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.96) #2
  br label %73

24:                                               ; preds = %19
  tail call void @png_crc_read(ptr noundef nonnull %0, ptr noundef nonnull %21, i64 noundef %2)
  %25 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i64 noundef 0)
  %.not111 = icmp eq i32 %25, 0
  br i1 %.not111, label %27, label %26

26:                                               ; preds = %24
  tail call void @png_free(ptr noundef nonnull %0, ptr noundef nonnull %21) #2
  br label %73

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %21, i64 %2
  store i8 0, ptr %28, align 1, !tbaa !23
  br label %29

29:                                               ; preds = %29, %27
  %.0102 = phi ptr [ %21, %27 ], [ %31, %29 ]
  %30 = load i8, ptr %.0102, align 1, !tbaa !23
  %.not112 = icmp eq i8 %30, 0
  %31 = getelementptr inbounds i8, ptr %.0102, i64 1
  br i1 %.not112, label %32, label %29, !llvm.loop !24

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %.0102, i64 12
  %.not113 = icmp ugt ptr %28, %33
  br i1 %.not113, label %35, label %34

34:                                               ; preds = %32
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.97) #2
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %21) #2
  br label %73

35:                                               ; preds = %32
  %36 = tail call i64 @png_get_int_32(ptr noundef nonnull %31)
  %37 = getelementptr inbounds i8, ptr %.0102, i64 5
  %38 = tail call i64 @png_get_int_32(ptr noundef nonnull %37)
  %39 = getelementptr inbounds i8, ptr %.0102, i64 9
  %40 = load i8, ptr %39, align 1, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %.0102, i64 10
  %42 = load i8, ptr %41, align 1, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %.0102, i64 11
  %44 = zext i8 %40 to i32
  %45 = icmp eq i8 %40, 0
  %46 = zext i8 %42 to i32
  %47 = icmp ne i8 %42, 2
  %or.cond = select i1 %45, i1 %47, i1 false
  br i1 %or.cond, label %55, label %48

48:                                               ; preds = %35
  %49 = icmp ne i8 %42, 3
  %50 = add i8 %40, -1
  %51 = icmp ult i8 %50, 2
  %or.cond117 = select i1 %51, i1 %49, i1 false
  br i1 %or.cond117, label %55, label %52

52:                                               ; preds = %48
  %53 = icmp eq i8 %40, 3
  %54 = icmp ne i8 %42, 4
  %or.cond11 = select i1 %53, i1 %54, i1 false
  br i1 %or.cond11, label %55, label %56

55:                                               ; preds = %52, %48, %35
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.98) #2
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %21) #2
  br label %73

56:                                               ; preds = %52
  %57 = icmp ugt i8 %40, 3
  br i1 %57, label %58, label %.preheader136

58:                                               ; preds = %56
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.99) #2
  br label %.preheader136

.preheader136:                                    ; preds = %56, %58
  br label %59

59:                                               ; preds = %.preheader136, %59
  %.1 = phi ptr [ %61, %59 ], [ %43, %.preheader136 ]
  %60 = load i8, ptr %.1, align 1, !tbaa !23
  %.not114 = icmp eq i8 %60, 0
  %61 = getelementptr inbounds i8, ptr %.1, i64 1
  br i1 %.not114, label %62, label %59, !llvm.loop !26

62:                                               ; preds = %59
  %63 = zext i8 %42 to i64
  %64 = shl nuw nsw i64 %63, 3
  %65 = tail call ptr @png_malloc_warn(ptr noundef %0, i64 noundef %64) #2
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %.preheader

.preheader:                                       ; preds = %62
  %.not126 = icmp eq i8 %42, 0
  br i1 %.not126, label %._crit_edge125, label %.lr.ph124.preheader

.lr.ph124.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext i8 %42 to i64
  br label %.lr.ph124

67:                                               ; preds = %62
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %21) #2
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.100) #2
  br label %73

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %.critedge
  %indvars.iv = phi i64 [ 0, %.lr.ph124.preheader ], [ %indvars.iv.next, %.critedge ]
  %.2122 = phi ptr [ %.1, %.lr.ph124.preheader ], [ %.3120, %.critedge ]
  %68 = getelementptr inbounds i8, ptr %.2122, i64 1
  %69 = getelementptr inbounds ptr, ptr %65, i64 %indvars.iv
  store ptr %68, ptr %69, align 8, !tbaa !27
  %.not115119 = icmp ugt ptr %68, %28
  br i1 %.not115119, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph124, %71
  %.3120 = phi ptr [ %72, %71 ], [ %68, %.lr.ph124 ]
  %70 = load i8, ptr %.3120, align 1, !tbaa !23
  %.not116 = icmp eq i8 %70, 0
  br i1 %.not116, label %.critedge, label %71

71:                                               ; preds = %.lr.ph
  %72 = getelementptr inbounds i8, ptr %.3120, i64 1
  %.not115 = icmp ugt ptr %72, %28
  br i1 %.not115, label %._crit_edge, label %.lr.ph, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph124, %71
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.97) #2
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %21) #2
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %65) #2
  br label %73

.critedge:                                        ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge125, label %.lr.ph124, !llvm.loop !29

._crit_edge125:                                   ; preds = %.critedge, %.preheader
  tail call void @png_set_pCAL(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %21, i64 noundef %36, i64 noundef %38, i32 noundef %44, i32 noundef %46, ptr noundef nonnull %43, ptr noundef nonnull %65) #2
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %21) #2
  tail call void @png_free(ptr noundef %0, ptr noundef nonnull %65) #2
  br label %73

73:                                               ; preds = %._crit_edge125, %._crit_edge, %67, %55, %34, %26, %23, %17, %10
  ret void
}

declare void @png_set_pCAL(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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, !10, i64 280}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !7, i64 272, !7, i64 273, !10, i64 280, !10, i64 288, !10, i64 296, !11, i64 304, !9, i64 416, !10, i64 424, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !12, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !9, i64 520, !9, i64 528, !9, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !13, i64 568, !10, i64 592, !10, i64 600, !9, i64 608, !14, i64 616, !14, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !14, i64 638, !7, i64 640, !15, i64 644, !16, i64 648, !16, i64 658, !9, i64 672, !10, i64 680, !10, i64 688, !12, i64 696, !15, i64 700, !15, i64 704, !9, i64 712, !9, i64 720, !9, i64 728, !9, i64 736, !9, i64 744, !9, i64 752, !17, i64 760, !17, i64 765, !9, i64 776, !16, i64 784, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !9, i64 840, !9, i64 848, !9, i64 856, !9, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !12, i64 920, !12, i64 924, !10, i64 928, !10, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !7, i64 984, !7, i64 985, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !10, i64 1040, !9, i64 1048, !9, i64 1056, !12, i64 1064, !9, i64 1072, !7, i64 1080, !14, i64 1082, !14, i64 1084, !14, i64 1086, !10, i64 1088, !10, i64 1096, !7, i64 1104, !7, i64 1105, !10, i64 1112, !10, i64 1120, !9, i64 1128, !9, i64 1136, !9, i64 1144, !9, i64 1152, !9, i64 1160, !9, i64 1168, !9, i64 1176, !7, i64 1184, !10, i64 1192, !10, i64 1200, !18, i64 1208, !10, i64 1240, !10, i64 1248}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !12, i64 8, !10, i64 16, !9, i64 24, !12, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !12, i64 88, !10, i64 96, !10, i64 104}
!12 = !{!"int", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!19 = !{!20, !10, i64 16}
!20 = !{!"png_info_struct", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !9, i64 32, !14, i64 40, !14, i64 42, !7, i64 44, !7, i64 45, !7, i64 46, !7, i64 47, !7, i64 48, !7, i64 49, !7, i64 50, !7, i64 51, !7, i64 52, !15, i64 60, !7, i64 64, !12, i64 68, !12, i64 72, !9, i64 80, !21, i64 88, !17, i64 96, !9, i64 104, !16, i64 112, !16, i64 122, !10, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !9, i64 184, !15, i64 192, !15, i64 196, !15, i64 200, !15, i64 204, !15, i64 208, !15, i64 212, !15, i64 216, !15, i64 220, !9, i64 224, !10, i64 232, !10, i64 240, !9, i64 248, !9, i64 256, !7, i64 264, !7, i64 265, !10, i64 272, !9, i64 280, !10, i64 288, !9, i64 296, !9, i64 304, !10, i64 312, !7, i64 320, !9, i64 328, !10, i64 336, !7, i64 344, !22, i64 352, !22, i64 360, !9, i64 368, !9, i64 376, !9, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456}
!21 = !{!"png_time_struct", !14, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!22 = !{!"double", !7, i64 0}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!9, !9, i64 0}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}


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