; LLVM IR from intel/qpl :: sources/isal/igzip (igzip_icf_base)

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

%struct.isal_zstream = type { ptr, i32, i32, ptr, i32, i32, ptr, i32, i32, ptr, i16, i16, i16, i16, %struct.isal_zstate }
%struct.isal_zstate = type { i32, i32, i32, i32, i32, i32, %struct.BitBuf2, i32, i8, i8, i8, i8, i16, i32, [16 x i8], i32, i32, i32, i32, [65824 x i8], [8192 x i16] }
%struct.BitBuf2 = type { i64, i32, ptr, ptr, ptr }
%struct.level_buf = type { %struct.hufftables_icf, %struct.isal_mod_hist, i32, i32, [328 x i8], ptr, i64, ptr, %union.anon.4 }
%struct.hufftables_icf = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { [31 x %struct.huff_code], [513 x %struct.huff_code] }
%struct.huff_code = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { i32 }
%struct.isal_mod_hist = type { [30 x i32], [513 x i32] }
%union.anon.4 = type { %struct.hash_map_buf }
%struct.hash_map_buf = type { [32768 x i16], ptr, ptr, [4096 x %struct.deflate_icf], [288 x %struct.deflate_icf] }
%struct.deflate_icf = type { i32 }
%struct.hash_hist_buf = type { [32768 x i16] }

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @load_u32(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @compute_hash(i32 noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @get_len_icf_code(i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @get_dist_icf_code(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @write_deflate_icf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @get_lit_icf_code(i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qpl_isal_deflate_icf_finish_hash_hist_base(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  store i16 0, ptr %7, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.isal_zstream, ptr %25, i32 0, i32 14
  store ptr %26, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.isal_zstream, ptr %27, i32 0, i32 9
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  store ptr %29, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.level_buf, ptr %30, i32 0, i32 8
  %32 = getelementptr inbounds %struct.hash_hist_buf, ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds [32768 x i16], ptr %32, i64 0, i64 0
  store ptr %33, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.isal_zstream, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = ptrtoint ptr %36 to i64
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.isal_zstream, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !19
  %41 = zext i32 %40 to i64
  %42 = sub i64 %37, %41
  %43 = inttoptr i64 %42 to ptr
  store ptr %43, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.isal_zstate, ptr %44, i32 0, i32 3
  %46 = load i32, ptr %45, align 4, !tbaa !20
  store i32 %46, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.isal_zstate, ptr %47, i32 0, i32 4
  %49 = load i32, ptr %48, align 8, !tbaa !21
  store i32 %49, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.isal_zstream, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  store ptr %52, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.isal_zstream, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !22
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds i8, ptr %53, i64 %57
  store ptr %58, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %59, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.isal_zstream, ptr %60, i32 0, i32 9
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = getelementptr inbounds %struct.level_buf, ptr %62, i32 0, i32 5
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  store ptr %64, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %65 = load ptr, ptr %21, align 8, !tbaa !5
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.isal_zstream, ptr %66, i32 0, i32 9
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = getelementptr inbounds %struct.level_buf, ptr %68, i32 0, i32 6
  %70 = load i64, ptr %69, align 8, !tbaa !27
  %71 = udiv i64 %70, 4
  %72 = getelementptr inbounds %struct.deflate_icf, ptr %65, i64 %71
  store ptr %72, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %73 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %73, ptr %23, align 8, !tbaa !5
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.isal_zstream, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !22
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %94

78:                                               ; preds = %1
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.isal_zstream, ptr %79, i32 0, i32 10
  %81 = load i16, ptr %80, align 8, !tbaa !28
  %82 = zext i16 %81 to i32
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %90, label %84

84:                                               ; preds = %78
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.isal_zstream, ptr %85, i32 0, i32 11
  %87 = load i16, ptr %86, align 2, !tbaa !29
  %88 = zext i16 %87 to i32
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %93

90:                                               ; preds = %84, %78
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.isal_zstate, ptr %91, i32 0, i32 5
  store i32 2, ptr %92, align 4, !tbaa !30
  br label %93

93:                                               ; preds = %90, %84
  store i32 1, ptr %24, align 4
  br label %314

94:                                               ; preds = %1
  br label %95

95:                                               ; preds = %230, %198, %94
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 3
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = icmp ult ptr %97, %98
  br i1 %99, label %100, label %247

100:                                              ; preds = %95
  %101 = load ptr, ptr %23, align 8, !tbaa !5
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  %103 = icmp uge ptr %101, %102
  br i1 %103, label %104, label %114

104:                                              ; preds = %100
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.isal_zstate, ptr %105, i32 0, i32 5
  store i32 2, ptr %106, align 4, !tbaa !30
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load ptr, ptr %23, align 8, !tbaa !5
  %113 = load ptr, ptr %22, align 8, !tbaa !5
  call void @update_state(ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113)
  store i32 1, ptr %24, align 4
  br label %314

114:                                              ; preds = %100
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = call i32 @load_u32(ptr noundef %115)
  store i32 %116, ptr %3, align 4, !tbaa !9
  %117 = load i32, ptr %3, align 4, !tbaa !9
  %118 = call i32 @compute_hash(i32 noundef %117)
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = and i32 %118, %119
  store i32 %120, ptr %4, align 4, !tbaa !9
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = ptrtoint ptr %121 to i64
  %124 = ptrtoint ptr %122 to i64
  %125 = sub i64 %123, %124
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i32, ptr %4, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i16, ptr %126, i64 %128
  %130 = load i16, ptr %129, align 2, !tbaa !11
  %131 = zext i16 %130 to i64
  %132 = sub nsw i64 %125, %131
  %133 = and i64 %132, 65535
  %134 = trunc i64 %133 to i32
  store i32 %134, ptr %8, align 4, !tbaa !9
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = ptrtoint ptr %135 to i64
  %138 = ptrtoint ptr %136 to i64
  %139 = sub i64 %137, %138
  %140 = trunc i64 %139 to i16
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = load i32, ptr %4, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i16, ptr %141, i64 %143
  store i16 %140, ptr %144, align 2, !tbaa !11
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = sub i32 %145, 1
  %147 = load i32, ptr %16, align 4, !tbaa !9
  %148 = icmp ult i32 %146, %147
  br i1 %148, label %149, label %230

149:                                              ; preds = %114
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = sub i64 0, %152
  %154 = getelementptr inbounds i8, ptr %150, i64 %153
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = load ptr, ptr %20, align 8, !tbaa !5
  %158 = ptrtoint ptr %156 to i64
  %159 = ptrtoint ptr %157 to i64
  %160 = sub i64 %158, %159
  %161 = trunc i64 %160 to i32
  %162 = call i32 @compare258(ptr noundef %154, ptr noundef %155, i32 noundef %161)
  %163 = trunc i32 %162 to i16
  store i16 %163, ptr %7, align 2, !tbaa !11
  %164 = load i16, ptr %7, align 2, !tbaa !11
  %165 = zext i16 %164 to i32
  %166 = icmp sge i32 %165, 4
  br i1 %166, label %167, label %229

167:                                              ; preds = %149
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %168, ptr %6, align 8, !tbaa !5
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 3
  store ptr %170, ptr %5, align 8, !tbaa !5
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds i8, ptr %171, i32 1
  store ptr %172, ptr %6, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %195, %167
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 -3
  %177 = icmp ult ptr %174, %176
  br i1 %177, label %178, label %198

178:                                              ; preds = %173
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = call i32 @load_u32(ptr noundef %179)
  store i32 %180, ptr %3, align 4, !tbaa !9
  %181 = load i32, ptr %3, align 4, !tbaa !9
  %182 = call i32 @compute_hash(i32 noundef %181)
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = and i32 %182, %183
  store i32 %184, ptr %4, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = ptrtoint ptr %185 to i64
  %188 = ptrtoint ptr %186 to i64
  %189 = sub i64 %187, %188
  %190 = trunc i64 %189 to i16
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = load i32, ptr %4, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds i16, ptr %191, i64 %193
  store i16 %190, ptr %194, align 2, !tbaa !11
  br label %195

195:                                              ; preds = %178
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds i8, ptr %196, i32 1
  store ptr %197, ptr %6, align 8, !tbaa !5
  br label %173, !llvm.loop !31

198:                                              ; preds = %173
  %199 = load i16, ptr %7, align 2, !tbaa !11
  %200 = zext i16 %199 to i32
  call void @get_len_icf_code(i32 noundef %200, ptr noundef %9)
  %201 = load i32, ptr %8, align 4, !tbaa !9
  call void @get_dist_icf_code(i32 noundef %201, ptr noundef %10, ptr noundef %11)
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.level_buf, ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds %struct.isal_mod_hist, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %9, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds [513 x i32], ptr %204, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = add i32 %208, 1
  store i32 %209, ptr %207, align 4, !tbaa !9
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.level_buf, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds %struct.isal_mod_hist, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %10, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds [30 x i32], ptr %212, i64 0, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !9
  %217 = add i32 %216, 1
  store i32 %217, ptr %215, align 4, !tbaa !9
  %218 = load ptr, ptr %23, align 8, !tbaa !5
  %219 = load i32, ptr %9, align 4, !tbaa !9
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = load i32, ptr %11, align 4, !tbaa !9
  call void @write_deflate_icf(ptr noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %221)
  %222 = load ptr, ptr %23, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.deflate_icf, ptr %222, i32 1
  store ptr %223, ptr %23, align 8, !tbaa !5
  %224 = load i16, ptr %7, align 2, !tbaa !11
  %225 = zext i16 %224 to i32
  %226 = load ptr, ptr %20, align 8, !tbaa !5
  %227 = sext i32 %225 to i64
  %228 = getelementptr inbounds i8, ptr %226, i64 %227
  store ptr %228, ptr %20, align 8, !tbaa !5
  br label %95, !llvm.loop !33

229:                                              ; preds = %149
  br label %230

230:                                              ; preds = %229, %114
  %231 = load i32, ptr %3, align 4, !tbaa !9
  %232 = and i32 %231, 255
  call void @get_lit_icf_code(i32 noundef %232, ptr noundef %9)
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.level_buf, ptr %233, i32 0, i32 1
  %235 = getelementptr inbounds %struct.isal_mod_hist, ptr %234, i32 0, i32 1
  %236 = load i32, ptr %9, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = getelementptr inbounds [513 x i32], ptr %235, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = add i32 %239, 1
  store i32 %240, ptr %238, align 4, !tbaa !9
  %241 = load ptr, ptr %23, align 8, !tbaa !5
  %242 = load i32, ptr %9, align 4, !tbaa !9
  call void @write_deflate_icf(ptr noundef %241, i32 noundef %242, i32 noundef 30, i32 noundef 0)
  %243 = load ptr, ptr %23, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.deflate_icf, ptr %243, i32 1
  store ptr %244, ptr %23, align 8, !tbaa !5
  %245 = load ptr, ptr %20, align 8, !tbaa !5
  %246 = getelementptr inbounds i8, ptr %245, i32 1
  store ptr %246, ptr %20, align 8, !tbaa !5
  br label %95, !llvm.loop !33

247:                                              ; preds = %95
  br label %248

248:                                              ; preds = %266, %247
  %249 = load ptr, ptr %20, align 8, !tbaa !5
  %250 = load ptr, ptr %19, align 8, !tbaa !5
  %251 = icmp ult ptr %249, %250
  br i1 %251, label %252, label %286

252:                                              ; preds = %248
  %253 = load ptr, ptr %23, align 8, !tbaa !5
  %254 = load ptr, ptr %22, align 8, !tbaa !5
  %255 = icmp uge ptr %253, %254
  br i1 %255, label %256, label %266

256:                                              ; preds = %252
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.isal_zstate, ptr %257, i32 0, i32 5
  store i32 2, ptr %258, align 4, !tbaa !30
  %259 = load ptr, ptr %2, align 8, !tbaa !5
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = load ptr, ptr %20, align 8, !tbaa !5
  %262 = load ptr, ptr %19, align 8, !tbaa !5
  %263 = load ptr, ptr %21, align 8, !tbaa !5
  %264 = load ptr, ptr %23, align 8, !tbaa !5
  %265 = load ptr, ptr %22, align 8, !tbaa !5
  call void @update_state(ptr noundef %259, ptr noundef %260, ptr noundef %261, ptr noundef %262, ptr noundef %263, ptr noundef %264, ptr noundef %265)
  store i32 1, ptr %24, align 4
  br label %314

266:                                              ; preds = %252
  %267 = load ptr, ptr %20, align 8, !tbaa !5
  %268 = load i8, ptr %267, align 1, !tbaa !34
  %269 = zext i8 %268 to i32
  store i32 %269, ptr %3, align 4, !tbaa !9
  %270 = load i32, ptr %3, align 4, !tbaa !9
  %271 = and i32 %270, 255
  call void @get_lit_icf_code(i32 noundef %271, ptr noundef %9)
  %272 = load ptr, ptr %13, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.level_buf, ptr %272, i32 0, i32 1
  %274 = getelementptr inbounds %struct.isal_mod_hist, ptr %273, i32 0, i32 1
  %275 = load i32, ptr %9, align 4, !tbaa !9
  %276 = zext i32 %275 to i64
  %277 = getelementptr inbounds [513 x i32], ptr %274, i64 0, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = add i32 %278, 1
  store i32 %279, ptr %277, align 4, !tbaa !9
  %280 = load ptr, ptr %23, align 8, !tbaa !5
  %281 = load i32, ptr %9, align 4, !tbaa !9
  call void @write_deflate_icf(ptr noundef %280, i32 noundef %281, i32 noundef 30, i32 noundef 0)
  %282 = load ptr, ptr %23, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.deflate_icf, ptr %282, i32 1
  store ptr %283, ptr %23, align 8, !tbaa !5
  %284 = load ptr, ptr %20, align 8, !tbaa !5
  %285 = getelementptr inbounds i8, ptr %284, i32 1
  store ptr %285, ptr %20, align 8, !tbaa !5
  br label %248, !llvm.loop !35

286:                                              ; preds = %248
  %287 = load ptr, ptr %20, align 8, !tbaa !5
  %288 = load ptr, ptr %19, align 8, !tbaa !5
  %289 = icmp eq ptr %287, %288
  br i1 %289, label %290, label %306

290:                                              ; preds = %286
  %291 = load ptr, ptr %2, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.isal_zstream, ptr %291, i32 0, i32 10
  %293 = load i16, ptr %292, align 8, !tbaa !28
  %294 = zext i16 %293 to i32
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %302, label %296

296:                                              ; preds = %290
  %297 = load ptr, ptr %2, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.isal_zstream, ptr %297, i32 0, i32 11
  %299 = load i16, ptr %298, align 2, !tbaa !29
  %300 = zext i16 %299 to i32
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %305

302:                                              ; preds = %296, %290
  %303 = load ptr, ptr %12, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.isal_zstate, ptr %303, i32 0, i32 5
  store i32 2, ptr %304, align 4, !tbaa !30
  br label %305

305:                                              ; preds = %302, %296
  br label %306

306:                                              ; preds = %305, %286
  %307 = load ptr, ptr %2, align 8, !tbaa !5
  %308 = load ptr, ptr %18, align 8, !tbaa !5
  %309 = load ptr, ptr %20, align 8, !tbaa !5
  %310 = load ptr, ptr %19, align 8, !tbaa !5
  %311 = load ptr, ptr %21, align 8, !tbaa !5
  %312 = load ptr, ptr %23, align 8, !tbaa !5
  %313 = load ptr, ptr %22, align 8, !tbaa !5
  call void @update_state(ptr noundef %307, ptr noundef %308, ptr noundef %309, ptr noundef %310, ptr noundef %311, ptr noundef %312, ptr noundef %313)
  store i32 0, ptr %24, align 4
  br label %314

314:                                              ; preds = %306, %256, %104, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  %315 = load i32, ptr %24, align 4
  switch i32 %315, label %317 [
    i32 0, label %316
    i32 1, label %316
  ]

316:                                              ; preds = %314, %314
  ret void

317:                                              ; preds = %314
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !6, i64 48}
!14 = !{!"isal_zstream", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !12, i64 56, !12, i64 58, !12, i64 60, !12, i64 62, !15, i64 64}
!15 = !{!"isal_zstate", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !16, i64 24, !10, i64 64, !7, i64 68, !7, i64 69, !7, i64 70, !7, i64 71, !12, i64 72, !10, i64 76, !7, i64 80, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !7, i64 112, !7, i64 65936}
!16 = !{!"BitBuf2", !17, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"long", !7, i64 0}
!18 = !{!14, !6, i64 0}
!19 = !{!14, !10, i64 12}
!20 = !{!15, !10, i64 12}
!21 = !{!15, !10, i64 16}
!22 = !{!14, !10, i64 8}
!23 = !{!24, !6, i64 4688}
!24 = !{!"level_buf", !25, i64 0, !26, i64 2176, !10, i64 4348, !10, i64 4352, !7, i64 4356, !6, i64 4688, !17, i64 4696, !6, i64 4704, !7, i64 4712}
!25 = !{!"hufftables_icf", !7, i64 0}
!26 = !{!"isal_mod_hist", !7, i64 0, !7, i64 120}
!27 = !{!24, !17, i64 4696}
!28 = !{!14, !12, i64 56}
!29 = !{!14, !12, i64 58}
!30 = !{!15, !10, i64 20}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.deflate_icf = type { i32 }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @update_state(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @load_u32(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @compute_hash(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @get_len_icf_code(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @get_dist_icf_code(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @write_deflate_icf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @get_lit_icf_code(i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @qpl_isal_deflate_icf_finish_hash_hist_base(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  store i32 0, ptr %4, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %6, i64 4712
  %8 = load ptr, ptr %0, align 8, !tbaa !16
  %9 = ptrtoint ptr %8 to i64
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !17
  %12 = zext i32 %11 to i64
  %.neg = sub i64 %12, %9
  %13 = getelementptr inbounds i8, ptr %0, i64 76
  %14 = load i32, ptr %13, align 4, !tbaa !18
  %15 = getelementptr inbounds i8, ptr %0, i64 80
  %16 = load i32, ptr %15, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !20
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %8, i64 %19
  %21 = getelementptr inbounds i8, ptr %6, i64 4688
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %6, i64 4696
  %24 = load i64, ptr %23, align 8, !tbaa !25
  %25 = lshr i64 %24, 2
  %26 = getelementptr inbounds %struct.deflate_icf, ptr %22, i64 %25
  %27 = icmp eq i32 %18, 0
  br i1 %27, label %32, label %.preheader120

.preheader120:                                    ; preds = %1
  %28 = icmp ugt i32 %18, 3
  br i1 %28, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %.preheader120
  %29 = ptrtoint ptr %20 to i64
  %30 = getelementptr inbounds i8, ptr %6, i64 2296
  %31 = getelementptr inbounds i8, ptr %6, i64 2176
  br label %42

32:                                               ; preds = %1
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  %34 = load i16, ptr %33, align 8, !tbaa !26
  %.not117 = icmp eq i16 %34, 0
  br i1 %.not117, label %35, label %38

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %0, i64 58
  %37 = load i16, ptr %36, align 2, !tbaa !27
  %.not118 = icmp eq i16 %37, 0
  br i1 %.not118, label %112, label %38

38:                                               ; preds = %35, %32
  %39 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 2, ptr %39, align 4, !tbaa !28
  br label %112

.preheader:                                       ; preds = %.backedge, %.preheader120
  %.0105.lcssa = phi ptr [ %8, %.preheader120 ], [ %78, %.backedge ]
  %.0.lcssa = phi ptr [ %22, %.preheader120 ], [ %.0.be, %.backedge ]
  %40 = icmp ult ptr %.0105.lcssa, %20
  br i1 %40, label %.lr.ph132, label %._crit_edge

.lr.ph132:                                        ; preds = %.preheader
  %41 = getelementptr inbounds i8, ptr %6, i64 2296
  br label %88

42:                                               ; preds = %.lr.ph, %.backedge
  %.0128 = phi ptr [ %22, %.lr.ph ], [ %.0.be, %.backedge ]
  %.0105127 = phi ptr [ %8, %.lr.ph ], [ %78, %.backedge ]
  %.not116 = icmp ult ptr %.0128, %26
  br i1 %.not116, label %45, label %43

43:                                               ; preds = %42
  %44 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 2, ptr %44, align 4, !tbaa !28
  call void @update_state(ptr noundef nonnull %0, ptr noundef %8, ptr noundef %.0105127, ptr noundef nonnull %20, ptr noundef %22, ptr noundef %.0128, ptr noundef %26)
  br label %112

45:                                               ; preds = %42
  %46 = call i32 @load_u32(ptr noundef %.0105127)
  %47 = call i32 @compute_hash(i32 noundef %46)
  %48 = and i32 %47, %16
  %49 = ptrtoint ptr %.0105127 to i64
  %50 = add i64 %.neg, %49
  %51 = zext i32 %48 to i64
  %52 = getelementptr inbounds i16, ptr %7, i64 %51
  %53 = load i16, ptr %52, align 2, !tbaa !29
  %.tr = trunc i64 %50 to i16
  %.narrow = sub i16 %.tr, %53
  %54 = zext i16 %.narrow to i32
  store i16 %.tr, ptr %52, align 2, !tbaa !29
  %55 = add nsw i32 %54, -1
  %56 = icmp ult i32 %55, %14
  br i1 %56, label %57, label %81

57:                                               ; preds = %45
  %58 = zext i16 %.narrow to i64
  %59 = sub nsw i64 0, %58
  %60 = getelementptr inbounds i8, ptr %.0105127, i64 %59
  %61 = sub i64 %29, %49
  %62 = trunc i64 %61 to i32
  %63 = call i32 @compare258(ptr noundef %60, ptr noundef %.0105127, i32 noundef %62)
  %64 = and i32 %63, 65535
  %65 = icmp ugt i32 %64, 3
  br i1 %65, label %.preheader119, label %81

.preheader119:                                    ; preds = %57
  call void @get_len_icf_code(i32 noundef %64, ptr noundef nonnull %2)
  call void @get_dist_icf_code(i32 noundef %54, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [513 x i32], ptr %30, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = add i32 %69, 1
  store i32 %70, ptr %68, align 4, !tbaa !5
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds [30 x i32], ptr %31, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = add i32 %74, 1
  store i32 %75, ptr %73, align 4, !tbaa !5
  %76 = load i32, ptr %4, align 4, !tbaa !5
  call void @write_deflate_icf(ptr noundef %.0128, i32 noundef %66, i32 noundef %71, i32 noundef %76)
  %77 = zext nneg i32 %64 to i64
  br label %.backedge

.backedge:                                        ; preds = %.preheader119, %81
  %.sink = phi i64 [ %77, %.preheader119 ], [ 1, %81 ]
  %78 = getelementptr inbounds i8, ptr %.0105127, i64 %.sink
  %.0.be = getelementptr inbounds i8, ptr %.0128, i64 4
  %79 = getelementptr inbounds i8, ptr %78, i64 3
  %80 = icmp ult ptr %79, %20
  br i1 %80, label %42, label %.preheader, !llvm.loop !30

81:                                               ; preds = %57, %45
  %82 = and i32 %46, 255
  call void @get_lit_icf_code(i32 noundef %82, ptr noundef nonnull %2)
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds [513 x i32], ptr %30, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !5
  call void @write_deflate_icf(ptr noundef %.0128, i32 noundef %83, i32 noundef 30, i32 noundef 0)
  br label %.backedge

88:                                               ; preds = %.lr.ph132, %91
  %.1131 = phi ptr [ %.0.lcssa, %.lr.ph132 ], [ %99, %91 ]
  %.1106130 = phi ptr [ %.0105.lcssa, %.lr.ph132 ], [ %100, %91 ]
  %.not115 = icmp ult ptr %.1131, %26
  br i1 %.not115, label %91, label %89

89:                                               ; preds = %88
  %90 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 2, ptr %90, align 4, !tbaa !28
  call void @update_state(ptr noundef nonnull %0, ptr noundef %8, ptr noundef %.1106130, ptr noundef nonnull %20, ptr noundef %22, ptr noundef %.1131, ptr noundef %26)
  br label %112

91:                                               ; preds = %88
  %92 = load i8, ptr %.1106130, align 1, !tbaa !32
  %93 = zext i8 %92 to i32
  call void @get_lit_icf_code(i32 noundef %93, ptr noundef nonnull %2)
  %94 = load i32, ptr %2, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [513 x i32], ptr %41, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = add i32 %97, 1
  store i32 %98, ptr %96, align 4, !tbaa !5
  call void @write_deflate_icf(ptr noundef %.1131, i32 noundef %94, i32 noundef 30, i32 noundef 0)
  %99 = getelementptr inbounds i8, ptr %.1131, i64 4
  %100 = getelementptr inbounds i8, ptr %.1106130, i64 1
  %101 = icmp ult ptr %100, %20
  br i1 %101, label %88, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %91, %.preheader
  %.1106.lcssa = phi ptr [ %.0105.lcssa, %.preheader ], [ %100, %91 ]
  %.1.lcssa = phi ptr [ %.0.lcssa, %.preheader ], [ %99, %91 ]
  %102 = icmp eq ptr %.1106.lcssa, %20
  br i1 %102, label %103, label %111

103:                                              ; preds = %._crit_edge
  %104 = getelementptr inbounds i8, ptr %0, i64 56
  %105 = load i16, ptr %104, align 8, !tbaa !26
  %.not = icmp eq i16 %105, 0
  br i1 %.not, label %106, label %109

106:                                              ; preds = %103
  %107 = getelementptr inbounds i8, ptr %0, i64 58
  %108 = load i16, ptr %107, align 2, !tbaa !27
  %.not114 = icmp eq i16 %108, 0
  br i1 %.not114, label %111, label %109

109:                                              ; preds = %106, %103
  %110 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 2, ptr %110, align 4, !tbaa !28
  br label %111

111:                                              ; preds = %106, %109, %._crit_edge
  call void @update_state(ptr noundef nonnull %0, ptr noundef %8, ptr noundef %.1106.lcssa, ptr noundef nonnull %20, ptr noundef %22, ptr noundef %.1.lcssa, ptr noundef %26)
  br label %112

112:                                              ; preds = %35, %38, %111, %89, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 48}
!10 = !{!"isal_zstream", !11, i64 0, !6, i64 8, !6, i64 12, !11, i64 16, !6, i64 24, !6, i64 28, !11, i64 32, !6, i64 40, !6, i64 44, !11, i64 48, !12, i64 56, !12, i64 58, !12, i64 60, !12, i64 62, !13, i64 64}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"isal_zstate", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !14, i64 24, !6, i64 64, !7, i64 68, !7, i64 69, !7, i64 70, !7, i64 71, !12, i64 72, !6, i64 76, !7, i64 80, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !7, i64 112, !7, i64 65936}
!14 = !{!"BitBuf2", !15, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!15 = !{!"long", !7, i64 0}
!16 = !{!10, !11, i64 0}
!17 = !{!10, !6, i64 12}
!18 = !{!13, !6, i64 12}
!19 = !{!13, !6, i64 16}
!20 = !{!10, !6, i64 8}
!21 = !{!22, !11, i64 4688}
!22 = !{!"level_buf", !23, i64 0, !24, i64 2176, !6, i64 4348, !6, i64 4352, !7, i64 4356, !11, i64 4688, !15, i64 4696, !11, i64 4704, !7, i64 4712}
!23 = !{!"hufftables_icf", !7, i64 0}
!24 = !{!"isal_mod_hist", !7, i64 0, !7, i64 120}
!25 = !{!22, !15, i64 4696}
!26 = !{!10, !12, i64 56}
!27 = !{!10, !12, i64 58}
!28 = !{!13, !6, i64 20}
!29 = !{!12, !12, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !31}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass