; LLVM IR from Try/Tempest :: Engine/thirdparty/libpng (pngwutil)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, i32, %struct.z_stream_s, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_colorspace = type { i32, %struct.png_xy, %struct.png_XYZ, i16, i16 }
%struct.png_xy = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_XYZ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_compression_buffer = type { ptr, [1 x i8] }

@.str.11 = external hidden unnamed_addr constant [35 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_free_buffer_list(ptr noalias noundef, ptr noundef) #1

; Function Attrs: noreturn
declare void @png_error(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @png_compress_IDAT(ptr noalias noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.png_struct_def, ptr %16, i32 0, i32 18
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = icmp ne i32 %18, 1229209940
  br i1 %19, label %20, label %72

20:                                               ; preds = %4
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.png_struct_def, ptr %21, i32 0, i32 20
  %23 = load ptr, ptr %22, align 8, !tbaa !23
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %39

25:                                               ; preds = %20
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 21
  %29 = load i32, ptr %28, align 8, !tbaa !24
  %30 = zext i32 %29 to i64
  %31 = add i64 8, %30
  %32 = call noalias ptr @png_malloc(ptr noundef %26, i64 noundef %31)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_struct_def, ptr %33, i32 0, i32 20
  store ptr %32, ptr %34, align 8, !tbaa !23
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.png_struct_def, ptr %35, i32 0, i32 20
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds %struct.png_compression_buffer, ptr %37, i32 0, i32 0
  store ptr null, ptr %38, align 8, !tbaa !25
  br label %45

39:                                               ; preds = %20
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.png_struct_def, ptr %41, i32 0, i32 20
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = getelementptr inbounds %struct.png_compression_buffer, ptr %43, i32 0, i32 0
  call void @png_free_buffer_list(ptr noundef %40, ptr noundef %44)
  br label %45

45:                                               ; preds = %39, %25
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call i64 @png_image_size(ptr noundef %47)
  %49 = call i32 @png_deflate_claim(ptr noundef %46, i32 noundef 1229209940, i64 noundef %48)
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %57

51:                                               ; preds = %45
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.png_struct_def, ptr %53, i32 0, i32 19
  %55 = getelementptr inbounds %struct.z_stream_s, ptr %54, i32 0, i32 6
  %56 = load ptr, ptr %55, align 8, !tbaa !27
  call void @png_error(ptr noundef %52, ptr noundef %56) #4
  unreachable

57:                                               ; preds = %45
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 20
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = getelementptr inbounds %struct.png_compression_buffer, ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds [1 x i8], ptr %61, i64 0, i64 0
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.png_struct_def, ptr %63, i32 0, i32 19
  %65 = getelementptr inbounds %struct.z_stream_s, ptr %64, i32 0, i32 3
  store ptr %62, ptr %65, align 8, !tbaa !28
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.png_struct_def, ptr %66, i32 0, i32 21
  %68 = load i32, ptr %67, align 8, !tbaa !24
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.png_struct_def, ptr %69, i32 0, i32 19
  %71 = getelementptr inbounds %struct.z_stream_s, ptr %70, i32 0, i32 4
  store i32 %68, ptr %71, align 8, !tbaa !29
  br label %72

72:                                               ; preds = %57, %4
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.png_struct_def, ptr %74, i32 0, i32 19
  %76 = getelementptr inbounds %struct.z_stream_s, ptr %75, i32 0, i32 0
  store ptr %73, ptr %76, align 8, !tbaa !30
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.png_struct_def, ptr %77, i32 0, i32 19
  %79 = getelementptr inbounds %struct.z_stream_s, ptr %78, i32 0, i32 1
  store i32 0, ptr %79, align 8, !tbaa !31
  br label %80

80:                                               ; preds = %257, %255, %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 -1, ptr %10, align 4, !tbaa !11
  %81 = load i32, ptr %10, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = load i64, ptr %7, align 8, !tbaa !9
  %84 = icmp ugt i64 %82, %83
  br i1 %84, label %85, label %88

85:                                               ; preds = %80
  %86 = load i64, ptr %7, align 8, !tbaa !9
  %87 = trunc i64 %86 to i32
  store i32 %87, ptr %10, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %85, %80
  %89 = load i32, ptr %10, align 4, !tbaa !11
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.png_struct_def, ptr %90, i32 0, i32 19
  %92 = getelementptr inbounds %struct.z_stream_s, ptr %91, i32 0, i32 1
  store i32 %89, ptr %92, align 8, !tbaa !31
  %93 = load i32, ptr %10, align 4, !tbaa !11
  %94 = zext i32 %93 to i64
  %95 = load i64, ptr %7, align 8, !tbaa !9
  %96 = sub i64 %95, %94
  store i64 %96, ptr %7, align 8, !tbaa !9
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_struct_def, ptr %97, i32 0, i32 19
  %99 = load i64, ptr %7, align 8, !tbaa !9
  %100 = icmp ugt i64 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %88
  br label %104

102:                                              ; preds = %88
  %103 = load i32, ptr %8, align 4, !tbaa !11
  br label %104

104:                                              ; preds = %102, %101
  %105 = phi i32 [ 0, %101 ], [ %103, %102 ]
  %106 = call i32 @deflate(ptr noundef %98, i32 noundef %105)
  store i32 %106, ptr %9, align 4, !tbaa !11
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.png_struct_def, ptr %107, i32 0, i32 19
  %109 = getelementptr inbounds %struct.z_stream_s, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !31
  %111 = zext i32 %110 to i64
  %112 = load i64, ptr %7, align 8, !tbaa !9
  %113 = add i64 %112, %111
  store i64 %113, ptr %7, align 8, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.png_struct_def, ptr %114, i32 0, i32 19
  %116 = getelementptr inbounds %struct.z_stream_s, ptr %115, i32 0, i32 1
  store i32 0, ptr %116, align 8, !tbaa !31
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.png_struct_def, ptr %117, i32 0, i32 19
  %119 = getelementptr inbounds %struct.z_stream_s, ptr %118, i32 0, i32 4
  %120 = load i32, ptr %119, align 8, !tbaa !29
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %177

122:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.png_struct_def, ptr %123, i32 0, i32 20
  %125 = load ptr, ptr %124, align 8, !tbaa !23
  %126 = getelementptr inbounds %struct.png_compression_buffer, ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds [1 x i8], ptr %126, i64 0, i64 0
  store ptr %127, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.png_struct_def, ptr %128, i32 0, i32 21
  %130 = load i32, ptr %129, align 8, !tbaa !24
  store i32 %130, ptr %12, align 4, !tbaa !11
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.png_struct_def, ptr %131, i32 0, i32 15
  %133 = load i32, ptr %132, align 4, !tbaa !32
  %134 = and i32 %133, 4
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %146

136:                                              ; preds = %122
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.png_struct_def, ptr %137, i32 0, i32 131
  %139 = load i8, ptr %138, align 8, !tbaa !33
  %140 = zext i8 %139 to i32
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %146

142:                                              ; preds = %136
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = call i64 @png_image_size(ptr noundef %144)
  call void @optimize_cmf(ptr noundef %143, i64 noundef %145)
  br label %146

146:                                              ; preds = %142, %136, %122
  %147 = load i32, ptr %12, align 4, !tbaa !11
  %148 = icmp ugt i32 %147, 0
  br i1 %148, label %149, label %154

149:                                              ; preds = %146
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = load i32, ptr %12, align 4, !tbaa !11
  %153 = zext i32 %152 to i64
  call void @png_write_complete_chunk(ptr noundef %150, i32 noundef 1229209940, ptr noundef %151, i64 noundef %153)
  br label %154

154:                                              ; preds = %149, %146
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.png_struct_def, ptr %155, i32 0, i32 15
  %157 = load i32, ptr %156, align 4, !tbaa !32
  %158 = or i32 %157, 4
  store i32 %158, ptr %156, align 4, !tbaa !32
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.png_struct_def, ptr %160, i32 0, i32 19
  %162 = getelementptr inbounds %struct.z_stream_s, ptr %161, i32 0, i32 3
  store ptr %159, ptr %162, align 8, !tbaa !28
  %163 = load i32, ptr %12, align 4, !tbaa !11
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.png_struct_def, ptr %164, i32 0, i32 19
  %166 = getelementptr inbounds %struct.z_stream_s, ptr %165, i32 0, i32 4
  store i32 %163, ptr %166, align 8, !tbaa !29
  %167 = load i32, ptr %9, align 4, !tbaa !11
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %173

169:                                              ; preds = %154
  %170 = load i32, ptr %8, align 4, !tbaa !11
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %169
  store i32 3, ptr %13, align 4
  br label %174

173:                                              ; preds = %169, %154
  store i32 0, ptr %13, align 4
  br label %174

174:                                              ; preds = %173, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %175 = load i32, ptr %13, align 4
  switch i32 %175, label %255 [
    i32 0, label %176
  ]

176:                                              ; preds = %174
  br label %177

177:                                              ; preds = %176, %104
  %178 = load i32, ptr %9, align 4, !tbaa !11
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %190

180:                                              ; preds = %177
  %181 = load i64, ptr %7, align 8, !tbaa !9
  %182 = icmp eq i64 %181, 0
  br i1 %182, label %183, label %189

183:                                              ; preds = %180
  %184 = load i32, ptr %8, align 4, !tbaa !11
  %185 = icmp eq i32 %184, 4
  br i1 %185, label %186, label %188

186:                                              ; preds = %183
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_error(ptr noundef %187, ptr noundef @.str.11) #4
  unreachable

188:                                              ; preds = %183
  store i32 1, ptr %13, align 4
  br label %255

189:                                              ; preds = %180
  br label %254

190:                                              ; preds = %177
  %191 = load i32, ptr %9, align 4, !tbaa !11
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %246

193:                                              ; preds = %190
  %194 = load i32, ptr %8, align 4, !tbaa !11
  %195 = icmp eq i32 %194, 4
  br i1 %195, label %196, label %246

196:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.png_struct_def, ptr %197, i32 0, i32 20
  %199 = load ptr, ptr %198, align 8, !tbaa !23
  %200 = getelementptr inbounds %struct.png_compression_buffer, ptr %199, i32 0, i32 1
  %201 = getelementptr inbounds [1 x i8], ptr %200, i64 0, i64 0
  store ptr %201, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.png_struct_def, ptr %202, i32 0, i32 21
  %204 = load i32, ptr %203, align 8, !tbaa !24
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.png_struct_def, ptr %205, i32 0, i32 19
  %207 = getelementptr inbounds %struct.z_stream_s, ptr %206, i32 0, i32 4
  %208 = load i32, ptr %207, align 8, !tbaa !29
  %209 = sub i32 %204, %208
  store i32 %209, ptr %15, align 4, !tbaa !11
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.png_struct_def, ptr %210, i32 0, i32 15
  %212 = load i32, ptr %211, align 4, !tbaa !32
  %213 = and i32 %212, 4
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %225

215:                                              ; preds = %196
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.png_struct_def, ptr %216, i32 0, i32 131
  %218 = load i8, ptr %217, align 8, !tbaa !33
  %219 = zext i8 %218 to i32
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %225

221:                                              ; preds = %215
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = call i64 @png_image_size(ptr noundef %223)
  call void @optimize_cmf(ptr noundef %222, i64 noundef %224)
  br label %225

225:                                              ; preds = %221, %215, %196
  %226 = load i32, ptr %15, align 4, !tbaa !11
  %227 = icmp ugt i32 %226, 0
  br i1 %227, label %228, label %233

228:                                              ; preds = %225
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = load i32, ptr %15, align 4, !tbaa !11
  %232 = zext i32 %231 to i64
  call void @png_write_complete_chunk(ptr noundef %229, i32 noundef 1229209940, ptr noundef %230, i64 noundef %232)
  br label %233

233:                                              ; preds = %228, %225
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.png_struct_def, ptr %234, i32 0, i32 19
  %236 = getelementptr inbounds %struct.z_stream_s, ptr %235, i32 0, i32 4
  store i32 0, ptr %236, align 8, !tbaa !29
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.png_struct_def, ptr %237, i32 0, i32 19
  %239 = getelementptr inbounds %struct.z_stream_s, ptr %238, i32 0, i32 3
  store ptr null, ptr %239, align 8, !tbaa !28
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.png_struct_def, ptr %240, i32 0, i32 15
  %242 = load i32, ptr %241, align 4, !tbaa !32
  %243 = or i32 %242, 12
  store i32 %243, ptr %241, align 4, !tbaa !32
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.png_struct_def, ptr %244, i32 0, i32 18
  store i32 0, ptr %245, align 8, !tbaa !13
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %255

246:                                              ; preds = %193, %190
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = load i32, ptr %9, align 4, !tbaa !11
  call void @png_zstream_error(ptr noundef %247, i32 noundef %248)
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.png_struct_def, ptr %250, i32 0, i32 19
  %252 = getelementptr inbounds %struct.z_stream_s, ptr %251, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !27
  call void @png_error(ptr noundef %249, ptr noundef %253) #4
  unreachable

254:                                              ; preds = %189
  store i32 0, ptr %13, align 4
  br label %255

255:                                              ; preds = %254, %233, %188, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %256 = load i32, ptr %13, align 4
  switch i32 %256, label %259 [
    i32 0, label %257
    i32 3, label %80
    i32 1, label %258
  ]

257:                                              ; preds = %255
  br label %80

258:                                              ; preds = %255
  ret void

259:                                              ; preds = %255
  unreachable
}

declare noalias ptr @png_malloc(ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden i64 @png_image_size(ptr noalias noundef) #1

declare i32 @deflate(ptr noundef, i32 noundef) #3

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

declare void @png_zstream_error(ptr noundef, i32 noundef) #3

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 = { noreturn "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 = { "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 = { noreturn }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 312}
!14 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !10, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !15, i64 320, !6, i64 432, !12, i64 440, !12, i64 444, !12, i64 448, !12, i64 452, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !10, i64 520, !12, i64 528, !12, i64 532, !12, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !10, i64 576, !12, i64 584, !12, i64 588, !6, i64 592, !16, i64 600, !12, i64 604, !16, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !16, i64 626, !7, i64 628, !12, i64 632, !17, i64 636, !17, i64 646, !6, i64 656, !12, i64 664, !12, i64 668, !12, i64 672, !12, i64 676, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !18, i64 728, !18, i64 733, !6, i64 744, !17, i64 752, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !12, i64 840, !12, i64 844, !10, i64 848, !10, i64 856, !10, i64 864, !10, i64 872, !12, i64 880, !12, i64 884, !6, i64 888, !6, i64 896, !12, i64 904, !7, i64 908, !12, i64 940, !6, i64 944, !6, i64 952, !12, i64 960, !12, i64 964, !6, i64 968, !7, i64 976, !7, i64 977, !16, i64 978, !16, i64 980, !12, i64 984, !7, i64 988, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !7, i64 1048, !12, i64 1052, !12, i64 1056, !12, i64 1060, !10, i64 1064, !19, i64 1072, !10, i64 1104, !6, i64 1112, !10, i64 1120, !12, i64 1128, !12, i64 1132, !6, i64 1136, !7, i64 1144, !20, i64 1176}
!15 = !{!"z_stream_s", !6, i64 0, !12, i64 8, !10, i64 16, !6, i64 24, !12, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !10, i64 96, !10, i64 104}
!16 = !{!"short", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !10, i64 16, !7, i64 24}
!20 = !{!"png_colorspace", !12, i64 0, !21, i64 4, !22, i64 36, !16, i64 72, !16, i64 74}
!21 = !{!"png_xy", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!22 = !{!"png_XYZ", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!23 = !{!14, !6, i64 432}
!24 = !{!14, !12, i64 440}
!25 = !{!26, !6, i64 0}
!26 = !{!"png_compression_buffer", !6, i64 0, !7, i64 8}
!27 = !{!14, !6, i64 368}
!28 = !{!14, !6, i64 344}
!29 = !{!14, !12, i64 352}
!30 = !{!14, !6, i64 320}
!31 = !{!14, !12, i64 328}
!32 = !{!14, !12, i64 300}
!33 = !{!14, !7, i64 1048}


; 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"

@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare hidden void @png_write_complete_chunk(ptr noalias noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_free_buffer_list(ptr noalias noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn
declare void @png_error(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @png_compress_IDAT(ptr noalias noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 312
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %6, 1229209940
  br i1 %.not, label %31, label %7

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 432
  %9 = load ptr, ptr %8, align 8, !tbaa !20
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %17

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 440
  %13 = load i32, ptr %12, align 8, !tbaa !21
  %14 = zext i32 %13 to i64
  %15 = add nuw nsw i64 %14, 8
  %16 = tail call noalias ptr @png_malloc(ptr noundef nonnull %0, i64 noundef %15) #4
  store ptr %16, ptr %8, align 8, !tbaa !20
  store ptr null, ptr %16, align 8, !tbaa !22
  br label %18

17:                                               ; preds = %7
  tail call void @png_free_buffer_list(ptr noundef nonnull %0, ptr noundef nonnull %9)
  br label %18

18:                                               ; preds = %17, %11
  %19 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  %20 = tail call i32 @png_deflate_claim(ptr noundef nonnull %0, i32 noundef 1229209940, i64 noundef %19)
  %.not85 = icmp eq i32 %20, 0
  br i1 %.not85, label %24, label %21

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 368
  %23 = load ptr, ptr %22, align 8, !tbaa !24
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef %23) #5
  unreachable

24:                                               ; preds = %18
  %25 = load ptr, ptr %8, align 8, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 344
  store ptr %26, ptr %27, align 8, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %0, i64 440
  %29 = load i32, ptr %28, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 %29, ptr %30, align 8, !tbaa !26
  br label %31

31:                                               ; preds = %24, %4
  %32 = getelementptr inbounds i8, ptr %0, i64 320
  store ptr %1, ptr %32, align 8, !tbaa !27
  %33 = getelementptr inbounds i8, ptr %0, i64 328
  %34 = getelementptr inbounds i8, ptr %0, i64 352
  %35 = getelementptr inbounds i8, ptr %0, i64 432
  %36 = getelementptr inbounds i8, ptr %0, i64 440
  %37 = getelementptr inbounds i8, ptr %0, i64 300
  %38 = getelementptr inbounds i8, ptr %0, i64 1048
  %39 = getelementptr inbounds i8, ptr %0, i64 344
  %40 = icmp eq i32 %3, 0
  br label %41

41:                                               ; preds = %.backedge, %31
  %.0 = phi i64 [ %2, %31 ], [ %47, %.backedge ]
  %spec.select94 = tail call i64 @llvm.umin.i64(i64 %.0, i64 4294967295)
  %spec.select = trunc nuw i64 %spec.select94 to i32
  store i32 %spec.select, ptr %33, align 8, !tbaa !28
  %42 = sub i64 %.0, %spec.select94
  %.not86 = icmp ult i64 %.0, 4294967296
  %43 = select i1 %.not86, i32 %3, i32 0
  %44 = tail call i32 @deflate(ptr noundef nonnull %32, i32 noundef %43) #4
  %45 = load i32, ptr %33, align 8, !tbaa !28
  %46 = zext i32 %45 to i64
  %47 = add i64 %42, %46
  store i32 0, ptr %33, align 8, !tbaa !28
  %48 = load i32, ptr %34, align 8, !tbaa !26
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %69

50:                                               ; preds = %41
  %51 = load ptr, ptr %35, align 8, !tbaa !20
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i32, ptr %36, align 8, !tbaa !21
  %54 = load i32, ptr %37, align 4, !tbaa !29
  %55 = and i32 %54, 4
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %62

57:                                               ; preds = %50
  %58 = load i8, ptr %38, align 8, !tbaa !30
  %59 = icmp eq i8 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  tail call void @optimize_cmf(ptr noundef nonnull %52, i64 noundef %61)
  br label %62

62:                                               ; preds = %60, %57, %50
  %.not87 = icmp eq i32 %53, 0
  br i1 %.not87, label %65, label %63

63:                                               ; preds = %62
  %64 = zext i32 %53 to i64
  tail call void @png_write_complete_chunk(ptr noundef nonnull %0, i32 noundef 1229209940, ptr noundef nonnull %52, i64 noundef %64)
  br label %65

65:                                               ; preds = %63, %62
  %66 = load i32, ptr %37, align 4, !tbaa !29
  %67 = or i32 %66, 4
  store i32 %67, ptr %37, align 4, !tbaa !29
  store ptr %52, ptr %39, align 8, !tbaa !25
  store i32 %53, ptr %34, align 8, !tbaa !26
  %68 = icmp ne i32 %44, 0
  %or.cond.not = or i1 %40, %68
  br i1 %or.cond.not, label %69, label %.backedge

69:                                               ; preds = %65, %41
  %70 = phi i32 [ %53, %65 ], [ %48, %41 ]
  %71 = icmp eq i32 %44, 0
  br i1 %71, label %72, label %77

72:                                               ; preds = %69
  %73 = icmp eq i64 %47, 0
  br i1 %73, label %74, label %.backedge

.backedge:                                        ; preds = %72, %65
  br label %41

74:                                               ; preds = %72
  %75 = icmp eq i32 %3, 4
  br i1 %75, label %76, label %.thread

76:                                               ; preds = %74
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.11) #5
  unreachable

77:                                               ; preds = %69
  %78 = icmp eq i32 %44, 1
  %79 = icmp eq i32 %3, 4
  %or.cond3 = and i1 %79, %78
  br i1 %or.cond3, label %80, label %99

80:                                               ; preds = %77
  %81 = load ptr, ptr %35, align 8, !tbaa !20
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load i32, ptr %36, align 8, !tbaa !21
  %84 = sub i32 %83, %70
  %85 = load i32, ptr %37, align 4, !tbaa !29
  %86 = and i32 %85, 4
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %93

88:                                               ; preds = %80
  %89 = load i8, ptr %38, align 8, !tbaa !30
  %90 = icmp eq i8 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %88
  %92 = tail call i64 @png_image_size(ptr noundef nonnull %0)
  tail call void @optimize_cmf(ptr noundef nonnull %82, i64 noundef %92)
  br label %93

93:                                               ; preds = %91, %88, %80
  %.not90 = icmp eq i32 %83, %70
  br i1 %.not90, label %96, label %94

94:                                               ; preds = %93
  %95 = zext i32 %84 to i64
  tail call void @png_write_complete_chunk(ptr noundef nonnull %0, i32 noundef 1229209940, ptr noundef nonnull %82, i64 noundef %95)
  br label %96

96:                                               ; preds = %94, %93
  store i32 0, ptr %34, align 8, !tbaa !26
  store ptr null, ptr %39, align 8, !tbaa !25
  %97 = load i32, ptr %37, align 4, !tbaa !29
  %98 = or i32 %97, 12
  store i32 %98, ptr %37, align 4, !tbaa !29
  store i32 0, ptr %5, align 8, !tbaa !5
  br label %.thread

99:                                               ; preds = %77
  tail call void @png_zstream_error(ptr noundef nonnull %0, i32 noundef %44) #4
  %100 = getelementptr inbounds i8, ptr %0, i64 368
  %101 = load ptr, ptr %100, align 8, !tbaa !24
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef %101) #5
  unreachable

.thread:                                          ; preds = %74, %96
  ret void
}

declare noalias ptr @png_malloc(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @png_deflate_claim(ptr noalias noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @png_image_size(ptr noalias noundef) local_unnamed_addr #0

declare i32 @deflate(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @optimize_cmf(ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @png_zstream_error(ptr noundef, i32 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 = { 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 #1 = { noreturn "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 = { "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 }
attributes #5 = { noreturn 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, !11, i64 312}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !10, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !12, i64 320, !9, i64 432, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !10, i64 520, !11, i64 528, !11, i64 532, !11, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !9, i64 568, !10, i64 576, !11, i64 584, !11, i64 588, !9, i64 592, !13, i64 600, !11, i64 604, !13, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !13, i64 626, !7, i64 628, !11, i64 632, !14, i64 636, !14, i64 646, !9, i64 656, !11, i64 664, !11, i64 668, !11, i64 672, !11, i64 676, !9, i64 680, !9, i64 688, !9, i64 696, !9, i64 704, !9, i64 712, !9, i64 720, !15, i64 728, !15, i64 733, !9, i64 744, !14, i64 752, !9, i64 768, !9, i64 776, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !11, i64 840, !11, i64 844, !10, i64 848, !10, i64 856, !10, i64 864, !10, i64 872, !11, i64 880, !11, i64 884, !9, i64 888, !9, i64 896, !11, i64 904, !7, i64 908, !11, i64 940, !9, i64 944, !9, i64 952, !11, i64 960, !11, i64 964, !9, i64 968, !7, i64 976, !7, i64 977, !13, i64 978, !13, i64 980, !11, i64 984, !7, i64 988, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !9, i64 1040, !7, i64 1048, !11, i64 1052, !11, i64 1056, !11, i64 1060, !10, i64 1064, !16, i64 1072, !10, i64 1104, !9, i64 1112, !10, i64 1120, !11, i64 1128, !11, i64 1132, !9, i64 1136, !7, i64 1144, !17, i64 1176}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !9, i64 0, !11, i64 8, !10, i64 16, !9, i64 24, !11, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !11, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!"short", !7, i64 0}
!14 = !{!"png_color_16_struct", !7, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!15 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!16 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!17 = !{!"png_colorspace", !11, i64 0, !18, i64 4, !19, i64 36, !13, i64 72, !13, i64 74}
!18 = !{!"png_xy", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!19 = !{!"png_XYZ", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!20 = !{!6, !9, i64 432}
!21 = !{!6, !11, i64 440}
!22 = !{!23, !9, i64 0}
!23 = !{!"png_compression_buffer", !9, i64 0, !7, i64 8}
!24 = !{!6, !9, i64 368}
!25 = !{!6, !9, i64 344}
!26 = !{!6, !11, i64 352}
!27 = !{!6, !9, i64 320}
!28 = !{!6, !11, i64 328}
!29 = !{!6, !11, i64 300}
!30 = !{!6, !7, i64 1048}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass