; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngtest)

; 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_row_info_struct = type { i32, i64, i8, i8, i8, i8 }

@zero_samples = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @count_zero_samples(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %16, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %3
  store i32 1, ptr %8, align 4
  br label %250

20:                                               ; preds = %3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.png_row_info_struct, ptr %21, i32 0, i32 2
  %23 = load i8, ptr %22, align 8, !tbaa !9
  %24 = zext i8 %23 to i32
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %32, label %26

26:                                               ; preds = %20
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_row_info_struct, ptr %27, i32 0, i32 2
  %29 = load i8, ptr %28, align 8, !tbaa !9
  %30 = zext i8 %29 to i32
  %31 = icmp eq i32 %30, 3
  br i1 %31, label %32, label %158

32:                                               ; preds = %26, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  store i32 0, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  store i32 0, ptr %10, align 4, !tbaa !13
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_row_info_struct, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !14
  store i32 %35, ptr %11, align 4, !tbaa !13
  br label %36

36:                                               ; preds = %154, %32
  %37 = load i32, ptr %10, align 4, !tbaa !13
  %38 = load i32, ptr %11, align 4, !tbaa !13
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %157

40:                                               ; preds = %36
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.png_row_info_struct, ptr %41, i32 0, i32 3
  %43 = load i8, ptr %42, align 1, !tbaa !15
  %44 = zext i8 %43 to i32
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %65

46:                                               ; preds = %40
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !16
  %49 = zext i8 %48 to i32
  %50 = load i32, ptr %9, align 4, !tbaa !13
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %9, align 4, !tbaa !13
  %52 = shl i32 %49, %50
  %53 = and i32 %52, 128
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %46
  %56 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %57 = add i32 %56, 1
  store i32 %57, ptr @zero_samples, align 4, !tbaa !13
  br label %58

58:                                               ; preds = %55, %46
  %59 = load i32, ptr %9, align 4, !tbaa !13
  %60 = icmp eq i32 %59, 8
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  store i32 0, ptr %9, align 4, !tbaa !13
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i32 1
  store ptr %63, ptr %7, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %61, %58
  br label %65

65:                                               ; preds = %64, %40
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.png_row_info_struct, ptr %66, i32 0, i32 3
  %68 = load i8, ptr %67, align 1, !tbaa !15
  %69 = zext i8 %68 to i32
  %70 = icmp eq i32 %69, 2
  br i1 %70, label %71, label %90

71:                                               ; preds = %65
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load i8, ptr %72, align 1, !tbaa !16
  %74 = zext i8 %73 to i32
  %75 = load i32, ptr %9, align 4, !tbaa !13
  %76 = add nsw i32 %75, 2
  store i32 %76, ptr %9, align 4, !tbaa !13
  %77 = shl i32 %74, %76
  %78 = and i32 %77, 192
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %71
  %81 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %82 = add i32 %81, 1
  store i32 %82, ptr @zero_samples, align 4, !tbaa !13
  br label %83

83:                                               ; preds = %80, %71
  %84 = load i32, ptr %9, align 4, !tbaa !13
  %85 = icmp eq i32 %84, 8
  br i1 %85, label %86, label %89

86:                                               ; preds = %83
  store i32 0, ptr %9, align 4, !tbaa !13
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i32 1
  store ptr %88, ptr %7, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %86, %83
  br label %90

90:                                               ; preds = %89, %65
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.png_row_info_struct, ptr %91, i32 0, i32 3
  %93 = load i8, ptr %92, align 1, !tbaa !15
  %94 = zext i8 %93 to i32
  %95 = icmp eq i32 %94, 4
  br i1 %95, label %96, label %115

96:                                               ; preds = %90
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load i8, ptr %97, align 1, !tbaa !16
  %99 = zext i8 %98 to i32
  %100 = load i32, ptr %9, align 4, !tbaa !13
  %101 = add nsw i32 %100, 4
  store i32 %101, ptr %9, align 4, !tbaa !13
  %102 = shl i32 %99, %101
  %103 = and i32 %102, 240
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %96
  %106 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %107 = add i32 %106, 1
  store i32 %107, ptr @zero_samples, align 4, !tbaa !13
  br label %108

108:                                              ; preds = %105, %96
  %109 = load i32, ptr %9, align 4, !tbaa !13
  %110 = icmp eq i32 %109, 8
  br i1 %110, label %111, label %114

111:                                              ; preds = %108
  store i32 0, ptr %9, align 4, !tbaa !13
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i32 1
  store ptr %113, ptr %7, align 8, !tbaa !5
  br label %114

114:                                              ; preds = %111, %108
  br label %115

115:                                              ; preds = %114, %90
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.png_row_info_struct, ptr %116, i32 0, i32 3
  %118 = load i8, ptr %117, align 1, !tbaa !15
  %119 = zext i8 %118 to i32
  %120 = icmp eq i32 %119, 8
  br i1 %120, label %121, label %131

121:                                              ; preds = %115
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i32 1
  store ptr %123, ptr %7, align 8, !tbaa !5
  %124 = load i8, ptr %122, align 1, !tbaa !16
  %125 = zext i8 %124 to i32
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %121
  %128 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %129 = add i32 %128, 1
  store i32 %129, ptr @zero_samples, align 4, !tbaa !13
  br label %130

130:                                              ; preds = %127, %121
  br label %131

131:                                              ; preds = %130, %115
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.png_row_info_struct, ptr %132, i32 0, i32 3
  %134 = load i8, ptr %133, align 1, !tbaa !15
  %135 = zext i8 %134 to i32
  %136 = icmp eq i32 %135, 16
  br i1 %136, label %137, label %153

137:                                              ; preds = %131
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = load i8, ptr %138, align 1, !tbaa !16
  %140 = zext i8 %139 to i32
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 1
  %143 = load i8, ptr %142, align 1, !tbaa !16
  %144 = zext i8 %143 to i32
  %145 = or i32 %140, %144
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %150

147:                                              ; preds = %137
  %148 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %149 = add i32 %148, 1
  store i32 %149, ptr @zero_samples, align 4, !tbaa !13
  br label %150

150:                                              ; preds = %147, %137
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 2
  store ptr %152, ptr %7, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %150, %131
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %10, align 4, !tbaa !13
  %156 = add i32 %155, 1
  store i32 %156, ptr %10, align 4, !tbaa !13
  br label %36, !llvm.loop !17

157:                                              ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  br label %249

158:                                              ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #2
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.png_row_info_struct, ptr %159, i32 0, i32 4
  %161 = load i8, ptr %160, align 2, !tbaa !19
  %162 = zext i8 %161 to i32
  store i32 %162, ptr %15, align 4, !tbaa !13
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.png_row_info_struct, ptr %163, i32 0, i32 2
  %165 = load i8, ptr %164, align 8, !tbaa !9
  %166 = zext i8 %165 to i32
  %167 = icmp sgt i32 %166, 3
  br i1 %167, label %168, label %171

168:                                              ; preds = %158
  %169 = load i32, ptr %15, align 4, !tbaa !13
  %170 = add nsw i32 %169, -1
  store i32 %170, ptr %15, align 4, !tbaa !13
  br label %171

171:                                              ; preds = %168, %158
  store i32 0, ptr %12, align 4, !tbaa !13
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.png_row_info_struct, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 8, !tbaa !14
  store i32 %174, ptr %13, align 4, !tbaa !13
  br label %175

175:                                              ; preds = %245, %171
  %176 = load i32, ptr %12, align 4, !tbaa !13
  %177 = load i32, ptr %13, align 4, !tbaa !13
  %178 = icmp ult i32 %176, %177
  br i1 %178, label %179, label %248

179:                                              ; preds = %175
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %180

180:                                              ; preds = %223, %179
  %181 = load i32, ptr %14, align 4, !tbaa !13
  %182 = load i32, ptr %15, align 4, !tbaa !13
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %184, label %226

184:                                              ; preds = %180
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.png_row_info_struct, ptr %185, i32 0, i32 3
  %187 = load i8, ptr %186, align 1, !tbaa !15
  %188 = zext i8 %187 to i32
  %189 = icmp eq i32 %188, 8
  br i1 %189, label %190, label %200

190:                                              ; preds = %184
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %191, i32 1
  store ptr %192, ptr %7, align 8, !tbaa !5
  %193 = load i8, ptr %191, align 1, !tbaa !16
  %194 = zext i8 %193 to i32
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %199

196:                                              ; preds = %190
  %197 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %198 = add i32 %197, 1
  store i32 %198, ptr @zero_samples, align 4, !tbaa !13
  br label %199

199:                                              ; preds = %196, %190
  br label %200

200:                                              ; preds = %199, %184
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.png_row_info_struct, ptr %201, i32 0, i32 3
  %203 = load i8, ptr %202, align 1, !tbaa !15
  %204 = zext i8 %203 to i32
  %205 = icmp eq i32 %204, 16
  br i1 %205, label %206, label %222

206:                                              ; preds = %200
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load i8, ptr %207, align 1, !tbaa !16
  %209 = zext i8 %208 to i32
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %210, i64 1
  %212 = load i8, ptr %211, align 1, !tbaa !16
  %213 = zext i8 %212 to i32
  %214 = or i32 %209, %213
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %219

216:                                              ; preds = %206
  %217 = load i32, ptr @zero_samples, align 4, !tbaa !13
  %218 = add i32 %217, 1
  store i32 %218, ptr @zero_samples, align 4, !tbaa !13
  br label %219

219:                                              ; preds = %216, %206
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %220, i64 2
  store ptr %221, ptr %7, align 8, !tbaa !5
  br label %222

222:                                              ; preds = %219, %200
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %14, align 4, !tbaa !13
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %14, align 4, !tbaa !13
  br label %180, !llvm.loop !20

226:                                              ; preds = %180
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.png_row_info_struct, ptr %227, i32 0, i32 2
  %229 = load i8, ptr %228, align 8, !tbaa !9
  %230 = zext i8 %229 to i32
  %231 = icmp sgt i32 %230, 3
  br i1 %231, label %232, label %244

232:                                              ; preds = %226
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds i8, ptr %233, i32 1
  store ptr %234, ptr %7, align 8, !tbaa !5
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.png_row_info_struct, ptr %235, i32 0, i32 3
  %237 = load i8, ptr %236, align 1, !tbaa !15
  %238 = zext i8 %237 to i32
  %239 = icmp eq i32 %238, 16
  br i1 %239, label %240, label %243

240:                                              ; preds = %232
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = getelementptr inbounds i8, ptr %241, i32 1
  store ptr %242, ptr %7, align 8, !tbaa !5
  br label %243

243:                                              ; preds = %240, %232
  br label %244

244:                                              ; preds = %243, %226
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %12, align 4, !tbaa !13
  %247 = add i32 %246, 1
  store i32 %247, ptr %12, align 4, !tbaa !13
  br label %175, !llvm.loop !21

248:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  br label %249

249:                                              ; preds = %248, %157
  store i32 0, ptr %8, align 4
  br label %250

250:                                              ; preds = %249, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  %251 = load i32, ptr %8, align 4
  switch i32 %251, label %253 [
    i32 0, label %252
    i32 1, label %252
  ]

252:                                              ; preds = %250, %250
  ret void

253:                                              ; preds = %250
  unreachable
}

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 16}
!10 = !{!"png_row_info_struct", !11, i64 0, !12, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !7, i64 17}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !7, i64 18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


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

@zero_samples = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: read, inaccessiblemem: none) uwtable
define dso_local void @count_zero_samples(ptr noundef readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.loopexit, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = load i8, ptr %6, align 8, !tbaa !5
  switch i8 %7, label %114 [
    i8 0, label %8
    i8 3, label %8
  ]

8:                                                ; preds = %5, %5
  %9 = load i32, ptr %1, align 8, !tbaa !11
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %zero_samples.promoted = load i32, ptr @zero_samples, align 4, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %1, i64 17
  %11 = load i8, ptr %10, align 1, !tbaa !13
  switch i8 %11, label %.loopexit [
    i8 1, label %.lr.ph.split.us.preheader
    i8 2, label %.lr.ph.split.us89.preheader
    i8 4, label %.lr.ph.split.us96.preheader
    i8 8, label %.lr.ph.split.us103.preheader
    i8 16, label %.lr.ph.split.us110.preheader
  ]

.lr.ph.split.us110.preheader:                     ; preds = %.lr.ph
  %xtraiter = and i32 %9, 1
  %12 = icmp eq i32 %9, 1
  br i1 %12, label %.loopexit.loopexit184.unr-lcssa, label %.lr.ph.split.us110.preheader.new

.lr.ph.split.us110.preheader.new:                 ; preds = %.lr.ph.split.us110.preheader
  %unroll_iter = and i32 %9, -2
  br label %.lr.ph.split.us110

.lr.ph.split.us103.preheader:                     ; preds = %.lr.ph
  %xtraiter185 = and i32 %9, 1
  %13 = icmp eq i32 %9, 1
  br i1 %13, label %.loopexit.loopexit183.unr-lcssa, label %.lr.ph.split.us103.preheader.new

.lr.ph.split.us103.preheader.new:                 ; preds = %.lr.ph.split.us103.preheader
  %unroll_iter188 = and i32 %9, -2
  br label %.lr.ph.split.us103

.lr.ph.split.us96.preheader:                      ; preds = %.lr.ph
  %xtraiter190 = and i32 %9, 1
  %14 = icmp eq i32 %9, 1
  br i1 %14, label %.loopexit.loopexit182.unr-lcssa, label %.lr.ph.split.us96.preheader.new

.lr.ph.split.us96.preheader.new:                  ; preds = %.lr.ph.split.us96.preheader
  %unroll_iter193 = and i32 %9, -2
  br label %.lr.ph.split.us96

.lr.ph.split.us89.preheader:                      ; preds = %.lr.ph
  %xtraiter195 = and i32 %9, 1
  %15 = icmp eq i32 %9, 1
  br i1 %15, label %.loopexit.loopexit181.unr-lcssa, label %.lr.ph.split.us89.preheader.new

.lr.ph.split.us89.preheader.new:                  ; preds = %.lr.ph.split.us89.preheader
  %unroll_iter198 = and i32 %9, -2
  br label %.lr.ph.split.us89

.lr.ph.split.us.preheader:                        ; preds = %.lr.ph
  %xtraiter200 = and i32 %9, 1
  %16 = icmp eq i32 %9, 1
  br i1 %16, label %.loopexit.loopexit180.unr-lcssa, label %.lr.ph.split.us.preheader.new

.lr.ph.split.us.preheader.new:                    ; preds = %.lr.ph.split.us.preheader
  %unroll_iter203 = and i32 %9, -2
  br label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.thread.us.1, %.lr.ph.split.us.preheader.new
  %.04988.us = phi ptr [ %2, %.lr.ph.split.us.preheader.new ], [ %spec.select60.us.1, %.thread.us.1 ]
  %.05286.us = phi i32 [ 0, %.lr.ph.split.us.preheader.new ], [ %spec.select.us.1, %.thread.us.1 ]
  %17 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us.preheader.new ], [ %36, %.thread.us.1 ]
  %niter204 = phi i32 [ 0, %.lr.ph.split.us.preheader.new ], [ %niter204.next.1, %.thread.us.1 ]
  %18 = load i8, ptr %.04988.us, align 1, !tbaa !14
  %19 = zext i8 %18 to i32
  %20 = add nsw i32 %.05286.us, 1
  %21 = lshr i32 128, %.05286.us
  %22 = and i32 %21, %19
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %.thread.us

24:                                               ; preds = %.lr.ph.split.us
  %25 = add i32 %17, 1
  store i32 %25, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread.us

.thread.us:                                       ; preds = %24, %.lr.ph.split.us
  %26 = phi i32 [ %17, %.lr.ph.split.us ], [ %25, %24 ]
  %27 = icmp eq i32 %20, 8
  %spec.select.us = select i1 %27, i32 0, i32 %20
  %spec.select60.idx.us = zext i1 %27 to i64
  %spec.select60.us = getelementptr inbounds i8, ptr %.04988.us, i64 %spec.select60.idx.us
  %28 = load i8, ptr %spec.select60.us, align 1, !tbaa !14
  %29 = zext i8 %28 to i32
  %30 = add nsw i32 %spec.select.us, 1
  %31 = lshr i32 128, %spec.select.us
  %32 = and i32 %31, %29
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %.thread.us.1

34:                                               ; preds = %.thread.us
  %35 = add i32 %26, 1
  store i32 %35, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread.us.1

.thread.us.1:                                     ; preds = %34, %.thread.us
  %36 = phi i32 [ %26, %.thread.us ], [ %35, %34 ]
  %37 = icmp eq i32 %30, 8
  %spec.select.us.1 = select i1 %37, i32 0, i32 %30
  %spec.select60.idx.us.1 = zext i1 %37 to i64
  %spec.select60.us.1 = getelementptr inbounds i8, ptr %spec.select60.us, i64 %spec.select60.idx.us.1
  %niter204.next.1 = add i32 %niter204, 2
  %niter204.ncmp.1 = icmp eq i32 %niter204.next.1, %unroll_iter203
  br i1 %niter204.ncmp.1, label %.loopexit.loopexit180.unr-lcssa, label %.lr.ph.split.us, !llvm.loop !15

.lr.ph.split.us89:                                ; preds = %.thread78.us93.1, %.lr.ph.split.us89.preheader.new
  %.04988.us90 = phi ptr [ %2, %.lr.ph.split.us89.preheader.new ], [ %spec.select62.us.1, %.thread78.us93.1 ]
  %.05286.us92 = phi i32 [ 0, %.lr.ph.split.us89.preheader.new ], [ %spec.select61.us.1, %.thread78.us93.1 ]
  %38 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us89.preheader.new ], [ %58, %.thread78.us93.1 ]
  %niter199 = phi i32 [ 0, %.lr.ph.split.us89.preheader.new ], [ %niter199.next.1, %.thread78.us93.1 ]
  %39 = load i8, ptr %.04988.us90, align 1, !tbaa !14
  %40 = zext i8 %39 to i32
  %41 = add nsw i32 %.05286.us92, 2
  %42 = lshr i32 192, %41
  %43 = and i32 %42, %40
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %.thread78.us93

45:                                               ; preds = %.lr.ph.split.us89
  %46 = add i32 %38, 1
  store i32 %46, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us93

.thread78.us93:                                   ; preds = %45, %.lr.ph.split.us89
  %47 = phi i32 [ %46, %45 ], [ %38, %.lr.ph.split.us89 ]
  %48 = icmp eq i32 %41, 8
  %49 = add nsw i32 %.05286.us92, 4
  %spec.select62.idx.us = zext i1 %48 to i64
  %spec.select62.us = getelementptr inbounds i8, ptr %.04988.us90, i64 %spec.select62.idx.us
  %50 = load i8, ptr %spec.select62.us, align 1, !tbaa !14
  %51 = zext i8 %50 to i32
  %52 = select i1 %48, i32 2, i32 %49
  %53 = lshr i32 192, %52
  %54 = and i32 %53, %51
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %.thread78.us93.1

56:                                               ; preds = %.thread78.us93
  %57 = add i32 %47, 1
  store i32 %57, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us93.1

.thread78.us93.1:                                 ; preds = %56, %.thread78.us93
  %58 = phi i32 [ %57, %56 ], [ %47, %.thread78.us93 ]
  %59 = icmp eq i32 %52, 8
  %spec.select61.us.1 = select i1 %59, i32 0, i32 %52
  %spec.select62.idx.us.1 = zext i1 %59 to i64
  %spec.select62.us.1 = getelementptr inbounds i8, ptr %spec.select62.us, i64 %spec.select62.idx.us.1
  %niter199.next.1 = add i32 %niter199, 2
  %niter199.ncmp.1 = icmp eq i32 %niter199.next.1, %unroll_iter198
  br i1 %niter199.ncmp.1, label %.loopexit.loopexit181.unr-lcssa.loopexit, label %.lr.ph.split.us89, !llvm.loop !15

.lr.ph.split.us96:                                ; preds = %.thread78.us100.1, %.lr.ph.split.us96.preheader.new
  %.04988.us97 = phi ptr [ %2, %.lr.ph.split.us96.preheader.new ], [ %spec.select64.us.1, %.thread78.us100.1 ]
  %.05286.us99 = phi i32 [ 0, %.lr.ph.split.us96.preheader.new ], [ %spec.select63.us.1, %.thread78.us100.1 ]
  %60 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us96.preheader.new ], [ %80, %.thread78.us100.1 ]
  %niter194 = phi i32 [ 0, %.lr.ph.split.us96.preheader.new ], [ %niter194.next.1, %.thread78.us100.1 ]
  %61 = load i8, ptr %.04988.us97, align 1, !tbaa !14
  %62 = zext i8 %61 to i32
  %63 = add nsw i32 %.05286.us99, 4
  %64 = lshr i32 240, %63
  %65 = and i32 %64, %62
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %.thread78.us100

67:                                               ; preds = %.lr.ph.split.us96
  %68 = add i32 %60, 1
  store i32 %68, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us100

.thread78.us100:                                  ; preds = %67, %.lr.ph.split.us96
  %69 = phi i32 [ %68, %67 ], [ %60, %.lr.ph.split.us96 ]
  %70 = icmp eq i32 %63, 8
  %71 = add nsw i32 %.05286.us99, 8
  %spec.select64.idx.us = zext i1 %70 to i64
  %spec.select64.us = getelementptr inbounds i8, ptr %.04988.us97, i64 %spec.select64.idx.us
  %72 = load i8, ptr %spec.select64.us, align 1, !tbaa !14
  %73 = zext i8 %72 to i32
  %74 = select i1 %70, i32 4, i32 %71
  %75 = lshr i32 240, %74
  %76 = and i32 %75, %73
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %.thread78.us100.1

78:                                               ; preds = %.thread78.us100
  %79 = add i32 %69, 1
  store i32 %79, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us100.1

.thread78.us100.1:                                ; preds = %78, %.thread78.us100
  %80 = phi i32 [ %79, %78 ], [ %69, %.thread78.us100 ]
  %81 = icmp eq i32 %74, 8
  %spec.select63.us.1 = select i1 %81, i32 0, i32 %74
  %spec.select64.idx.us.1 = zext i1 %81 to i64
  %spec.select64.us.1 = getelementptr inbounds i8, ptr %spec.select64.us, i64 %spec.select64.idx.us.1
  %niter194.next.1 = add i32 %niter194, 2
  %niter194.ncmp.1 = icmp eq i32 %niter194.next.1, %unroll_iter193
  br i1 %niter194.ncmp.1, label %.loopexit.loopexit182.unr-lcssa.loopexit, label %.lr.ph.split.us96, !llvm.loop !15

.lr.ph.split.us103:                               ; preds = %.thread78.us107.1, %.lr.ph.split.us103.preheader.new
  %.04988.us104 = phi ptr [ %2, %.lr.ph.split.us103.preheader.new ], [ %89, %.thread78.us107.1 ]
  %82 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us103.preheader.new ], [ %94, %.thread78.us107.1 ]
  %niter189 = phi i32 [ 0, %.lr.ph.split.us103.preheader.new ], [ %niter189.next.1, %.thread78.us107.1 ]
  %83 = getelementptr inbounds i8, ptr %.04988.us104, i64 1
  %84 = load i8, ptr %.04988.us104, align 1, !tbaa !14
  %85 = icmp eq i8 %84, 0
  br i1 %85, label %86, label %.thread78.us107

86:                                               ; preds = %.lr.ph.split.us103
  %87 = add i32 %82, 1
  store i32 %87, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us107

.thread78.us107:                                  ; preds = %86, %.lr.ph.split.us103
  %88 = phi i32 [ %82, %.lr.ph.split.us103 ], [ %87, %86 ]
  %89 = getelementptr inbounds i8, ptr %.04988.us104, i64 2
  %90 = load i8, ptr %83, align 1, !tbaa !14
  %91 = icmp eq i8 %90, 0
  br i1 %91, label %92, label %.thread78.us107.1

92:                                               ; preds = %.thread78.us107
  %93 = add i32 %88, 1
  store i32 %93, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us107.1

.thread78.us107.1:                                ; preds = %92, %.thread78.us107
  %94 = phi i32 [ %88, %.thread78.us107 ], [ %93, %92 ]
  %niter189.next.1 = add i32 %niter189, 2
  %niter189.ncmp.1 = icmp eq i32 %niter189.next.1, %unroll_iter188
  br i1 %niter189.ncmp.1, label %.loopexit.loopexit183.unr-lcssa, label %.lr.ph.split.us103, !llvm.loop !15

.lr.ph.split.us110:                               ; preds = %.thread78.us114.1, %.lr.ph.split.us110.preheader.new
  %.04988.us111 = phi ptr [ %2, %.lr.ph.split.us110.preheader.new ], [ %113, %.thread78.us114.1 ]
  %95 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us110.preheader.new ], [ %112, %.thread78.us114.1 ]
  %niter = phi i32 [ 0, %.lr.ph.split.us110.preheader.new ], [ %niter.next.1, %.thread78.us114.1 ]
  %96 = load i8, ptr %.04988.us111, align 1, !tbaa !14
  %97 = getelementptr inbounds i8, ptr %.04988.us111, i64 1
  %98 = load i8, ptr %97, align 1, !tbaa !14
  %99 = or i8 %98, %96
  %100 = icmp eq i8 %99, 0
  br i1 %100, label %101, label %.thread78.us114

101:                                              ; preds = %.lr.ph.split.us110
  %102 = add i32 %95, 1
  store i32 %102, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us114

.thread78.us114:                                  ; preds = %101, %.lr.ph.split.us110
  %103 = phi i32 [ %102, %101 ], [ %95, %.lr.ph.split.us110 ]
  %104 = getelementptr inbounds i8, ptr %.04988.us111, i64 2
  %105 = load i8, ptr %104, align 1, !tbaa !14
  %106 = getelementptr inbounds i8, ptr %.04988.us111, i64 3
  %107 = load i8, ptr %106, align 1, !tbaa !14
  %108 = or i8 %107, %105
  %109 = icmp eq i8 %108, 0
  br i1 %109, label %110, label %.thread78.us114.1

110:                                              ; preds = %.thread78.us114
  %111 = add i32 %103, 1
  store i32 %111, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread78.us114.1

.thread78.us114.1:                                ; preds = %110, %.thread78.us114
  %112 = phi i32 [ %111, %110 ], [ %103, %.thread78.us114 ]
  %113 = getelementptr inbounds i8, ptr %.04988.us111, i64 4
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit184.unr-lcssa, label %.lr.ph.split.us110, !llvm.loop !15

114:                                              ; preds = %5
  %115 = getelementptr inbounds i8, ptr %1, i64 18
  %116 = load i8, ptr %115, align 2, !tbaa !17
  %117 = zext i8 %116 to i32
  %118 = icmp ugt i8 %7, 3
  %119 = sext i1 %118 to i32
  %spec.select65 = add nsw i32 %117, %119
  %120 = load i32, ptr %1, align 8, !tbaa !11
  %.not143 = icmp ne i32 %120, 0
  %121 = icmp sgt i32 %spec.select65, 0
  %or.cond = select i1 %.not143, i1 %121, i1 false
  br i1 %or.cond, label %.preheader.lr.ph.split.us, label %.loopexit

.preheader.lr.ph.split.us:                        ; preds = %114
  %zero_samples.promoted128 = load i32, ptr @zero_samples, align 4, !tbaa !12
  %122 = getelementptr inbounds i8, ptr %1, i64 17
  %123 = load i8, ptr %122, align 1, !tbaa !13
  %124 = zext nneg i32 %spec.select65 to i64
  %125 = icmp eq i8 %123, 16
  %spec.select66.v.us = select i1 %125, i64 2, i64 1
  %126 = add nsw i32 %119, %117
  %127 = add nsw i32 %126, -1
  %xtraiter205 = and i32 %spec.select65, 1
  %128 = icmp eq i32 %127, 0
  %unroll_iter211 = and i32 %spec.select65, 2147483646
  %lcmp.mod208.not = icmp eq i32 %xtraiter205, 0
  %xtraiter213 = and i32 %spec.select65, 1
  %129 = icmp eq i32 %127, 0
  %unroll_iter218 = and i32 %spec.select65, 2147483646
  %lcmp.mod216.not = icmp eq i32 %xtraiter213, 0
  %.10.us.idx = select i1 %118, i64 %spec.select66.v.us, i64 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %.6131.us = phi ptr [ %2, %.preheader.lr.ph.split.us ], [ %.10.us, %._crit_edge.us ]
  %.050130.us = phi i32 [ 0, %.preheader.lr.ph.split.us ], [ %145, %._crit_edge.us ]
  %130 = phi i32 [ %zero_samples.promoted128, %.preheader.lr.ph.split.us ], [ %144, %._crit_edge.us ]
  switch i8 %123, label %._crit_edge.us [
    i8 8, label %.lr.ph120.split.us.us.preheader
    i8 16, label %.lr.ph120.split.us121.us.preheader
  ]

.lr.ph120.split.us121.us.preheader:               ; preds = %.preheader.us
  br i1 %128, label %._crit_edge.us.loopexit.unr-lcssa, label %.lr.ph120.split.us121.us

.lr.ph120.split.us.us.preheader:                  ; preds = %.preheader.us
  br i1 %129, label %._crit_edge.us.loopexit144.unr-lcssa, label %.lr.ph120.split.us.us

._crit_edge.us.loopexit144.unr-lcssa:             ; preds = %.thread83.us.us.1, %.lr.ph120.split.us.us.preheader
  %.lcssa179.ph = phi i32 [ poison, %.lr.ph120.split.us.us.preheader ], [ %160, %.thread83.us.us.1 ]
  %.unr214 = phi i32 [ %130, %.lr.ph120.split.us.us.preheader ], [ %160, %.thread83.us.us.1 ]
  %.7118.us.us.unr = phi ptr [ %.6131.us, %.lr.ph120.split.us.us.preheader ], [ %155, %.thread83.us.us.1 ]
  %.unr215 = phi i32 [ %130, %.lr.ph120.split.us.us.preheader ], [ %161, %.thread83.us.us.1 ]
  br i1 %lcmp.mod216.not, label %._crit_edge.us.loopexit144, label %.lr.ph120.split.us.us.epil

.lr.ph120.split.us.us.epil:                       ; preds = %._crit_edge.us.loopexit144.unr-lcssa
  %131 = load i8, ptr %.7118.us.us.unr, align 1, !tbaa !14
  %132 = icmp eq i8 %131, 0
  br i1 %132, label %133, label %._crit_edge.us.loopexit144

133:                                              ; preds = %.lr.ph120.split.us.us.epil
  %134 = add i32 %.unr215, 1
  store i32 %134, ptr @zero_samples, align 4, !tbaa !12
  br label %._crit_edge.us.loopexit144

._crit_edge.us.loopexit144:                       ; preds = %.lr.ph120.split.us.us.epil, %133, %._crit_edge.us.loopexit144.unr-lcssa
  %.lcssa179 = phi i32 [ %.lcssa179.ph, %._crit_edge.us.loopexit144.unr-lcssa ], [ %.unr214, %.lr.ph120.split.us.us.epil ], [ %134, %133 ]
  %scevgep = getelementptr i8, ptr %.6131.us, i64 %124
  br label %._crit_edge.us

._crit_edge.us.loopexit.unr-lcssa:                ; preds = %.thread83.us124.us.1, %.lr.ph120.split.us121.us.preheader
  %.lcssa178.ph = phi i32 [ poison, %.lr.ph120.split.us121.us.preheader ], [ %181, %.thread83.us124.us.1 ]
  %.lcssa.ph = phi ptr [ poison, %.lr.ph120.split.us121.us.preheader ], [ %183, %.thread83.us124.us.1 ]
  %.unr206 = phi i32 [ %130, %.lr.ph120.split.us121.us.preheader ], [ %181, %.thread83.us124.us.1 ]
  %.7118.us123.us.unr = phi ptr [ %.6131.us, %.lr.ph120.split.us121.us.preheader ], [ %183, %.thread83.us124.us.1 ]
  %.unr207 = phi i32 [ %130, %.lr.ph120.split.us121.us.preheader ], [ %182, %.thread83.us124.us.1 ]
  br i1 %lcmp.mod208.not, label %._crit_edge.us, label %.lr.ph120.split.us121.us.epil

.lr.ph120.split.us121.us.epil:                    ; preds = %._crit_edge.us.loopexit.unr-lcssa
  %135 = load i8, ptr %.7118.us123.us.unr, align 1, !tbaa !14
  %136 = getelementptr inbounds i8, ptr %.7118.us123.us.unr, i64 1
  %137 = load i8, ptr %136, align 1, !tbaa !14
  %138 = or i8 %137, %135
  %139 = icmp eq i8 %138, 0
  br i1 %139, label %140, label %.thread83.us124.us.epil

140:                                              ; preds = %.lr.ph120.split.us121.us.epil
  %141 = add i32 %.unr207, 1
  store i32 %141, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread83.us124.us.epil

.thread83.us124.us.epil:                          ; preds = %140, %.lr.ph120.split.us121.us.epil
  %142 = phi i32 [ %141, %140 ], [ %.unr206, %.lr.ph120.split.us121.us.epil ]
  %143 = getelementptr inbounds i8, ptr %.7118.us123.us.unr, i64 2
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %.thread83.us124.us.epil, %._crit_edge.us.loopexit.unr-lcssa, %.preheader.us, %._crit_edge.us.loopexit144
  %144 = phi i32 [ %.lcssa179, %._crit_edge.us.loopexit144 ], [ %130, %.preheader.us ], [ %.lcssa178.ph, %._crit_edge.us.loopexit.unr-lcssa ], [ %142, %.thread83.us124.us.epil ]
  %.us-phi.us = phi ptr [ %scevgep, %._crit_edge.us.loopexit144 ], [ %.6131.us, %.preheader.us ], [ %.lcssa.ph, %._crit_edge.us.loopexit.unr-lcssa ], [ %143, %.thread83.us124.us.epil ]
  %.10.us = getelementptr inbounds i8, ptr %.us-phi.us, i64 %.10.us.idx
  %145 = add nuw i32 %.050130.us, 1
  %exitcond163.not = icmp eq i32 %145, %120
  br i1 %exitcond163.not, label %.loopexit, label %.preheader.us, !llvm.loop !18

.lr.ph120.split.us.us:                            ; preds = %.lr.ph120.split.us.us.preheader, %.thread83.us.us.1
  %146 = phi i32 [ %160, %.thread83.us.us.1 ], [ %130, %.lr.ph120.split.us.us.preheader ]
  %.7118.us.us = phi ptr [ %155, %.thread83.us.us.1 ], [ %.6131.us, %.lr.ph120.split.us.us.preheader ]
  %147 = phi i32 [ %161, %.thread83.us.us.1 ], [ %130, %.lr.ph120.split.us.us.preheader ]
  %niter219 = phi i32 [ %niter219.next.1, %.thread83.us.us.1 ], [ 0, %.lr.ph120.split.us.us.preheader ]
  %148 = getelementptr inbounds i8, ptr %.7118.us.us, i64 1
  %149 = load i8, ptr %.7118.us.us, align 1, !tbaa !14
  %150 = icmp eq i8 %149, 0
  br i1 %150, label %151, label %.thread83.us.us

151:                                              ; preds = %.lr.ph120.split.us.us
  %152 = add i32 %147, 1
  store i32 %152, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread83.us.us

.thread83.us.us:                                  ; preds = %151, %.lr.ph120.split.us.us
  %153 = phi i32 [ %146, %.lr.ph120.split.us.us ], [ %152, %151 ]
  %154 = phi i32 [ %147, %.lr.ph120.split.us.us ], [ %152, %151 ]
  %155 = getelementptr inbounds i8, ptr %.7118.us.us, i64 2
  %156 = load i8, ptr %148, align 1, !tbaa !14
  %157 = icmp eq i8 %156, 0
  br i1 %157, label %158, label %.thread83.us.us.1

158:                                              ; preds = %.thread83.us.us
  %159 = add i32 %154, 1
  store i32 %159, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread83.us.us.1

.thread83.us.us.1:                                ; preds = %158, %.thread83.us.us
  %160 = phi i32 [ %153, %.thread83.us.us ], [ %159, %158 ]
  %161 = phi i32 [ %154, %.thread83.us.us ], [ %159, %158 ]
  %niter219.next.1 = add i32 %niter219, 2
  %niter219.ncmp.1 = icmp eq i32 %niter219.next.1, %unroll_iter218
  br i1 %niter219.ncmp.1, label %._crit_edge.us.loopexit144.unr-lcssa, label %.lr.ph120.split.us.us, !llvm.loop !19

.lr.ph120.split.us121.us:                         ; preds = %.lr.ph120.split.us121.us.preheader, %.thread83.us124.us.1
  %162 = phi i32 [ %181, %.thread83.us124.us.1 ], [ %130, %.lr.ph120.split.us121.us.preheader ]
  %.7118.us123.us = phi ptr [ %183, %.thread83.us124.us.1 ], [ %.6131.us, %.lr.ph120.split.us121.us.preheader ]
  %163 = phi i32 [ %182, %.thread83.us124.us.1 ], [ %130, %.lr.ph120.split.us121.us.preheader ]
  %niter212 = phi i32 [ %niter212.next.1, %.thread83.us124.us.1 ], [ 0, %.lr.ph120.split.us121.us.preheader ]
  %164 = load i8, ptr %.7118.us123.us, align 1, !tbaa !14
  %165 = getelementptr inbounds i8, ptr %.7118.us123.us, i64 1
  %166 = load i8, ptr %165, align 1, !tbaa !14
  %167 = or i8 %166, %164
  %168 = icmp eq i8 %167, 0
  br i1 %168, label %169, label %.thread83.us124.us

169:                                              ; preds = %.lr.ph120.split.us121.us
  %170 = add i32 %163, 1
  store i32 %170, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread83.us124.us

.thread83.us124.us:                               ; preds = %169, %.lr.ph120.split.us121.us
  %171 = phi i32 [ %170, %169 ], [ %162, %.lr.ph120.split.us121.us ]
  %172 = phi i32 [ %170, %169 ], [ %163, %.lr.ph120.split.us121.us ]
  %173 = getelementptr inbounds i8, ptr %.7118.us123.us, i64 2
  %174 = load i8, ptr %173, align 1, !tbaa !14
  %175 = getelementptr inbounds i8, ptr %.7118.us123.us, i64 3
  %176 = load i8, ptr %175, align 1, !tbaa !14
  %177 = or i8 %176, %174
  %178 = icmp eq i8 %177, 0
  br i1 %178, label %179, label %.thread83.us124.us.1

179:                                              ; preds = %.thread83.us124.us
  %180 = add i32 %172, 1
  store i32 %180, ptr @zero_samples, align 4, !tbaa !12
  br label %.thread83.us124.us.1

.thread83.us124.us.1:                             ; preds = %179, %.thread83.us124.us
  %181 = phi i32 [ %180, %179 ], [ %171, %.thread83.us124.us ]
  %182 = phi i32 [ %180, %179 ], [ %172, %.thread83.us124.us ]
  %183 = getelementptr inbounds i8, ptr %.7118.us123.us, i64 4
  %niter212.next.1 = add i32 %niter212, 2
  %niter212.ncmp.1 = icmp eq i32 %niter212.next.1, %unroll_iter211
  br i1 %niter212.ncmp.1, label %._crit_edge.us.loopexit.unr-lcssa, label %.lr.ph120.split.us121.us, !llvm.loop !19

.loopexit.loopexit180.unr-lcssa:                  ; preds = %.thread.us.1, %.lr.ph.split.us.preheader
  %.04988.us.unr = phi ptr [ %2, %.lr.ph.split.us.preheader ], [ %spec.select60.us.1, %.thread.us.1 ]
  %.05286.us.unr = phi i32 [ 0, %.lr.ph.split.us.preheader ], [ %spec.select.us.1, %.thread.us.1 ]
  %.unr201 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us.preheader ], [ %36, %.thread.us.1 ]
  %lcmp.mod202.not = icmp eq i32 %xtraiter200, 0
  br i1 %lcmp.mod202.not, label %.loopexit, label %.lr.ph.split.us.epil

.lr.ph.split.us.epil:                             ; preds = %.loopexit.loopexit180.unr-lcssa
  %184 = load i8, ptr %.04988.us.unr, align 1, !tbaa !14
  %185 = zext i8 %184 to i32
  %186 = lshr i32 128, %.05286.us.unr
  %187 = and i32 %186, %185
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %189, label %.loopexit

189:                                              ; preds = %.lr.ph.split.us.epil
  %190 = add i32 %.unr201, 1
  store i32 %190, ptr @zero_samples, align 4, !tbaa !12
  br label %.loopexit

.loopexit.loopexit181.unr-lcssa.loopexit:         ; preds = %.thread78.us93.1
  %191 = add nsw i32 %spec.select61.us.1, 2
  br label %.loopexit.loopexit181.unr-lcssa

.loopexit.loopexit181.unr-lcssa:                  ; preds = %.loopexit.loopexit181.unr-lcssa.loopexit, %.lr.ph.split.us89.preheader
  %.04988.us90.unr = phi ptr [ %2, %.lr.ph.split.us89.preheader ], [ %spec.select62.us.1, %.loopexit.loopexit181.unr-lcssa.loopexit ]
  %.05286.us92.unr = phi i32 [ 2, %.lr.ph.split.us89.preheader ], [ %191, %.loopexit.loopexit181.unr-lcssa.loopexit ]
  %.unr196 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us89.preheader ], [ %58, %.loopexit.loopexit181.unr-lcssa.loopexit ]
  %lcmp.mod197.not = icmp eq i32 %xtraiter195, 0
  br i1 %lcmp.mod197.not, label %.loopexit, label %.lr.ph.split.us89.epil

.lr.ph.split.us89.epil:                           ; preds = %.loopexit.loopexit181.unr-lcssa
  %192 = load i8, ptr %.04988.us90.unr, align 1, !tbaa !14
  %193 = zext i8 %192 to i32
  %194 = lshr i32 192, %.05286.us92.unr
  %195 = and i32 %194, %193
  %196 = icmp eq i32 %195, 0
  br i1 %196, label %197, label %.loopexit

197:                                              ; preds = %.lr.ph.split.us89.epil
  %198 = add i32 %.unr196, 1
  store i32 %198, ptr @zero_samples, align 4, !tbaa !12
  br label %.loopexit

.loopexit.loopexit182.unr-lcssa.loopexit:         ; preds = %.thread78.us100.1
  %199 = add nsw i32 %spec.select63.us.1, 4
  br label %.loopexit.loopexit182.unr-lcssa

.loopexit.loopexit182.unr-lcssa:                  ; preds = %.loopexit.loopexit182.unr-lcssa.loopexit, %.lr.ph.split.us96.preheader
  %.04988.us97.unr = phi ptr [ %2, %.lr.ph.split.us96.preheader ], [ %spec.select64.us.1, %.loopexit.loopexit182.unr-lcssa.loopexit ]
  %.05286.us99.unr = phi i32 [ 4, %.lr.ph.split.us96.preheader ], [ %199, %.loopexit.loopexit182.unr-lcssa.loopexit ]
  %.unr191 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us96.preheader ], [ %80, %.loopexit.loopexit182.unr-lcssa.loopexit ]
  %lcmp.mod192.not = icmp eq i32 %xtraiter190, 0
  br i1 %lcmp.mod192.not, label %.loopexit, label %.lr.ph.split.us96.epil

.lr.ph.split.us96.epil:                           ; preds = %.loopexit.loopexit182.unr-lcssa
  %200 = load i8, ptr %.04988.us97.unr, align 1, !tbaa !14
  %201 = zext i8 %200 to i32
  %202 = lshr i32 240, %.05286.us99.unr
  %203 = and i32 %202, %201
  %204 = icmp eq i32 %203, 0
  br i1 %204, label %205, label %.loopexit

205:                                              ; preds = %.lr.ph.split.us96.epil
  %206 = add i32 %.unr191, 1
  store i32 %206, ptr @zero_samples, align 4, !tbaa !12
  br label %.loopexit

.loopexit.loopexit183.unr-lcssa:                  ; preds = %.thread78.us107.1, %.lr.ph.split.us103.preheader
  %.04988.us104.unr = phi ptr [ %2, %.lr.ph.split.us103.preheader ], [ %89, %.thread78.us107.1 ]
  %.unr186 = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us103.preheader ], [ %94, %.thread78.us107.1 ]
  %lcmp.mod187.not = icmp eq i32 %xtraiter185, 0
  br i1 %lcmp.mod187.not, label %.loopexit, label %.lr.ph.split.us103.epil

.lr.ph.split.us103.epil:                          ; preds = %.loopexit.loopexit183.unr-lcssa
  %207 = load i8, ptr %.04988.us104.unr, align 1, !tbaa !14
  %208 = icmp eq i8 %207, 0
  br i1 %208, label %209, label %.loopexit

209:                                              ; preds = %.lr.ph.split.us103.epil
  %210 = add i32 %.unr186, 1
  store i32 %210, ptr @zero_samples, align 4, !tbaa !12
  br label %.loopexit

.loopexit.loopexit184.unr-lcssa:                  ; preds = %.thread78.us114.1, %.lr.ph.split.us110.preheader
  %.04988.us111.unr = phi ptr [ %2, %.lr.ph.split.us110.preheader ], [ %113, %.thread78.us114.1 ]
  %.unr = phi i32 [ %zero_samples.promoted, %.lr.ph.split.us110.preheader ], [ %112, %.thread78.us114.1 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph.split.us110.epil

.lr.ph.split.us110.epil:                          ; preds = %.loopexit.loopexit184.unr-lcssa
  %211 = load i8, ptr %.04988.us111.unr, align 1, !tbaa !14
  %212 = getelementptr inbounds i8, ptr %.04988.us111.unr, i64 1
  %213 = load i8, ptr %212, align 1, !tbaa !14
  %214 = or i8 %213, %211
  %215 = icmp eq i8 %214, 0
  br i1 %215, label %216, label %.loopexit

216:                                              ; preds = %.lr.ph.split.us110.epil
  %217 = add i32 %.unr, 1
  store i32 %217, ptr @zero_samples, align 4, !tbaa !12
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit184.unr-lcssa, %216, %.lr.ph.split.us110.epil, %.loopexit.loopexit183.unr-lcssa, %209, %.lr.ph.split.us103.epil, %.loopexit.loopexit182.unr-lcssa, %205, %.lr.ph.split.us96.epil, %.loopexit.loopexit181.unr-lcssa, %197, %.lr.ph.split.us89.epil, %.loopexit.loopexit180.unr-lcssa, %189, %.lr.ph.split.us.epil, %._crit_edge.us, %.lr.ph, %8, %114, %3
  ret void
}

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, argmem: read, inaccessiblemem: none) 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" }

!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, !8, i64 16}
!6 = !{!"png_row_info_struct", !7, i64 0, !10, i64 8, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !8, i64 17}
!14 = !{!8, !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !8, i64 18}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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