; LLVM IR from aap/librw :: src/lodepng/lodepng.ll (Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj)

; 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: mustprogress nounwind uwtable
declare hidden void @_ZL14lodepng_memcpyPvPKvm(ptr noalias noundef, ptr noalias noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %struct.ColorTree, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i16, align 2
  %26 = alloca i16, align 2
  %27 = alloca i16, align 2
  %28 = alloca i16, align 2
  %29 = alloca i8, align 1
  %30 = alloca i8, align 1
  %31 = alloca i8, align 1
  %32 = alloca i8, align 1
  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 ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 136, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = mul i64 %34, %36
  store i64 %37, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.LodePNGColorMode, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !13
  %41 = icmp eq i32 %40, 3
  br i1 %41, label %42, label %48

42:                                               ; preds = %6
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.LodePNGColorMode, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = icmp ne ptr %45, null
  br i1 %46, label %48, label %47

47:                                               ; preds = %42
  store i32 107, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %252

48:                                               ; preds = %42, %6
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef %49, ptr noundef %50)
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %61

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = call noundef i64 @_Z20lodepng_get_raw_sizejjPK16LodePNGColorMode(i32 noundef %54, i32 noundef %55, ptr noundef %56)
  store i64 %57, ptr %19, align 8, !tbaa !11
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load i64, ptr %19, align 8, !tbaa !11
  call void @_ZL14lodepng_memcpyPvPKvm(ptr noundef %58, ptr noundef %59, i64 noundef %60)
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %252

61:                                               ; preds = %48
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.LodePNGColorMode, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !13
  %65 = icmp eq i32 %64, 3
  br i1 %65, label %66, label %153

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.LodePNGColorMode, ptr %67, i32 0, i32 3
  %69 = load i64, ptr %68, align 8, !tbaa !17
  store i64 %69, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.LodePNGColorMode, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  store ptr %72, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.LodePNGColorMode, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !18
  %76 = zext i32 %75 to i64
  %77 = shl i64 1, %76
  store i64 %77, ptr %22, align 8, !tbaa !11
  %78 = load i64, ptr %20, align 8, !tbaa !11
  %79 = icmp eq i64 %78, 0
  br i1 %79, label %80, label %108

80:                                               ; preds = %66
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.LodePNGColorMode, ptr %81, i32 0, i32 3
  %83 = load i64, ptr %82, align 8, !tbaa !17
  store i64 %83, ptr %20, align 8, !tbaa !11
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.LodePNGColorMode, ptr %84, i32 0, i32 2
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  store ptr %86, ptr %21, align 8, !tbaa !5
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.LodePNGColorMode, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !13
  %90 = icmp eq i32 %89, 3
  br i1 %90, label %91, label %107

91:                                               ; preds = %80
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.LodePNGColorMode, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !18
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.LodePNGColorMode, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !18
  %98 = icmp eq i32 %94, %97
  br i1 %98, label %99, label %107

99:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = call noundef i64 @_Z20lodepng_get_raw_sizejjPK16LodePNGColorMode(i32 noundef %100, i32 noundef %101, ptr noundef %102)
  store i64 %103, ptr %23, align 8, !tbaa !11
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load i64, ptr %23, align 8, !tbaa !11
  call void @_ZL14lodepng_memcpyPvPKvm(ptr noundef %104, ptr noundef %105, i64 noundef %106)
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %150

107:                                              ; preds = %91, %80
  br label %108

108:                                              ; preds = %107, %66
  %109 = load i64, ptr %20, align 8, !tbaa !11
  %110 = load i64, ptr %22, align 8, !tbaa !11
  %111 = icmp ult i64 %109, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %113, ptr %22, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %112, %108
  call void @_ZL15color_tree_initP9ColorTree(ptr noundef %15)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %115

115:                                              ; preds = %146, %114
  %116 = load i64, ptr %14, align 8, !tbaa !11
  %117 = load i64, ptr %22, align 8, !tbaa !11
  %118 = icmp ne i64 %116, %117
  br i1 %118, label %119, label %149

119:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  %121 = load i64, ptr %14, align 8, !tbaa !11
  %122 = mul i64 %121, 4
  %123 = getelementptr inbounds i8, ptr %120, i64 %122
  store ptr %123, ptr %24, align 8, !tbaa !5
  %124 = load ptr, ptr %24, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 0
  %126 = load i8, ptr %125, align 1, !tbaa !19
  %127 = load ptr, ptr %24, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 1
  %129 = load i8, ptr %128, align 1, !tbaa !19
  %130 = load ptr, ptr %24, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 2
  %132 = load i8, ptr %131, align 1, !tbaa !19
  %133 = load ptr, ptr %24, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 3
  %135 = load i8, ptr %134, align 1, !tbaa !19
  %136 = load i64, ptr %14, align 8, !tbaa !11
  %137 = trunc i64 %136 to i32
  %138 = call noundef i32 @_ZL14color_tree_addP9ColorTreehhhhj(ptr noundef %15, i8 noundef zeroext %126, i8 noundef zeroext %129, i8 noundef zeroext %132, i8 noundef zeroext %135, i32 noundef %137)
  store i32 %138, ptr %17, align 4, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %119
  store i32 2, ptr %18, align 4
  br label %143

142:                                              ; preds = %119
  store i32 0, ptr %18, align 4
  br label %143

143:                                              ; preds = %142, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %144 = load i32, ptr %18, align 4
  switch i32 %144, label %254 [
    i32 0, label %145
    i32 2, label %149
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  %147 = load i64, ptr %14, align 8, !tbaa !11
  %148 = add i64 %147, 1
  store i64 %148, ptr %14, align 8, !tbaa !11
  br label %115, !llvm.loop !20

149:                                              ; preds = %143, %115
  store i32 0, ptr %18, align 4
  br label %150

150:                                              ; preds = %149, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %151 = load i32, ptr %18, align 4
  switch i32 %151, label %252 [
    i32 0, label %152
  ]

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152, %61
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %244, label %156

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

161:                                              ; preds = %156
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.LodePNGColorMode, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 4, !tbaa !18
  %165 = icmp eq i32 %164, 16
  br i1 %165, label %166, label %186

166:                                              ; preds = %161
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %167

167:                                              ; preds = %182, %166
  %168 = load i64, ptr %14, align 8, !tbaa !11
  %169 = load i64, ptr %16, align 8, !tbaa !11
  %170 = icmp ne i64 %168, %169
  br i1 %170, label %171, label %185

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 2, ptr %25) #3
  store i16 0, ptr %25, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #3
  store i16 0, ptr %26, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #3
  store i16 0, ptr %27, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #3
  store i16 0, ptr %28, align 2, !tbaa !22
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = load i64, ptr %14, align 8, !tbaa !11
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZL19getPixelColorRGBA16PtS_S_S_PKhmPK16LodePNGColorMode(ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %172, i64 noundef %173, ptr noundef %174)
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = load i64, ptr %14, align 8, !tbaa !11
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = load i16, ptr %25, align 2, !tbaa !22
  %179 = load i16, ptr %26, align 2, !tbaa !22
  %180 = load i16, ptr %27, align 2, !tbaa !22
  %181 = load i16, ptr %28, align 2, !tbaa !22
  call void @_ZL13rgba16ToPixelPhmPK16LodePNGColorModetttt(ptr noundef %175, i64 noundef %176, ptr noundef %177, i16 noundef zeroext %178, i16 noundef zeroext %179, i16 noundef zeroext %180, i16 noundef zeroext %181)
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #3
  br label %182

182:                                              ; preds = %171
  %183 = load i64, ptr %14, align 8, !tbaa !11
  %184 = add i64 %183, 1
  store i64 %184, ptr %14, align 8, !tbaa !11
  br label %167, !llvm.loop !24

185:                                              ; preds = %167
  br label %243

186:                                              ; preds = %161, %156
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.LodePNGColorMode, ptr %187, i32 0, i32 1
  %189 = load i32, ptr %188, align 4, !tbaa !18
  %190 = icmp eq i32 %189, 8
  br i1 %190, label %191, label %201

191:                                              ; preds = %186
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.LodePNGColorMode, ptr %192, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !13
  %195 = icmp eq i32 %194, 6
  br i1 %195, label %196, label %201

196:                                              ; preds = %191
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = load i64, ptr %16, align 8, !tbaa !11
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZL19getPixelColorsRGBA8PhmPKhPK16LodePNGColorMode(ptr noundef %197, i64 noundef %198, ptr noundef %199, ptr noundef %200)
  br label %242

201:                                              ; preds = %191, %186
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.LodePNGColorMode, ptr %202, i32 0, i32 1
  %204 = load i32, ptr %203, align 4, !tbaa !18
  %205 = icmp eq i32 %204, 8
  br i1 %205, label %206, label %216

206:                                              ; preds = %201
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.LodePNGColorMode, ptr %207, i32 0, i32 0
  %209 = load i32, ptr %208, align 8, !tbaa !13
  %210 = icmp eq i32 %209, 2
  br i1 %210, label %211, label %216

211:                                              ; preds = %206
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = load i64, ptr %16, align 8, !tbaa !11
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZL18getPixelColorsRGB8PhmPKhPK16LodePNGColorMode(ptr noundef %212, i64 noundef %213, ptr noundef %214, ptr noundef %215)
  br label %241

216:                                              ; preds = %206, %201
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #3
  store i8 0, ptr %29, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #3
  store i8 0, ptr %30, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #3
  store i8 0, ptr %31, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #3
  store i8 0, ptr %32, align 1, !tbaa !19
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %237, %216
  %218 = load i64, ptr %14, align 8, !tbaa !11
  %219 = load i64, ptr %16, align 8, !tbaa !11
  %220 = icmp ne i64 %218, %219
  br i1 %220, label %221, label %240

221:                                              ; preds = %217
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = load i64, ptr %14, align 8, !tbaa !11
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZL18getPixelColorRGBA8PhS_S_S_PKhmPK16LodePNGColorMode(ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %222, i64 noundef %223, ptr noundef %224)
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = load i64, ptr %14, align 8, !tbaa !11
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = load i8, ptr %29, align 1, !tbaa !19
  %229 = load i8, ptr %30, align 1, !tbaa !19
  %230 = load i8, ptr %31, align 1, !tbaa !19
  %231 = load i8, ptr %32, align 1, !tbaa !19
  %232 = call noundef i32 @_ZL12rgba8ToPixelPhmPK16LodePNGColorModeP9ColorTreehhhh(ptr noundef %225, i64 noundef %226, ptr noundef %227, ptr noundef %15, i8 noundef zeroext %228, i8 noundef zeroext %229, i8 noundef zeroext %230, i8 noundef zeroext %231)
  store i32 %232, ptr %17, align 4, !tbaa !9
  %233 = load i32, ptr %17, align 4, !tbaa !9
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %236

235:                                              ; preds = %221
  br label %240

236:                                              ; preds = %221
  br label %237

237:                                              ; preds = %236
  %238 = load i64, ptr %14, align 8, !tbaa !11
  %239 = add i64 %238, 1
  store i64 %239, ptr %14, align 8, !tbaa !11
  br label %217, !llvm.loop !25

240:                                              ; preds = %235, %217
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #3
  br label %241

241:                                              ; preds = %240, %211
  br label %242

242:                                              ; preds = %241, %196
  br label %243

243:                                              ; preds = %242, %185
  br label %244

244:                                              ; preds = %243, %153
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.LodePNGColorMode, ptr %245, i32 0, i32 0
  %247 = load i32, ptr %246, align 8, !tbaa !13
  %248 = icmp eq i32 %247, 3
  br i1 %248, label %249, label %250

249:                                              ; preds = %244
  call void @_ZL18color_tree_cleanupP9ColorTree(ptr noundef %15)
  br label %250

250:                                              ; preds = %249, %244
  %251 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %251, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %252

252:                                              ; preds = %250, %150, %53, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 136, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %253 = load i32, ptr %7, align 4
  ret i32 %253

254:                                              ; preds = %143
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13rgba16ToPixelPhmPK16LodePNGColorModetttt(ptr noundef, i64 noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL19getPixelColorsRGBA8PhmPKhPK16LodePNGColorMode(ptr noalias noundef, i64 noundef, ptr noalias noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18getPixelColorsRGB8PhmPKhPK16LodePNGColorMode(ptr noalias noundef, i64 noundef, ptr noalias noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18getPixelColorRGBA8PhS_S_S_PKhmPK16LodePNGColorMode(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12rgba8ToPixelPhmPK16LodePNGColorModeP9ColorTreehhhh(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18color_tree_cleanupP9ColorTree(ptr noundef) #2

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 = { 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 #3 = { nounwind }

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

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


; 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: mustprogress nounwind uwtable
declare hidden void @_ZL14lodepng_memcpyPvPKvm(ptr noalias noundef, ptr noalias noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z20lodepng_get_raw_sizejjPK16LodePNGColorMode(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = alloca %struct.ColorTree, align 8
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %7) #4
  %16 = zext i32 %4 to i64
  %17 = zext i32 %5 to i64
  %18 = mul nuw i64 %17, %16
  %19 = load i32, ptr %3, align 8, !tbaa !5
  %20 = icmp eq i32 %19, 3
  br i1 %20, label %21, label %24

21:                                               ; preds = %6
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %95, label %24

24:                                               ; preds = %21, %6
  %25 = tail call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef %2, ptr noundef nonnull %3)
  %.not93 = icmp eq i32 %25, 0
  br i1 %.not93, label %28, label %26

26:                                               ; preds = %24
  %27 = tail call noundef i64 @_Z20lodepng_get_raw_sizejjPK16LodePNGColorMode(i32 noundef %4, i32 noundef %5, ptr noundef nonnull %3)
  tail call void @_ZL14lodepng_memcpyPvPKvm(ptr noundef %0, ptr noundef %1, i64 noundef %27)
  br label %95

28:                                               ; preds = %24
  %29 = load i32, ptr %2, align 8, !tbaa !5
  %30 = icmp eq i32 %29, 3
  br i1 %30, label %31, label %.thread102

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %2, i64 16
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %2, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %2, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !15
  %38 = zext nneg i32 %37 to i64
  %39 = shl nuw i64 1, %38
  %40 = icmp eq i64 %33, 0
  br i1 %40, label %41, label %52

41:                                               ; preds = %31
  %42 = getelementptr inbounds i8, ptr %3, i64 16
  %43 = load i64, ptr %42, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %3, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = load i32, ptr %3, align 8, !tbaa !5
  %47 = icmp eq i32 %46, 3
  br i1 %47, label %48, label %52

48:                                               ; preds = %41
  %49 = getelementptr inbounds i8, ptr %3, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = icmp eq i32 %50, %37
  br i1 %51, label %66, label %52

52:                                               ; preds = %41, %48, %31
  %.084 = phi i64 [ %43, %48 ], [ %43, %41 ], [ %33, %31 ]
  %.083 = phi ptr [ %45, %48 ], [ %45, %41 ], [ %35, %31 ]
  %spec.select = tail call i64 @llvm.umin.i64(i64 %.084, i64 %39)
  call void @_ZL15color_tree_initP9ColorTree(ptr noundef nonnull %7)
  %.not94110 = icmp eq i64 %.084, 0
  br i1 %.not94110, label %.thread102, label %.lr.ph

53:                                               ; preds = %.lr.ph
  %54 = add i64 %.080111, 1
  %.not94 = icmp eq i64 %54, %spec.select
  br i1 %.not94, label %.thread102, label %.lr.ph, !llvm.loop !16

.lr.ph:                                           ; preds = %52, %53
  %.080111 = phi i64 [ %54, %53 ], [ 0, %52 ]
  %55 = shl i64 %.080111, 2
  %56 = getelementptr inbounds i8, ptr %.083, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !18
  %58 = getelementptr inbounds i8, ptr %56, i64 1
  %59 = load i8, ptr %58, align 1, !tbaa !18
  %60 = getelementptr inbounds i8, ptr %56, i64 2
  %61 = load i8, ptr %60, align 1, !tbaa !18
  %62 = getelementptr inbounds i8, ptr %56, i64 3
  %63 = load i8, ptr %62, align 1, !tbaa !18
  %64 = trunc i64 %.080111 to i32
  %65 = call noundef i32 @_ZL14color_tree_addP9ColorTreehhhhj(ptr noundef nonnull %7, i8 noundef zeroext %57, i8 noundef zeroext %59, i8 noundef zeroext %61, i8 noundef zeroext %63, i32 noundef %64)
  %.not95 = icmp eq i32 %65, 0
  br i1 %.not95, label %53, label %.loopexit

66:                                               ; preds = %48
  %67 = tail call noundef i64 @_Z20lodepng_get_raw_sizejjPK16LodePNGColorMode(i32 noundef %4, i32 noundef %5, ptr noundef nonnull %3)
  tail call void @_ZL14lodepng_memcpyPvPKvm(ptr noundef %0, ptr noundef %1, i64 noundef %67)
  br label %95

.thread102:                                       ; preds = %53, %52, %28
  %68 = getelementptr inbounds i8, ptr %3, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !15
  %70 = icmp eq i32 %69, 16
  %71 = getelementptr inbounds i8, ptr %2, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = icmp eq i32 %72, 16
  %or.cond = select i1 %70, i1 %73, i1 false
  br i1 %or.cond, label %.preheader, label %.thread102._crit_edge

.preheader:                                       ; preds = %.thread102
  %.not99117 = icmp eq i64 %18, 0
  br i1 %.not99117, label %.loopexit, label %.lr.ph119

.lr.ph119:                                        ; preds = %.preheader, %.lr.ph119
  %.181118 = phi i64 [ %78, %.lr.ph119 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #4
  store i16 0, ptr %8, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #4
  store i16 0, ptr %9, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %10) #4
  store i16 0, ptr %10, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #4
  store i16 0, ptr %11, align 2, !tbaa !19
  call void @_ZL19getPixelColorRGBA16PtS_S_S_PKhmPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1, i64 noundef %.181118, ptr noundef nonnull %3)
  %74 = load i16, ptr %8, align 2, !tbaa !19
  %75 = load i16, ptr %9, align 2, !tbaa !19
  %76 = load i16, ptr %10, align 2, !tbaa !19
  %77 = load i16, ptr %11, align 2, !tbaa !19
  call void @_ZL13rgba16ToPixelPhmPK16LodePNGColorModetttt(ptr noundef %0, i64 noundef %.181118, ptr noundef nonnull %2, i16 noundef zeroext %74, i16 noundef zeroext %75, i16 noundef zeroext %76, i16 noundef zeroext %77)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #4
  %78 = add nuw i64 %.181118, 1
  %.not99 = icmp eq i64 %78, %18
  br i1 %.not99, label %.loopexit, label %.lr.ph119, !llvm.loop !21

.thread102._crit_edge:                            ; preds = %.thread102
  %79 = icmp eq i32 %72, 8
  br i1 %79, label %80, label %84

80:                                               ; preds = %.thread102._crit_edge
  %81 = load i32, ptr %2, align 8, !tbaa !5
  switch i32 %81, label %84 [
    i32 6, label %82
    i32 2, label %83
  ]

82:                                               ; preds = %80
  call void @_ZL19getPixelColorsRGBA8PhmPKhPK16LodePNGColorMode(ptr noundef %0, i64 noundef %18, ptr noundef %1, ptr noundef nonnull %3)
  br label %.loopexit

83:                                               ; preds = %80
  call void @_ZL18getPixelColorsRGB8PhmPKhPK16LodePNGColorMode(ptr noundef %0, i64 noundef %18, ptr noundef %1, ptr noundef nonnull %3)
  br label %.loopexit

84:                                               ; preds = %80, %.thread102._crit_edge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  store i8 0, ptr %12, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #4
  store i8 0, ptr %13, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #4
  store i8 0, ptr %14, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #4
  store i8 0, ptr %15, align 1, !tbaa !18
  %.not97112 = icmp eq i64 %18, 0
  br i1 %.not97112, label %._crit_edge, label %.lr.ph114

85:                                               ; preds = %.lr.ph114
  %86 = add nuw i64 %.2113, 1
  %.not97 = icmp eq i64 %86, %18
  br i1 %.not97, label %._crit_edge, label %.lr.ph114, !llvm.loop !22

.lr.ph114:                                        ; preds = %84, %85
  %.2113 = phi i64 [ %86, %85 ], [ 0, %84 ]
  call void @_ZL18getPixelColorRGBA8PhS_S_S_PKhmPK16LodePNGColorMode(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %1, i64 noundef %.2113, ptr noundef nonnull %3)
  %87 = load i8, ptr %12, align 1, !tbaa !18
  %88 = load i8, ptr %13, align 1, !tbaa !18
  %89 = load i8, ptr %14, align 1, !tbaa !18
  %90 = load i8, ptr %15, align 1, !tbaa !18
  %91 = call noundef i32 @_ZL12rgba8ToPixelPhmPK16LodePNGColorModeP9ColorTreehhhh(ptr noundef %0, i64 noundef %.2113, ptr noundef nonnull %2, ptr noundef nonnull %7, i8 noundef zeroext %87, i8 noundef zeroext %88, i8 noundef zeroext %89, i8 noundef zeroext %90)
  %.not98 = icmp eq i32 %91, 0
  br i1 %.not98, label %85, label %._crit_edge

._crit_edge:                                      ; preds = %85, %.lr.ph114, %84
  %.5 = phi i32 [ 0, %84 ], [ %91, %.lr.ph114 ], [ 0, %85 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph119, %.preheader, %83, %._crit_edge, %82
  %.6 = phi i32 [ 0, %82 ], [ 0, %83 ], [ %.5, %._crit_edge ], [ 0, %.preheader ], [ 0, %.lr.ph119 ], [ %65, %.lr.ph ]
  %92 = load i32, ptr %2, align 8, !tbaa !5
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %94, label %95

94:                                               ; preds = %.loopexit
  call void @_ZL18color_tree_cleanupP9ColorTree(ptr noundef nonnull %7)
  br label %95

95:                                               ; preds = %66, %.loopexit, %94, %21, %26
  %.1 = phi i32 [ 0, %26 ], [ 0, %66 ], [ 107, %21 ], [ %.6, %94 ], [ %.6, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %7) #4
  ret i32 %.1
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL19getPixelColorsRGBA8PhmPKhPK16LodePNGColorMode(ptr noalias noundef, i64 noundef, ptr noalias noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18getPixelColorsRGB8PhmPKhPK16LodePNGColorMode(ptr noalias noundef, i64 noundef, ptr noalias noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18getPixelColorRGBA8PhS_S_S_PKhmPK16LodePNGColorMode(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12rgba8ToPixelPhmPK16LodePNGColorModeP9ColorTreehhhh(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"_ZTS16LodePNGColorMode", !7, i64 0, !10, i64 4, !11, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!7 = !{!"_ZTS16LodePNGColorType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 8}
!14 = !{!6, !12, i64 16}
!15 = !{!6, !10, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !8, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


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