; LLVM IR from alibaba/GCanvas :: core/android/png/thirdparty (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.ColorTree = type { [16 x ptr], i32 }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @lodepng_convert(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #1 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca %struct.ColorTree, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i16, align 2
  %25 = alloca i16, align 2
  %26 = alloca i16, align 2
  %27 = alloca i16, align 2
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i8, align 1
  %31 = alloca i8, align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.start.p0(i64 136, ptr %18) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  %32 = load i32, ptr %13, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = mul i32 %32, %33
  %35 = zext i32 %34 to i64
  store i64 %35, ptr %19, align 8, !tbaa !11
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = call i32 @lodepng_color_mode_equal(ptr noundef %36, ptr noundef %37)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %62

40:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  %41 = load i32, ptr %13, align 4, !tbaa !9
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = call i64 @lodepng_get_raw_size(i32 noundef %41, i32 noundef %42, ptr noundef %43)
  store i64 %44, ptr %20, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %45

45:                                               ; preds = %57, %40
  %46 = load i64, ptr %17, align 8, !tbaa !11
  %47 = load i64, ptr %20, align 8, !tbaa !11
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %49, label %60

49:                                               ; preds = %45
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load i64, ptr %17, align 8, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %50, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !13
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i64, ptr %17, align 8, !tbaa !11
  %56 = getelementptr inbounds i8, ptr %54, i64 %55
  store i8 %53, ptr %56, align 1, !tbaa !13
  br label %57

57:                                               ; preds = %49
  %58 = load i64, ptr %17, align 8, !tbaa !11
  %59 = add i64 %58, 1
  store i64 %59, ptr %17, align 8, !tbaa !11
  br label %45, !llvm.loop !14

60:                                               ; preds = %45
  %61 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %61, ptr %8, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  br label %230

62:                                               ; preds = %7
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.LodePNGColorMode, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !16
  %66 = icmp eq i32 %65, 3
  br i1 %66, label %67, label %112

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.LodePNGColorMode, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !18
  %71 = shl i32 1, %70
  %72 = sext i32 %71 to i64
  store i64 %72, ptr %22, align 8, !tbaa !11
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.LodePNGColorMode, ptr %73, i32 0, i32 3
  %75 = load i64, ptr %74, align 8, !tbaa !19
  %76 = load i64, ptr %22, align 8, !tbaa !11
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %67
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.LodePNGColorMode, ptr %79, i32 0, i32 3
  %81 = load i64, ptr %80, align 8, !tbaa !19
  store i64 %81, ptr %22, align 8, !tbaa !11
  br label %82

82:                                               ; preds = %78, %67
  call void @color_tree_init(ptr noundef %18)
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %108, %82
  %84 = load i64, ptr %17, align 8, !tbaa !11
  %85 = load i64, ptr %22, align 8, !tbaa !11
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %87, label %111

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #2
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.LodePNGColorMode, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = load i64, ptr %17, align 8, !tbaa !11
  %92 = mul i64 %91, 4
  %93 = getelementptr inbounds i8, ptr %90, i64 %92
  store ptr %93, ptr %23, align 8, !tbaa !5
  %94 = load ptr, ptr %23, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 0
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = load ptr, ptr %23, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 1
  %99 = load i8, ptr %98, align 1, !tbaa !13
  %100 = load ptr, ptr %23, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 2
  %102 = load i8, ptr %101, align 1, !tbaa !13
  %103 = load ptr, ptr %23, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 3
  %105 = load i8, ptr %104, align 1, !tbaa !13
  %106 = load i64, ptr %17, align 8, !tbaa !11
  %107 = trunc i64 %106 to i32
  call void @color_tree_add(ptr noundef %18, i8 noundef zeroext %96, i8 noundef zeroext %99, i8 noundef zeroext %102, i8 noundef zeroext %105, i32 noundef %107)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #2
  br label %108

108:                                              ; preds = %87
  %109 = load i64, ptr %17, align 8, !tbaa !11
  %110 = add i64 %109, 1
  store i64 %110, ptr %17, align 8, !tbaa !11
  br label %83, !llvm.loop !21

111:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  br label %112

112:                                              ; preds = %111, %62
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.LodePNGColorMode, ptr %113, i32 0, i32 1
  %115 = load i32, ptr %114, align 4, !tbaa !18
  %116 = icmp eq i32 %115, 16
  br i1 %116, label %117, label %155

117:                                              ; preds = %112
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.LodePNGColorMode, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !18
  %121 = icmp eq i32 %120, 16
  br i1 %121, label %122, label %155

122:                                              ; preds = %117
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %151, %122
  %124 = load i64, ptr %17, align 8, !tbaa !11
  %125 = load i64, ptr %19, align 8, !tbaa !11
  %126 = icmp ult i64 %124, %125
  br i1 %126, label %127, label %154

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #2
  store i16 0, ptr %24, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %25) #2
  store i16 0, ptr %25, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #2
  store i16 0, ptr %26, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #2
  store i16 0, ptr %27, align 2, !tbaa !22
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i64, ptr %17, align 8, !tbaa !11
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = call i32 @getPixelColorRGBA16(ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %128, i64 noundef %129, ptr noundef %130)
  store i32 %131, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %127
  store i32 8, ptr %21, align 4
  br label %148

135:                                              ; preds = %127
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load i64, ptr %17, align 8, !tbaa !11
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = load i16, ptr %24, align 2, !tbaa !22
  %140 = load i16, ptr %25, align 2, !tbaa !22
  %141 = load i16, ptr %26, align 2, !tbaa !22
  %142 = load i16, ptr %27, align 2, !tbaa !22
  %143 = call i32 @rgba16ToPixel(ptr noundef %136, i64 noundef %137, ptr noundef %138, i16 noundef zeroext %139, i16 noundef zeroext %140, i16 noundef zeroext %141, i16 noundef zeroext %142)
  store i32 %143, ptr %16, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %135
  store i32 8, ptr %21, align 4
  br label %148

147:                                              ; preds = %135
  store i32 0, ptr %21, align 4
  br label %148

148:                                              ; preds = %147, %146, %134
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #2
  %149 = load i32, ptr %21, align 4
  switch i32 %149, label %232 [
    i32 0, label %150
    i32 8, label %154
  ]

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %17, align 8, !tbaa !11
  %153 = add i64 %152, 1
  store i64 %153, ptr %17, align 8, !tbaa !11
  br label %123, !llvm.loop !24

154:                                              ; preds = %148, %123
  br label %222

155:                                              ; preds = %117, %112
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.LodePNGColorMode, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !18
  %159 = icmp eq i32 %158, 8
  br i1 %159, label %160, label %172

160:                                              ; preds = %155
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.LodePNGColorMode, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !16
  %164 = icmp eq i32 %163, 6
  br i1 %164, label %165, label %172

165:                                              ; preds = %160
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = load i64, ptr %19, align 8, !tbaa !11
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = call i32 @getPixelColorsRGBA8(ptr noundef %166, i64 noundef %167, i32 noundef 1, ptr noundef %168, ptr noundef %169, i32 noundef %170)
  store i32 %171, ptr %16, align 4, !tbaa !9
  br label %221

172:                                              ; preds = %160, %155
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.LodePNGColorMode, ptr %173, i32 0, i32 1
  %175 = load i32, ptr %174, align 4, !tbaa !18
  %176 = icmp eq i32 %175, 8
  br i1 %176, label %177, label %189

177:                                              ; preds = %172
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.LodePNGColorMode, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !16
  %181 = icmp eq i32 %180, 2
  br i1 %181, label %182, label %189

182:                                              ; preds = %177
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = load i64, ptr %19, align 8, !tbaa !11
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = call i32 @getPixelColorsRGBA8(ptr noundef %183, i64 noundef %184, i32 noundef 0, ptr noundef %185, ptr noundef %186, i32 noundef %187)
  store i32 %188, ptr %16, align 4, !tbaa !9
  br label %220

189:                                              ; preds = %177, %172
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #2
  store i8 0, ptr %28, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #2
  store i8 0, ptr %29, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #2
  store i8 0, ptr %30, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #2
  store i8 0, ptr %31, align 1, !tbaa !13
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %190

190:                                              ; preds = %216, %189
  %191 = load i64, ptr %17, align 8, !tbaa !11
  %192 = load i64, ptr %19, align 8, !tbaa !11
  %193 = icmp ult i64 %191, %192
  br i1 %193, label %194, label %219

194:                                              ; preds = %190
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = load i64, ptr %17, align 8, !tbaa !11
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = load i32, ptr %15, align 4, !tbaa !9
  %199 = call i32 @getPixelColorRGBA8(ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %195, i64 noundef %196, ptr noundef %197, i32 noundef %198)
  store i32 %199, ptr %16, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %194
  br label %219

203:                                              ; preds = %194
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = load i64, ptr %17, align 8, !tbaa !11
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load i8, ptr %28, align 1, !tbaa !13
  %208 = load i8, ptr %29, align 1, !tbaa !13
  %209 = load i8, ptr %30, align 1, !tbaa !13
  %210 = load i8, ptr %31, align 1, !tbaa !13
  %211 = call i32 @rgba8ToPixel(ptr noundef %204, i64 noundef %205, ptr noundef %206, ptr noundef %18, i8 noundef zeroext %207, i8 noundef zeroext %208, i8 noundef zeroext %209, i8 noundef zeroext %210)
  store i32 %211, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %215

214:                                              ; preds = %203
  br label %219

215:                                              ; preds = %203
  br label %216

216:                                              ; preds = %215
  %217 = load i64, ptr %17, align 8, !tbaa !11
  %218 = add i64 %217, 1
  store i64 %218, ptr %17, align 8, !tbaa !11
  br label %190, !llvm.loop !25

219:                                              ; preds = %214, %202, %190
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #2
  br label %220

220:                                              ; preds = %219, %182
  br label %221

221:                                              ; preds = %220, %165
  br label %222

222:                                              ; preds = %221, %154
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.LodePNGColorMode, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !16
  %226 = icmp eq i32 %225, 3
  br i1 %226, label %227, label %228

227:                                              ; preds = %222
  call void @color_tree_cleanup(ptr noundef %18)
  br label %228

228:                                              ; preds = %227, %222
  %229 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %229, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %230

230:                                              ; preds = %228, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 136, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  %231 = load i32, ptr %8, align 4
  ret i32 %231

232:                                              ; preds = %148
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @color_tree_add(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rgba16ToPixel(ptr noundef, i64 noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rgba8ToPixel(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"LodePNGColorMode", !10, i64 0, !10, i64 4, !6, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!18 = !{!17, !10, i64 4}
!19 = !{!17, !12, i64 16}
!20 = !{!17, !6, i64 8}
!21 = distinct !{!21, !15}
!22 = !{!23, !23, i64 0}
!23 = !{!"short", !7, i64 0}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}


; 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.ColorTree = type { [16 x ptr], i32 }

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @lodepng_convert(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #1 {
  %8 = ptrtoint ptr %1 to i64
  %9 = ptrtoint ptr %0 to i64
  %10 = alloca %struct.ColorTree, align 8
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %10) #3
  %19 = mul i32 %5, %4
  %20 = zext i32 %19 to i64
  %21 = tail call i32 @lodepng_color_mode_equal(ptr noundef %2, ptr noundef %3)
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %55, label %22

22:                                               ; preds = %7
  %23 = tail call i64 @lodepng_get_raw_size(i32 noundef %4, i32 noundef %5, ptr noundef %3)
  %.not109 = icmp eq i64 %23, 0
  br i1 %.not109, label %.loopexit97, label %iter.check

iter.check:                                       ; preds = %22
  %min.iters.check = icmp ult i64 %23, 8
  %24 = sub i64 %9, %8
  %diff.check = icmp ult i64 %24, 32
  %or.cond124 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond124, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check116 = icmp ult i64 %23, 32
  br i1 %min.iters.check116, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %23, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %25 = getelementptr inbounds i8, ptr %1, i64 %index
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load = load <16 x i8>, ptr %25, align 1, !tbaa !5
  %wide.load117 = load <16 x i8>, ptr %26, align 1, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 %index
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store <16 x i8> %wide.load, ptr %27, align 1, !tbaa !5
  store <16 x i8> %wide.load117, ptr %28, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !8

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %23, %n.vec
  br i1 %cmp.n, label %.loopexit97, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %n.vec.remaining = and i64 %23, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec119 = and i64 %23, -8
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index120 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next122, %vec.epilog.vector.body ]
  %30 = getelementptr inbounds i8, ptr %1, i64 %index120
  %wide.load121 = load <8 x i8>, ptr %30, align 1, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 %index120
  store <8 x i8> %wide.load121, ptr %31, align 1, !tbaa !5
  %index.next122 = add nuw i64 %index120, 8
  %32 = icmp eq i64 %index.next122, %n.vec119
  br i1 %32, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !12

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n123 = icmp eq i64 %23, %n.vec119
  br i1 %cmp.n123, label %.loopexit97, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.07598.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec119, %vec.epilog.middle.block ]
  %xtraiter = and i64 %23, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.07598.prol = phi i64 [ %36, %.lr.ph.prol ], [ %.07598.ph, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %33 = getelementptr inbounds i8, ptr %1, i64 %.07598.prol
  %34 = load i8, ptr %33, align 1, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %0, i64 %.07598.prol
  store i8 %34, ptr %35, align 1, !tbaa !5
  %36 = add nuw i64 %.07598.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !13

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.07598.unr = phi i64 [ %.07598.ph, %.lr.ph.preheader ], [ %36, %.lr.ph.prol ]
  %37 = sub i64 %.07598.ph, %23
  %38 = icmp ugt i64 %37, -4
  br i1 %38, label %.loopexit97, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.07598 = phi i64 [ %54, %.lr.ph ], [ %.07598.unr, %.lr.ph.prol.loopexit ]
  %39 = getelementptr inbounds i8, ptr %1, i64 %.07598
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %0, i64 %.07598
  store i8 %40, ptr %41, align 1, !tbaa !5
  %42 = add nuw i64 %.07598, 1
  %43 = getelementptr inbounds i8, ptr %1, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %0, i64 %42
  store i8 %44, ptr %45, align 1, !tbaa !5
  %46 = add nuw i64 %.07598, 2
  %47 = getelementptr inbounds i8, ptr %1, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %0, i64 %46
  store i8 %48, ptr %49, align 1, !tbaa !5
  %50 = add nuw i64 %.07598, 3
  %51 = getelementptr inbounds i8, ptr %1, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %0, i64 %50
  store i8 %52, ptr %53, align 1, !tbaa !5
  %54 = add nuw i64 %.07598, 4
  %exitcond.not.3 = icmp eq i64 %54, %23
  br i1 %exitcond.not.3, label %.loopexit97, label %.lr.ph, !llvm.loop !15

55:                                               ; preds = %7
  %56 = load i32, ptr %2, align 8, !tbaa !16
  %57 = icmp eq i32 %56, 3
  br i1 %57, label %58, label %.loopexit96

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %2, i64 4
  %60 = load i32, ptr %59, align 4, !tbaa !21
  %61 = getelementptr inbounds i8, ptr %2, i64 16
  %62 = load i64, ptr %61, align 8, !tbaa !22
  call void @color_tree_init(ptr noundef nonnull %10)
  %.not110 = icmp eq i64 %62, 0
  br i1 %.not110, label %.loopexit96, label %.lr.ph100

.lr.ph100:                                        ; preds = %58
  %63 = shl nuw i32 1, %60
  %64 = sext i32 %63 to i64
  %spec.select = tail call i64 @llvm.umin.i64(i64 %62, i64 %64)
  %65 = getelementptr inbounds i8, ptr %2, i64 8
  %umax = call i64 @llvm.umax.i64(i64 %spec.select, i64 1)
  br label %66

66:                                               ; preds = %.lr.ph100, %66
  %.17699 = phi i64 [ 0, %.lr.ph100 ], [ %78, %66 ]
  %67 = load ptr, ptr %65, align 8, !tbaa !23
  %68 = shl i64 %.17699, 2
  %69 = getelementptr inbounds i8, ptr %67, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %69, i64 1
  %72 = load i8, ptr %71, align 1, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %69, i64 2
  %74 = load i8, ptr %73, align 1, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %69, i64 3
  %76 = load i8, ptr %75, align 1, !tbaa !5
  %77 = trunc i64 %.17699 to i32
  call void @color_tree_add(ptr noundef nonnull %10, i8 noundef zeroext %70, i8 noundef zeroext %72, i8 noundef zeroext %74, i8 noundef zeroext %76, i32 noundef %77)
  %78 = add nuw i64 %.17699, 1
  %exitcond113.not = icmp eq i64 %78, %umax
  br i1 %exitcond113.not, label %.loopexit96, label %66, !llvm.loop !24

.loopexit96:                                      ; preds = %66, %58, %55
  %79 = getelementptr inbounds i8, ptr %3, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = icmp eq i32 %80, 16
  %82 = getelementptr inbounds i8, ptr %2, i64 4
  %83 = load i32, ptr %82, align 4, !tbaa !21
  %84 = icmp eq i32 %83, 16
  %or.cond = select i1 %81, i1 %84, i1 false
  br i1 %or.cond, label %.preheader, label %.loopexit96._crit_edge

.preheader:                                       ; preds = %.loopexit96
  %.not112 = icmp eq i32 %19, 0
  br i1 %.not112, label %.loopexit, label %.lr.ph108

.lr.ph108:                                        ; preds = %.preheader, %92
  %.277107 = phi i64 [ %93, %92 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #3
  store i16 0, ptr %11, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %12) #3
  store i16 0, ptr %12, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %13) #3
  store i16 0, ptr %13, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %14) #3
  store i16 0, ptr %14, align 2, !tbaa !25
  %85 = call i32 @getPixelColorRGBA16(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %1, i64 noundef %.277107, ptr noundef %3)
  %.not89 = icmp eq i32 %85, 0
  br i1 %.not89, label %86, label %.thread

86:                                               ; preds = %.lr.ph108
  %87 = load i16, ptr %11, align 2, !tbaa !25
  %88 = load i16, ptr %12, align 2, !tbaa !25
  %89 = load i16, ptr %13, align 2, !tbaa !25
  %90 = load i16, ptr %14, align 2, !tbaa !25
  %91 = call i32 @rgba16ToPixel(ptr noundef %0, i64 noundef %.277107, ptr noundef nonnull %2, i16 noundef zeroext %87, i16 noundef zeroext %88, i16 noundef zeroext %89, i16 noundef zeroext %90)
  %.not90 = icmp eq i32 %91, 0
  br i1 %.not90, label %92, label %.thread

.thread:                                          ; preds = %.lr.ph108, %86
  %.1.ph = phi i32 [ %91, %86 ], [ %85, %.lr.ph108 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #3
  br label %.loopexit

92:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #3
  %93 = add nuw nsw i64 %.277107, 1
  %exitcond115.not = icmp eq i64 %93, %20
  br i1 %exitcond115.not, label %.loopexit, label %.lr.ph108, !llvm.loop !27

.loopexit96._crit_edge:                           ; preds = %.loopexit96
  %94 = icmp eq i32 %83, 8
  br i1 %94, label %95, label %101

95:                                               ; preds = %.loopexit96._crit_edge
  %96 = load i32, ptr %2, align 8, !tbaa !16
  switch i32 %96, label %101 [
    i32 6, label %97
    i32 2, label %99
  ]

97:                                               ; preds = %95
  %98 = call i32 @getPixelColorsRGBA8(ptr noundef %0, i64 noundef %20, i32 noundef 1, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %6)
  br label %.loopexit

99:                                               ; preds = %95
  %100 = call i32 @getPixelColorsRGBA8(ptr noundef %0, i64 noundef %20, i32 noundef 0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %6)
  br label %.loopexit

101:                                              ; preds = %95, %.loopexit96._crit_edge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #3
  store i8 0, ptr %15, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #3
  store i8 0, ptr %16, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  store i8 0, ptr %17, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #3
  store i8 0, ptr %18, align 1, !tbaa !5
  %.not111 = icmp eq i32 %19, 0
  br i1 %.not111, label %._crit_edge, label %.lr.ph102

102:                                              ; preds = %105
  %103 = add nuw nsw i64 %.378101, 1
  %exitcond114.not = icmp eq i64 %103, %20
  br i1 %exitcond114.not, label %._crit_edge, label %.lr.ph102, !llvm.loop !28

.lr.ph102:                                        ; preds = %101, %102
  %.378101 = phi i64 [ %103, %102 ], [ 0, %101 ]
  %104 = call i32 @getPixelColorRGBA8(ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef %1, i64 noundef %.378101, ptr noundef %3, i32 noundef %6)
  %.not87 = icmp eq i32 %104, 0
  br i1 %.not87, label %105, label %._crit_edge

105:                                              ; preds = %.lr.ph102
  %106 = load i8, ptr %15, align 1, !tbaa !5
  %107 = load i8, ptr %16, align 1, !tbaa !5
  %108 = load i8, ptr %17, align 1, !tbaa !5
  %109 = load i8, ptr %18, align 1, !tbaa !5
  %110 = call i32 @rgba8ToPixel(ptr noundef %0, i64 noundef %.378101, ptr noundef nonnull %2, ptr noundef nonnull %10, i8 noundef zeroext %106, i8 noundef zeroext %107, i8 noundef zeroext %108, i8 noundef zeroext %109)
  %.not88 = icmp eq i32 %110, 0
  br i1 %.not88, label %102, label %._crit_edge

._crit_edge:                                      ; preds = %102, %.lr.ph102, %105, %101
  %.3 = phi i32 [ 0, %101 ], [ %110, %105 ], [ %104, %.lr.ph102 ], [ 0, %102 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #3
  br label %.loopexit

.loopexit:                                        ; preds = %92, %.preheader, %.thread, %97, %._crit_edge, %99
  %.4 = phi i32 [ %98, %97 ], [ %100, %99 ], [ %.3, %._crit_edge ], [ %.1.ph, %.thread ], [ 0, %.preheader ], [ 0, %92 ]
  %111 = load i32, ptr %2, align 8, !tbaa !16
  %112 = icmp eq i32 %111, 3
  br i1 %112, label %113, label %.loopexit97

113:                                              ; preds = %.loopexit
  call void @color_tree_cleanup(ptr noundef nonnull %10)
  br label %.loopexit97

.loopexit97:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %22, %.loopexit, %113
  %.0 = phi i32 [ %.4, %113 ], [ %.4, %.loopexit ], [ 0, %22 ], [ 0, %vec.epilog.middle.block ], [ 0, %middle.block ], [ 0, %.lr.ph ], [ 0, %.lr.ph.prol.loopexit ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %10) #3
  ret i32 %.0
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @color_tree_add(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rgba16ToPixel(ptr noundef, i64 noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rgba8ToPixel(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !10, !11}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !9, !10}
!16 = !{!17, !18, i64 0}
!17 = !{!"LodePNGColorMode", !18, i64 0, !18, i64 4, !19, i64 8, !20, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36}
!18 = !{!"int", !6, i64 0}
!19 = !{!"any pointer", !6, i64 0}
!20 = !{!"long", !6, i64 0}
!21 = !{!17, !18, i64 4}
!22 = !{!17, !20, i64 16}
!23 = !{!17, !19, i64 8}
!24 = distinct !{!24, !9}
!25 = !{!26, !26, i64 0}
!26 = !{!"short", !6, i64 0}
!27 = distinct !{!27, !9}
!28 = distinct !{!28, !9}


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