; LLVM IR from fwip/fastqz :: libzpaq.ll (ZN7libzpaq9Predictor8predict0Ev)

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

%"class.libzpaq::Predictor" = type <{ i32, i32, [256 x i32], [256 x i32], ptr, [256 x %"struct.libzpaq::Component"], [256 x i32], [1024 x i32], [4096 x i16], [32768 x i16], %"class.libzpaq::StateTable", ptr, i32, [4 x i8] }>
%"struct.libzpaq::Component" = type { i64, i64, i64, i64, i64, %"class.libzpaq::Array", %"class.libzpaq::Array.0", %"class.libzpaq::Array.2" }
%"class.libzpaq::Array" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array.0" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array.2" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::StateTable" = type { [1024 x i8] }
%"class.libzpaq::ZPAQL" = type { ptr, ptr, %"class.libzpaq::Array.0", i32, i32, i32, [4 x i8], %"class.libzpaq::Array.0", %"class.libzpaq::Array", %"class.libzpaq::Array", %"class.libzpaq::Array.4", i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%"class.libzpaq::Array.4" = type <{ ptr, i64, i32, [4 x i8] }>

@_ZN7libzpaq8compsizeE = external dso_local constant <{ [10 x i32], [246 x i32] }>, align 16
@.str.24 = external hidden unnamed_addr constant [34 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

declare void @_ZN7libzpaq5errorEPKc(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEclEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7libzpaq9Predictor6squashEi(ptr noundef nonnull align 8 dereferenceable(110620), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZN7libzpaq5ArrayItEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7libzpaq9Predictor8predict0Ev(ptr noundef nonnull align 8 dereferenceable(110620) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %16 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 4
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %17, i32 0, i32 2
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %18, i64 noundef 6)
  %20 = load i8, ptr %19, align 1, !tbaa !13
  %21 = zext i8 %20 to i32
  store i32 %21, ptr %3, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %22 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %"class.libzpaq::ZPAQL", ptr %23, i32 0, i32 2
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %24, i64 noundef 7)
  store ptr %25, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %26

26:                                               ; preds = %512, %1
  %27 = load i32, ptr %5, align 4, !tbaa !14
  %28 = load i32, ptr %3, align 4, !tbaa !14
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %515

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %32 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 5
  %33 = load i32, ptr %5, align 4, !tbaa !14
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [256 x %"struct.libzpaq::Component"], ptr %32, i64 0, i64 %34
  store ptr %35, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 0
  %38 = load i8, ptr %37, align 1, !tbaa !13
  %39 = zext i8 %38 to i32
  switch i32 %39, label %501 [
    i32 1, label %502
    i32 2, label %40
    i32 3, label %65
    i32 4, label %123
    i32 5, label %177
    i32 6, label %209
    i32 7, label %264
    i32 8, label %352
    i32 9, label %426
  ]

40:                                               ; preds = %31
  %41 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 3
  %42 = load i32, ptr %5, align 4, !tbaa !14
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [256 x i32], ptr %41, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !14
  %46 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = xor i32 %45, %47
  %49 = zext i32 %48 to i64
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.libzpaq::Component", ptr %50, i32 0, i32 1
  store i64 %49, ptr %51, align 8, !tbaa !16
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.libzpaq::Component", ptr %52, i32 0, i32 5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.libzpaq::Component", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !16
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %53, i64 noundef %56)
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = lshr i32 %58, 17
  %60 = call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %59)
  %61 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %62 = load i32, ptr %5, align 4, !tbaa !14
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [256 x i32], ptr %61, i64 0, i64 %63
  store i32 %60, ptr %64, align 4, !tbaa !14
  br label %502

65:                                               ; preds = %31
  %66 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !22
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %74, label %69

69:                                               ; preds = %65
  %70 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !22
  %72 = and i32 %71, 240
  %73 = icmp eq i32 %72, 16
  br i1 %73, label %74, label %94

74:                                               ; preds = %69, %65
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.libzpaq::Component", ptr %75, i32 0, i32 6
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 1
  %79 = load i8, ptr %78, align 1, !tbaa !13
  %80 = zext i8 %79 to i32
  %81 = add nsw i32 %80, 2
  %82 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 3
  %83 = load i32, ptr %5, align 4, !tbaa !14
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [256 x i32], ptr %82, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !14
  %87 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !22
  %89 = mul nsw i32 16, %88
  %90 = add i32 %86, %89
  %91 = call noundef i64 @_ZN7libzpaq9Predictor4findERNS_5ArrayIhEEij(ptr noundef nonnull align 8 dereferenceable(110620) %15, ptr noundef nonnull align 8 dereferenceable(20) %76, i32 noundef %81, i32 noundef %90)
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.libzpaq::Component", ptr %92, i32 0, i32 4
  store i64 %91, ptr %93, align 8, !tbaa !23
  br label %94

94:                                               ; preds = %74, %69
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.libzpaq::Component", ptr %95, i32 0, i32 6
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.libzpaq::Component", ptr %97, i32 0, i32 4
  %99 = load i64, ptr %98, align 8, !tbaa !23
  %100 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !15
  %102 = and i32 %101, 15
  %103 = sext i32 %102 to i64
  %104 = add i64 %99, %103
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %96, i64 noundef %104)
  %106 = load i8, ptr %105, align 1, !tbaa !13
  %107 = zext i8 %106 to i64
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.libzpaq::Component", ptr %108, i32 0, i32 1
  store i64 %107, ptr %109, align 8, !tbaa !16
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.libzpaq::Component", ptr %110, i32 0, i32 5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.libzpaq::Component", ptr %112, i32 0, i32 1
  %114 = load i64, ptr %113, align 8, !tbaa !16
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %111, i64 noundef %114)
  %116 = load i32, ptr %115, align 4, !tbaa !14
  %117 = lshr i32 %116, 8
  %118 = call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %117)
  %119 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %120 = load i32, ptr %5, align 4, !tbaa !14
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [256 x i32], ptr %119, i64 0, i64 %121
  store i32 %118, ptr %122, align 4, !tbaa !14
  br label %502

123:                                              ; preds = %31
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.libzpaq::Component", ptr %124, i32 0, i32 2
  %126 = load i64, ptr %125, align 8, !tbaa !24
  %127 = icmp eq i64 %126, 0
  br i1 %127, label %128, label %133

128:                                              ; preds = %123
  %129 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %130 = load i32, ptr %5, align 4, !tbaa !14
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [256 x i32], ptr %129, i64 0, i64 %131
  store i32 0, ptr %132, align 4, !tbaa !14
  br label %176

133:                                              ; preds = %123
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.libzpaq::Component", ptr %134, i32 0, i32 6
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.libzpaq::Component", ptr %136, i32 0, i32 0
  %138 = load i64, ptr %137, align 8, !tbaa !25
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.libzpaq::Component", ptr %139, i32 0, i32 3
  %141 = load i64, ptr %140, align 8, !tbaa !26
  %142 = sub i64 %138, %141
  %143 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEclEm(ptr noundef nonnull align 8 dereferenceable(20) %135, i64 noundef %142)
  %144 = load i8, ptr %143, align 1, !tbaa !13
  %145 = zext i8 %144 to i32
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.libzpaq::Component", ptr %146, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !16
  %149 = sub i64 7, %148
  %150 = trunc i64 %149 to i32
  %151 = ashr i32 %145, %150
  %152 = and i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.libzpaq::Component", ptr %154, i32 0, i32 4
  store i64 %153, ptr %155, align 8, !tbaa !23
  %156 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 6
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.libzpaq::Component", ptr %157, i32 0, i32 2
  %159 = load i64, ptr %158, align 8, !tbaa !24
  %160 = getelementptr inbounds [256 x i32], ptr %156, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !14
  %162 = sext i32 %161 to i64
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.libzpaq::Component", ptr %163, i32 0, i32 4
  %165 = load i64, ptr %164, align 8, !tbaa !23
  %166 = mul i64 %165, -2
  %167 = add i64 %166, 1
  %168 = mul i64 %162, %167
  %169 = and i64 %168, 32767
  %170 = trunc i64 %169 to i32
  %171 = call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %170)
  %172 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %173 = load i32, ptr %5, align 4, !tbaa !14
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [256 x i32], ptr %172, i64 0, i64 %174
  store i32 %171, ptr %175, align 4, !tbaa !14
  br label %176

176:                                              ; preds = %133, %128
  br label %502

177:                                              ; preds = %31
  %178 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i64 1
  %181 = load i8, ptr %180, align 1, !tbaa !13
  %182 = zext i8 %181 to i64
  %183 = getelementptr inbounds [256 x i32], ptr %178, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !14
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %185, i64 3
  %187 = load i8, ptr %186, align 1, !tbaa !13
  %188 = zext i8 %187 to i32
  %189 = mul nsw i32 %184, %188
  %190 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %191, i64 2
  %193 = load i8, ptr %192, align 1, !tbaa !13
  %194 = zext i8 %193 to i64
  %195 = getelementptr inbounds [256 x i32], ptr %190, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !14
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 3
  %199 = load i8, ptr %198, align 1, !tbaa !13
  %200 = zext i8 %199 to i32
  %201 = sub nsw i32 256, %200
  %202 = mul nsw i32 %196, %201
  %203 = add nsw i32 %189, %202
  %204 = ashr i32 %203, 8
  %205 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %206 = load i32, ptr %5, align 4, !tbaa !14
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [256 x i32], ptr %205, i64 0, i64 %207
  store i32 %204, ptr %208, align 4, !tbaa !14
  br label %502

209:                                              ; preds = %31
  %210 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 3
  %211 = load i32, ptr %5, align 4, !tbaa !14
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [256 x i32], ptr %210, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !14
  %215 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !22
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i64 5
  %219 = load i8, ptr %218, align 1, !tbaa !13
  %220 = zext i8 %219 to i32
  %221 = and i32 %216, %220
  %222 = add i32 %214, %221
  %223 = zext i32 %222 to i64
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.libzpaq::Component", ptr %224, i32 0, i32 4
  %226 = load i64, ptr %225, align 8, !tbaa !23
  %227 = sub i64 %226, 1
  %228 = and i64 %223, %227
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.libzpaq::Component", ptr %229, i32 0, i32 1
  store i64 %228, ptr %230, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.libzpaq::Component", ptr %231, i32 0, i32 7
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.libzpaq::Component", ptr %233, i32 0, i32 1
  %235 = load i64, ptr %234, align 8, !tbaa !16
  %236 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN7libzpaq5ArrayItEixEm(ptr noundef nonnull align 8 dereferenceable(20) %232, i64 noundef %235)
  %237 = load i16, ptr %236, align 2, !tbaa !27
  %238 = zext i16 %237 to i32
  store i32 %238, ptr %8, align 4, !tbaa !14
  %239 = load i32, ptr %8, align 4, !tbaa !14
  %240 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds i8, ptr %241, i64 2
  %243 = load i8, ptr %242, align 1, !tbaa !13
  %244 = zext i8 %243 to i64
  %245 = getelementptr inbounds [256 x i32], ptr %240, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !14
  %247 = mul nsw i32 %239, %246
  %248 = load i32, ptr %8, align 4, !tbaa !14
  %249 = sub nsw i32 65536, %248
  %250 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds i8, ptr %251, i64 3
  %253 = load i8, ptr %252, align 1, !tbaa !13
  %254 = zext i8 %253 to i64
  %255 = getelementptr inbounds [256 x i32], ptr %250, i64 0, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !14
  %257 = mul nsw i32 %249, %256
  %258 = add nsw i32 %247, %257
  %259 = ashr i32 %258, 16
  %260 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %261 = load i32, ptr %5, align 4, !tbaa !14
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [256 x i32], ptr %260, i64 0, i64 %262
  store i32 %259, ptr %263, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %502

264:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds i8, ptr %265, i64 3
  %267 = load i8, ptr %266, align 1, !tbaa !13
  %268 = zext i8 %267 to i32
  store i32 %268, ptr %9, align 4, !tbaa !14
  %269 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 3
  %270 = load i32, ptr %5, align 4, !tbaa !14
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [256 x i32], ptr %269, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !14
  %274 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %275 = load i32, ptr %274, align 8, !tbaa !22
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds i8, ptr %276, i64 5
  %278 = load i8, ptr %277, align 1, !tbaa !13
  %279 = zext i8 %278 to i32
  %280 = and i32 %275, %279
  %281 = add i32 %273, %280
  %282 = zext i32 %281 to i64
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.libzpaq::Component", ptr %283, i32 0, i32 1
  store i64 %282, ptr %284, align 8, !tbaa !16
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %"struct.libzpaq::Component", ptr %285, i32 0, i32 1
  %287 = load i64, ptr %286, align 8, !tbaa !16
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.libzpaq::Component", ptr %288, i32 0, i32 4
  %290 = load i64, ptr %289, align 8, !tbaa !23
  %291 = sub i64 %290, 1
  %292 = and i64 %287, %291
  %293 = load i32, ptr %9, align 4, !tbaa !14
  %294 = sext i32 %293 to i64
  %295 = mul i64 %292, %294
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.libzpaq::Component", ptr %296, i32 0, i32 1
  store i64 %295, ptr %297, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.libzpaq::Component", ptr %298, i32 0, i32 5
  %300 = load ptr, ptr %7, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.libzpaq::Component", ptr %300, i32 0, i32 1
  %302 = load i64, ptr %301, align 8, !tbaa !16
  %303 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEixEm(ptr noundef nonnull align 8 dereferenceable(20) %299, i64 noundef %302)
  store ptr %303, ptr %10, align 8, !tbaa !5
  %304 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %305 = load i32, ptr %5, align 4, !tbaa !14
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [256 x i32], ptr %304, i64 0, i64 %306
  store i32 0, ptr %307, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !14
  br label %308

308:                                              ; preds = %337, %264
  %309 = load i32, ptr %11, align 4, !tbaa !14
  %310 = load i32, ptr %9, align 4, !tbaa !14
  %311 = icmp slt i32 %309, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %308
  store i32 6, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %340

313:                                              ; preds = %308
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = load i32, ptr %11, align 4, !tbaa !14
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds i32, ptr %314, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !14
  %319 = ashr i32 %318, 8
  %320 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = getelementptr inbounds i8, ptr %321, i64 2
  %323 = load i8, ptr %322, align 1, !tbaa !13
  %324 = zext i8 %323 to i32
  %325 = load i32, ptr %11, align 4, !tbaa !14
  %326 = add nsw i32 %324, %325
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [256 x i32], ptr %320, i64 0, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !14
  %330 = mul nsw i32 %319, %329
  %331 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %332 = load i32, ptr %5, align 4, !tbaa !14
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [256 x i32], ptr %331, i64 0, i64 %333
  %335 = load i32, ptr %334, align 4, !tbaa !14
  %336 = add nsw i32 %335, %330
  store i32 %336, ptr %334, align 4, !tbaa !14
  br label %337

337:                                              ; preds = %313
  %338 = load i32, ptr %11, align 4, !tbaa !14
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %11, align 4, !tbaa !14
  br label %308, !llvm.loop !29

340:                                              ; preds = %312
  %341 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %342 = load i32, ptr %5, align 4, !tbaa !14
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [256 x i32], ptr %341, i64 0, i64 %343
  %345 = load i32, ptr %344, align 4, !tbaa !14
  %346 = ashr i32 %345, 8
  %347 = call noundef i32 @_ZN7libzpaq9Predictor7clamp2kEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %346)
  %348 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %349 = load i32, ptr %5, align 4, !tbaa !14
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [256 x i32], ptr %348, i64 0, i64 %350
  store i32 %347, ptr %351, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %502

352:                                              ; preds = %31
  %353 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %354 = load i32, ptr %353, align 8, !tbaa !22
  %355 = icmp eq i32 %354, 1
  br i1 %355, label %361, label %356

356:                                              ; preds = %352
  %357 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %358 = load i32, ptr %357, align 8, !tbaa !22
  %359 = and i32 %358, 240
  %360 = icmp eq i32 %359, 16
  br i1 %360, label %361, label %381

361:                                              ; preds = %356, %352
  %362 = load ptr, ptr %7, align 8, !tbaa !5
  %363 = getelementptr inbounds %"struct.libzpaq::Component", ptr %362, i32 0, i32 6
  %364 = load ptr, ptr %4, align 8, !tbaa !5
  %365 = getelementptr inbounds i8, ptr %364, i64 1
  %366 = load i8, ptr %365, align 1, !tbaa !13
  %367 = zext i8 %366 to i32
  %368 = add nsw i32 %367, 2
  %369 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 3
  %370 = load i32, ptr %5, align 4, !tbaa !14
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [256 x i32], ptr %369, i64 0, i64 %371
  %373 = load i32, ptr %372, align 4, !tbaa !14
  %374 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %375 = load i32, ptr %374, align 8, !tbaa !22
  %376 = mul nsw i32 16, %375
  %377 = add i32 %373, %376
  %378 = call noundef i64 @_ZN7libzpaq9Predictor4findERNS_5ArrayIhEEij(ptr noundef nonnull align 8 dereferenceable(110620) %15, ptr noundef nonnull align 8 dereferenceable(20) %363, i32 noundef %368, i32 noundef %377)
  %379 = load ptr, ptr %7, align 8, !tbaa !5
  %380 = getelementptr inbounds %"struct.libzpaq::Component", ptr %379, i32 0, i32 4
  store i64 %378, ptr %380, align 8, !tbaa !23
  br label %381

381:                                              ; preds = %361, %356
  %382 = load ptr, ptr %7, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.libzpaq::Component", ptr %382, i32 0, i32 6
  %384 = load ptr, ptr %7, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.libzpaq::Component", ptr %384, i32 0, i32 4
  %386 = load i64, ptr %385, align 8, !tbaa !23
  %387 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 1
  %388 = load i32, ptr %387, align 4, !tbaa !15
  %389 = and i32 %388, 15
  %390 = sext i32 %389 to i64
  %391 = add i64 %386, %390
  %392 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %383, i64 noundef %391)
  %393 = load i8, ptr %392, align 1, !tbaa !13
  %394 = zext i8 %393 to i64
  %395 = load ptr, ptr %7, align 8, !tbaa !5
  %396 = getelementptr inbounds %"struct.libzpaq::Component", ptr %395, i32 0, i32 1
  store i64 %394, ptr %396, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %397 = load ptr, ptr %7, align 8, !tbaa !5
  %398 = getelementptr inbounds %"struct.libzpaq::Component", ptr %397, i32 0, i32 5
  %399 = load ptr, ptr %7, align 8, !tbaa !5
  %400 = getelementptr inbounds %"struct.libzpaq::Component", ptr %399, i32 0, i32 1
  %401 = load i64, ptr %400, align 8, !tbaa !16
  %402 = mul i64 %401, 2
  %403 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEixEm(ptr noundef nonnull align 8 dereferenceable(20) %398, i64 noundef %402)
  store ptr %403, ptr %12, align 8, !tbaa !5
  %404 = load ptr, ptr %12, align 8, !tbaa !5
  %405 = getelementptr inbounds i32, ptr %404, i64 0
  %406 = load i32, ptr %405, align 4, !tbaa !14
  %407 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %408 = load ptr, ptr %4, align 8, !tbaa !5
  %409 = getelementptr inbounds i8, ptr %408, i64 2
  %410 = load i8, ptr %409, align 1, !tbaa !13
  %411 = zext i8 %410 to i64
  %412 = getelementptr inbounds [256 x i32], ptr %407, i64 0, i64 %411
  %413 = load i32, ptr %412, align 4, !tbaa !14
  %414 = mul nsw i32 %406, %413
  %415 = load ptr, ptr %12, align 8, !tbaa !5
  %416 = getelementptr inbounds i32, ptr %415, i64 1
  %417 = load i32, ptr %416, align 4, !tbaa !14
  %418 = mul nsw i32 %417, 64
  %419 = add nsw i32 %414, %418
  %420 = ashr i32 %419, 16
  %421 = call noundef i32 @_ZN7libzpaq9Predictor7clamp2kEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %420)
  %422 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %423 = load i32, ptr %5, align 4, !tbaa !14
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [256 x i32], ptr %422, i64 0, i64 %424
  store i32 %421, ptr %425, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %502

426:                                              ; preds = %31
  %427 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 3
  %428 = load i32, ptr %5, align 4, !tbaa !14
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [256 x i32], ptr %427, i64 0, i64 %429
  %431 = load i32, ptr %430, align 4, !tbaa !14
  %432 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 0
  %433 = load i32, ptr %432, align 8, !tbaa !22
  %434 = add i32 %431, %433
  %435 = mul i32 %434, 32
  %436 = zext i32 %435 to i64
  %437 = load ptr, ptr %7, align 8, !tbaa !5
  %438 = getelementptr inbounds %"struct.libzpaq::Component", ptr %437, i32 0, i32 1
  store i64 %436, ptr %438, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %439 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %440 = load ptr, ptr %4, align 8, !tbaa !5
  %441 = getelementptr inbounds i8, ptr %440, i64 2
  %442 = load i8, ptr %441, align 1, !tbaa !13
  %443 = zext i8 %442 to i64
  %444 = getelementptr inbounds [256 x i32], ptr %439, i64 0, i64 %443
  %445 = load i32, ptr %444, align 4, !tbaa !14
  %446 = add nsw i32 %445, 992
  store i32 %446, ptr %13, align 4, !tbaa !14
  %447 = load i32, ptr %13, align 4, !tbaa !14
  %448 = icmp slt i32 %447, 0
  br i1 %448, label %449, label %450

449:                                              ; preds = %426
  store i32 0, ptr %13, align 4, !tbaa !14
  br label %450

450:                                              ; preds = %449, %426
  %451 = load i32, ptr %13, align 4, !tbaa !14
  %452 = icmp sgt i32 %451, 1983
  br i1 %452, label %453, label %454

453:                                              ; preds = %450
  store i32 1983, ptr %13, align 4, !tbaa !14
  br label %454

454:                                              ; preds = %453, %450
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %455 = load i32, ptr %13, align 4, !tbaa !14
  %456 = and i32 %455, 63
  store i32 %456, ptr %14, align 4, !tbaa !14
  %457 = load i32, ptr %13, align 4, !tbaa !14
  %458 = ashr i32 %457, 6
  store i32 %458, ptr %13, align 4, !tbaa !14
  %459 = load i32, ptr %13, align 4, !tbaa !14
  %460 = sext i32 %459 to i64
  %461 = load ptr, ptr %7, align 8, !tbaa !5
  %462 = getelementptr inbounds %"struct.libzpaq::Component", ptr %461, i32 0, i32 1
  %463 = load i64, ptr %462, align 8, !tbaa !16
  %464 = add i64 %463, %460
  store i64 %464, ptr %462, align 8, !tbaa !16
  %465 = load ptr, ptr %7, align 8, !tbaa !5
  %466 = getelementptr inbounds %"struct.libzpaq::Component", ptr %465, i32 0, i32 5
  %467 = load ptr, ptr %7, align 8, !tbaa !5
  %468 = getelementptr inbounds %"struct.libzpaq::Component", ptr %467, i32 0, i32 1
  %469 = load i64, ptr %468, align 8, !tbaa !16
  %470 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %466, i64 noundef %469)
  %471 = load i32, ptr %470, align 4, !tbaa !14
  %472 = lshr i32 %471, 10
  %473 = load i32, ptr %14, align 4, !tbaa !14
  %474 = sub nsw i32 64, %473
  %475 = mul i32 %472, %474
  %476 = load ptr, ptr %7, align 8, !tbaa !5
  %477 = getelementptr inbounds %"struct.libzpaq::Component", ptr %476, i32 0, i32 5
  %478 = load ptr, ptr %7, align 8, !tbaa !5
  %479 = getelementptr inbounds %"struct.libzpaq::Component", ptr %478, i32 0, i32 1
  %480 = load i64, ptr %479, align 8, !tbaa !16
  %481 = add i64 %480, 1
  %482 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %477, i64 noundef %481)
  %483 = load i32, ptr %482, align 4, !tbaa !14
  %484 = lshr i32 %483, 10
  %485 = load i32, ptr %14, align 4, !tbaa !14
  %486 = mul i32 %484, %485
  %487 = add i32 %475, %486
  %488 = lshr i32 %487, 13
  %489 = call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %488)
  %490 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %491 = load i32, ptr %5, align 4, !tbaa !14
  %492 = sext i32 %491 to i64
  %493 = getelementptr inbounds [256 x i32], ptr %490, i64 0, i64 %492
  store i32 %489, ptr %493, align 4, !tbaa !14
  %494 = load i32, ptr %14, align 4, !tbaa !14
  %495 = ashr i32 %494, 5
  %496 = sext i32 %495 to i64
  %497 = load ptr, ptr %7, align 8, !tbaa !5
  %498 = getelementptr inbounds %"struct.libzpaq::Component", ptr %497, i32 0, i32 1
  %499 = load i64, ptr %498, align 8, !tbaa !16
  %500 = add i64 %499, %496
  store i64 %500, ptr %498, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %502

501:                                              ; preds = %31
  call void @_ZN7libzpaq5errorEPKc(ptr noundef @.str.24)
  br label %502

502:                                              ; preds = %501, %454, %381, %340, %209, %177, %176, %94, %40, %31
  %503 = load ptr, ptr %4, align 8, !tbaa !5
  %504 = getelementptr inbounds i8, ptr %503, i64 0
  %505 = load i8, ptr %504, align 1, !tbaa !13
  %506 = zext i8 %505 to i64
  %507 = getelementptr inbounds [256 x i32], ptr @_ZN7libzpaq8compsizeE, i64 0, i64 %506
  %508 = load i32, ptr %507, align 4, !tbaa !14
  %509 = load ptr, ptr %4, align 8, !tbaa !5
  %510 = sext i32 %508 to i64
  %511 = getelementptr inbounds i8, ptr %509, i64 %510
  store ptr %511, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %512

512:                                              ; preds = %502
  %513 = load i32, ptr %5, align 4, !tbaa !14
  %514 = add nsw i32 %513, 1
  store i32 %514, ptr %5, align 4, !tbaa !14
  br label %26, !llvm.loop !31

515:                                              ; preds = %30
  %516 = getelementptr inbounds %"class.libzpaq::Predictor", ptr %15, i32 0, i32 2
  %517 = load i32, ptr %3, align 4, !tbaa !14
  %518 = sub nsw i32 %517, 1
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds [256 x i32], ptr %516, i64 0, i64 %519
  %521 = load i32, ptr %520, align 4, !tbaa !14
  %522 = call noundef i32 @_ZN7libzpaq9Predictor6squashEi(ptr noundef nonnull align 8 dereferenceable(110620) %15, i32 noundef %521)
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret i32 %522
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7libzpaq9Predictor4findERNS_5ArrayIhEEij(ptr noundef nonnull align 8 dereferenceable(110620), ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7libzpaq9Predictor7clamp2kEi(ptr noundef nonnull align 8 dereferenceable(110620), i32 noundef) #2 align 2

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

!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, !6, i64 2056}
!10 = !{!"_ZTSN7libzpaq9PredictorE", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 1032, !6, i64 2056, !7, i64 2064, !7, i64 30736, !7, i64 31760, !7, i64 35856, !7, i64 44048, !12, i64 109584, !6, i64 110608, !11, i64 110616}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN7libzpaq10StateTableE", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 4}
!16 = !{!17, !18, i64 8}
!17 = !{!"_ZTSN7libzpaq9ComponentE", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !19, i64 40, !20, i64 64, !21, i64 88}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN7libzpaq5ArrayIjEE", !6, i64 0, !18, i64 8, !11, i64 16}
!20 = !{!"_ZTSN7libzpaq5ArrayIhEE", !6, i64 0, !18, i64 8, !11, i64 16}
!21 = !{!"_ZTSN7libzpaq5ArrayItEE", !6, i64 0, !18, i64 8, !11, i64 16}
!22 = !{!10, !11, i64 0}
!23 = !{!17, !18, i64 32}
!24 = !{!17, !18, i64 16}
!25 = !{!17, !18, i64 0}
!26 = !{!17, !18, i64 24}
!27 = !{!28, !28, i64 0}
!28 = !{!"short", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}


; 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.libzpaq::Component" = type { i64, i64, i64, i64, i64, %"class.libzpaq::Array", %"class.libzpaq::Array.0", %"class.libzpaq::Array.2" }
%"class.libzpaq::Array" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array.0" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array.2" = type <{ ptr, i64, i32, [4 x i8] }>

@_ZN7libzpaq8compsizeE = external dso_local local_unnamed_addr constant <{ [10 x i32], [246 x i32] }>, align 16
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1

declare void @_ZN7libzpaq5errorEPKc(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEclEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7libzpaq9Predictor6squashEi(ptr noundef nonnull align 8 dereferenceable(110620), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZN7libzpaq5ArrayItEixEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7libzpaq9Predictor8predict0Ev(ptr noundef nonnull align 8 dereferenceable(110620) %0) local_unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 2056
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  %5 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %4, i64 noundef 6)
  %6 = load i8, ptr %5, align 1, !tbaa !12
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %9 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %8, i64 noundef 7)
  %.not = icmp eq i8 %6, 0
  br i1 %.not, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 2064
  %11 = getelementptr inbounds i8, ptr %0, i64 1032
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = getelementptr inbounds i8, ptr %0, i64 30736
  %wide.trip.count121 = zext i8 %6 to i64
  br label %21

._crit_edge115:                                   ; preds = %302, %1
  %15 = zext i8 %6 to i64
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = add nsw i64 %15, -1
  %18 = getelementptr inbounds [256 x i32], ptr %16, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %20 = tail call noundef i32 @_ZN7libzpaq9Predictor6squashEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %19)
  ret i32 %20

21:                                               ; preds = %.lr.ph114, %302
  %indvars.iv118 = phi i64 [ 0, %.lr.ph114 ], [ %indvars.iv.next119, %302 ]
  %.0112 = phi ptr [ %9, %.lr.ph114 ], [ %308, %302 ]
  %22 = getelementptr inbounds [256 x %"struct.libzpaq::Component"], ptr %10, i64 0, i64 %indvars.iv118
  %23 = load i8, ptr %.0112, align 1, !tbaa !12
  switch i8 %23, label %301 [
    i8 1, label %302
    i8 2, label %24
    i8 3, label %37
    i8 4, label %71
    i8 5, label %103
    i8 6, label %123
    i8 7, label %158
    i8 8, label %217
    i8 9, label %262
  ]

24:                                               ; preds = %21
  %25 = getelementptr inbounds [256 x i32], ptr %11, i64 0, i64 %indvars.iv118
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %27 = load i32, ptr %13, align 4, !tbaa !14
  %28 = xor i32 %27, %26
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %29, ptr %30, align 8, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %22, i64 40
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %31, i64 noundef %29)
  %33 = load i32, ptr %32, align 4, !tbaa !13
  %34 = lshr i32 %33, 17
  %35 = tail call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %34)
  %36 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %35, ptr %36, align 4, !tbaa !13
  br label %302

37:                                               ; preds = %21
  %38 = load i32, ptr %0, align 8, !tbaa !21
  %39 = icmp eq i32 %38, 1
  %40 = and i32 %38, 240
  %41 = icmp eq i32 %40, 16
  %or.cond = or i1 %39, %41
  br i1 %or.cond, label %42, label %._crit_edge124

._crit_edge124:                                   ; preds = %37
  %.phi.trans.insert125 = getelementptr inbounds i8, ptr %22, i64 32
  %.pre126 = load i64, ptr %.phi.trans.insert125, align 8, !tbaa !22
  br label %54

42:                                               ; preds = %37
  %43 = getelementptr inbounds i8, ptr %22, i64 64
  %44 = getelementptr inbounds i8, ptr %.0112, i64 1
  %45 = load i8, ptr %44, align 1, !tbaa !12
  %46 = zext i8 %45 to i32
  %47 = add nuw nsw i32 %46, 2
  %48 = getelementptr inbounds [256 x i32], ptr %11, i64 0, i64 %indvars.iv118
  %49 = load i32, ptr %48, align 4, !tbaa !13
  %50 = shl nsw i32 %38, 4
  %51 = add i32 %49, %50
  %52 = tail call noundef i64 @_ZN7libzpaq9Predictor4findERNS_5ArrayIhEEij(ptr noundef nonnull align 8 dereferenceable(110620) %0, ptr noundef nonnull align 8 dereferenceable(20) %43, i32 noundef %47, i32 noundef %51)
  %53 = getelementptr inbounds i8, ptr %22, i64 32
  store i64 %52, ptr %53, align 8, !tbaa !22
  br label %54

54:                                               ; preds = %._crit_edge124, %42
  %55 = phi i64 [ %.pre126, %._crit_edge124 ], [ %52, %42 ]
  %56 = getelementptr inbounds i8, ptr %22, i64 64
  %57 = load i32, ptr %13, align 4, !tbaa !14
  %58 = and i32 %57, 15
  %59 = zext nneg i32 %58 to i64
  %60 = add i64 %55, %59
  %61 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %56, i64 noundef %60)
  %62 = load i8, ptr %61, align 1, !tbaa !12
  %63 = zext i8 %62 to i64
  %64 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %63, ptr %64, align 8, !tbaa !15
  %65 = getelementptr inbounds i8, ptr %22, i64 40
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %65, i64 noundef %63)
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = lshr i32 %67, 8
  %69 = tail call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %68)
  %70 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %69, ptr %70, align 4, !tbaa !13
  br label %302

71:                                               ; preds = %21
  %72 = getelementptr inbounds i8, ptr %22, i64 16
  %73 = load i64, ptr %72, align 8, !tbaa !23
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 0, ptr %76, align 4, !tbaa !13
  br label %302

77:                                               ; preds = %71
  %78 = getelementptr inbounds i8, ptr %22, i64 64
  %79 = load i64, ptr %22, align 8, !tbaa !24
  %80 = getelementptr inbounds i8, ptr %22, i64 24
  %81 = load i64, ptr %80, align 8, !tbaa !25
  %82 = sub i64 %79, %81
  %83 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEclEm(ptr noundef nonnull align 8 dereferenceable(20) %78, i64 noundef %82)
  %84 = load i8, ptr %83, align 1, !tbaa !12
  %85 = zext i8 %84 to i32
  %86 = getelementptr inbounds i8, ptr %22, i64 8
  %87 = load i64, ptr %86, align 8, !tbaa !15
  %88 = trunc i64 %87 to i32
  %89 = sub i32 7, %88
  %90 = lshr i32 %85, %89
  %91 = and i32 %90, 1
  %92 = zext nneg i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %22, i64 32
  store i64 %92, ptr %93, align 8, !tbaa !22
  %94 = load i64, ptr %72, align 8, !tbaa !23
  %95 = getelementptr inbounds [256 x i32], ptr %14, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = mul nuw nsw i32 %91, 32766
  %98 = or disjoint i32 %97, 1
  %99 = mul i32 %98, %96
  %100 = and i32 %99, 32767
  %101 = tail call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %100)
  %102 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %101, ptr %102, align 4, !tbaa !13
  br label %302

103:                                              ; preds = %21
  %104 = getelementptr inbounds i8, ptr %.0112, i64 1
  %105 = load i8, ptr %104, align 1, !tbaa !12
  %106 = zext i8 %105 to i64
  %107 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = getelementptr inbounds i8, ptr %.0112, i64 3
  %110 = load i8, ptr %109, align 1, !tbaa !12
  %111 = zext i8 %110 to i32
  %112 = mul nsw i32 %108, %111
  %113 = getelementptr inbounds i8, ptr %.0112, i64 2
  %114 = load i8, ptr %113, align 1, !tbaa !12
  %115 = zext i8 %114 to i64
  %116 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !13
  %118 = sub nuw nsw i32 256, %111
  %119 = mul nsw i32 %117, %118
  %120 = add nsw i32 %119, %112
  %121 = ashr i32 %120, 8
  %122 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %121, ptr %122, align 4, !tbaa !13
  br label %302

123:                                              ; preds = %21
  %124 = getelementptr inbounds [256 x i32], ptr %11, i64 0, i64 %indvars.iv118
  %125 = load i32, ptr %124, align 4, !tbaa !13
  %126 = load i32, ptr %0, align 8, !tbaa !21
  %127 = getelementptr inbounds i8, ptr %.0112, i64 5
  %128 = load i8, ptr %127, align 1, !tbaa !12
  %129 = zext i8 %128 to i32
  %130 = and i32 %126, %129
  %131 = add i32 %130, %125
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds i8, ptr %22, i64 32
  %134 = load i64, ptr %133, align 8, !tbaa !22
  %135 = add i64 %134, 4294967295
  %136 = and i64 %135, %132
  %137 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %136, ptr %137, align 8, !tbaa !15
  %138 = getelementptr inbounds i8, ptr %22, i64 88
  %139 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN7libzpaq5ArrayItEixEm(ptr noundef nonnull align 8 dereferenceable(20) %138, i64 noundef %136)
  %140 = load i16, ptr %139, align 2, !tbaa !26
  %141 = zext i16 %140 to i32
  %142 = getelementptr inbounds i8, ptr %.0112, i64 2
  %143 = load i8, ptr %142, align 1, !tbaa !12
  %144 = zext i8 %143 to i64
  %145 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = mul nsw i32 %146, %141
  %148 = sub nuw nsw i32 65536, %141
  %149 = getelementptr inbounds i8, ptr %.0112, i64 3
  %150 = load i8, ptr %149, align 1, !tbaa !12
  %151 = zext i8 %150 to i64
  %152 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !13
  %154 = mul nsw i32 %153, %148
  %155 = add nsw i32 %154, %147
  %156 = ashr i32 %155, 16
  %157 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %156, ptr %157, align 4, !tbaa !13
  br label %302

158:                                              ; preds = %21
  %159 = getelementptr inbounds i8, ptr %.0112, i64 3
  %160 = load i8, ptr %159, align 1, !tbaa !12
  %161 = getelementptr inbounds [256 x i32], ptr %11, i64 0, i64 %indvars.iv118
  %162 = load i32, ptr %161, align 4, !tbaa !13
  %163 = load i32, ptr %0, align 8, !tbaa !21
  %164 = getelementptr inbounds i8, ptr %.0112, i64 5
  %165 = load i8, ptr %164, align 1, !tbaa !12
  %166 = zext i8 %165 to i32
  %167 = and i32 %163, %166
  %168 = add i32 %167, %162
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds i8, ptr %22, i64 8
  %171 = getelementptr inbounds i8, ptr %22, i64 32
  %172 = load i64, ptr %171, align 8, !tbaa !22
  %173 = add i64 %172, 4294967295
  %174 = and i64 %173, %169
  %175 = zext i8 %160 to i64
  %176 = mul nuw nsw i64 %174, %175
  store i64 %176, ptr %170, align 8, !tbaa !15
  %177 = getelementptr inbounds i8, ptr %22, i64 40
  %178 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEixEm(ptr noundef nonnull align 8 dereferenceable(20) %177, i64 noundef %176)
  %179 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 0, ptr %179, align 4, !tbaa !13
  %.not116 = icmp eq i8 %160, 0
  br i1 %.not116, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %158
  %180 = getelementptr inbounds i8, ptr %.0112, i64 2
  %wide.trip.count = zext i8 %160 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %181 = icmp eq i8 %160, 1
  br i1 %181, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 254
  br label %195

._crit_edge.loopexit.unr-lcssa:                   ; preds = %195, %.lr.ph
  %.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %216, %195 ]
  %.unr = phi i32 [ 0, %.lr.ph ], [ %216, %195 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %195 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %182 = getelementptr inbounds i32, ptr %178, i64 %indvars.iv.unr
  %183 = load i32, ptr %182, align 4, !tbaa !13
  %184 = ashr i32 %183, 8
  %185 = load i8, ptr %180, align 1, !tbaa !12
  %186 = zext i8 %185 to i64
  %187 = add nuw nsw i64 %indvars.iv.unr, %186
  %188 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !13
  %190 = mul nsw i32 %189, %184
  %191 = add nsw i32 %.unr, %190
  store i32 %191, ptr %179, align 4, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %158
  %192 = phi i32 [ 0, %158 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %191, %._crit_edge.loopexit.epilog-lcssa ]
  %193 = ashr i32 %192, 8
  %194 = tail call noundef i32 @_ZN7libzpaq9Predictor7clamp2kEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %193)
  store i32 %194, ptr %179, align 4, !tbaa !13
  br label %302

195:                                              ; preds = %195, %.lr.ph.new
  %196 = phi i32 [ 0, %.lr.ph.new ], [ %216, %195 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %195 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %195 ]
  %197 = getelementptr inbounds i32, ptr %178, i64 %indvars.iv
  %198 = load i32, ptr %197, align 4, !tbaa !13
  %199 = ashr i32 %198, 8
  %200 = load i8, ptr %180, align 1, !tbaa !12
  %201 = zext i8 %200 to i64
  %202 = add nuw nsw i64 %indvars.iv, %201
  %203 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !13
  %205 = mul nsw i32 %204, %199
  %206 = add nsw i32 %196, %205
  store i32 %206, ptr %179, align 4, !tbaa !13
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %207 = getelementptr inbounds i32, ptr %178, i64 %indvars.iv.next
  %208 = load i32, ptr %207, align 4, !tbaa !13
  %209 = ashr i32 %208, 8
  %210 = load i8, ptr %180, align 1, !tbaa !12
  %211 = zext i8 %210 to i64
  %212 = add nuw nsw i64 %indvars.iv.next, %211
  %213 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !13
  %215 = mul nsw i32 %214, %209
  %216 = add nsw i32 %206, %215
  store i32 %216, ptr %179, align 4, !tbaa !13
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %195, !llvm.loop !28

217:                                              ; preds = %21
  %218 = load i32, ptr %0, align 8, !tbaa !21
  %219 = icmp eq i32 %218, 1
  %220 = and i32 %218, 240
  %221 = icmp eq i32 %220, 16
  %or.cond109 = or i1 %219, %221
  br i1 %or.cond109, label %222, label %._crit_edge123

._crit_edge123:                                   ; preds = %217
  %.phi.trans.insert = getelementptr inbounds i8, ptr %22, i64 32
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !22
  br label %234

222:                                              ; preds = %217
  %223 = getelementptr inbounds i8, ptr %22, i64 64
  %224 = getelementptr inbounds i8, ptr %.0112, i64 1
  %225 = load i8, ptr %224, align 1, !tbaa !12
  %226 = zext i8 %225 to i32
  %227 = add nuw nsw i32 %226, 2
  %228 = getelementptr inbounds [256 x i32], ptr %11, i64 0, i64 %indvars.iv118
  %229 = load i32, ptr %228, align 4, !tbaa !13
  %230 = shl nsw i32 %218, 4
  %231 = add i32 %229, %230
  %232 = tail call noundef i64 @_ZN7libzpaq9Predictor4findERNS_5ArrayIhEEij(ptr noundef nonnull align 8 dereferenceable(110620) %0, ptr noundef nonnull align 8 dereferenceable(20) %223, i32 noundef %227, i32 noundef %231)
  %233 = getelementptr inbounds i8, ptr %22, i64 32
  store i64 %232, ptr %233, align 8, !tbaa !22
  br label %234

234:                                              ; preds = %._crit_edge123, %222
  %235 = phi i64 [ %.pre, %._crit_edge123 ], [ %232, %222 ]
  %236 = getelementptr inbounds i8, ptr %22, i64 64
  %237 = load i32, ptr %13, align 4, !tbaa !14
  %238 = and i32 %237, 15
  %239 = zext nneg i32 %238 to i64
  %240 = add i64 %235, %239
  %241 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN7libzpaq5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(20) %236, i64 noundef %240)
  %242 = load i8, ptr %241, align 1, !tbaa !12
  %243 = zext i8 %242 to i64
  %244 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %243, ptr %244, align 8, !tbaa !15
  %245 = getelementptr inbounds i8, ptr %22, i64 40
  %246 = shl nuw nsw i64 %243, 1
  %247 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEixEm(ptr noundef nonnull align 8 dereferenceable(20) %245, i64 noundef %246)
  %248 = load i32, ptr %247, align 4, !tbaa !13
  %249 = getelementptr inbounds i8, ptr %.0112, i64 2
  %250 = load i8, ptr %249, align 1, !tbaa !12
  %251 = zext i8 %250 to i64
  %252 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !13
  %254 = mul nsw i32 %253, %248
  %255 = getelementptr inbounds i8, ptr %247, i64 4
  %256 = load i32, ptr %255, align 4, !tbaa !13
  %257 = shl nsw i32 %256, 6
  %258 = add nsw i32 %257, %254
  %259 = ashr i32 %258, 16
  %260 = tail call noundef i32 @_ZN7libzpaq9Predictor7clamp2kEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %259)
  %261 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %260, ptr %261, align 4, !tbaa !13
  br label %302

262:                                              ; preds = %21
  %263 = getelementptr inbounds [256 x i32], ptr %11, i64 0, i64 %indvars.iv118
  %264 = load i32, ptr %263, align 4, !tbaa !13
  %265 = load i32, ptr %0, align 8, !tbaa !21
  %266 = add i32 %265, %264
  %267 = shl i32 %266, 5
  %268 = zext i32 %267 to i64
  %269 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %268, ptr %269, align 8, !tbaa !15
  %270 = getelementptr inbounds i8, ptr %.0112, i64 2
  %271 = load i8, ptr %270, align 1, !tbaa !12
  %272 = zext i8 %271 to i64
  %273 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !13
  %275 = tail call i32 @llvm.smax.i32(i32 %274, i32 -992)
  %276 = tail call i32 @llvm.smin.i32(i32 %275, i32 991)
  %spec.store.select1 = add nsw i32 %276, 992
  %277 = and i32 %spec.store.select1, 63
  %278 = lshr i32 %spec.store.select1, 6
  %279 = zext nneg i32 %278 to i64
  %280 = add nuw nsw i64 %279, %268
  store i64 %280, ptr %269, align 8, !tbaa !15
  %281 = getelementptr inbounds i8, ptr %22, i64 40
  %282 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %281, i64 noundef %280)
  %283 = load i32, ptr %282, align 4, !tbaa !13
  %284 = lshr i32 %283, 10
  %285 = sub nuw nsw i32 64, %277
  %286 = mul nuw nsw i32 %285, %284
  %287 = load i64, ptr %269, align 8, !tbaa !15
  %288 = add i64 %287, 1
  %289 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7libzpaq5ArrayIjEclEm(ptr noundef nonnull align 8 dereferenceable(20) %281, i64 noundef %288)
  %290 = load i32, ptr %289, align 4, !tbaa !13
  %291 = lshr i32 %290, 10
  %292 = mul nuw nsw i32 %291, %277
  %293 = add nuw nsw i32 %292, %286
  %294 = lshr i32 %293, 13
  %295 = tail call noundef i32 @_ZN7libzpaq9Predictor7stretchEi(ptr noundef nonnull align 8 dereferenceable(110620) %0, i32 noundef %294)
  %296 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %indvars.iv118
  store i32 %295, ptr %296, align 4, !tbaa !13
  %297 = lshr i32 %277, 5
  %298 = zext nneg i32 %297 to i64
  %299 = load i64, ptr %269, align 8, !tbaa !15
  %300 = add i64 %299, %298
  store i64 %300, ptr %269, align 8, !tbaa !15
  br label %302

301:                                              ; preds = %21
  tail call void @_ZN7libzpaq5errorEPKc(ptr noundef nonnull @.str.24)
  br label %302

302:                                              ; preds = %75, %77, %301, %262, %234, %._crit_edge, %123, %103, %54, %24, %21
  %303 = load i8, ptr %.0112, align 1, !tbaa !12
  %304 = zext i8 %303 to i64
  %305 = getelementptr inbounds [256 x i32], ptr @_ZN7libzpaq8compsizeE, i64 0, i64 %304
  %306 = load i32, ptr %305, align 4, !tbaa !13
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds i8, ptr %.0112, i64 %307
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond122.not = icmp eq i64 %indvars.iv.next119, %wide.trip.count121
  br i1 %exitcond122.not, label %._crit_edge115, label %21, !llvm.loop !30
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7libzpaq9Predictor4findERNS_5ArrayIhEEij(ptr noundef nonnull align 8 dereferenceable(110620), ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7libzpaq9Predictor7clamp2kEi(ptr noundef nonnull align 8 dereferenceable(110620), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

attributes #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 = { 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) }

!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, !10, i64 2056}
!6 = !{!"_ZTSN7libzpaq9PredictorE", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 1032, !10, i64 2056, !8, i64 2064, !8, i64 30736, !8, i64 31760, !8, i64 35856, !8, i64 44048, !11, i64 109584, !10, i64 110608, !7, i64 110616}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN7libzpaq10StateTableE", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 4}
!15 = !{!16, !17, i64 8}
!16 = !{!"_ZTSN7libzpaq9ComponentE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40, !19, i64 64, !20, i64 88}
!17 = !{!"long", !8, i64 0}
!18 = !{!"_ZTSN7libzpaq5ArrayIjEE", !10, i64 0, !17, i64 8, !7, i64 16}
!19 = !{!"_ZTSN7libzpaq5ArrayIhEE", !10, i64 0, !17, i64 8, !7, i64 16}
!20 = !{!"_ZTSN7libzpaq5ArrayItEE", !10, i64 0, !17, i64 8, !7, i64 16}
!21 = !{!6, !7, i64 0}
!22 = !{!16, !17, i64 32}
!23 = !{!16, !17, i64 16}
!24 = !{!16, !17, i64 0}
!25 = !{!16, !17, i64 24}
!26 = !{!27, !27, i64 0}
!27 = !{!"short", !8, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


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