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

; 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, 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_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 { 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_text_struct = type { i32, ptr, ptr, i64, i64, ptr, ptr }

@.str.3 = 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 i32 @png_handle_as_unknown(ptr noundef, ptr noundef) #1

declare void @png_write_chunk(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

declare void @png_write_iTXt(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

declare void @png_write_tEXt(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @png_write_end(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  br label %269

11:                                               ; preds = %2
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.png_struct_def, ptr %12, i32 0, i32 13
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = and i32 %14, 4
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %19, label %17

17:                                               ; preds = %11
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %18, ptr noundef @.str.3)
  br label %19

19:                                               ; preds = %17, %11
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %263

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.png_info_struct, ptr %23, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !20
  %26 = and i32 %25, 512
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %38

28:                                               ; preds = %22
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.png_struct_def, ptr %29, i32 0, i32 13
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = and i32 %31, 512
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %38, label %34

34:                                               ; preds = %28
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.png_info_struct, ptr %36, i32 0, i32 21
  call void @png_write_tIME(ptr noundef %35, ptr noundef %37)
  br label %38

38:                                               ; preds = %34, %28, %22
  store i32 0, ptr %5, align 4, !tbaa !24
  br label %39

39:                                               ; preds = %185, %38
  %40 = load i32, ptr %5, align 4, !tbaa !24
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.png_info_struct, ptr %41, i32 0, i32 18
  %43 = load i32, ptr %42, align 4, !tbaa !25
  %44 = icmp slt i32 %40, %43
  br i1 %44, label %45, label %188

45:                                               ; preds = %39
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.png_info_struct, ptr %46, i32 0, i32 20
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = load i32, ptr %5, align 4, !tbaa !24
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %struct.png_text_struct, ptr %48, i64 %50
  %52 = getelementptr inbounds %struct.png_text_struct, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !27
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %55, label %104

55:                                               ; preds = %45
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.png_info_struct, ptr %57, i32 0, i32 20
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = load i32, ptr %5, align 4, !tbaa !24
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.png_text_struct, ptr %59, i64 %61
  %63 = getelementptr inbounds %struct.png_text_struct, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !27
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.png_info_struct, ptr %65, i32 0, i32 20
  %67 = load ptr, ptr %66, align 8, !tbaa !26
  %68 = load i32, ptr %5, align 4, !tbaa !24
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.png_text_struct, ptr %67, i64 %69
  %71 = getelementptr inbounds %struct.png_text_struct, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !29
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.png_info_struct, ptr %73, i32 0, i32 20
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  %76 = load i32, ptr %5, align 4, !tbaa !24
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.png_text_struct, ptr %75, i64 %77
  %79 = getelementptr inbounds %struct.png_text_struct, ptr %78, i32 0, i32 5
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.png_info_struct, ptr %81, i32 0, i32 20
  %83 = load ptr, ptr %82, align 8, !tbaa !26
  %84 = load i32, ptr %5, align 4, !tbaa !24
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %struct.png_text_struct, ptr %83, i64 %85
  %87 = getelementptr inbounds %struct.png_text_struct, ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !31
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.png_info_struct, ptr %89, i32 0, i32 20
  %91 = load ptr, ptr %90, align 8, !tbaa !26
  %92 = load i32, ptr %5, align 4, !tbaa !24
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %struct.png_text_struct, ptr %91, i64 %93
  %95 = getelementptr inbounds %struct.png_text_struct, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !32
  call void @png_write_iTXt(ptr noundef %56, i32 noundef %64, ptr noundef %72, ptr noundef %80, ptr noundef %88, ptr noundef %96)
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_info_struct, ptr %97, i32 0, i32 20
  %99 = load ptr, ptr %98, align 8, !tbaa !26
  %100 = load i32, ptr %5, align 4, !tbaa !24
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.png_text_struct, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.png_text_struct, ptr %102, i32 0, i32 0
  store i32 -3, ptr %103, align 8, !tbaa !27
  br label %184

104:                                              ; preds = %45
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.png_info_struct, ptr %105, i32 0, i32 20
  %107 = load ptr, ptr %106, align 8, !tbaa !26
  %108 = load i32, ptr %5, align 4, !tbaa !24
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct.png_text_struct, ptr %107, i64 %109
  %111 = getelementptr inbounds %struct.png_text_struct, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !27
  %113 = icmp sge i32 %112, 0
  br i1 %113, label %114, label %147

114:                                              ; preds = %104
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.png_info_struct, ptr %116, i32 0, i32 20
  %118 = load ptr, ptr %117, align 8, !tbaa !26
  %119 = load i32, ptr %5, align 4, !tbaa !24
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %struct.png_text_struct, ptr %118, i64 %120
  %122 = getelementptr inbounds %struct.png_text_struct, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !29
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.png_info_struct, ptr %124, i32 0, i32 20
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = load i32, ptr %5, align 4, !tbaa !24
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.png_text_struct, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.png_text_struct, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !32
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.png_info_struct, ptr %132, i32 0, i32 20
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  %135 = load i32, ptr %5, align 4, !tbaa !24
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.png_text_struct, ptr %134, i64 %136
  %138 = getelementptr inbounds %struct.png_text_struct, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 8, !tbaa !27
  call void @png_write_zTXt(ptr noundef %115, ptr noundef %123, ptr noundef %131, i64 noundef 0, i32 noundef %139)
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.png_info_struct, ptr %140, i32 0, i32 20
  %142 = load ptr, ptr %141, align 8, !tbaa !26
  %143 = load i32, ptr %5, align 4, !tbaa !24
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds %struct.png_text_struct, ptr %142, i64 %144
  %146 = getelementptr inbounds %struct.png_text_struct, ptr %145, i32 0, i32 0
  store i32 -2, ptr %146, align 8, !tbaa !27
  br label %183

147:                                              ; preds = %104
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.png_info_struct, ptr %148, i32 0, i32 20
  %150 = load ptr, ptr %149, align 8, !tbaa !26
  %151 = load i32, ptr %5, align 4, !tbaa !24
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %struct.png_text_struct, ptr %150, i64 %152
  %154 = getelementptr inbounds %struct.png_text_struct, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !27
  %156 = icmp eq i32 %155, -1
  br i1 %156, label %157, label %182

157:                                              ; preds = %147
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.png_info_struct, ptr %159, i32 0, i32 20
  %161 = load ptr, ptr %160, align 8, !tbaa !26
  %162 = load i32, ptr %5, align 4, !tbaa !24
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct.png_text_struct, ptr %161, i64 %163
  %165 = getelementptr inbounds %struct.png_text_struct, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !29
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.png_info_struct, ptr %167, i32 0, i32 20
  %169 = load ptr, ptr %168, align 8, !tbaa !26
  %170 = load i32, ptr %5, align 4, !tbaa !24
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %struct.png_text_struct, ptr %169, i64 %171
  %173 = getelementptr inbounds %struct.png_text_struct, ptr %172, i32 0, i32 2
  %174 = load ptr, ptr %173, align 8, !tbaa !32
  call void @png_write_tEXt(ptr noundef %158, ptr noundef %166, ptr noundef %174, i64 noundef 0)
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.png_info_struct, ptr %175, i32 0, i32 20
  %177 = load ptr, ptr %176, align 8, !tbaa !26
  %178 = load i32, ptr %5, align 4, !tbaa !24
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %struct.png_text_struct, ptr %177, i64 %179
  %181 = getelementptr inbounds %struct.png_text_struct, ptr %180, i32 0, i32 0
  store i32 -3, ptr %181, align 8, !tbaa !27
  br label %182

182:                                              ; preds = %157, %147
  br label %183

183:                                              ; preds = %182, %114
  br label %184

184:                                              ; preds = %183, %55
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %5, align 4, !tbaa !24
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %5, align 4, !tbaa !24
  br label %39, !llvm.loop !33

188:                                              ; preds = %39
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.png_info_struct, ptr %189, i32 0, i32 50
  %191 = load i64, ptr %190, align 8, !tbaa !35
  %192 = icmp ne i64 %191, 0
  br i1 %192, label %193, label %262

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.png_info_struct, ptr %194, i32 0, i32 49
  %196 = load ptr, ptr %195, align 8, !tbaa !36
  store ptr %196, ptr %6, align 8, !tbaa !5
  br label %197

197:                                              ; preds = %258, %193
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.png_info_struct, ptr %199, i32 0, i32 49
  %201 = load ptr, ptr %200, align 8, !tbaa !36
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.png_info_struct, ptr %202, i32 0, i32 50
  %204 = load i64, ptr %203, align 8, !tbaa !35
  %205 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %201, i64 %204
  %206 = icmp ult ptr %198, %205
  br i1 %206, label %207, label %261

207:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds [5 x i8], ptr %210, i64 0, i64 0
  %212 = call i32 @png_handle_as_unknown(ptr noundef %208, ptr noundef %211)
  store i32 %212, ptr %7, align 4, !tbaa !24
  %213 = load i32, ptr %7, align 4, !tbaa !24
  %214 = icmp ne i32 %213, 1
  br i1 %214, label %215, label %257

215:                                              ; preds = %207
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %216, i32 0, i32 3
  %218 = load i8, ptr %217, align 8, !tbaa !37
  %219 = zext i8 %218 to i32
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %257

221:                                              ; preds = %215
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %222, i32 0, i32 3
  %224 = load i8, ptr %223, align 8, !tbaa !37
  %225 = zext i8 %224 to i32
  %226 = and i32 %225, 8
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %257

228:                                              ; preds = %221
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds [5 x i8], ptr %230, i64 0, i64 3
  %232 = load i8, ptr %231, align 1, !tbaa !38
  %233 = zext i8 %232 to i32
  %234 = and i32 %233, 32
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %246, label %236

236:                                              ; preds = %228
  %237 = load i32, ptr %7, align 4, !tbaa !24
  %238 = icmp eq i32 %237, 3
  br i1 %238, label %246, label %239

239:                                              ; preds = %236
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.png_struct_def, ptr %240, i32 0, i32 14
  %242 = load i32, ptr %241, align 8, !tbaa !39
  %243 = zext i32 %242 to i64
  %244 = and i64 %243, 65536
  %245 = icmp ne i64 %244, 0
  br i1 %245, label %246, label %257

246:                                              ; preds = %239, %236, %228
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds [5 x i8], ptr %249, i64 0, i64 0
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %251, i32 0, i32 1
  %253 = load ptr, ptr %252, align 8, !tbaa !40
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %254, i32 0, i32 2
  %256 = load i64, ptr %255, align 8, !tbaa !41
  call void @png_write_chunk(ptr noundef %247, ptr noundef %250, ptr noundef %253, i64 noundef %256)
  br label %257

257:                                              ; preds = %246, %239, %221, %215, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %258

258:                                              ; preds = %257
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %259, i32 1
  store ptr %260, ptr %6, align 8, !tbaa !5
  br label %197, !llvm.loop !42

261:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %262

262:                                              ; preds = %261, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %263

263:                                              ; preds = %262, %19
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.png_struct_def, ptr %264, i32 0, i32 13
  %266 = load i32, ptr %265, align 4, !tbaa !9
  %267 = or i32 %266, 8
  store i32 %267, ptr %265, align 4, !tbaa !9
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_IEND(ptr noundef %268)
  br label %269

269:                                              ; preds = %263, %10
  ret void
}

declare void @png_write_IEND(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, !11, i64 284}
!10 = !{!"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, !11, i64 284, !11, i64 288, !11, i64 292, !12, i64 296, !6, i64 408, !13, i64 416, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !13, i64 464, !13, i64 472, !11, i64 480, !11, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !14, i64 536, !11, i64 560, !11, i64 564, !6, i64 568, !15, i64 576, !15, 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, !15, i64 598, !7, i64 600, !16, i64 604, !17, i64 608, !17, i64 618, !6, i64 632, !11, i64 640, !11, i64 644, !11, i64 648, !16, i64 652, !16, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !18, i64 712, !18, i64 717, !6, i64 728, !17, 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, !11, i64 824, !11, i64 828, !13, i64 832, !13, i64 840, !13, i64 848, !13, i64 856, !11, i64 864, !11, 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, !11, i64 984, !6, i64 992, !6, i64 1000, !11, i64 1008, !6, i64 1016, !7, i64 1024, !15, i64 1026, !15, i64 1028, !15, i64 1030, !11, i64 1032, !11, 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, !11, i64 1108, !11, i64 1112, !11, i64 1116, !19, i64 1120, !11, i64 1152, !11, i64 1156, !6, i64 1160, !11, i64 1168}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !6, i64 0, !11, i64 8, !13, i64 16, !6, i64 24, !11, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !13, i64 96, !13, i64 104}
!13 = !{!"long", !7, i64 0}
!14 = !{!"png_row_info_struct", !11, i64 0, !13, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !13, i64 16, !7, i64 24}
!20 = !{!21, !11, i64 8}
!21 = !{!"png_info_struct", !11, i64 0, !11, i64 4, !11, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !15, 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, !16, i64 52, !7, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !22, i64 80, !18, i64 88, !6, i64 96, !17, i64 104, !17, i64 114, !11, i64 124, !11, i64 128, !7, i64 132, !11, i64 136, !11, i64 140, !7, i64 144, !6, i64 152, !16, i64 160, !16, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !6, i64 192, !11, i64 200, !11, i64 204, !6, i64 208, !6, i64 216, !7, i64 224, !7, i64 225, !11, i64 228, !6, i64 232, !13, i64 240, !6, i64 248, !6, i64 256, !11, i64 264, !7, i64 268, !6, i64 272, !11, i64 280, !7, i64 284, !23, i64 288, !23, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !11, i64 328, !11, i64 332, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360}
!22 = !{!"png_time_struct", !15, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!23 = !{!"double", !7, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!21, !11, i64 60}
!26 = !{!21, !6, i64 72}
!27 = !{!28, !11, i64 0}
!28 = !{!"png_text_struct", !11, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 32, !6, i64 40, !6, i64 48}
!29 = !{!28, !6, i64 8}
!30 = !{!28, !6, i64 40}
!31 = !{!28, !6, i64 48}
!32 = !{!28, !6, i64 16}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!21, !13, i64 240}
!36 = !{!21, !6, i64 232}
!37 = !{!19, !7, i64 24}
!38 = !{!7, !7, i64 0}
!39 = !{!10, !11, i64 288}
!40 = !{!19, !6, i64 8}
!41 = !{!19, !13, i64 16}
!42 = distinct !{!42, !34}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.png_text_struct = type { i32, ptr, ptr, i64, i64, ptr, ptr }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @png_handle_as_unknown(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_end(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %94, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 284
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = and i32 %6, 4
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %9

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

9:                                                ; preds = %8, %4
  %.not72 = icmp eq ptr %1, null
  br i1 %.not72, label %.loopexit, label %10

10:                                               ; preds = %9
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !19
  %13 = and i32 %12, 512
  %.not73 = icmp eq i32 %13, 0
  br i1 %.not73, label %19, label %14

14:                                               ; preds = %10
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = and i32 %15, 512
  %.not74 = icmp eq i32 %16, 0
  br i1 %.not74, label %17, label %19

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %1, i64 80
  tail call void @png_write_tIME(ptr noundef nonnull %0, ptr noundef nonnull %18) #2
  br label %19

19:                                               ; preds = %17, %14, %10
  %20 = getelementptr inbounds i8, ptr %1, i64 60
  %21 = load i32, ptr %20, align 4, !tbaa !23
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %23 = getelementptr inbounds i8, ptr %1, i64 72
  %.pre = load ptr, ptr %23, align 8, !tbaa !24
  br label %24

24:                                               ; preds = %.lr.ph, %54
  %25 = phi ptr [ %.pre, %.lr.ph ], [ %55, %54 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %54 ]
  %26 = getelementptr inbounds %struct.png_text_struct, ptr %25, i64 %indvars.iv
  %27 = load i32, ptr %26, align 8, !tbaa !25
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %38

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %26, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !27
  %32 = getelementptr inbounds i8, ptr %26, i64 40
  %33 = load ptr, ptr %32, align 8, !tbaa !28
  %34 = getelementptr inbounds i8, ptr %26, i64 48
  %35 = load ptr, ptr %34, align 8, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %26, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !30
  tail call void @png_write_iTXt(ptr noundef nonnull %0, i32 noundef %27, ptr noundef %31, ptr noundef %33, ptr noundef %35, ptr noundef %37) #2
  br label %.sink.split

38:                                               ; preds = %24
  %39 = icmp sgt i32 %27, -1
  br i1 %39, label %40, label %45

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %26, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %26, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  tail call void @png_write_zTXt(ptr noundef nonnull %0, ptr noundef %42, ptr noundef %44, i64 noundef 0, i32 noundef 0) #2
  br label %.sink.split

45:                                               ; preds = %38
  %46 = icmp eq i32 %27, -1
  br i1 %46, label %47, label %54

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %26, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %26, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !30
  tail call void @png_write_tEXt(ptr noundef nonnull %0, ptr noundef %49, ptr noundef %51, i64 noundef 0) #2
  br label %.sink.split

.sink.split:                                      ; preds = %40, %47, %29
  %.sink = phi i32 [ -3, %29 ], [ -3, %47 ], [ -2, %40 ]
  %52 = load ptr, ptr %23, align 8, !tbaa !24
  %53 = getelementptr inbounds %struct.png_text_struct, ptr %52, i64 %indvars.iv
  store i32 %.sink, ptr %53, align 8, !tbaa !25
  br label %54

54:                                               ; preds = %.sink.split, %45
  %55 = phi ptr [ %25, %45 ], [ %52, %.sink.split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = load i32, ptr %20, align 4, !tbaa !23
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %indvars.iv.next, %57
  br i1 %58, label %24, label %._crit_edge, !llvm.loop !31

._crit_edge:                                      ; preds = %54, %19
  %59 = getelementptr inbounds i8, ptr %1, i64 240
  %60 = load i64, ptr %59, align 8, !tbaa !33
  %.not75 = icmp eq i64 %60, 0
  br i1 %.not75, label %.loopexit, label %61

61:                                               ; preds = %._crit_edge
  %62 = getelementptr inbounds i8, ptr %1, i64 232
  %63 = icmp sgt i64 %60, 0
  br i1 %63, label %.lr.ph84, label %.loopexit

.lr.ph84:                                         ; preds = %61
  %64 = load ptr, ptr %62, align 8, !tbaa !34
  %65 = getelementptr inbounds i8, ptr %0, i64 288
  br label %66

66:                                               ; preds = %.lr.ph84, %86
  %.06682 = phi ptr [ %64, %.lr.ph84 ], [ %87, %86 ]
  %67 = tail call i32 @png_handle_as_unknown(ptr noundef nonnull %0, ptr noundef %.06682) #2
  %.not76 = icmp eq i32 %67, 1
  br i1 %.not76, label %86, label %68

68:                                               ; preds = %66
  %69 = getelementptr inbounds i8, ptr %.06682, i64 24
  %70 = load i8, ptr %69, align 8, !tbaa !35
  %71 = and i8 %70, 8
  %.not78 = icmp eq i8 %71, 0
  br i1 %.not78, label %86, label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds i8, ptr %.06682, i64 3
  %74 = load i8, ptr %73, align 1, !tbaa !36
  %75 = and i8 %74, 32
  %76 = icmp ne i8 %75, 0
  %77 = icmp eq i32 %67, 3
  %or.cond = or i1 %77, %76
  br i1 %or.cond, label %81, label %78

78:                                               ; preds = %72
  %79 = load i32, ptr %65, align 8, !tbaa !37
  %80 = and i32 %79, 65536
  %.not79 = icmp eq i32 %80, 0
  br i1 %.not79, label %86, label %81

81:                                               ; preds = %78, %72
  %82 = getelementptr inbounds i8, ptr %.06682, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !38
  %84 = getelementptr inbounds i8, ptr %.06682, i64 16
  %85 = load i64, ptr %84, align 8, !tbaa !39
  tail call void @png_write_chunk(ptr noundef nonnull %0, ptr noundef nonnull %.06682, ptr noundef %83, i64 noundef %85) #2
  br label %86

86:                                               ; preds = %81, %78, %68, %66
  %87 = getelementptr inbounds i8, ptr %.06682, i64 32
  %88 = load ptr, ptr %62, align 8, !tbaa !34
  %89 = load i64, ptr %59, align 8, !tbaa !33
  %90 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %88, i64 %89
  %91 = icmp ult ptr %87, %90
  br i1 %91, label %66, label %.loopexit, !llvm.loop !40

.loopexit:                                        ; preds = %86, %61, %._crit_edge, %9
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = or i32 %92, 8
  store i32 %93, ptr %5, align 4, !tbaa !5
  tail call void @png_write_IEND(ptr noundef nonnull %0) #2
  br label %94

94:                                               ; preds = %2, %.loopexit
  ret void
}

declare void @png_write_IEND(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 284}
!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, !9, i64 272, !7, i64 280, !7, i64 281, !10, i64 284, !10, i64 288, !10, i64 292, !11, i64 296, !9, i64 408, !12, 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, !12, i64 464, !12, i64 472, !10, i64 480, !10, i64 484, !9, i64 488, !9, i64 496, !9, i64 504, !9, i64 512, !9, i64 520, !9, i64 528, !13, i64 536, !10, i64 560, !10, i64 564, !9, 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, !16, i64 608, !16, i64 618, !9, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !15, i64 652, !15, i64 656, !9, i64 664, !9, i64 672, !9, i64 680, !9, i64 688, !9, i64 696, !9, i64 704, !17, i64 712, !17, i64 717, !9, i64 728, !16, i64 736, !9, i64 752, !9, i64 760, !9, i64 768, !9, i64 776, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !10, i64 824, !10, i64 828, !12, i64 832, !12, i64 840, !12, i64 848, !12, i64 856, !10, i64 864, !10, i64 868, !12, i64 872, !12, i64 880, !9, i64 888, !9, i64 896, !9, i64 904, !9, i64 912, !9, i64 920, !7, i64 928, !7, i64 929, !9, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !10, i64 984, !9, i64 992, !9, i64 1000, !10, i64 1008, !9, i64 1016, !7, i64 1024, !14, i64 1026, !14, i64 1028, !14, i64 1030, !10, i64 1032, !10, i64 1036, !7, i64 1040, !9, i64 1048, !9, i64 1056, !9, i64 1064, !9, i64 1072, !9, i64 1080, !9, i64 1088, !9, i64 1096, !7, i64 1104, !10, i64 1108, !10, i64 1112, !10, i64 1116, !18, i64 1120, !10, i64 1152, !10, i64 1156, !9, i64 1160, !10, i64 1168}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !10, i64 8, !12, i64 16, !9, i64 24, !10, i64 32, !12, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !10, i64 88, !12, i64 96, !12, i64 104}
!12 = !{!"long", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !12, 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, !12, i64 16, !7, i64 24}
!19 = !{!20, !10, i64 8}
!20 = !{!"png_info_struct", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 16, !9, 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, !9, i64 72, !21, i64 80, !17, i64 88, !9, i64 96, !16, i64 104, !16, i64 114, !10, i64 124, !10, i64 128, !7, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !9, 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, !9, i64 192, !10, i64 200, !10, i64 204, !9, i64 208, !9, i64 216, !7, i64 224, !7, i64 225, !10, i64 228, !9, i64 232, !12, i64 240, !9, i64 248, !9, i64 256, !10, i64 264, !7, i64 268, !9, i64 272, !10, i64 280, !7, i64 284, !22, i64 288, !22, i64 296, !9, i64 304, !9, i64 312, !9, 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}
!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 = !{!20, !10, i64 60}
!24 = !{!20, !9, i64 72}
!25 = !{!26, !10, i64 0}
!26 = !{!"png_text_struct", !10, i64 0, !9, i64 8, !9, i64 16, !12, i64 24, !12, i64 32, !9, i64 40, !9, i64 48}
!27 = !{!26, !9, i64 8}
!28 = !{!26, !9, i64 40}
!29 = !{!26, !9, i64 48}
!30 = !{!26, !9, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!20, !12, i64 240}
!34 = !{!20, !9, i64 232}
!35 = !{!18, !7, i64 24}
!36 = !{!7, !7, i64 0}
!37 = !{!6, !10, i64 288}
!38 = !{!18, !9, i64 8}
!39 = !{!18, !12, i64 16}
!40 = distinct !{!40, !32}


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