; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src/render/brick_texture_packer/lodepng (lodepng)

; 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.LodePNGInfo = type { i32, i32, i32, %struct.LodePNGColorMode, i32, i32, i32, i32, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, %struct.LodePNGTime, i32, i32, i32, i32, [3 x ptr], [3 x i64] }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }
%struct.LodePNGTime = type { i32, i32, i32, i32, i32, i32 }
%struct.ucvector = type { ptr, i64, i64 }
%struct.LodePNGState = type <{ ptr, %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32, [4 x i8] }>
%struct.LodePNGDecoderSettings = type { %struct.LodePNGDecompressSettings, i32, i32, i32, i32 }
%struct.LodePNGDecompressSettings = type { i32, ptr, ptr, ptr }
%struct.LodePNGEncoderSettings = type { %struct.LodePNGCompressSettings, i32, i32, i32, ptr, i32, i32, i32 }
%struct.LodePNGCompressSettings = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr }

@LODEPNG_VERSION_STRING = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 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: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL14lodepng_mallocm(i64 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: mustprogress nounwind uwtable
declare hidden void @_ZL12lodepng_freePv(ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModePKS2_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14lodepng_encodePPhPmPKhjjP12LodePNGState(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.LodePNGInfo, align 8
  %15 = alloca %struct.ucvector, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 232, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !11
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr null, ptr %23, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.LodePNGState, ptr %25, i32 0, i32 5
  store i32 0, ptr %26, align 8, !tbaa !13
  call void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef %14)
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.LodePNGState, ptr %27, i32 0, i32 4
  %29 = call noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef %14, ptr noundef %28)
  %30 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %31 = getelementptr inbounds %struct.LodePNGColorMode, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !24
  %33 = icmp eq i32 %32, 3
  br i1 %33, label %40, label %34

34:                                               ; preds = %6
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.LodePNGState, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %36, i32 0, i32 5
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %56

40:                                               ; preds = %34, %6
  %41 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %42 = getelementptr inbounds %struct.LodePNGColorMode, ptr %41, i32 0, i32 3
  %43 = load i64, ptr %42, align 8, !tbaa !26
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %50, label %45

45:                                               ; preds = %40
  %46 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %47 = getelementptr inbounds %struct.LodePNGColorMode, ptr %46, i32 0, i32 3
  %48 = load i64, ptr %47, align 8, !tbaa !26
  %49 = icmp ugt i64 %48, 256
  br i1 %49, label %50, label %56

50:                                               ; preds = %45, %40
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.LodePNGState, ptr %51, i32 0, i32 5
  store i32 68, ptr %52, align 8, !tbaa !13
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.LodePNGState, ptr %53, i32 0, i32 5
  %55 = load i32, ptr %54, align 8, !tbaa !13
  store i32 %55, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

56:                                               ; preds = %45, %34
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.LodePNGState, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !27
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %72

62:                                               ; preds = %56
  %63 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.LodePNGState, ptr %67, i32 0, i32 3
  %69 = call noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef %63, ptr noundef %64, i32 noundef %65, i32 noundef %66, ptr noundef %68)
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.LodePNGState, ptr %70, i32 0, i32 5
  store i32 %69, ptr %71, align 8, !tbaa !13
  br label %72

72:                                               ; preds = %62, %56
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.LodePNGState, ptr %73, i32 0, i32 5
  %75 = load i32, ptr %74, align 8, !tbaa !13
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %72
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.LodePNGState, ptr %78, i32 0, i32 5
  %80 = load i32, ptr %79, align 8, !tbaa !13
  store i32 %80, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

81:                                               ; preds = %72
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.LodePNGState, ptr %82, i32 0, i32 2
  %84 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !28
  %87 = icmp ugt i32 %86, 2
  br i1 %87, label %88, label %91

88:                                               ; preds = %81
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.LodePNGState, ptr %89, i32 0, i32 5
  store i32 61, ptr %90, align 8, !tbaa !13
  store i32 61, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

91:                                               ; preds = %81
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.LodePNGState, ptr %92, i32 0, i32 4
  %94 = getelementptr inbounds %struct.LodePNGInfo, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !29
  %96 = icmp ugt i32 %95, 1
  br i1 %96, label %97, label %100

97:                                               ; preds = %91
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.LodePNGState, ptr %98, i32 0, i32 5
  store i32 71, ptr %99, align 8, !tbaa !13
  store i32 71, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

100:                                              ; preds = %91
  %101 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %102 = getelementptr inbounds %struct.LodePNGColorMode, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !24
  %104 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %105 = getelementptr inbounds %struct.LodePNGColorMode, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !30
  %107 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %103, i32 noundef %106)
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.LodePNGState, ptr %108, i32 0, i32 5
  store i32 %107, ptr %109, align 8, !tbaa !13
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.LodePNGState, ptr %110, i32 0, i32 5
  %112 = load i32, ptr %111, align 8, !tbaa !13
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %118

114:                                              ; preds = %100
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.LodePNGState, ptr %115, i32 0, i32 5
  %117 = load i32, ptr %116, align 8, !tbaa !13
  store i32 %117, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

118:                                              ; preds = %100
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.LodePNGState, ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %struct.LodePNGColorMode, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !31
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.LodePNGState, ptr %123, i32 0, i32 3
  %125 = getelementptr inbounds %struct.LodePNGColorMode, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !32
  %127 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %122, i32 noundef %126)
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.LodePNGState, ptr %128, i32 0, i32 5
  store i32 %127, ptr %129, align 8, !tbaa !13
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.LodePNGState, ptr %130, i32 0, i32 5
  %132 = load i32, ptr %131, align 8, !tbaa !13
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %138

134:                                              ; preds = %118
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.LodePNGState, ptr %135, i32 0, i32 5
  %137 = load i32, ptr %136, align 8, !tbaa !13
  store i32 %137, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

138:                                              ; preds = %118
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.LodePNGState, ptr %139, i32 0, i32 3
  %141 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %142 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef %140, ptr noundef %141)
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %194, label %144

144:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = mul i32 %145, %146
  %148 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %149 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef %148)
  %150 = mul i32 %147, %149
  %151 = add i32 %150, 7
  %152 = udiv i32 %151, 8
  %153 = zext i32 %152 to i64
  store i64 %153, ptr %20, align 8, !tbaa !11
  %154 = load i64, ptr %20, align 8, !tbaa !11
  %155 = call noundef ptr @_ZL14lodepng_mallocm(i64 noundef %154)
  store ptr %155, ptr %19, align 8, !tbaa !5
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %164, label %158

158:                                              ; preds = %144
  %159 = load i64, ptr %20, align 8, !tbaa !11
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %164

161:                                              ; preds = %158
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.LodePNGState, ptr %162, i32 0, i32 5
  store i32 83, ptr %163, align 8, !tbaa !13
  br label %164

164:                                              ; preds = %161, %158, %144
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.LodePNGState, ptr %165, i32 0, i32 5
  %167 = load i32, ptr %166, align 8, !tbaa !13
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %180, label %169

169:                                              ; preds = %164
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.LodePNGState, ptr %173, i32 0, i32 3
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = call noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModePKS2_jj(ptr noundef %170, ptr noundef %171, ptr noundef %172, ptr noundef %174, i32 noundef %175, i32 noundef %176)
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.LodePNGState, ptr %178, i32 0, i32 5
  store i32 %177, ptr %179, align 8, !tbaa !13
  br label %180

180:                                              ; preds = %169, %164
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.LodePNGState, ptr %181, i32 0, i32 5
  %183 = load i32, ptr %182, align 8, !tbaa !13
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %192, label %185

185:                                              ; preds = %180
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.LodePNGState, ptr %189, i32 0, i32 2
  %191 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef %16, ptr noundef %17, ptr noundef %186, i32 noundef %187, i32 noundef %188, ptr noundef %14, ptr noundef %190)
  br label %192

192:                                              ; preds = %185, %180
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %193)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %201

194:                                              ; preds = %138
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = load i32, ptr %12, align 4, !tbaa !9
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.LodePNGState, ptr %198, i32 0, i32 2
  %200 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef %16, ptr noundef %17, ptr noundef %195, i32 noundef %196, i32 noundef %197, ptr noundef %14, ptr noundef %199)
  br label %201

201:                                              ; preds = %194, %192
  call void @_ZL13ucvector_initP8ucvector(ptr noundef %15)
  br label %202

202:                                              ; preds = %201
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.LodePNGState, ptr %203, i32 0, i32 5
  %205 = load i32, ptr %204, align 8, !tbaa !13
  %206 = icmp ne i32 %205, 0
  %207 = xor i1 %206, true
  br i1 %207, label %208, label %537

208:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @_ZL14writeSignatureP8ucvector(ptr noundef %15)
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %212 = getelementptr inbounds %struct.LodePNGColorMode, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 8, !tbaa !24
  %214 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %215 = getelementptr inbounds %struct.LodePNGColorMode, ptr %214, i32 0, i32 1
  %216 = load i32, ptr %215, align 4, !tbaa !30
  %217 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 2
  %218 = load i32, ptr %217, align 8, !tbaa !33
  %219 = call noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef %15, i32 noundef %209, i32 noundef %210, i32 noundef %213, i32 noundef %216, i32 noundef %218)
  %220 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %221 = getelementptr inbounds [3 x ptr], ptr %220, i64 0, i64 0
  %222 = load ptr, ptr %221, align 8, !tbaa !5
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %240

224:                                              ; preds = %208
  %225 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %226 = getelementptr inbounds [3 x ptr], ptr %225, i64 0, i64 0
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %229 = getelementptr inbounds [3 x i64], ptr %228, i64 0, i64 0
  %230 = load i64, ptr %229, align 8, !tbaa !11
  %231 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %227, i64 noundef %230)
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.LodePNGState, ptr %232, i32 0, i32 5
  store i32 %231, ptr %233, align 8, !tbaa !13
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.LodePNGState, ptr %234, i32 0, i32 5
  %236 = load i32, ptr %235, align 8, !tbaa !13
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %239

238:                                              ; preds = %224
  store i32 3, ptr %18, align 4
  br label %536

239:                                              ; preds = %224
  br label %240

240:                                              ; preds = %239, %208
  %241 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %242 = getelementptr inbounds %struct.LodePNGColorMode, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !24
  %244 = icmp eq i32 %243, 3
  br i1 %244, label %245, label %248

245:                                              ; preds = %240
  %246 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %247 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %246)
  br label %248

248:                                              ; preds = %245, %240
  %249 = load ptr, ptr %13, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.LodePNGState, ptr %249, i32 0, i32 2
  %251 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %250, i32 0, i32 5
  %252 = load i32, ptr %251, align 8, !tbaa !25
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %267

254:                                              ; preds = %248
  %255 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %256 = getelementptr inbounds %struct.LodePNGColorMode, ptr %255, i32 0, i32 0
  %257 = load i32, ptr %256, align 8, !tbaa !24
  %258 = icmp eq i32 %257, 2
  br i1 %258, label %264, label %259

259:                                              ; preds = %254
  %260 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %261 = getelementptr inbounds %struct.LodePNGColorMode, ptr %260, i32 0, i32 0
  %262 = load i32, ptr %261, align 8, !tbaa !24
  %263 = icmp eq i32 %262, 6
  br i1 %263, label %264, label %267

264:                                              ; preds = %259, %254
  %265 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %266 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %265)
  br label %267

267:                                              ; preds = %264, %259, %248
  %268 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %269 = getelementptr inbounds %struct.LodePNGColorMode, ptr %268, i32 0, i32 0
  %270 = load i32, ptr %269, align 8, !tbaa !24
  %271 = icmp eq i32 %270, 3
  br i1 %271, label %272, label %284

272:                                              ; preds = %267
  %273 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %274 = getelementptr inbounds %struct.LodePNGColorMode, ptr %273, i32 0, i32 2
  %275 = load ptr, ptr %274, align 8, !tbaa !34
  %276 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %277 = getelementptr inbounds %struct.LodePNGColorMode, ptr %276, i32 0, i32 3
  %278 = load i64, ptr %277, align 8, !tbaa !26
  %279 = call noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef %275, i64 noundef %278)
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %284

281:                                              ; preds = %272
  %282 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %283 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %282)
  br label %284

284:                                              ; preds = %281, %272, %267
  %285 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %286 = getelementptr inbounds %struct.LodePNGColorMode, ptr %285, i32 0, i32 0
  %287 = load i32, ptr %286, align 8, !tbaa !24
  %288 = icmp eq i32 %287, 0
  br i1 %288, label %294, label %289

289:                                              ; preds = %284
  %290 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %291 = getelementptr inbounds %struct.LodePNGColorMode, ptr %290, i32 0, i32 0
  %292 = load i32, ptr %291, align 8, !tbaa !24
  %293 = icmp eq i32 %292, 2
  br i1 %293, label %294, label %302

294:                                              ; preds = %289, %284
  %295 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %296 = getelementptr inbounds %struct.LodePNGColorMode, ptr %295, i32 0, i32 4
  %297 = load i32, ptr %296, align 8, !tbaa !35
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %302

299:                                              ; preds = %294
  %300 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %301 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %300)
  br label %302

302:                                              ; preds = %299, %294, %289
  %303 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 4
  %304 = load i32, ptr %303, align 8, !tbaa !36
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %308

306:                                              ; preds = %302
  %307 = call noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef %15, ptr noundef %14)
  br label %308

308:                                              ; preds = %306, %302
  %309 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 18
  %310 = load i32, ptr %309, align 4, !tbaa !37
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %314

312:                                              ; preds = %308
  %313 = call noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef %15, ptr noundef %14)
  br label %314

314:                                              ; preds = %312, %308
  %315 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %316 = getelementptr inbounds [3 x ptr], ptr %315, i64 0, i64 1
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  %318 = icmp ne ptr %317, null
  br i1 %318, label %319, label %335

319:                                              ; preds = %314
  %320 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %321 = getelementptr inbounds [3 x ptr], ptr %320, i64 0, i64 1
  %322 = load ptr, ptr %321, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %324 = getelementptr inbounds [3 x i64], ptr %323, i64 0, i64 1
  %325 = load i64, ptr %324, align 8, !tbaa !11
  %326 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %322, i64 noundef %325)
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.LodePNGState, ptr %327, i32 0, i32 5
  store i32 %326, ptr %328, align 8, !tbaa !13
  %329 = load ptr, ptr %13, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.LodePNGState, ptr %329, i32 0, i32 5
  %331 = load i32, ptr %330, align 8, !tbaa !13
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %334

333:                                              ; preds = %319
  store i32 3, ptr %18, align 4
  br label %536

334:                                              ; preds = %319
  br label %335

335:                                              ; preds = %334, %314
  %336 = load ptr, ptr %16, align 8, !tbaa !5
  %337 = load i64, ptr %17, align 8, !tbaa !11
  %338 = load ptr, ptr %13, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.LodePNGState, ptr %338, i32 0, i32 2
  %340 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %339, i32 0, i32 0
  %341 = call noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef %15, ptr noundef %336, i64 noundef %337, ptr noundef %340)
  %342 = load ptr, ptr %13, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.LodePNGState, ptr %342, i32 0, i32 5
  store i32 %341, ptr %343, align 8, !tbaa !13
  %344 = load ptr, ptr %13, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.LodePNGState, ptr %344, i32 0, i32 5
  %346 = load i32, ptr %345, align 8, !tbaa !13
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %349

348:                                              ; preds = %335
  store i32 3, ptr %18, align 4
  br label %536

349:                                              ; preds = %335
  %350 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 16
  %351 = load i32, ptr %350, align 8, !tbaa !38
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %356

353:                                              ; preds = %349
  %354 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 17
  %355 = call noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef %15, ptr noundef %354)
  br label %356

356:                                              ; preds = %353, %349
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %357

357:                                              ; preds = %418, %356
  %358 = load i64, ptr %21, align 8, !tbaa !11
  %359 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 8
  %360 = load i64, ptr %359, align 8, !tbaa !39
  %361 = icmp ne i64 %358, %360
  br i1 %361, label %362, label %421

362:                                              ; preds = %357
  %363 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %364 = load ptr, ptr %363, align 8, !tbaa !40
  %365 = load i64, ptr %21, align 8, !tbaa !11
  %366 = getelementptr inbounds ptr, ptr %364, i64 %365
  %367 = load ptr, ptr %366, align 8, !tbaa !5
  %368 = call i64 @strlen(ptr noundef %367) #5
  %369 = icmp ugt i64 %368, 79
  br i1 %369, label %370, label %373

370:                                              ; preds = %362
  %371 = load ptr, ptr %13, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.LodePNGState, ptr %371, i32 0, i32 5
  store i32 66, ptr %372, align 8, !tbaa !13
  br label %421

373:                                              ; preds = %362
  %374 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %375 = load ptr, ptr %374, align 8, !tbaa !40
  %376 = load i64, ptr %21, align 8, !tbaa !11
  %377 = getelementptr inbounds ptr, ptr %375, i64 %376
  %378 = load ptr, ptr %377, align 8, !tbaa !5
  %379 = call i64 @strlen(ptr noundef %378) #5
  %380 = icmp ult i64 %379, 1
  br i1 %380, label %381, label %384

381:                                              ; preds = %373
  %382 = load ptr, ptr %13, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.LodePNGState, ptr %382, i32 0, i32 5
  store i32 67, ptr %383, align 8, !tbaa !13
  br label %421

384:                                              ; preds = %373
  %385 = load ptr, ptr %13, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.LodePNGState, ptr %385, i32 0, i32 2
  %387 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %386, i32 0, i32 7
  %388 = load i32, ptr %387, align 8, !tbaa !41
  %389 = icmp ne i32 %388, 0
  br i1 %389, label %390, label %405

390:                                              ; preds = %384
  %391 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %392 = load ptr, ptr %391, align 8, !tbaa !40
  %393 = load i64, ptr %21, align 8, !tbaa !11
  %394 = getelementptr inbounds ptr, ptr %392, i64 %393
  %395 = load ptr, ptr %394, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 10
  %397 = load ptr, ptr %396, align 8, !tbaa !42
  %398 = load i64, ptr %21, align 8, !tbaa !11
  %399 = getelementptr inbounds ptr, ptr %397, i64 %398
  %400 = load ptr, ptr %399, align 8, !tbaa !5
  %401 = load ptr, ptr %13, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.LodePNGState, ptr %401, i32 0, i32 2
  %403 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %402, i32 0, i32 0
  %404 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef %15, ptr noundef %395, ptr noundef %400, ptr noundef %403)
  br label %417

405:                                              ; preds = %384
  %406 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %407 = load ptr, ptr %406, align 8, !tbaa !40
  %408 = load i64, ptr %21, align 8, !tbaa !11
  %409 = getelementptr inbounds ptr, ptr %407, i64 %408
  %410 = load ptr, ptr %409, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 10
  %412 = load ptr, ptr %411, align 8, !tbaa !42
  %413 = load i64, ptr %21, align 8, !tbaa !11
  %414 = getelementptr inbounds ptr, ptr %412, i64 %413
  %415 = load ptr, ptr %414, align 8, !tbaa !5
  %416 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef %15, ptr noundef %410, ptr noundef %415)
  br label %417

417:                                              ; preds = %405, %390
  br label %418

418:                                              ; preds = %417
  %419 = load i64, ptr %21, align 8, !tbaa !11
  %420 = add i64 %419, 1
  store i64 %420, ptr %21, align 8, !tbaa !11
  br label %357, !llvm.loop !43

421:                                              ; preds = %381, %370, %357
  %422 = load ptr, ptr %13, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.LodePNGState, ptr %422, i32 0, i32 2
  %424 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %423, i32 0, i32 6
  %425 = load i32, ptr %424, align 4, !tbaa !45
  %426 = icmp ne i32 %425, 0
  br i1 %426, label %427, label %453

427:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %428

428:                                              ; preds = %443, %427
  %429 = load i64, ptr %21, align 8, !tbaa !11
  %430 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 8
  %431 = load i64, ptr %430, align 8, !tbaa !39
  %432 = icmp ne i64 %429, %431
  br i1 %432, label %433, label %446

433:                                              ; preds = %428
  %434 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %435 = load ptr, ptr %434, align 8, !tbaa !40
  %436 = load i64, ptr %21, align 8, !tbaa !11
  %437 = getelementptr inbounds ptr, ptr %435, i64 %436
  %438 = load ptr, ptr %437, align 8, !tbaa !5
  %439 = call i32 @strcmp(ptr noundef %438, ptr noundef @.str.3) #5
  %440 = icmp ne i32 %439, 0
  br i1 %440, label %442, label %441

441:                                              ; preds = %433
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %446

442:                                              ; preds = %433
  br label %443

443:                                              ; preds = %442
  %444 = load i64, ptr %21, align 8, !tbaa !11
  %445 = add i64 %444, 1
  store i64 %445, ptr %21, align 8, !tbaa !11
  br label %428, !llvm.loop !46

446:                                              ; preds = %441, %428
  %447 = load i32, ptr %22, align 4, !tbaa !9
  %448 = icmp eq i32 %447, 0
  br i1 %448, label %449, label %452

449:                                              ; preds = %446
  %450 = load ptr, ptr @LODEPNG_VERSION_STRING, align 8, !tbaa !5
  %451 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef %15, ptr noundef @.str.3, ptr noundef %450)
  br label %452

452:                                              ; preds = %449, %446
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %453

453:                                              ; preds = %452, %421
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %454

454:                                              ; preds = %510, %453
  %455 = load i64, ptr %21, align 8, !tbaa !11
  %456 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 11
  %457 = load i64, ptr %456, align 8, !tbaa !47
  %458 = icmp ne i64 %455, %457
  br i1 %458, label %459, label %513

459:                                              ; preds = %454
  %460 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %461 = load ptr, ptr %460, align 8, !tbaa !48
  %462 = load i64, ptr %21, align 8, !tbaa !11
  %463 = getelementptr inbounds ptr, ptr %461, i64 %462
  %464 = load ptr, ptr %463, align 8, !tbaa !5
  %465 = call i64 @strlen(ptr noundef %464) #5
  %466 = icmp ugt i64 %465, 79
  br i1 %466, label %467, label %470

467:                                              ; preds = %459
  %468 = load ptr, ptr %13, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.LodePNGState, ptr %468, i32 0, i32 5
  store i32 66, ptr %469, align 8, !tbaa !13
  br label %513

470:                                              ; preds = %459
  %471 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %472 = load ptr, ptr %471, align 8, !tbaa !48
  %473 = load i64, ptr %21, align 8, !tbaa !11
  %474 = getelementptr inbounds ptr, ptr %472, i64 %473
  %475 = load ptr, ptr %474, align 8, !tbaa !5
  %476 = call i64 @strlen(ptr noundef %475) #5
  %477 = icmp ult i64 %476, 1
  br i1 %477, label %478, label %481

478:                                              ; preds = %470
  %479 = load ptr, ptr %13, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.LodePNGState, ptr %479, i32 0, i32 5
  store i32 67, ptr %480, align 8, !tbaa !13
  br label %513

481:                                              ; preds = %470
  %482 = load ptr, ptr %13, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.LodePNGState, ptr %482, i32 0, i32 2
  %484 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %483, i32 0, i32 7
  %485 = load i32, ptr %484, align 8, !tbaa !41
  %486 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %487 = load ptr, ptr %486, align 8, !tbaa !48
  %488 = load i64, ptr %21, align 8, !tbaa !11
  %489 = getelementptr inbounds ptr, ptr %487, i64 %488
  %490 = load ptr, ptr %489, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 13
  %492 = load ptr, ptr %491, align 8, !tbaa !49
  %493 = load i64, ptr %21, align 8, !tbaa !11
  %494 = getelementptr inbounds ptr, ptr %492, i64 %493
  %495 = load ptr, ptr %494, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 14
  %497 = load ptr, ptr %496, align 8, !tbaa !50
  %498 = load i64, ptr %21, align 8, !tbaa !11
  %499 = getelementptr inbounds ptr, ptr %497, i64 %498
  %500 = load ptr, ptr %499, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 15
  %502 = load ptr, ptr %501, align 8, !tbaa !51
  %503 = load i64, ptr %21, align 8, !tbaa !11
  %504 = getelementptr inbounds ptr, ptr %502, i64 %503
  %505 = load ptr, ptr %504, align 8, !tbaa !5
  %506 = load ptr, ptr %13, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.LodePNGState, ptr %506, i32 0, i32 2
  %508 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %507, i32 0, i32 0
  %509 = call noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef %15, i32 noundef %485, ptr noundef %490, ptr noundef %495, ptr noundef %500, ptr noundef %505, ptr noundef %508)
  br label %510

510:                                              ; preds = %481
  %511 = load i64, ptr %21, align 8, !tbaa !11
  %512 = add i64 %511, 1
  store i64 %512, ptr %21, align 8, !tbaa !11
  br label %454, !llvm.loop !52

513:                                              ; preds = %478, %467, %454
  %514 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %515 = getelementptr inbounds [3 x ptr], ptr %514, i64 0, i64 2
  %516 = load ptr, ptr %515, align 8, !tbaa !5
  %517 = icmp ne ptr %516, null
  br i1 %517, label %518, label %534

518:                                              ; preds = %513
  %519 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %520 = getelementptr inbounds [3 x ptr], ptr %519, i64 0, i64 2
  %521 = load ptr, ptr %520, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %523 = getelementptr inbounds [3 x i64], ptr %522, i64 0, i64 2
  %524 = load i64, ptr %523, align 8, !tbaa !11
  %525 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %521, i64 noundef %524)
  %526 = load ptr, ptr %13, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.LodePNGState, ptr %526, i32 0, i32 5
  store i32 %525, ptr %527, align 8, !tbaa !13
  %528 = load ptr, ptr %13, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.LodePNGState, ptr %528, i32 0, i32 5
  %530 = load i32, ptr %529, align 8, !tbaa !13
  %531 = icmp ne i32 %530, 0
  br i1 %531, label %532, label %533

532:                                              ; preds = %518
  store i32 3, ptr %18, align 4
  br label %536

533:                                              ; preds = %518
  br label %534

534:                                              ; preds = %533, %513
  %535 = call noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef %15)
  store i32 3, ptr %18, align 4
  br label %536

536:                                              ; preds = %534, %532, %348, %333, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %537

537:                                              ; preds = %536, %202
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef %14)
  %538 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %538)
  %539 = getelementptr inbounds %struct.ucvector, ptr %15, i32 0, i32 0
  %540 = load ptr, ptr %539, align 8, !tbaa !53
  %541 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %540, ptr %541, align 8, !tbaa !5
  %542 = getelementptr inbounds %struct.ucvector, ptr %15, i32 0, i32 1
  %543 = load i64, ptr %542, align 8, !tbaa !55
  %544 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %543, ptr %544, align 8, !tbaa !11
  %545 = load ptr, ptr %13, align 8, !tbaa !5
  %546 = getelementptr inbounds %struct.LodePNGState, ptr %545, i32 0, i32 5
  %547 = load i32, ptr %546, align 8, !tbaa !13
  store i32 %547, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %548

548:                                              ; preds = %537, %134, %114, %97, %88, %77, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr %14) #4
  %549 = load i32, ptr %7, align 4
  ret i32 %549
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13ucvector_initP8ucvector(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14writeSignatureP8ucvector(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 willreturn memory(read) "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 416}
!14 = !{!"_ZTS12LodePNGState", !15, i64 8, !17, i64 56, !20, i64 144, !22, i64 184, !10, i64 416}
!15 = !{!"_ZTS22LodePNGDecoderSettings", !16, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!16 = !{!"_ZTS25LodePNGDecompressSettings", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTS22LodePNGEncoderSettings", !18, i64 0, !10, i64 48, !10, i64 52, !19, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80}
!18 = !{!"_ZTS23LodePNGCompressSettings", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!19 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!20 = !{!"_ZTS16LodePNGColorMode", !21, i64 0, !10, i64 4, !6, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!21 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!22 = !{!"_ZTS11LodePNGInfo", !10, i64 0, !10, i64 4, !10, i64 8, !20, i64 16, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !12, i64 72, !6, i64 80, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !23, i64 140, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !7, i64 184, !7, i64 208}
!23 = !{!"_ZTS11LodePNGTime", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!24 = !{!22, !21, i64 16}
!25 = !{!14, !10, i64 128}
!26 = !{!22, !12, i64 32}
!27 = !{!14, !10, i64 104}
!28 = !{!14, !10, i64 56}
!29 = !{!14, !10, i64 192}
!30 = !{!22, !10, i64 20}
!31 = !{!14, !21, i64 144}
!32 = !{!14, !10, i64 148}
!33 = !{!22, !10, i64 8}
!34 = !{!22, !6, i64 24}
!35 = !{!22, !10, i64 40}
!36 = !{!22, !10, i64 56}
!37 = !{!22, !10, i64 164}
!38 = !{!22, !10, i64 136}
!39 = !{!22, !12, i64 72}
!40 = !{!22, !6, i64 80}
!41 = !{!14, !10, i64 136}
!42 = !{!22, !6, i64 88}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!14, !10, i64 132}
!46 = distinct !{!46, !44}
!47 = !{!22, !12, i64 96}
!48 = !{!22, !6, i64 104}
!49 = !{!22, !6, i64 112}
!50 = !{!22, !6, i64 120}
!51 = !{!22, !6, i64 128}
!52 = distinct !{!52, !44}
!53 = !{!54, !6, i64 0}
!54 = !{!"_ZTS8ucvector", !6, i64 0, !12, i64 8, !12, i64 16}
!55 = !{!54, !12, 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"

%struct.LodePNGInfo = type { i32, i32, i32, %struct.LodePNGColorMode, i32, i32, i32, i32, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, %struct.LodePNGTime, i32, i32, i32, i32, [3 x ptr], [3 x i64] }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }
%struct.LodePNGTime = type { i32, i32, i32, i32, i32, i32 }
%struct.ucvector = type { ptr, i64, i64 }

@LODEPNG_VERSION_STRING = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 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 nounwind uwtable
declare hidden noundef ptr @_ZL14lodepng_mallocm(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12lodepng_freePv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModePKS2_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14lodepng_encodePPhPmPKhjjP12LodePNGState(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %struct.LodePNGInfo, align 8
  %8 = alloca %struct.ucvector, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store i64 0, ptr %10, align 8, !tbaa !9
  store ptr null, ptr %0, align 8, !tbaa !5
  store i64 0, ptr %1, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %5, i64 416
  store i32 0, ptr %11, align 8, !tbaa !11
  call void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef nonnull %7)
  %12 = getelementptr inbounds i8, ptr %5, i64 184
  %13 = call noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef nonnull %7, ptr noundef nonnull %12)
  %14 = getelementptr inbounds i8, ptr %7, i64 16
  %15 = load i32, ptr %14, align 8, !tbaa !23
  %16 = icmp eq i32 %15, 3
  br i1 %16, label %20, label %17

17:                                               ; preds = %6
  %18 = getelementptr inbounds i8, ptr %5, i64 128
  %19 = load i32, ptr %18, align 8, !tbaa !24
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %25, label %20

20:                                               ; preds = %17, %6
  %21 = getelementptr inbounds i8, ptr %7, i64 32
  %22 = load i64, ptr %21, align 8
  %23 = add i64 %22, -257
  %or.cond = icmp ult i64 %23, -256
  br i1 %or.cond, label %24, label %25

24:                                               ; preds = %20
  store i32 68, ptr %11, align 8, !tbaa !11
  br label %233

25:                                               ; preds = %20, %17
  %26 = getelementptr inbounds i8, ptr %5, i64 56
  %27 = getelementptr inbounds i8, ptr %5, i64 104
  %28 = load i32, ptr %27, align 8, !tbaa !25
  %.not123 = icmp eq i32 %28, 0
  br i1 %.not123, label %thread-pre-split, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %5, i64 144
  %31 = call noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef nonnull %14, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %30)
  store i32 %31, ptr %11, align 8, !tbaa !11
  br label %32

thread-pre-split:                                 ; preds = %25
  %.pr = load i32, ptr %11, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %thread-pre-split, %29
  %33 = phi i32 [ %.pr, %thread-pre-split ], [ %31, %29 ]
  %.not124 = icmp eq i32 %33, 0
  br i1 %.not124, label %34, label %233

34:                                               ; preds = %32
  %35 = load i32, ptr %26, align 8, !tbaa !26
  %36 = icmp ugt i32 %35, 2
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 61, ptr %11, align 8, !tbaa !11
  br label %233

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %5, i64 192
  %40 = load i32, ptr %39, align 8, !tbaa !27
  %41 = icmp ugt i32 %40, 1
  br i1 %41, label %42, label %43

42:                                               ; preds = %38
  store i32 71, ptr %11, align 8, !tbaa !11
  br label %233

43:                                               ; preds = %38
  %44 = load i32, ptr %14, align 8, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %7, i64 20
  %46 = load i32, ptr %45, align 4, !tbaa !28
  %47 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %44, i32 noundef %46)
  store i32 %47, ptr %11, align 8, !tbaa !11
  %.not125 = icmp eq i32 %47, 0
  br i1 %.not125, label %48, label %233

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %5, i64 144
  %50 = load i32, ptr %49, align 8, !tbaa !29
  %51 = getelementptr inbounds i8, ptr %5, i64 148
  %52 = load i32, ptr %51, align 4, !tbaa !30
  %53 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %50, i32 noundef %52)
  store i32 %53, ptr %11, align 8, !tbaa !11
  %.not126 = icmp eq i32 %53, 0
  br i1 %.not126, label %54, label %233

54:                                               ; preds = %48
  %55 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef nonnull %49, ptr noundef nonnull %14)
  %.not127 = icmp eq i32 %55, 0
  br i1 %.not127, label %56, label %71

56:                                               ; preds = %54
  %57 = mul i32 %4, %3
  %58 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef nonnull %14)
  %59 = mul i32 %57, %58
  %60 = add i32 %59, 7
  %61 = lshr i32 %60, 3
  %62 = zext nneg i32 %61 to i64
  %63 = call noundef ptr @_ZL14lodepng_mallocm(i64 noundef %62)
  %64 = icmp eq ptr %63, null
  %65 = icmp ugt i32 %60, 7
  %or.cond5 = and i1 %64, %65
  br i1 %or.cond5, label %.thread, label %66

.thread:                                          ; preds = %56
  store i32 83, ptr %11, align 8, !tbaa !11
  br label %.thread152

66:                                               ; preds = %56
  %.pr150 = load i32, ptr %11, align 8, !tbaa !11
  %.not128 = icmp eq i32 %.pr150, 0
  br i1 %.not128, label %67, label %.thread152

67:                                               ; preds = %66
  %68 = call noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModePKS2_jj(ptr noundef %63, ptr noundef %2, ptr noundef nonnull %14, ptr noundef nonnull %49, i32 noundef %3, i32 noundef %4)
  store i32 %68, ptr %11, align 8, !tbaa !11
  %.not129 = icmp eq i32 %68, 0
  br i1 %.not129, label %69, label %.thread152

69:                                               ; preds = %67
  %70 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %63, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %26)
  br label %.thread152

.thread152:                                       ; preds = %66, %.thread, %69, %67
  call void @_ZL12lodepng_freePv(ptr noundef %63)
  br label %73

71:                                               ; preds = %54
  %72 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %26)
  br label %73

73:                                               ; preds = %71, %.thread152
  call void @_ZL13ucvector_initP8ucvector(ptr noundef nonnull %8)
  %74 = load i32, ptr %11, align 8, !tbaa !11
  %.not130 = icmp eq i32 %74, 0
  br i1 %.not130, label %75, label %227

75:                                               ; preds = %73
  call void @_ZL14writeSignatureP8ucvector(ptr noundef nonnull %8)
  %76 = load i32, ptr %14, align 8, !tbaa !23
  %77 = load i32, ptr %45, align 4, !tbaa !28
  %78 = getelementptr inbounds i8, ptr %7, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !31
  %80 = call noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef nonnull %8, i32 noundef %3, i32 noundef %4, i32 noundef %76, i32 noundef %77, i32 noundef %79)
  %81 = getelementptr inbounds i8, ptr %7, i64 184
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %.not131 = icmp eq ptr %82, null
  br i1 %.not131, label %87, label %83

83:                                               ; preds = %75
  %84 = getelementptr inbounds i8, ptr %7, i64 208
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef nonnull %8, ptr noundef nonnull %82, i64 noundef %85)
  store i32 %86, ptr %11, align 8, !tbaa !11
  %.not132 = icmp eq i32 %86, 0
  br i1 %.not132, label %87, label %227

87:                                               ; preds = %83, %75
  %88 = load i32, ptr %14, align 8
  %89 = icmp eq i32 %88, 3
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  %.pr155.pre171.pre = load i32, ptr %14, align 8
  br label %92

92:                                               ; preds = %90, %87
  %.pr155.pre171 = phi i32 [ %.pr155.pre171.pre, %90 ], [ %88, %87 ]
  %93 = getelementptr inbounds i8, ptr %5, i64 128
  %94 = load i32, ptr %93, align 8, !tbaa !24
  %.not133 = icmp ne i32 %94, 0
  %95 = and i32 %.pr155.pre171, -5
  %or.cond9 = icmp eq i32 %95, 2
  %or.cond179 = select i1 %.not133, i1 %or.cond9, i1 false
  br i1 %or.cond179, label %96, label %thread-pre-split154

96:                                               ; preds = %92
  %97 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  %.pr155.pre = load i32, ptr %14, align 8, !tbaa !23
  br label %thread-pre-split154

thread-pre-split154:                              ; preds = %96, %92
  %98 = phi i32 [ %.pr155.pre171, %92 ], [ %.pr155.pre, %96 ]
  %99 = icmp eq i32 %98, 3
  br i1 %99, label %100, label %108

100:                                              ; preds = %thread-pre-split154
  %101 = getelementptr inbounds i8, ptr %7, i64 24
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = getelementptr inbounds i8, ptr %7, i64 32
  %104 = load i64, ptr %103, align 8, !tbaa !33
  %105 = call noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef %102, i64 noundef %104)
  %.not134 = icmp eq i32 %105, 0
  br i1 %.not134, label %108, label %106

106:                                              ; preds = %100
  %107 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  br label %108

108:                                              ; preds = %106, %100, %thread-pre-split154
  %109 = load i32, ptr %14, align 8
  %110 = and i32 %109, -3
  %or.cond13 = icmp eq i32 %110, 0
  %111 = getelementptr inbounds i8, ptr %7, i64 40
  %112 = load i32, ptr %111, align 8
  %113 = icmp ne i32 %112, 0
  %or.cond17 = select i1 %or.cond13, i1 %113, i1 false
  br i1 %or.cond17, label %114, label %116

114:                                              ; preds = %108
  %115 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  br label %116

116:                                              ; preds = %108, %114
  %117 = getelementptr inbounds i8, ptr %7, i64 56
  %118 = load i32, ptr %117, align 8, !tbaa !34
  %.not135 = icmp eq i32 %118, 0
  br i1 %.not135, label %121, label %119

119:                                              ; preds = %116
  %120 = call noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef nonnull %8, ptr noundef nonnull %7)
  br label %121

121:                                              ; preds = %119, %116
  %122 = getelementptr inbounds i8, ptr %7, i64 164
  %123 = load i32, ptr %122, align 4, !tbaa !35
  %.not136 = icmp eq i32 %123, 0
  br i1 %.not136, label %126, label %124

124:                                              ; preds = %121
  %125 = call noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef nonnull %8, ptr noundef nonnull %7)
  br label %126

126:                                              ; preds = %124, %121
  %127 = getelementptr inbounds i8, ptr %7, i64 192
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %.not137 = icmp eq ptr %128, null
  br i1 %.not137, label %133, label %129

129:                                              ; preds = %126
  %130 = getelementptr inbounds i8, ptr %7, i64 216
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef nonnull %8, ptr noundef nonnull %128, i64 noundef %131)
  store i32 %132, ptr %11, align 8, !tbaa !11
  %.not138 = icmp eq i32 %132, 0
  br i1 %.not138, label %133, label %227

133:                                              ; preds = %129, %126
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = load i64, ptr %10, align 8, !tbaa !9
  %136 = call noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %134, i64 noundef %135, ptr noundef nonnull %26)
  store i32 %136, ptr %11, align 8, !tbaa !11
  %.not139 = icmp eq i32 %136, 0
  br i1 %.not139, label %137, label %227

137:                                              ; preds = %133
  %138 = getelementptr inbounds i8, ptr %7, i64 136
  %139 = load i32, ptr %138, align 8, !tbaa !36
  %.not140 = icmp eq i32 %139, 0
  br i1 %.not140, label %143, label %140

140:                                              ; preds = %137
  %141 = getelementptr inbounds i8, ptr %7, i64 140
  %142 = call noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef nonnull %8, ptr noundef nonnull %141)
  br label %143

143:                                              ; preds = %140, %137
  %144 = getelementptr inbounds i8, ptr %7, i64 72
  %145 = load i64, ptr %144, align 8, !tbaa !37
  %.not141160 = icmp eq i64 %145, 0
  br i1 %.not141160, label %.loopexit157.thread, label %.lr.ph

.lr.ph:                                           ; preds = %143
  %146 = getelementptr inbounds i8, ptr %7, i64 80
  %147 = getelementptr inbounds i8, ptr %5, i64 136
  %148 = getelementptr inbounds i8, ptr %7, i64 88
  %149 = load ptr, ptr %146, align 8, !tbaa !38
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %150) #5
  %152 = icmp ugt i64 %151, 79
  br i1 %152, label %.loopexit157.sink.split, label %.lr.ph184

153:                                              ; preds = %172
  %154 = load ptr, ptr %146, align 8, !tbaa !38
  %155 = getelementptr inbounds ptr, ptr %154, i64 %173
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %156) #5
  %158 = icmp ugt i64 %157, 79
  br i1 %158, label %.loopexit157.sink.split, label %.lr.ph184, !llvm.loop !39

.lr.ph184:                                        ; preds = %.lr.ph, %153
  %159 = phi i64 [ %157, %153 ], [ %151, %.lr.ph ]
  %160 = phi ptr [ %156, %153 ], [ %150, %.lr.ph ]
  %.0113161183 = phi i64 [ %173, %153 ], [ 0, %.lr.ph ]
  %161 = phi i64 [ %174, %153 ], [ %145, %.lr.ph ]
  %162 = icmp eq i64 %159, 0
  br i1 %162, label %.loopexit157.sink.split, label %163

163:                                              ; preds = %.lr.ph184
  %164 = load i32, ptr %147, align 8, !tbaa !41
  %.not142 = icmp eq i32 %164, 0
  %165 = load ptr, ptr %148, align 8, !tbaa !42
  %166 = getelementptr inbounds ptr, ptr %165, i64 %.0113161183
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  br i1 %.not142, label %170, label %168

168:                                              ; preds = %163
  %169 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %160, ptr noundef %167, ptr noundef nonnull %26)
  br label %172

170:                                              ; preds = %163
  %171 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef %160, ptr noundef %167)
  br label %172

172:                                              ; preds = %168, %170
  %173 = add i64 %.0113161183, 1
  %174 = load i64, ptr %144, align 8, !tbaa !37
  %.not141 = icmp eq i64 %173, %174
  br i1 %.not141, label %.loopexit157, label %153, !llvm.loop !39

.loopexit157.sink.split:                          ; preds = %153, %.lr.ph184, %.lr.ph
  %.lcssa = phi i64 [ %145, %.lr.ph ], [ %174, %153 ], [ %161, %.lr.ph184 ]
  %.sink = phi i32 [ 66, %.lr.ph ], [ 66, %153 ], [ 67, %.lr.ph184 ]
  store i32 %.sink, ptr %11, align 8, !tbaa !11
  br label %.loopexit157

.loopexit157:                                     ; preds = %172, %.loopexit157.sink.split
  %175 = phi i64 [ %.lcssa, %.loopexit157.sink.split ], [ %173, %172 ]
  %176 = getelementptr inbounds i8, ptr %5, i64 132
  %177 = load i32, ptr %176, align 4, !tbaa !43
  %.not143 = icmp eq i32 %177, 0
  br i1 %.not143, label %.loopexit156, label %.preheader

.loopexit157.thread:                              ; preds = %143
  %178 = getelementptr inbounds i8, ptr %5, i64 132
  %179 = load i32, ptr %178, align 4, !tbaa !43
  %.not143174 = icmp eq i32 %179, 0
  br i1 %.not143174, label %.loopexit156, label %.critedge

.preheader:                                       ; preds = %.loopexit157
  %.not144162 = icmp eq i64 %175, 0
  br i1 %.not144162, label %.critedge, label %.lr.ph164

.lr.ph164:                                        ; preds = %.preheader
  %180 = getelementptr inbounds i8, ptr %7, i64 80
  %181 = load ptr, ptr %180, align 8, !tbaa !38
  br label %184

182:                                              ; preds = %184
  %183 = add nuw i64 %.1163, 1
  %.not144 = icmp eq i64 %183, %175
  br i1 %.not144, label %.critedge, label %184, !llvm.loop !44

184:                                              ; preds = %.lr.ph164, %182
  %.1163 = phi i64 [ 0, %.lr.ph164 ], [ %183, %182 ]
  %185 = getelementptr inbounds ptr, ptr %181, i64 %.1163
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %186, ptr noundef nonnull dereferenceable(1) @.str.3) #5
  %.not145 = icmp eq i32 %187, 0
  br i1 %.not145, label %.loopexit156, label %182

.critedge:                                        ; preds = %182, %.loopexit157.thread, %.preheader
  %188 = load ptr, ptr @LODEPNG_VERSION_STRING, align 8, !tbaa !5
  %189 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef nonnull @.str.3, ptr noundef %188)
  br label %.loopexit156

.loopexit156:                                     ; preds = %184, %.loopexit157.thread, %.critedge, %.loopexit157
  %190 = getelementptr inbounds i8, ptr %7, i64 96
  %191 = load i64, ptr %190, align 8, !tbaa !45
  %.not146165 = icmp eq i64 %191, 0
  br i1 %.not146165, label %.loopexit, label %.lr.ph167

.lr.ph167:                                        ; preds = %.loopexit156
  %192 = getelementptr inbounds i8, ptr %7, i64 104
  %193 = getelementptr inbounds i8, ptr %5, i64 136
  %194 = getelementptr inbounds i8, ptr %7, i64 112
  %195 = getelementptr inbounds i8, ptr %7, i64 120
  %196 = getelementptr inbounds i8, ptr %7, i64 128
  br label %197

197:                                              ; preds = %.lr.ph167, %205
  %.2166 = phi i64 [ 0, %.lr.ph167 ], [ %217, %205 ]
  %198 = load ptr, ptr %192, align 8, !tbaa !46
  %199 = getelementptr inbounds ptr, ptr %198, i64 %.2166
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %200) #5
  %202 = icmp ugt i64 %201, 79
  br i1 %202, label %.loopexit.sink.split, label %203

203:                                              ; preds = %197
  %204 = icmp eq i64 %201, 0
  br i1 %204, label %.loopexit.sink.split, label %205

205:                                              ; preds = %203
  %206 = load i32, ptr %193, align 8, !tbaa !41
  %207 = load ptr, ptr %194, align 8, !tbaa !47
  %208 = getelementptr inbounds ptr, ptr %207, i64 %.2166
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = load ptr, ptr %195, align 8, !tbaa !48
  %211 = getelementptr inbounds ptr, ptr %210, i64 %.2166
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = load ptr, ptr %196, align 8, !tbaa !49
  %214 = getelementptr inbounds ptr, ptr %213, i64 %.2166
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = call noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef nonnull %8, i32 noundef %206, ptr noundef %200, ptr noundef %209, ptr noundef %212, ptr noundef %215, ptr noundef nonnull %26)
  %217 = add i64 %.2166, 1
  %218 = load i64, ptr %190, align 8, !tbaa !45
  %.not146 = icmp eq i64 %217, %218
  br i1 %.not146, label %.loopexit, label %197, !llvm.loop !50

.loopexit.sink.split:                             ; preds = %203, %197
  %.sink180 = phi i32 [ 66, %197 ], [ 67, %203 ]
  store i32 %.sink180, ptr %11, align 8, !tbaa !11
  br label %.loopexit

.loopexit:                                        ; preds = %205, %.loopexit.sink.split, %.loopexit156
  %219 = getelementptr inbounds i8, ptr %7, i64 200
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %.not147 = icmp eq ptr %220, null
  br i1 %.not147, label %225, label %221

221:                                              ; preds = %.loopexit
  %222 = getelementptr inbounds i8, ptr %7, i64 224
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef nonnull %8, ptr noundef nonnull %220, i64 noundef %223)
  store i32 %224, ptr %11, align 8, !tbaa !11
  %.not148 = icmp eq i32 %224, 0
  br i1 %.not148, label %225, label %227

225:                                              ; preds = %221, %.loopexit
  %226 = call noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef nonnull %8)
  br label %227

227:                                              ; preds = %225, %83, %129, %133, %221, %73
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef nonnull %7)
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %228)
  %229 = load ptr, ptr %8, align 8, !tbaa !51
  store ptr %229, ptr %0, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %8, i64 8
  %231 = load i64, ptr %230, align 8, !tbaa !53
  store i64 %231, ptr %1, align 8, !tbaa !9
  %232 = load i32, ptr %11, align 8, !tbaa !11
  br label %233

233:                                              ; preds = %48, %43, %32, %227, %42, %37, %24
  %.0114 = phi i32 [ 68, %24 ], [ 61, %37 ], [ 71, %42 ], [ %232, %227 ], [ %33, %32 ], [ %47, %43 ], [ %53, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %7) #4
  ret i32 %.0114
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13ucvector_initP8ucvector(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14writeSignatureP8ucvector(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !15, i64 416}
!12 = !{!"_ZTS12LodePNGState", !13, i64 8, !16, i64 56, !19, i64 144, !21, i64 184, !15, i64 416}
!13 = !{!"_ZTS22LodePNGDecoderSettings", !14, i64 0, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!14 = !{!"_ZTS25LodePNGDecompressSettings", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS22LodePNGEncoderSettings", !17, i64 0, !15, i64 48, !15, i64 52, !18, i64 56, !6, i64 64, !15, i64 72, !15, i64 76, !15, i64 80}
!17 = !{!"_ZTS23LodePNGCompressSettings", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!19 = !{!"_ZTS16LodePNGColorMode", !20, i64 0, !15, i64 4, !6, i64 8, !10, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36}
!20 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!21 = !{!"_ZTS11LodePNGInfo", !15, i64 0, !15, i64 4, !15, i64 8, !19, i64 16, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !10, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !15, i64 136, !22, i64 140, !15, i64 164, !15, i64 168, !15, i64 172, !15, i64 176, !7, i64 184, !7, i64 208}
!22 = !{!"_ZTS11LodePNGTime", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!23 = !{!21, !20, i64 16}
!24 = !{!12, !15, i64 128}
!25 = !{!12, !15, i64 104}
!26 = !{!12, !15, i64 56}
!27 = !{!12, !15, i64 192}
!28 = !{!21, !15, i64 20}
!29 = !{!12, !20, i64 144}
!30 = !{!12, !15, i64 148}
!31 = !{!21, !15, i64 8}
!32 = !{!21, !6, i64 24}
!33 = !{!21, !10, i64 32}
!34 = !{!21, !15, i64 56}
!35 = !{!21, !15, i64 164}
!36 = !{!21, !15, i64 136}
!37 = !{!21, !10, i64 72}
!38 = !{!21, !6, i64 80}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !15, i64 136}
!42 = !{!21, !6, i64 88}
!43 = !{!12, !15, i64 132}
!44 = distinct !{!44, !40}
!45 = !{!21, !10, i64 96}
!46 = !{!21, !6, i64 104}
!47 = !{!21, !6, i64 112}
!48 = !{!21, !6, i64 120}
!49 = !{!21, !6, i64 128}
!50 = distinct !{!50, !40}
!51 = !{!52, !6, i64 0}
!52 = !{!"_ZTS8ucvector", !6, i64 0, !10, i64 8, !10, i64 16}
!53 = !{!52, !10, i64 8}


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