; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder/basisu_enc.ll (ZN6basisu12huffman_testEi)

; 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.basisu::histogram" = type { %"class.basisu::vector.18" }
%"class.basisu::vector.18" = type { ptr, i32, i32 }
%"class.basisu::huffman_encoding_table" = type { %"class.basisu::vector.16", %"class.basisu::vector.4" }
%"class.basisu::vector.16" = type { ptr, i32, i32 }
%"class.basisu::vector.4" = type { ptr, i32, i32 }
%"class.basisu::bitwise_coder" = type { %"class.basisu::vector.4", i32, i32, i64 }
%"class.basist::bitwise_decoder" = type { i32, ptr, ptr, ptr, i32, i32 }
%"class.basist::huffman_decoding_table" = type { %"class.basisu::vector.4", %"class.basisu::vector.20", %"class.basisu::vector.22" }
%"class.basisu::vector.20" = type { ptr, i32, i32 }
%"class.basisu::vector.22" = type { ptr, i32, i32 }
%"class.basisu::rand" = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }

@.str.4 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @__gxx_personality_v0(...)

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu13bitwise_coder18emit_huffman_tableERKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu9histogramC2Ej(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu22huffman_encoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initERKNS_9histogramEj(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu12huffman_testEi(i32 noundef %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.basisu::histogram", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.basisu::huffman_encoding_table", align 8
  %7 = alloca %"class.basisu::bitwise_coder", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.basist::bitwise_decoder", align 8
  %10 = alloca %"class.basist::huffman_decoding_table", align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.basisu::rand", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.basisu::vector.18", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.basisu::histogram", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.basisu::huffman_encoding_table", align 8
  %25 = alloca %"class.basisu::bitwise_coder", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.basist::bitwise_decoder", align 8
  %28 = alloca %"class.basist::huffman_decoding_table", align 8
  %29 = alloca i8, align 1
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  call void @_ZN6basisu9histogramC2Ej(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 19)
  %32 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 0)
          to label %33 unwind label %119

33:                                               ; preds = %1
  %34 = load i32, ptr %32, align 4, !tbaa !5
  %35 = add i32 %34, 1
  store i32 %35, ptr %32, align 4, !tbaa !5
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 1)
          to label %37 unwind label %119

37:                                               ; preds = %33
  %38 = load i32, ptr %36, align 4, !tbaa !5
  %39 = add i32 %38, 1
  store i32 %39, ptr %36, align 4, !tbaa !5
  %40 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 2)
          to label %41 unwind label %119

41:                                               ; preds = %37
  %42 = load i32, ptr %40, align 4, !tbaa !5
  %43 = add i32 %42, 2
  store i32 %43, ptr %40, align 4, !tbaa !5
  %44 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 3)
          to label %45 unwind label %119

45:                                               ; preds = %41
  %46 = load i32, ptr %44, align 4, !tbaa !5
  %47 = add i32 %46, 3
  store i32 %47, ptr %44, align 4, !tbaa !5
  %48 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 4)
          to label %49 unwind label %119

49:                                               ; preds = %45
  %50 = load i32, ptr %48, align 4, !tbaa !5
  %51 = add i32 %50, 5
  store i32 %51, ptr %48, align 4, !tbaa !5
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 5)
          to label %53 unwind label %119

53:                                               ; preds = %49
  %54 = load i32, ptr %52, align 4, !tbaa !5
  %55 = add i32 %54, 8
  store i32 %55, ptr %52, align 4, !tbaa !5
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 6)
          to label %57 unwind label %119

57:                                               ; preds = %53
  %58 = load i32, ptr %56, align 4, !tbaa !5
  %59 = add i32 %58, 13
  store i32 %59, ptr %56, align 4, !tbaa !5
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 7)
          to label %61 unwind label %119

61:                                               ; preds = %57
  %62 = load i32, ptr %60, align 4, !tbaa !5
  %63 = add i32 %62, 21
  store i32 %63, ptr %60, align 4, !tbaa !5
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 8)
          to label %65 unwind label %119

65:                                               ; preds = %61
  %66 = load i32, ptr %64, align 4, !tbaa !5
  %67 = add i32 %66, 34
  store i32 %67, ptr %64, align 4, !tbaa !5
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 9)
          to label %69 unwind label %119

69:                                               ; preds = %65
  %70 = load i32, ptr %68, align 4, !tbaa !5
  %71 = add i32 %70, 55
  store i32 %71, ptr %68, align 4, !tbaa !5
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 10)
          to label %73 unwind label %119

73:                                               ; preds = %69
  %74 = load i32, ptr %72, align 4, !tbaa !5
  %75 = add i32 %74, 89
  store i32 %75, ptr %72, align 4, !tbaa !5
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 11)
          to label %77 unwind label %119

77:                                               ; preds = %73
  %78 = load i32, ptr %76, align 4, !tbaa !5
  %79 = add i32 %78, 144
  store i32 %79, ptr %76, align 4, !tbaa !5
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 12)
          to label %81 unwind label %119

81:                                               ; preds = %77
  %82 = load i32, ptr %80, align 4, !tbaa !5
  %83 = add i32 %82, 233
  store i32 %83, ptr %80, align 4, !tbaa !5
  %84 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 13)
          to label %85 unwind label %119

85:                                               ; preds = %81
  %86 = load i32, ptr %84, align 4, !tbaa !5
  %87 = add i32 %86, 377
  store i32 %87, ptr %84, align 4, !tbaa !5
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 14)
          to label %89 unwind label %119

89:                                               ; preds = %85
  %90 = load i32, ptr %88, align 4, !tbaa !5
  %91 = add i32 %90, 610
  store i32 %91, ptr %88, align 4, !tbaa !5
  %92 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 15)
          to label %93 unwind label %119

93:                                               ; preds = %89
  %94 = load i32, ptr %92, align 4, !tbaa !5
  %95 = add i32 %94, 987
  store i32 %95, ptr %92, align 4, !tbaa !5
  %96 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 16)
          to label %97 unwind label %119

97:                                               ; preds = %93
  %98 = load i32, ptr %96, align 4, !tbaa !5
  %99 = add i32 %98, 1597
  store i32 %99, ptr %96, align 4, !tbaa !5
  %100 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 17)
          to label %101 unwind label %119

101:                                              ; preds = %97
  %102 = load i32, ptr %100, align 4, !tbaa !5
  %103 = add i32 %102, 2584
  store i32 %103, ptr %100, align 4, !tbaa !5
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 18)
          to label %105 unwind label %119

105:                                              ; preds = %101
  %106 = load i32, ptr %104, align 4, !tbaa !5
  %107 = add i32 %106, 4181
  store i32 %107, ptr %104, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #7
  invoke void @_ZN6basisu22huffman_encoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %108 unwind label %123

108:                                              ; preds = %105
  %109 = invoke noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initERKNS_9histogramEj(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 16)
          to label %110 unwind label %127

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  invoke void @_ZN6basisu13bitwise_coderC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %111 unwind label %131

111:                                              ; preds = %110
  invoke void @_ZN6basisu13bitwise_coder4initEj(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 1024)
          to label %112 unwind label %135

112:                                              ; preds = %111
  %113 = invoke noundef i32 @_ZN6basisu13bitwise_coder18emit_huffman_tableERKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %114 unwind label %135

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %143, %114
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = icmp slt i32 %116, 19
  br i1 %117, label %139, label %118

118:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %150

119:                                              ; preds = %101, %97, %93, %89, %85, %81, %77, %73, %69, %65, %61, %57, %53, %49, %45, %41, %37, %33, %1
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %4, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %5, align 4
  br label %454

123:                                              ; preds = %105
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %4, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %5, align 4
  br label %453

127:                                              ; preds = %108
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %4, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %5, align 4
  br label %452

131:                                              ; preds = %110
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %4, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %5, align 4
  br label %215

135:                                              ; preds = %150, %112, %111
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %4, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %5, align 4
  br label %214

139:                                              ; preds = %115
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %140, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %142 unwind label %146

142:                                              ; preds = %139
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %8, align 4, !tbaa !5
  br label %115, !llvm.loop !9

146:                                              ; preds = %139
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %4, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %214

150:                                              ; preds = %118
  %151 = invoke noundef i32 @_ZN6basisu13bitwise_coder5flushEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %152 unwind label %135

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  invoke void @_ZN6basist15bitwise_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %153 unwind label %171

153:                                              ; preds = %152
  %154 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %155 unwind label %171

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %154, i64 noundef 0)
          to label %157 unwind label %171

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %159 unwind label %171

159:                                              ; preds = %157
  %160 = invoke noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %158)
          to label %161 unwind label %171

161:                                              ; preds = %159
  %162 = invoke noundef zeroext i1 @_ZN6basist15bitwise_decoder4initEPKhj(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef %156, i32 noundef %160)
          to label %163 unwind label %171

163:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #7
  invoke void @_ZN6basist22huffman_decoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %164 unwind label %175

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %165 = invoke noundef zeroext i1 @_ZN6basist15bitwise_decoder18read_huffman_tableERNS_22huffman_decoding_tableE(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %166 unwind label %179

166:                                              ; preds = %164
  %167 = zext i1 %165 to i8
  store i8 %167, ptr %11, align 1, !tbaa !11
  %168 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %169 = trunc i8 %168 to i1
  br i1 %169, label %183, label %170

170:                                              ; preds = %166
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 1188, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

171:                                              ; preds = %161, %159, %157, %155, %153, %152
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %4, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %5, align 4
  br label %213

175:                                              ; preds = %163
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %4, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %5, align 4
  br label %212

179:                                              ; preds = %164
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %4, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %5, align 4
  br label %211

183:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %200, %183
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = icmp ult i32 %185, 19
  br i1 %186, label %188, label %187

187:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %203

188:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %189 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(48) %10, i32 noundef 10)
          to label %190 unwind label %195

190:                                              ; preds = %188
  store i32 %189, ptr %13, align 4, !tbaa !5
  %191 = load i32, ptr %13, align 4, !tbaa !5
  %192 = load i32, ptr %12, align 4, !tbaa !5
  %193 = icmp ne i32 %191, %192
  br i1 %193, label %194, label %199

194:                                              ; preds = %190
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 1198, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

195:                                              ; preds = %188
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %4, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %211

199:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = add i32 %201, 1
  store i32 %202, ptr %12, align 4, !tbaa !5
  br label %184, !llvm.loop !15

203:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 5000, ptr %14) #7
  invoke void @_ZN6basisu4randC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %14)
          to label %204 unwind label %216

204:                                              ; preds = %203
  %205 = load i32, ptr %2, align 4, !tbaa !5
  invoke void @_ZN6basisu4rand4seedEj(ptr noundef nonnull align 8 dereferenceable(5000) %14, i32 noundef %205)
          to label %206 unwind label %216

206:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %433, %206
  %208 = load i32, ptr %15, align 4, !tbaa !5
  %209 = icmp slt i32 %208, 500000
  br i1 %209, label %220, label %210

210:                                              ; preds = %207
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %450

211:                                              ; preds = %195, %179
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  br label %212

212:                                              ; preds = %211, %175
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  br label %213

213:                                              ; preds = %212, %171
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  br label %214

214:                                              ; preds = %213, %146, %135
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %215

215:                                              ; preds = %214, %131
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  br label %452

216:                                              ; preds = %204, %203
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %4, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %5, align 4
  br label %451

220:                                              ; preds = %207
  %221 = load i32, ptr %15, align 4, !tbaa !5
  %222 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.25, i32 noundef %221)
          to label %223 unwind label %236

223:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %224 = invoke noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000) %14, i32 noundef 0, i32 noundef 8193)
          to label %225 unwind label %240

225:                                              ; preds = %223
  store i32 %224, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %226 = invoke noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000) %14, i32 noundef 1, i32 noundef 10000)
          to label %227 unwind label %244

227:                                              ; preds = %225
  store i32 %226, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %228 = load i32, ptr %18, align 4, !tbaa !5
  %229 = zext i32 %228 to i64
  invoke void @_ZN6basisu6vectorIjEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %229)
          to label %230 unwind label %248

230:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %294, %230
  %232 = load i32, ptr %20, align 4, !tbaa !5
  %233 = load i32, ptr %18, align 4, !tbaa !5
  %234 = icmp ult i32 %232, %233
  br i1 %234, label %252, label %235

235:                                              ; preds = %231
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %298

236:                                              ; preds = %220
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %4, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %5, align 4
  br label %449

240:                                              ; preds = %223
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %4, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %5, align 4
  br label %448

244:                                              ; preds = %225
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %4, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %5, align 4
  br label %447

248:                                              ; preds = %227
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %4, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %5, align 4
  br label %446

252:                                              ; preds = %231
  %253 = invoke noundef zeroext i1 @_ZN6basisu4rand3bitEv(ptr noundef nonnull align 8 dereferenceable(5000) %14)
          to label %254 unwind label %263

254:                                              ; preds = %252
  br i1 %253, label %255, label %267

255:                                              ; preds = %254
  %256 = load i32, ptr %17, align 4, !tbaa !5
  %257 = invoke noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000) %14, i32 noundef 0, i32 noundef %256)
          to label %258 unwind label %263

258:                                              ; preds = %255
  %259 = load i32, ptr %20, align 4, !tbaa !5
  %260 = zext i32 %259 to i64
  %261 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %260)
          to label %262 unwind label %263

262:                                              ; preds = %258
  store i32 %257, ptr %261, align 4, !tbaa !5
  br label %293

263:                                              ; preds = %258, %255, %252
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %4, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %5, align 4
  br label %297

267:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %268 = load i32, ptr %17, align 4, !tbaa !5
  %269 = uitofp i32 %268 to float
  %270 = fdiv float %269, 2.000000e+00
  %271 = load i32, ptr %17, align 4, !tbaa !5
  %272 = udiv i32 %271, 2
  %273 = invoke noundef i32 @_ZN6basisu7maximumIiEET_S1_S1_(i32 noundef 1, i32 noundef %272)
          to label %274 unwind label %289

274:                                              ; preds = %267
  %275 = sitofp i32 %273 to float
  %276 = invoke noundef float @_ZN6basisu4rand8gaussianEff(ptr noundef nonnull align 8 dereferenceable(5000) %14, float noundef %270, float noundef %275)
          to label %277 unwind label %289

277:                                              ; preds = %274
  %278 = fadd float %276, 5.000000e-01
  %279 = fptosi float %278 to i32
  store i32 %279, ptr %21, align 4, !tbaa !5
  %280 = load i32, ptr %21, align 4, !tbaa !5
  %281 = load i32, ptr %17, align 4, !tbaa !5
  %282 = invoke noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %280, i32 noundef 0, i32 noundef %281)
          to label %283 unwind label %289

283:                                              ; preds = %277
  store i32 %282, ptr %21, align 4, !tbaa !5
  %284 = load i32, ptr %21, align 4, !tbaa !5
  %285 = load i32, ptr %20, align 4, !tbaa !5
  %286 = zext i32 %285 to i64
  %287 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %286)
          to label %288 unwind label %289

288:                                              ; preds = %283
  store i32 %284, ptr %287, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %293

289:                                              ; preds = %283, %277, %274, %267
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %4, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %297

293:                                              ; preds = %288, %262
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %20, align 4, !tbaa !5
  %296 = add i32 %295, 1
  store i32 %296, ptr %20, align 4, !tbaa !5
  br label %231, !llvm.loop !16

297:                                              ; preds = %289, %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %445

298:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %299 = load i32, ptr %17, align 4, !tbaa !5
  %300 = add i32 %299, 1
  invoke void @_ZN6basisu9histogramC2Ej(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %300)
          to label %301 unwind label %307

301:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %321, %301
  %303 = load i32, ptr %23, align 4, !tbaa !5
  %304 = load i32, ptr %18, align 4, !tbaa !5
  %305 = icmp ult i32 %303, %304
  br i1 %305, label %311, label %306

306:                                              ; preds = %302
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %328

307:                                              ; preds = %298
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %4, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %5, align 4
  br label %444

311:                                              ; preds = %302
  %312 = load i32, ptr %23, align 4, !tbaa !5
  %313 = zext i32 %312 to i64
  %314 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %313)
          to label %315 unwind label %324

315:                                              ; preds = %311
  %316 = load i32, ptr %314, align 4, !tbaa !5
  %317 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %316)
          to label %318 unwind label %324

318:                                              ; preds = %315
  %319 = load i32, ptr %317, align 4, !tbaa !5
  %320 = add i32 %319, 1
  store i32 %320, ptr %317, align 4, !tbaa !5
  br label %321

321:                                              ; preds = %318
  %322 = load i32, ptr %23, align 4, !tbaa !5
  %323 = add i32 %322, 1
  store i32 %323, ptr %23, align 4, !tbaa !5
  br label %302, !llvm.loop !17

324:                                              ; preds = %315, %311
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %4, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %443

328:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  invoke void @_ZN6basisu22huffman_encoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %329 unwind label %333

329:                                              ; preds = %328
  %330 = invoke noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initERKNS_9histogramEj(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef 16)
          to label %331 unwind label %337

331:                                              ; preds = %329
  br i1 %330, label %341, label %332

332:                                              ; preds = %331
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 1237, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

333:                                              ; preds = %328
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %4, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %5, align 4
  br label %442

337:                                              ; preds = %329
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %4, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %5, align 4
  br label %441

341:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  invoke void @_ZN6basisu13bitwise_coderC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %342 unwind label %351

342:                                              ; preds = %341
  invoke void @_ZN6basisu13bitwise_coder4initEj(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 1024)
          to label %343 unwind label %355

343:                                              ; preds = %342
  %344 = invoke noundef i32 @_ZN6basisu13bitwise_coder18emit_huffman_tableERKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %345 unwind label %355

345:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %346

346:                                              ; preds = %367, %345
  %347 = load i32, ptr %26, align 4, !tbaa !5
  %348 = load i32, ptr %18, align 4, !tbaa !5
  %349 = icmp ult i32 %347, %348
  br i1 %349, label %359, label %350

350:                                              ; preds = %346
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %374

351:                                              ; preds = %341
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %4, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %5, align 4
  br label %440

355:                                              ; preds = %374, %343, %342
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %4, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %5, align 4
  br label %439

359:                                              ; preds = %346
  %360 = load i32, ptr %26, align 4, !tbaa !5
  %361 = zext i32 %360 to i64
  %362 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %361)
          to label %363 unwind label %370

363:                                              ; preds = %359
  %364 = load i32, ptr %362, align 4, !tbaa !5
  %365 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef %364, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %366 unwind label %370

366:                                              ; preds = %363
  br label %367

367:                                              ; preds = %366
  %368 = load i32, ptr %26, align 4, !tbaa !5
  %369 = add i32 %368, 1
  store i32 %369, ptr %26, align 4, !tbaa !5
  br label %346, !llvm.loop !18

370:                                              ; preds = %363, %359
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %4, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %439

374:                                              ; preds = %350
  %375 = invoke noundef i32 @_ZN6basisu13bitwise_coder5flushEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %376 unwind label %355

376:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #7
  invoke void @_ZN6basist15bitwise_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %377 unwind label %395

377:                                              ; preds = %376
  %378 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %379 unwind label %395

379:                                              ; preds = %377
  %380 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %378, i64 noundef 0)
          to label %381 unwind label %395

381:                                              ; preds = %379
  %382 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %383 unwind label %395

383:                                              ; preds = %381
  %384 = invoke noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %382)
          to label %385 unwind label %395

385:                                              ; preds = %383
  %386 = invoke noundef zeroext i1 @_ZN6basist15bitwise_decoder4initEPKhj(ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef %380, i32 noundef %384)
          to label %387 unwind label %395

387:                                              ; preds = %385
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #7
  invoke void @_ZN6basist22huffman_decoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %388 unwind label %399

388:                                              ; preds = %387
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  %389 = invoke noundef zeroext i1 @_ZN6basist15bitwise_decoder18read_huffman_tableERNS_22huffman_decoding_tableE(ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %390 unwind label %403

390:                                              ; preds = %388
  %391 = zext i1 %389 to i8
  store i8 %391, ptr %29, align 1, !tbaa !11
  %392 = load i8, ptr %29, align 1, !tbaa !11, !range !13, !noundef !14
  %393 = trunc i8 %392 to i1
  br i1 %393, label %407, label %394

394:                                              ; preds = %390
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 1259, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

395:                                              ; preds = %385, %383, %381, %379, %377, %376
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %4, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %5, align 4
  br label %438

399:                                              ; preds = %387
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %4, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %5, align 4
  br label %437

403:                                              ; preds = %388
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %4, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %5, align 4
  br label %436

407:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %408

408:                                              ; preds = %429, %407
  %409 = load i32, ptr %30, align 4, !tbaa !5
  %410 = load i32, ptr %18, align 4, !tbaa !5
  %411 = icmp ult i32 %409, %410
  br i1 %411, label %413, label %412

412:                                              ; preds = %408
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %432

413:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %414 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef nonnull align 8 dereferenceable(48) %28, i32 noundef 10)
          to label %415 unwind label %424

415:                                              ; preds = %413
  store i32 %414, ptr %31, align 4, !tbaa !5
  %416 = load i32, ptr %31, align 4, !tbaa !5
  %417 = load i32, ptr %30, align 4, !tbaa !5
  %418 = zext i32 %417 to i64
  %419 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %418)
          to label %420 unwind label %424

420:                                              ; preds = %415
  %421 = load i32, ptr %419, align 4, !tbaa !5
  %422 = icmp ne i32 %416, %421
  br i1 %422, label %423, label %428

423:                                              ; preds = %420
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 1269, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

424:                                              ; preds = %415, %413
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %4, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %436

428:                                              ; preds = %420
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %429

429:                                              ; preds = %428
  %430 = load i32, ptr %30, align 4, !tbaa !5
  %431 = add i32 %430, 1
  store i32 %431, ptr %30, align 4, !tbaa !5
  br label %408, !llvm.loop !19

432:                                              ; preds = %412
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %433

433:                                              ; preds = %432
  %434 = load i32, ptr %15, align 4, !tbaa !5
  %435 = add nsw i32 %434, 1
  store i32 %435, ptr %15, align 4, !tbaa !5
  br label %207, !llvm.loop !20

436:                                              ; preds = %424, %403
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  br label %437

437:                                              ; preds = %436, %399
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #7
  br label %438

438:                                              ; preds = %437, %395
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  br label %439

439:                                              ; preds = %438, %370, %355
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %440

440:                                              ; preds = %439, %351
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br label %441

441:                                              ; preds = %440, %337
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %442

442:                                              ; preds = %441, %333
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  br label %443

443:                                              ; preds = %442, %324
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %444

444:                                              ; preds = %443, %307
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %445

445:                                              ; preds = %444, %297
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  br label %446

446:                                              ; preds = %445, %248
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %447

447:                                              ; preds = %446, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %448

448:                                              ; preds = %447, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %449

449:                                              ; preds = %448, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %451

450:                                              ; preds = %210
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 5000, ptr %14) #7
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  ret i1 true

451:                                              ; preds = %449, %216
  call void @llvm.lifetime.end.p0(i64 5000, ptr %14) #7
  br label %452

452:                                              ; preds = %451, %215, %127
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %453

453:                                              ; preds = %452, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  br label %454

454:                                              ; preds = %453, %119
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  br label %455

455:                                              ; preds = %454
  %456 = load ptr, ptr %4, align 8
  %457 = load i32, ptr %5, align 4
  %458 = insertvalue { ptr, i32 } poison, ptr %456, 0
  %459 = insertvalue { ptr, i32 } %458, i32 %457, 1
  resume { ptr, i32 } %459
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu13bitwise_coderC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu13bitwise_coder4initEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu13bitwise_coder5flushEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6basist15bitwise_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6basist15bitwise_decoder4initEPKhj(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basist22huffman_decoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basist15bitwise_decoder18read_huffman_tableERNS_22huffman_decoding_tableE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu4randC2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu4rand4seedEj(ptr noundef nonnull align 8 dereferenceable(5000), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIjEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basisu4rand3bitEv(ptr noundef nonnull align 8 dereferenceable(5000)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6basisu4rand8gaussianEff(ptr noundef nonnull align 8 dereferenceable(5000), float noundef, float noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7maximumIiEET_S1_S1_(i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

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


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

%"class.basisu::histogram" = type { %"class.basisu::vector.18" }
%"class.basisu::vector.18" = type { ptr, i32, i32 }
%"class.basisu::huffman_encoding_table" = type { %"class.basisu::vector.16", %"class.basisu::vector.4" }
%"class.basisu::vector.16" = type { ptr, i32, i32 }
%"class.basisu::vector.4" = type { ptr, i32, i32 }
%"class.basisu::bitwise_coder" = type { %"class.basisu::vector.4", i32, i32, i64 }
%"class.basist::bitwise_decoder" = type { i32, ptr, ptr, ptr, i32, i32 }
%"class.basist::huffman_decoding_table" = type { %"class.basisu::vector.4", %"class.basisu::vector.20", %"class.basisu::vector.22" }
%"class.basisu::vector.20" = type { ptr, i32, i32 }
%"class.basisu::vector.22" = type { ptr, i32, i32 }
%"class.basisu::rand" = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }

@.str.4 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu13bitwise_coder18emit_huffman_tableERKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu9histogramC2Ej(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu22huffman_encoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initERKNS_9histogramEj(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu12huffman_testEi(i32 noundef %0) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.basisu::histogram", align 8
  %3 = alloca %"class.basisu::huffman_encoding_table", align 8
  %4 = alloca %"class.basisu::bitwise_coder", align 8
  %5 = alloca %"class.basist::bitwise_decoder", align 8
  %6 = alloca %"class.basist::huffman_decoding_table", align 8
  %7 = alloca %"class.basisu::rand", align 8
  %8 = alloca %"class.basisu::vector.18", align 8
  %9 = alloca %"class.basisu::histogram", align 8
  %10 = alloca %"class.basisu::huffman_encoding_table", align 8
  %11 = alloca %"class.basisu::bitwise_coder", align 8
  %12 = alloca %"class.basist::bitwise_decoder", align 8
  %13 = alloca %"class.basist::huffman_decoding_table", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @_ZN6basisu9histogramC2Ej(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 19)
  %14 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
          to label %15 unwind label %97

15:                                               ; preds = %1
  %16 = load i32, ptr %14, align 4, !tbaa !5
  %17 = add i32 %16, 1
  store i32 %17, ptr %14, align 4, !tbaa !5
  %18 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 1)
          to label %19 unwind label %97

19:                                               ; preds = %15
  %20 = load i32, ptr %18, align 4, !tbaa !5
  %21 = add i32 %20, 1
  store i32 %21, ptr %18, align 4, !tbaa !5
  %22 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 2)
          to label %23 unwind label %97

23:                                               ; preds = %19
  %24 = load i32, ptr %22, align 4, !tbaa !5
  %25 = add i32 %24, 2
  store i32 %25, ptr %22, align 4, !tbaa !5
  %26 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 3)
          to label %27 unwind label %97

27:                                               ; preds = %23
  %28 = load i32, ptr %26, align 4, !tbaa !5
  %29 = add i32 %28, 3
  store i32 %29, ptr %26, align 4, !tbaa !5
  %30 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 4)
          to label %31 unwind label %97

31:                                               ; preds = %27
  %32 = load i32, ptr %30, align 4, !tbaa !5
  %33 = add i32 %32, 5
  store i32 %33, ptr %30, align 4, !tbaa !5
  %34 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 5)
          to label %35 unwind label %97

35:                                               ; preds = %31
  %36 = load i32, ptr %34, align 4, !tbaa !5
  %37 = add i32 %36, 8
  store i32 %37, ptr %34, align 4, !tbaa !5
  %38 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 6)
          to label %39 unwind label %97

39:                                               ; preds = %35
  %40 = load i32, ptr %38, align 4, !tbaa !5
  %41 = add i32 %40, 13
  store i32 %41, ptr %38, align 4, !tbaa !5
  %42 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 7)
          to label %43 unwind label %97

43:                                               ; preds = %39
  %44 = load i32, ptr %42, align 4, !tbaa !5
  %45 = add i32 %44, 21
  store i32 %45, ptr %42, align 4, !tbaa !5
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 8)
          to label %47 unwind label %97

47:                                               ; preds = %43
  %48 = load i32, ptr %46, align 4, !tbaa !5
  %49 = add i32 %48, 34
  store i32 %49, ptr %46, align 4, !tbaa !5
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 9)
          to label %51 unwind label %97

51:                                               ; preds = %47
  %52 = load i32, ptr %50, align 4, !tbaa !5
  %53 = add i32 %52, 55
  store i32 %53, ptr %50, align 4, !tbaa !5
  %54 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 10)
          to label %55 unwind label %97

55:                                               ; preds = %51
  %56 = load i32, ptr %54, align 4, !tbaa !5
  %57 = add i32 %56, 89
  store i32 %57, ptr %54, align 4, !tbaa !5
  %58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 11)
          to label %59 unwind label %97

59:                                               ; preds = %55
  %60 = load i32, ptr %58, align 4, !tbaa !5
  %61 = add i32 %60, 144
  store i32 %61, ptr %58, align 4, !tbaa !5
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 12)
          to label %63 unwind label %97

63:                                               ; preds = %59
  %64 = load i32, ptr %62, align 4, !tbaa !5
  %65 = add i32 %64, 233
  store i32 %65, ptr %62, align 4, !tbaa !5
  %66 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 13)
          to label %67 unwind label %97

67:                                               ; preds = %63
  %68 = load i32, ptr %66, align 4, !tbaa !5
  %69 = add i32 %68, 377
  store i32 %69, ptr %66, align 4, !tbaa !5
  %70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 14)
          to label %71 unwind label %97

71:                                               ; preds = %67
  %72 = load i32, ptr %70, align 4, !tbaa !5
  %73 = add i32 %72, 610
  store i32 %73, ptr %70, align 4, !tbaa !5
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 15)
          to label %75 unwind label %97

75:                                               ; preds = %71
  %76 = load i32, ptr %74, align 4, !tbaa !5
  %77 = add i32 %76, 987
  store i32 %77, ptr %74, align 4, !tbaa !5
  %78 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 16)
          to label %79 unwind label %97

79:                                               ; preds = %75
  %80 = load i32, ptr %78, align 4, !tbaa !5
  %81 = add i32 %80, 1597
  store i32 %81, ptr %78, align 4, !tbaa !5
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 17)
          to label %83 unwind label %97

83:                                               ; preds = %79
  %84 = load i32, ptr %82, align 4, !tbaa !5
  %85 = add i32 %84, 2584
  store i32 %85, ptr %82, align 4, !tbaa !5
  %86 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 18)
          to label %87 unwind label %97

87:                                               ; preds = %83
  %88 = load i32, ptr %86, align 4, !tbaa !5
  %89 = add i32 %88, 4181
  store i32 %89, ptr %86, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  invoke void @_ZN6basisu22huffman_encoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %90 unwind label %99

90:                                               ; preds = %87
  %91 = invoke noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initERKNS_9histogramEj(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 16)
          to label %92 unwind label %101

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  invoke void @_ZN6basisu13bitwise_coderC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %93 unwind label %103

93:                                               ; preds = %92
  invoke void @_ZN6basisu13bitwise_coder4initEj(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1024)
          to label %94 unwind label %105

94:                                               ; preds = %93
  %95 = invoke noundef i32 @_ZN6basisu13bitwise_coder18emit_huffman_tableERKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.preheader unwind label %105

.preheader101.preheader:                          ; preds = %94
  %96 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.1 unwind label %127

97:                                               ; preds = %83, %79, %75, %71, %67, %63, %59, %55, %51, %47, %43, %39, %35, %31, %27, %23, %19, %15, %1
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %297

99:                                               ; preds = %87
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %296

101:                                              ; preds = %90
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %295

103:                                              ; preds = %92
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %190

105:                                              ; preds = %125, %94, %93
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %189

.preheader101.1:                                  ; preds = %.preheader101.preheader
  %107 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.2 unwind label %127

.preheader101.2:                                  ; preds = %.preheader101.1
  %108 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.3 unwind label %127

.preheader101.3:                                  ; preds = %.preheader101.2
  %109 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.4 unwind label %127

.preheader101.4:                                  ; preds = %.preheader101.3
  %110 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.5 unwind label %127

.preheader101.5:                                  ; preds = %.preheader101.4
  %111 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.6 unwind label %127

.preheader101.6:                                  ; preds = %.preheader101.5
  %112 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.7 unwind label %127

.preheader101.7:                                  ; preds = %.preheader101.6
  %113 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.8 unwind label %127

.preheader101.8:                                  ; preds = %.preheader101.7
  %114 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.9 unwind label %127

.preheader101.9:                                  ; preds = %.preheader101.8
  %115 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 9, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.10 unwind label %127

.preheader101.10:                                 ; preds = %.preheader101.9
  %116 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 10, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.11 unwind label %127

.preheader101.11:                                 ; preds = %.preheader101.10
  %117 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 11, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.12 unwind label %127

.preheader101.12:                                 ; preds = %.preheader101.11
  %118 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 12, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.13 unwind label %127

.preheader101.13:                                 ; preds = %.preheader101.12
  %119 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 13, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.14 unwind label %127

.preheader101.14:                                 ; preds = %.preheader101.13
  %120 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 14, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.15 unwind label %127

.preheader101.15:                                 ; preds = %.preheader101.14
  %121 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 15, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.16 unwind label %127

.preheader101.16:                                 ; preds = %.preheader101.15
  %122 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 16, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.17 unwind label %127

.preheader101.17:                                 ; preds = %.preheader101.16
  %123 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 17, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.preheader101.18 unwind label %127

.preheader101.18:                                 ; preds = %.preheader101.17
  %124 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 18, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %125 unwind label %127

125:                                              ; preds = %.preheader101.18
  %126 = invoke noundef i32 @_ZN6basisu13bitwise_coder5flushEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %129 unwind label %105

127:                                              ; preds = %.preheader101.18, %.preheader101.17, %.preheader101.16, %.preheader101.15, %.preheader101.14, %.preheader101.13, %.preheader101.12, %.preheader101.11, %.preheader101.10, %.preheader101.9, %.preheader101.8, %.preheader101.7, %.preheader101.6, %.preheader101.5, %.preheader101.4, %.preheader101.3, %.preheader101.2, %.preheader101.1, %.preheader101.preheader
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %189

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @_ZN6basist15bitwise_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef 0)
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %133 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %132)
  %134 = call noundef zeroext i1 @_ZN6basist15bitwise_decoder4initEPKhj(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %131, i32 noundef %133)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  invoke void @_ZN6basist22huffman_decoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %135 unwind label %140

135:                                              ; preds = %129
  %136 = invoke noundef zeroext i1 @_ZN6basist15bitwise_decoder18read_huffman_tableERNS_22huffman_decoding_tableE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %137 unwind label %142

137:                                              ; preds = %135
  br i1 %136, label %.preheader100.preheader, label %139

.preheader100.preheader:                          ; preds = %137
  %138 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %181 unwind label %183

139:                                              ; preds = %137
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 1188, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

140:                                              ; preds = %129
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %188

142:                                              ; preds = %135
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %187

.preheader100.1:                                  ; preds = %181
  %144 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %145 unwind label %183

145:                                              ; preds = %.preheader100.1
  %.not89.1 = icmp eq i32 %144, 1
  br i1 %.not89.1, label %.preheader100.2, label %182

.preheader100.2:                                  ; preds = %145
  %146 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %147 unwind label %183

147:                                              ; preds = %.preheader100.2
  %.not89.2 = icmp eq i32 %146, 2
  br i1 %.not89.2, label %.preheader100.3, label %182

.preheader100.3:                                  ; preds = %147
  %148 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %149 unwind label %183

149:                                              ; preds = %.preheader100.3
  %.not89.3 = icmp eq i32 %148, 3
  br i1 %.not89.3, label %.preheader100.4, label %182

.preheader100.4:                                  ; preds = %149
  %150 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %151 unwind label %183

151:                                              ; preds = %.preheader100.4
  %.not89.4 = icmp eq i32 %150, 4
  br i1 %.not89.4, label %.preheader100.5, label %182

.preheader100.5:                                  ; preds = %151
  %152 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %153 unwind label %183

153:                                              ; preds = %.preheader100.5
  %.not89.5 = icmp eq i32 %152, 5
  br i1 %.not89.5, label %.preheader100.6, label %182

.preheader100.6:                                  ; preds = %153
  %154 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %155 unwind label %183

155:                                              ; preds = %.preheader100.6
  %.not89.6 = icmp eq i32 %154, 6
  br i1 %.not89.6, label %.preheader100.7, label %182

.preheader100.7:                                  ; preds = %155
  %156 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %157 unwind label %183

157:                                              ; preds = %.preheader100.7
  %.not89.7 = icmp eq i32 %156, 7
  br i1 %.not89.7, label %.preheader100.8, label %182

.preheader100.8:                                  ; preds = %157
  %158 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %159 unwind label %183

159:                                              ; preds = %.preheader100.8
  %.not89.8 = icmp eq i32 %158, 8
  br i1 %.not89.8, label %.preheader100.9, label %182

.preheader100.9:                                  ; preds = %159
  %160 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %161 unwind label %183

161:                                              ; preds = %.preheader100.9
  %.not89.9 = icmp eq i32 %160, 9
  br i1 %.not89.9, label %.preheader100.10, label %182

.preheader100.10:                                 ; preds = %161
  %162 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %163 unwind label %183

163:                                              ; preds = %.preheader100.10
  %.not89.10 = icmp eq i32 %162, 10
  br i1 %.not89.10, label %.preheader100.11, label %182

.preheader100.11:                                 ; preds = %163
  %164 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %165 unwind label %183

165:                                              ; preds = %.preheader100.11
  %.not89.11 = icmp eq i32 %164, 11
  br i1 %.not89.11, label %.preheader100.12, label %182

.preheader100.12:                                 ; preds = %165
  %166 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %167 unwind label %183

167:                                              ; preds = %.preheader100.12
  %.not89.12 = icmp eq i32 %166, 12
  br i1 %.not89.12, label %.preheader100.13, label %182

.preheader100.13:                                 ; preds = %167
  %168 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %169 unwind label %183

169:                                              ; preds = %.preheader100.13
  %.not89.13 = icmp eq i32 %168, 13
  br i1 %.not89.13, label %.preheader100.14, label %182

.preheader100.14:                                 ; preds = %169
  %170 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %171 unwind label %183

171:                                              ; preds = %.preheader100.14
  %.not89.14 = icmp eq i32 %170, 14
  br i1 %.not89.14, label %.preheader100.15, label %182

.preheader100.15:                                 ; preds = %171
  %172 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %173 unwind label %183

173:                                              ; preds = %.preheader100.15
  %.not89.15 = icmp eq i32 %172, 15
  br i1 %.not89.15, label %.preheader100.16, label %182

.preheader100.16:                                 ; preds = %173
  %174 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %175 unwind label %183

175:                                              ; preds = %.preheader100.16
  %.not89.16 = icmp eq i32 %174, 16
  br i1 %.not89.16, label %.preheader100.17, label %182

.preheader100.17:                                 ; preds = %175
  %176 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %177 unwind label %183

177:                                              ; preds = %.preheader100.17
  %.not89.17 = icmp eq i32 %176, 17
  br i1 %.not89.17, label %.preheader100.18, label %182

.preheader100.18:                                 ; preds = %177
  %178 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 10)
          to label %179 unwind label %183

179:                                              ; preds = %.preheader100.18
  %.not89.18 = icmp eq i32 %178, 18
  br i1 %.not89.18, label %180, label %182

180:                                              ; preds = %179
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %7) #7
  invoke void @_ZN6basisu4randC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %7)
          to label %185 unwind label %191

181:                                              ; preds = %.preheader100.preheader
  %.not89 = icmp eq i32 %138, 0
  br i1 %.not89, label %.preheader100.1, label %182

182:                                              ; preds = %179, %177, %175, %173, %171, %169, %167, %165, %163, %161, %159, %157, %155, %153, %151, %149, %147, %145, %181
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 1198, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

183:                                              ; preds = %.preheader100.18, %.preheader100.17, %.preheader100.16, %.preheader100.15, %.preheader100.14, %.preheader100.13, %.preheader100.12, %.preheader100.11, %.preheader100.10, %.preheader100.9, %.preheader100.8, %.preheader100.7, %.preheader100.6, %.preheader100.5, %.preheader100.4, %.preheader100.3, %.preheader100.2, %.preheader100.1, %.preheader100.preheader
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %187

185:                                              ; preds = %180
  invoke void @_ZN6basisu4rand4seedEj(ptr noundef nonnull align 8 dereferenceable(5000) %7, i32 noundef %0)
          to label %.preheader99 unwind label %191

186:                                              ; preds = %._crit_edge113
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %7) #7
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  ret i1 true

187:                                              ; preds = %183, %142
  %.pn86 = phi { ptr, i32 } [ %184, %183 ], [ %143, %142 ]
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  br label %188

188:                                              ; preds = %187, %140
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %187 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  br label %189

189:                                              ; preds = %188, %127, %105
  %.pn90 = phi { ptr, i32 } [ %128, %127 ], [ %.pn86.pn, %188 ], [ %106, %105 ]
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %190

190:                                              ; preds = %189, %103
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %189 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %295

191:                                              ; preds = %185, %180
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %294

.preheader99:                                     ; preds = %185, %._crit_edge113
  %.067114 = phi i32 [ %276, %._crit_edge113 ], [ 0, %185 ]
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, i32 noundef %.067114)
  %194 = invoke noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000) %7, i32 noundef 0, i32 noundef 8193)
          to label %195 unwind label %203

195:                                              ; preds = %.preheader99
  %196 = invoke noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000) %7, i32 noundef 1, i32 noundef 10000)
          to label %197 unwind label %205

197:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %198 = zext i32 %196 to i64
  invoke void @_ZN6basisu6vectorIjEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %198)
          to label %.preheader98 unwind label %207

.preheader98:                                     ; preds = %197
  %.not115 = icmp eq i32 %196, 0
  br i1 %.not115, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader98
  %199 = uitofp i32 %194 to float
  %200 = fmul float %199, 5.000000e-01
  %201 = lshr i32 %194, 1
  br label %209

._crit_edge:                                      ; preds = %226, %.preheader98
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %202 = add i32 %194, 1
  invoke void @_ZN6basisu9histogramC2Ej(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %202)
          to label %.preheader97 unwind label %228

.preheader97:                                     ; preds = %._crit_edge
  br i1 %.not115, label %._crit_edge107, label %.lr.ph106

203:                                              ; preds = %.preheader99
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %294

205:                                              ; preds = %195
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %294

207:                                              ; preds = %197
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %293

209:                                              ; preds = %.lr.ph, %226
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %226 ]
  %210 = invoke noundef zeroext i1 @_ZN6basisu4rand3bitEv(ptr noundef nonnull align 8 dereferenceable(5000) %7)
          to label %211 unwind label %214

211:                                              ; preds = %209
  br i1 %210, label %212, label %216

212:                                              ; preds = %211
  %213 = invoke noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000) %7, i32 noundef 0, i32 noundef %194)
          to label %226 unwind label %214

214:                                              ; preds = %212, %209
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %292

216:                                              ; preds = %211
  %217 = call noundef i32 @_ZN6basisu7maximumIiEET_S1_S1_(i32 noundef 1, i32 noundef %201)
  %218 = sitofp i32 %217 to float
  %219 = invoke noundef float @_ZN6basisu4rand8gaussianEff(ptr noundef nonnull align 8 dereferenceable(5000) %7, float noundef %200, float noundef %218)
          to label %220 unwind label %224

220:                                              ; preds = %216
  %221 = fadd float %219, 5.000000e-01
  %222 = fptosi float %221 to i32
  %223 = call noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %222, i32 noundef 0, i32 noundef %194)
  br label %226

224:                                              ; preds = %216
  %225 = landingpad { ptr, i32 }
          cleanup
  br label %292

226:                                              ; preds = %212, %220
  %.sink = phi i32 [ %223, %220 ], [ %213, %212 ]
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv)
  store i32 %.sink, ptr %227, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %198
  br i1 %exitcond.not, label %._crit_edge, label %209, !llvm.loop !9

._crit_edge107:                                   ; preds = %233, %.preheader97
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  invoke void @_ZN6basisu22huffman_encoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %238 unwind label %242

228:                                              ; preds = %._crit_edge
  %229 = landingpad { ptr, i32 }
          cleanup
  br label %291

.lr.ph106:                                        ; preds = %.preheader97, %233
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %233 ], [ 0, %.preheader97 ]
  %230 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv120)
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %231)
          to label %233 unwind label %236

233:                                              ; preds = %.lr.ph106
  %234 = load i32, ptr %232, align 4, !tbaa !5
  %235 = add i32 %234, 1
  store i32 %235, ptr %232, align 4, !tbaa !5
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %198
  br i1 %exitcond124.not, label %._crit_edge107, label %.lr.ph106, !llvm.loop !11

236:                                              ; preds = %.lr.ph106
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %290

238:                                              ; preds = %._crit_edge107
  %239 = invoke noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initERKNS_9histogramEj(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 16)
          to label %240 unwind label %244

240:                                              ; preds = %238
  br i1 %239, label %246, label %241

241:                                              ; preds = %240
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 1237, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

242:                                              ; preds = %._crit_edge107
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %289

244:                                              ; preds = %238
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %288

246:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  invoke void @_ZN6basisu13bitwise_coderC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %247 unwind label %251

247:                                              ; preds = %246
  invoke void @_ZN6basisu13bitwise_coder4initEj(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1024)
          to label %248 unwind label %253

248:                                              ; preds = %247
  %249 = invoke noundef i32 @_ZN6basisu13bitwise_coder18emit_huffman_tableERKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %.preheader96 unwind label %253

.preheader96:                                     ; preds = %248
  br i1 %.not115, label %._crit_edge110, label %.lr.ph109

._crit_edge110:                                   ; preds = %258, %.preheader96
  %250 = invoke noundef i32 @_ZN6basisu13bitwise_coder5flushEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %261 unwind label %253

251:                                              ; preds = %246
  %252 = landingpad { ptr, i32 }
          cleanup
  br label %287

253:                                              ; preds = %._crit_edge110, %248, %247
  %254 = landingpad { ptr, i32 }
          cleanup
  br label %286

.lr.ph109:                                        ; preds = %.preheader96, %258
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %258 ], [ 0, %.preheader96 ]
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv125)
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = invoke noundef i32 @_ZN6basisu13bitwise_coder8put_codeEjRKNS_22huffman_encoding_tableE(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %256, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %258 unwind label %259

258:                                              ; preds = %.lr.ph109
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %198
  br i1 %exitcond129.not, label %._crit_edge110, label %.lr.ph109, !llvm.loop !12

259:                                              ; preds = %.lr.ph109
  %260 = landingpad { ptr, i32 }
          cleanup
  br label %286

261:                                              ; preds = %._crit_edge110
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #7
  call void @_ZN6basist15bitwise_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %262 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
  %263 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %262, i64 noundef 0)
  %264 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
  %265 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %264)
  %266 = call noundef zeroext i1 @_ZN6basist15bitwise_decoder4initEPKhj(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %263, i32 noundef %265)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #7
  invoke void @_ZN6basist22huffman_decoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %267 unwind label %271

267:                                              ; preds = %261
  %268 = invoke noundef zeroext i1 @_ZN6basist15bitwise_decoder18read_huffman_tableERNS_22huffman_decoding_tableE(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %269 unwind label %273

269:                                              ; preds = %267
  br i1 %268, label %.preheader, label %270

.preheader:                                       ; preds = %269
  br i1 %.not115, label %._crit_edge113, label %.lr.ph112

270:                                              ; preds = %269
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 1259, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

271:                                              ; preds = %261
  %272 = landingpad { ptr, i32 }
          cleanup
  br label %285

273:                                              ; preds = %267
  %274 = landingpad { ptr, i32 }
          cleanup
  br label %284

275:                                              ; preds = %278
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %198
  br i1 %exitcond134.not, label %._crit_edge113, label %.lr.ph112, !llvm.loop !13

._crit_edge113:                                   ; preds = %275, %.preheader
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #7
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %276 = add nuw nsw i32 %.067114, 1
  %exitcond135.not = icmp eq i32 %276, 500000
  br i1 %exitcond135.not, label %186, label %.preheader99, !llvm.loop !14

.lr.ph112:                                        ; preds = %.preheader, %275
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %275 ], [ 0, %.preheader ]
  %277 = invoke noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef 10)
          to label %278 unwind label %282

278:                                              ; preds = %.lr.ph112
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv130)
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %.not = icmp eq i32 %277, %280
  br i1 %.not, label %275, label %281

281:                                              ; preds = %278
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 1269, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu12huffman_testEi) #8
  unreachable

282:                                              ; preds = %.lr.ph112
  %283 = landingpad { ptr, i32 }
          cleanup
  br label %284

284:                                              ; preds = %282, %273
  %.pn = phi { ptr, i32 } [ %283, %282 ], [ %274, %273 ]
  call void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  br label %285

285:                                              ; preds = %284, %271
  %.pn.pn = phi { ptr, i32 } [ %.pn, %284 ], [ %272, %271 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #7
  br label %286

286:                                              ; preds = %285, %259, %253
  %.pn71 = phi { ptr, i32 } [ %260, %259 ], [ %.pn.pn, %285 ], [ %254, %253 ]
  call void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %287

287:                                              ; preds = %286, %251
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %286 ], [ %252, %251 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %288

288:                                              ; preds = %287, %244
  %.pn71.pn.pn = phi { ptr, i32 } [ %.pn71.pn, %287 ], [ %245, %244 ]
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %289

289:                                              ; preds = %288, %242
  %.pn71.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn, %288 ], [ %243, %242 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %290

290:                                              ; preds = %289, %236
  %.pn76 = phi { ptr, i32 } [ %237, %236 ], [ %.pn71.pn.pn.pn, %289 ]
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %291

291:                                              ; preds = %290, %228
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %290 ], [ %229, %228 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %292

292:                                              ; preds = %214, %224, %291
  %.pn79.pn = phi { ptr, i32 } [ %.pn76.pn, %291 ], [ %215, %214 ], [ %225, %224 ]
  call void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %293

293:                                              ; preds = %292, %207
  %.pn79.pn.pn = phi { ptr, i32 } [ %.pn79.pn, %292 ], [ %208, %207 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %294

294:                                              ; preds = %203, %293, %205, %191
  %.pn79.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %192, %191 ], [ %204, %203 ], [ %.pn79.pn.pn, %293 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %7) #7
  br label %295

295:                                              ; preds = %294, %190, %101
  %.pn90.pn.pn = phi { ptr, i32 } [ %.pn90.pn, %190 ], [ %.pn79.pn.pn.pn.pn.pn, %294 ], [ %102, %101 ]
  call void @_ZN6basisu22huffman_encoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %296

296:                                              ; preds = %295, %99
  %.pn90.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn, %295 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %297

297:                                              ; preds = %296, %97
  %.pn90.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn.pn, %296 ], [ %98, %97 ]
  call void @_ZN6basisu9histogramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn90.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu9histogramixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu13bitwise_coderC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu13bitwise_coder4initEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu13bitwise_coder5flushEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6basist15bitwise_decoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6basist15bitwise_decoder4initEPKhj(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu13bitwise_coder9get_bytesEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basist22huffman_decoding_tableC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basist15bitwise_decoder18read_huffman_tableERNS_22huffman_decoding_tableE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6basist15bitwise_decoder14decode_huffmanERKNS_22huffman_decoding_tableEi(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basist22huffman_decoding_tableD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu13bitwise_coderD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu4randC2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu4rand4seedEj(ptr noundef nonnull align 8 dereferenceable(5000), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6basisu4rand5irandEii(ptr noundef nonnull align 8 dereferenceable(5000), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIjEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basisu4rand3bitEv(ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6basisu4rand8gaussianEff(ptr noundef nonnull align 8 dereferenceable(5000), float noundef, float noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7maximumIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { nofree nounwind "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 = { inlinehint 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 #4 = { 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 #5 = { inlinehint 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass