; LLVM IR from StanfordVL/GibsonEnv :: gibson/core/channels/external/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_convertPhPKhPK16LodePNGColorModeS4_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 %549

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 %549

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 %549

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 %549

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 %549

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 %549

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 %195, 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 = zext i32 %147 to i64
  %149 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %150 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef %149)
  %151 = zext i32 %150 to i64
  %152 = mul i64 %148, %151
  %153 = add i64 %152, 7
  %154 = udiv i64 %153, 8
  store i64 %154, ptr %20, align 8, !tbaa !11
  %155 = load i64, ptr %20, align 8, !tbaa !11
  %156 = call noundef ptr @_ZL14lodepng_mallocm(i64 noundef %155)
  store ptr %156, ptr %19, align 8, !tbaa !5
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  %158 = icmp ne ptr %157, null
  br i1 %158, label %165, label %159

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

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

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

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

181:                                              ; preds = %170, %165
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.LodePNGState, ptr %182, i32 0, i32 5
  %184 = load i32, ptr %183, align 8, !tbaa !13
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %193, label %186

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

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

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

202:                                              ; preds = %195, %193
  call void @_ZL13ucvector_initP8ucvector(ptr noundef %15)
  br label %203

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

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

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

239:                                              ; preds = %225
  store i32 3, ptr %18, align 4
  br label %537

240:                                              ; preds = %225
  br label %241

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

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

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

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

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

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

268:                                              ; preds = %265, %260, %249
  %269 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %270 = getelementptr inbounds %struct.LodePNGColorMode, ptr %269, i32 0, i32 0
  %271 = load i32, ptr %270, align 8, !tbaa !24
  %272 = icmp eq i32 %271, 3
  br i1 %272, label %273, label %285

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

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

285:                                              ; preds = %282, %273, %268
  %286 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %287 = getelementptr inbounds %struct.LodePNGColorMode, ptr %286, i32 0, i32 0
  %288 = load i32, ptr %287, align 8, !tbaa !24
  %289 = icmp eq i32 %288, 0
  br i1 %289, label %295, label %290

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

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

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

303:                                              ; preds = %300, %295, %290
  %304 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 4
  %305 = load i32, ptr %304, align 8, !tbaa !36
  %306 = icmp ne i32 %305, 0
  br i1 %306, label %307, label %309

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

309:                                              ; preds = %307, %303
  %310 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 18
  %311 = load i32, ptr %310, align 4, !tbaa !37
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %315

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

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

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

334:                                              ; preds = %320
  store i32 3, ptr %18, align 4
  br label %537

335:                                              ; preds = %320
  br label %336

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

349:                                              ; preds = %336
  store i32 3, ptr %18, align 4
  br label %537

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

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

357:                                              ; preds = %354, %350
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %358

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

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

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

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

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

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

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

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

418:                                              ; preds = %406, %391
  br label %419

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

422:                                              ; preds = %382, %371, %358
  %423 = load ptr, ptr %13, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.LodePNGState, ptr %423, i32 0, i32 2
  %425 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %424, i32 0, i32 6
  %426 = load i32, ptr %425, align 4, !tbaa !45
  %427 = icmp ne i32 %426, 0
  br i1 %427, label %428, label %454

428:                                              ; preds = %422
  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 %429

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

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

442:                                              ; preds = %434
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %447

443:                                              ; preds = %434
  br label %444

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

447:                                              ; preds = %442, %429
  %448 = load i32, ptr %22, align 4, !tbaa !9
  %449 = icmp eq i32 %448, 0
  br i1 %449, label %450, label %453

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

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

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

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

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

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

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

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

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

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

514:                                              ; preds = %479, %468, %455
  %515 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %516 = getelementptr inbounds [3 x ptr], ptr %515, i64 0, i64 2
  %517 = load ptr, ptr %516, align 8, !tbaa !5
  %518 = icmp ne ptr %517, null
  br i1 %518, label %519, label %535

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

533:                                              ; preds = %519
  store i32 3, ptr %18, align 4
  br label %537

534:                                              ; preds = %519
  br label %535

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

537:                                              ; preds = %535, %533, %349, %334, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %538

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

549:                                              ; preds = %538, %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
  %550 = load i32, ptr %7, align 4
  ret i32 %550
}

; 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_convertPhPKhPK16LodePNGColorModeS4_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 %234

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 %234

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 %234

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 %234

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 %234

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 %234

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 %72

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

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

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

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

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

.thread152:                                       ; preds = %67, %.thread, %70, %68
  call void @_ZL12lodepng_freePv(ptr noundef %64)
  br label %74

72:                                               ; preds = %54
  %73 = 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 %74

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

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

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

88:                                               ; preds = %84, %76
  %89 = load i32, ptr %14, align 8
  %90 = icmp eq i32 %89, 3
  br i1 %90, label %91, label %93

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

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

97:                                               ; preds = %93
  %98 = 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 = %97, %93
  %99 = phi i32 [ %.pr155.pre171, %93 ], [ %.pr155.pre, %97 ]
  %100 = icmp eq i32 %99, 3
  br i1 %100, label %101, label %109

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

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

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

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

117:                                              ; preds = %109, %115
  %118 = getelementptr inbounds i8, ptr %7, i64 56
  %119 = load i32, ptr %118, align 8, !tbaa !34
  %.not135 = icmp eq i32 %119, 0
  br i1 %.not135, label %122, label %120

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

122:                                              ; preds = %120, %117
  %123 = getelementptr inbounds i8, ptr %7, i64 164
  %124 = load i32, ptr %123, align 4, !tbaa !35
  %.not136 = icmp eq i32 %124, 0
  br i1 %.not136, label %127, label %125

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

127:                                              ; preds = %125, %122
  %128 = getelementptr inbounds i8, ptr %7, i64 192
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %.not137 = icmp eq ptr %129, null
  br i1 %.not137, label %134, label %130

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

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

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

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

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

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

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

.lr.ph184:                                        ; preds = %.lr.ph, %154
  %160 = phi i64 [ %158, %154 ], [ %152, %.lr.ph ]
  %161 = phi ptr [ %157, %154 ], [ %151, %.lr.ph ]
  %.0113161183 = phi i64 [ %174, %154 ], [ 0, %.lr.ph ]
  %162 = phi i64 [ %175, %154 ], [ %146, %.lr.ph ]
  %163 = icmp eq i64 %160, 0
  br i1 %163, label %.loopexit157.sink.split, label %164

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

169:                                              ; preds = %164
  %170 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %161, ptr noundef %168, ptr noundef nonnull %26)
  br label %173

171:                                              ; preds = %164
  %172 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef %161, ptr noundef %168)
  br label %173

173:                                              ; preds = %169, %171
  %174 = add i64 %.0113161183, 1
  %175 = load i64, ptr %145, align 8, !tbaa !37
  %.not141 = icmp eq i64 %174, %175
  br i1 %.not141, label %.loopexit157, label %154, !llvm.loop !39

.loopexit157.sink.split:                          ; preds = %154, %.lr.ph184, %.lr.ph
  %.lcssa = phi i64 [ %146, %.lr.ph ], [ %175, %154 ], [ %162, %.lr.ph184 ]
  %.sink = phi i32 [ 66, %.lr.ph ], [ 66, %154 ], [ 67, %.lr.ph184 ]
  store i32 %.sink, ptr %11, align 8, !tbaa !11
  br label %.loopexit157

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

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

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

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

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

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

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

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

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

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

204:                                              ; preds = %198
  %205 = icmp eq i64 %202, 0
  br i1 %205, label %.loopexit.sink.split, label %206

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

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

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

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

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

228:                                              ; preds = %226, %84, %130, %134, %222, %74
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef nonnull %7)
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %229)
  %230 = load ptr, ptr %8, align 8, !tbaa !51
  store ptr %230, ptr %0, align 8, !tbaa !5
  %231 = getelementptr inbounds i8, ptr %8, i64 8
  %232 = load i64, ptr %231, align 8, !tbaa !53
  store i64 %232, ptr %1, align 8, !tbaa !9
  %233 = load i32, ptr %11, align 8, !tbaa !11
  br label %234

234:                                              ; preds = %48, %43, %32, %228, %42, %37, %24
  %.0114 = phi i32 [ 68, %24 ], [ 61, %37 ], [ 71, %42 ], [ %233, %228 ], [ %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