; LLVM IR from indygreg/python-zstandard :: zstd (zstd)

; 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.ZDICT_cover_params_t = type { i32, i32, i32, i32, double, i32, i32, %struct.ZDICT_params_t }
%struct.ZDICT_params_t = type { i32, i32, i32 }
%struct.COVER_best_s = type { %union.pthread_mutex_t, %union.pthread_cond_t, i64, ptr, i64, %struct.ZDICT_cover_params_t, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.COVER_ctx_t = type { ptr, ptr, ptr, i64, i64, i64, ptr, i64, ptr, ptr, i32 }
%struct.COVER_tryParameters_data_s = type { ptr, ptr, i64, %struct.ZDICT_cover_params_t }

@stderr = external global ptr, align 8
@g_displayLevel = external hidden global i32, align 4
@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [31 x i8], align 1
@g_time = external hidden global i64, align 8
@.str.49 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @POOL_create(i64 noundef, i64 noundef) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ZSTD_isError(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @COVER_warnOnSmallCorpus(i64 noundef, i64 noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare i32 @fflush(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @COVER_checkParameters(ptr noundef byval(%struct.ZDICT_cover_params_t) align 8, i64 noundef) #1

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @ZDICT_optimizeTrainFromBuffer_cover(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5) #1 {
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.COVER_best_s, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %struct.COVER_ctx_t, align 8
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %37, i32 0, i32 3
  %39 = load i32, ptr %38, align 4, !tbaa !13
  store i32 %39, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %40, i32 0, i32 4
  %42 = load double, ptr %41, align 8, !tbaa !17
  %43 = fcmp ole double %42, 0.000000e+00
  br i1 %43, label %44, label %45

44:                                               ; preds = %6
  br label %49

45:                                               ; preds = %6
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %46, i32 0, i32 4
  %48 = load double, ptr %47, align 8, !tbaa !17
  br label %49

49:                                               ; preds = %45, %44
  %50 = phi double [ 1.000000e+00, %44 ], [ %48, %45 ]
  store double %50, ptr %15, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !19
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %49
  br label %60

56:                                               ; preds = %49
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !19
  br label %60

60:                                               ; preds = %56, %55
  %61 = phi i32 [ 6, %55 ], [ %59, %56 ]
  store i32 %61, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !19
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %60
  br label %71

67:                                               ; preds = %60
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !19
  br label %71

71:                                               ; preds = %67, %66
  %72 = phi i32 [ 8, %66 ], [ %70, %67 ]
  store i32 %72, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !20
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %71
  br label %82

78:                                               ; preds = %71
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !20
  br label %82

82:                                               ; preds = %78, %77
  %83 = phi i32 [ 50, %77 ], [ %81, %78 ]
  store i32 %83, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !20
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  br label %93

89:                                               ; preds = %82
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !20
  br label %93

93:                                               ; preds = %89, %88
  %94 = phi i32 [ 2000, %88 ], [ %92, %89 ]
  store i32 %94, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 8, !tbaa !21
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  br label %104

100:                                              ; preds = %93
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %101, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !21
  br label %104

104:                                              ; preds = %100, %99
  %105 = phi i32 [ 40, %99 ], [ %103, %100 ]
  store i32 %105, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %106 = load i32, ptr %19, align 4, !tbaa !11
  %107 = load i32, ptr %18, align 4, !tbaa !11
  %108 = sub i32 %106, %107
  %109 = load i32, ptr %20, align 4, !tbaa !11
  %110 = udiv i32 %108, %109
  %111 = icmp ugt i32 %110, 1
  br i1 %111, label %112, label %118

112:                                              ; preds = %104
  %113 = load i32, ptr %19, align 4, !tbaa !11
  %114 = load i32, ptr %18, align 4, !tbaa !11
  %115 = sub i32 %113, %114
  %116 = load i32, ptr %20, align 4, !tbaa !11
  %117 = udiv i32 %115, %116
  br label %119

118:                                              ; preds = %104
  br label %119

119:                                              ; preds = %118, %112
  %120 = phi i32 [ %117, %112 ], [ 1, %118 ]
  store i32 %120, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %121 = load i32, ptr %17, align 4, !tbaa !11
  %122 = load i32, ptr %16, align 4, !tbaa !11
  %123 = sub i32 %121, %122
  %124 = udiv i32 %123, 2
  %125 = add i32 1, %124
  %126 = load i32, ptr %19, align 4, !tbaa !11
  %127 = load i32, ptr %18, align 4, !tbaa !11
  %128 = sub i32 %126, %127
  %129 = load i32, ptr %21, align 4, !tbaa !11
  %130 = udiv i32 %128, %129
  %131 = add i32 1, %130
  %132 = mul i32 %125, %131
  store i32 %132, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %133, i32 0, i32 7
  %135 = getelementptr inbounds %struct.ZDICT_params_t, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !22
  store i32 %136, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 1, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 168, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store ptr null, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !11
  %137 = load double, ptr %15, align 8, !tbaa !18
  %138 = fcmp ole double %137, 0.000000e+00
  br i1 %138, label %142, label %139

139:                                              ; preds = %119
  %140 = load double, ptr %15, align 8, !tbaa !18
  %141 = fcmp ogt double %140, 1.000000e+00
  br i1 %141, label %142, label %151

142:                                              ; preds = %139, %119
  %143 = load i32, ptr %24, align 4, !tbaa !11
  %144 = icmp sge i32 %143, 1
  br i1 %144, label %145, label %150

145:                                              ; preds = %142
  %146 = load ptr, ptr @stderr, align 8, !tbaa !5
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.43) #6
  %148 = load ptr, ptr @stderr, align 8, !tbaa !5
  %149 = call i32 @fflush(ptr noundef %148)
  br label %150

150:                                              ; preds = %145, %142
  store i64 -42, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %423

151:                                              ; preds = %139
  %152 = load i32, ptr %18, align 4, !tbaa !11
  %153 = load i32, ptr %17, align 4, !tbaa !11
  %154 = icmp ult i32 %152, %153
  br i1 %154, label %159, label %155

155:                                              ; preds = %151
  %156 = load i32, ptr %19, align 4, !tbaa !11
  %157 = load i32, ptr %18, align 4, !tbaa !11
  %158 = icmp ult i32 %156, %157
  br i1 %158, label %159, label %168

159:                                              ; preds = %155, %151
  %160 = load i32, ptr %24, align 4, !tbaa !11
  %161 = icmp sge i32 %160, 1
  br i1 %161, label %162, label %167

162:                                              ; preds = %159
  %163 = load ptr, ptr @stderr, align 8, !tbaa !5
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.43) #6
  %165 = load ptr, ptr @stderr, align 8, !tbaa !5
  %166 = call i32 @fflush(ptr noundef %165)
  br label %167

167:                                              ; preds = %162, %159
  store i64 -42, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %423

168:                                              ; preds = %155
  %169 = load i32, ptr %12, align 4, !tbaa !11
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %171, label %180

171:                                              ; preds = %168
  %172 = load i32, ptr @g_displayLevel, align 4, !tbaa !11
  %173 = icmp sge i32 %172, 1
  br i1 %173, label %174, label %179

174:                                              ; preds = %171
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.38) #6
  %177 = load ptr, ptr @stderr, align 8, !tbaa !5
  %178 = call i32 @fflush(ptr noundef %177)
  br label %179

179:                                              ; preds = %174, %171
  store i64 -72, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %423

180:                                              ; preds = %168
  %181 = load i64, ptr %9, align 8, !tbaa !9
  %182 = icmp ult i64 %181, 256
  br i1 %182, label %183, label %192

183:                                              ; preds = %180
  %184 = load i32, ptr @g_displayLevel, align 4, !tbaa !11
  %185 = icmp sge i32 %184, 1
  br i1 %185, label %186, label %191

186:                                              ; preds = %183
  %187 = load ptr, ptr @stderr, align 8, !tbaa !5
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.39, i32 noundef 256) #6
  %189 = load ptr, ptr @stderr, align 8, !tbaa !5
  %190 = call i32 @fflush(ptr noundef %189)
  br label %191

191:                                              ; preds = %186, %183
  store i64 -70, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %423

192:                                              ; preds = %180
  %193 = load i32, ptr %14, align 4, !tbaa !11
  %194 = icmp ugt i32 %193, 1
  br i1 %194, label %195, label %203

195:                                              ; preds = %192
  %196 = load i32, ptr %14, align 4, !tbaa !11
  %197 = zext i32 %196 to i64
  %198 = call ptr @POOL_create(i64 noundef %197, i64 noundef 1)
  store ptr %198, ptr %29, align 8, !tbaa !5
  %199 = load ptr, ptr %29, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  br i1 %200, label %202, label %201

201:                                              ; preds = %195
  store i64 -64, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %423

202:                                              ; preds = %195
  br label %203

203:                                              ; preds = %202, %192
  call void @COVER_best_init(ptr noundef %28)
  %204 = load i32, ptr %24, align 4, !tbaa !11
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %206, label %207

206:                                              ; preds = %203
  br label %210

207:                                              ; preds = %203
  %208 = load i32, ptr %24, align 4, !tbaa !11
  %209 = sub nsw i32 %208, 1
  br label %210

210:                                              ; preds = %207, %206
  %211 = phi i32 [ 0, %206 ], [ %209, %207 ]
  store i32 %211, ptr @g_displayLevel, align 4, !tbaa !11
  %212 = load i32, ptr %24, align 4, !tbaa !11
  %213 = icmp sge i32 %212, 2
  br i1 %213, label %214, label %220

214:                                              ; preds = %210
  %215 = load ptr, ptr @stderr, align 8, !tbaa !5
  %216 = load i32, ptr %22, align 4, !tbaa !11
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.44, i32 noundef %216) #6
  %218 = load ptr, ptr @stderr, align 8, !tbaa !5
  %219 = call i32 @fflush(ptr noundef %218)
  br label %220

220:                                              ; preds = %214, %210
  %221 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %221, ptr %26, align 4, !tbaa !11
  br label %222

222:                                              ; preds = %390, %220
  %223 = load i32, ptr %26, align 4, !tbaa !11
  %224 = load i32, ptr %17, align 4, !tbaa !11
  %225 = icmp ule i32 %223, %224
  br i1 %225, label %226, label %393

226:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 88, ptr %32) #6
  %227 = load i32, ptr %24, align 4, !tbaa !11
  %228 = icmp sge i32 %227, 3
  br i1 %228, label %229, label %235

229:                                              ; preds = %226
  %230 = load ptr, ptr @stderr, align 8, !tbaa !5
  %231 = load i32, ptr %26, align 4, !tbaa !11
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.45, i32 noundef %231) #6
  %233 = load ptr, ptr @stderr, align 8, !tbaa !5
  %234 = call i32 @fflush(ptr noundef %233)
  br label %235

235:                                              ; preds = %229, %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = load i32, ptr %12, align 4, !tbaa !11
  %239 = load i32, ptr %26, align 4, !tbaa !11
  %240 = load double, ptr %15, align 8, !tbaa !18
  %241 = call i64 @COVER_ctx_init(ptr noundef %32, ptr noundef %236, ptr noundef %237, i32 noundef %238, i32 noundef %239, double noundef %240)
  store i64 %241, ptr %33, align 8, !tbaa !9
  %242 = load i64, ptr %33, align 8, !tbaa !9
  %243 = call i32 @ZSTD_isError(i64 noundef %242)
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %256

245:                                              ; preds = %235
  %246 = load i32, ptr %24, align 4, !tbaa !11
  %247 = icmp sge i32 %246, 1
  br i1 %247, label %248, label %253

248:                                              ; preds = %245
  %249 = load ptr, ptr @stderr, align 8, !tbaa !5
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %249, ptr noundef @.str.46) #6
  %251 = load ptr, ptr @stderr, align 8, !tbaa !5
  %252 = call i32 @fflush(ptr noundef %251)
  br label %253

253:                                              ; preds = %248, %245
  call void @COVER_best_destroy(ptr noundef %28)
  %254 = load ptr, ptr %29, align 8, !tbaa !5
  call void @POOL_free(ptr noundef %254)
  %255 = load i64, ptr %33, align 8, !tbaa !9
  store i64 %255, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %257

256:                                              ; preds = %235
  store i32 0, ptr %31, align 4
  br label %257

257:                                              ; preds = %256, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  %258 = load i32, ptr %31, align 4
  switch i32 %258, label %387 [
    i32 0, label %259
  ]

259:                                              ; preds = %257
  %260 = load i32, ptr %30, align 4, !tbaa !11
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %267, label %262

262:                                              ; preds = %259
  %263 = load i64, ptr %9, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.COVER_ctx_t, ptr %32, i32 0, i32 7
  %265 = load i64, ptr %264, align 8, !tbaa !23
  %266 = load i32, ptr %24, align 4, !tbaa !11
  call void @COVER_warnOnSmallCorpus(i64 noundef %263, i64 noundef %265, i32 noundef %266)
  store i32 1, ptr %30, align 4, !tbaa !11
  br label %267

267:                                              ; preds = %262, %259
  %268 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %268, ptr %27, align 4, !tbaa !11
  br label %269

269:                                              ; preds = %382, %267
  %270 = load i32, ptr %27, align 4, !tbaa !11
  %271 = load i32, ptr %19, align 4, !tbaa !11
  %272 = icmp ule i32 %270, %271
  br i1 %272, label %273, label %386

273:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %274 = call noalias ptr @malloc(i64 noundef 72) #7
  store ptr %274, ptr %34, align 8, !tbaa !5
  %275 = load i32, ptr %24, align 4, !tbaa !11
  %276 = icmp sge i32 %275, 3
  br i1 %276, label %277, label %283

277:                                              ; preds = %273
  %278 = load ptr, ptr @stderr, align 8, !tbaa !5
  %279 = load i32, ptr %27, align 4, !tbaa !11
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.47, i32 noundef %279) #6
  %281 = load ptr, ptr @stderr, align 8, !tbaa !5
  %282 = call i32 @fflush(ptr noundef %281)
  br label %283

283:                                              ; preds = %277, %273
  %284 = load ptr, ptr %34, align 8, !tbaa !5
  %285 = icmp ne ptr %284, null
  br i1 %285, label %296, label %286

286:                                              ; preds = %283
  %287 = load i32, ptr %24, align 4, !tbaa !11
  %288 = icmp sge i32 %287, 1
  br i1 %288, label %289, label %294

289:                                              ; preds = %286
  %290 = load ptr, ptr @stderr, align 8, !tbaa !5
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.48) #6
  %292 = load ptr, ptr @stderr, align 8, !tbaa !5
  %293 = call i32 @fflush(ptr noundef %292)
  br label %294

294:                                              ; preds = %289, %286
  call void @COVER_best_destroy(ptr noundef %28)
  call void @COVER_ctx_destroy(ptr noundef %32)
  %295 = load ptr, ptr %29, align 8, !tbaa !5
  call void @POOL_free(ptr noundef %295)
  store i64 -64, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %379

296:                                              ; preds = %283
  %297 = load ptr, ptr %34, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %297, i32 0, i32 0
  store ptr %32, ptr %298, align 8, !tbaa !25
  %299 = load ptr, ptr %34, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %299, i32 0, i32 1
  store ptr %28, ptr %300, align 8, !tbaa !27
  %301 = load i64, ptr %9, align 8, !tbaa !9
  %302 = load ptr, ptr %34, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %302, i32 0, i32 2
  store i64 %301, ptr %303, align 8, !tbaa !28
  %304 = load ptr, ptr %34, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %304, i32 0, i32 3
  %306 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %305, ptr align 8 %306, i64 48, i1 false), !tbaa.struct !29
  %307 = load i32, ptr %27, align 4, !tbaa !11
  %308 = load ptr, ptr %34, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %308, i32 0, i32 3
  %310 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %309, i32 0, i32 0
  store i32 %307, ptr %310, align 8, !tbaa !30
  %311 = load i32, ptr %26, align 4, !tbaa !11
  %312 = load ptr, ptr %34, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %312, i32 0, i32 3
  %314 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %313, i32 0, i32 1
  store i32 %311, ptr %314, align 4, !tbaa !31
  %315 = load double, ptr %15, align 8, !tbaa !18
  %316 = load ptr, ptr %34, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %316, i32 0, i32 3
  %318 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %317, i32 0, i32 4
  store double %315, ptr %318, align 8, !tbaa !32
  %319 = load i32, ptr %20, align 4, !tbaa !11
  %320 = load ptr, ptr %34, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %320, i32 0, i32 3
  %322 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %321, i32 0, i32 2
  store i32 %319, ptr %322, align 8, !tbaa !33
  %323 = load ptr, ptr %34, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %323, i32 0, i32 3
  %325 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %324, i32 0, i32 5
  store i32 0, ptr %325, align 8, !tbaa !34
  %326 = load i32, ptr @g_displayLevel, align 4, !tbaa !11
  %327 = load ptr, ptr %34, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %327, i32 0, i32 3
  %329 = getelementptr inbounds %struct.ZDICT_cover_params_t, ptr %328, i32 0, i32 7
  %330 = getelementptr inbounds %struct.ZDICT_params_t, ptr %329, i32 0, i32 1
  store i32 %326, ptr %330, align 4, !tbaa !35
  %331 = load ptr, ptr %34, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.COVER_tryParameters_data_s, ptr %331, i32 0, i32 3
  %333 = load i64, ptr %9, align 8, !tbaa !9
  %334 = call i32 @COVER_checkParameters(ptr noundef byval(%struct.ZDICT_cover_params_t) align 8 %332, i64 noundef %333)
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %346, label %336

336:                                              ; preds = %296
  %337 = load i32, ptr @g_displayLevel, align 4, !tbaa !11
  %338 = icmp sge i32 %337, 1
  br i1 %338, label %339, label %344

339:                                              ; preds = %336
  %340 = load ptr, ptr @stderr, align 8, !tbaa !5
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %340, ptr noundef @.str.37) #6
  %342 = load ptr, ptr @stderr, align 8, !tbaa !5
  %343 = call i32 @fflush(ptr noundef %342)
  br label %344

344:                                              ; preds = %339, %336
  %345 = load ptr, ptr %34, align 8, !tbaa !5
  call void @free(ptr noundef %345) #6
  store i32 7, ptr %31, align 4
  br label %379

346:                                              ; preds = %296
  call void @COVER_best_start(ptr noundef %28)
  %347 = load ptr, ptr %29, align 8, !tbaa !5
  %348 = icmp ne ptr %347, null
  br i1 %348, label %349, label %352

349:                                              ; preds = %346
  %350 = load ptr, ptr %29, align 8, !tbaa !5
  %351 = load ptr, ptr %34, align 8, !tbaa !5
  call void @POOL_add(ptr noundef %350, ptr noundef @COVER_tryParameters, ptr noundef %351)
  br label %354

352:                                              ; preds = %346
  %353 = load ptr, ptr %34, align 8, !tbaa !5
  call void @COVER_tryParameters(ptr noundef %353)
  br label %354

354:                                              ; preds = %352, %349
  %355 = load i32, ptr %24, align 4, !tbaa !11
  %356 = icmp sge i32 %355, 2
  br i1 %356, label %357, label %376

357:                                              ; preds = %354
  %358 = call i64 @clock() #6
  %359 = load i64, ptr @g_time, align 8, !tbaa !9
  %360 = sub nsw i64 %358, %359
  %361 = icmp sgt i64 %360, 150000
  br i1 %361, label %365, label %362

362:                                              ; preds = %357
  %363 = load i32, ptr %24, align 4, !tbaa !11
  %364 = icmp sge i32 %363, 4
  br i1 %364, label %365, label %375

365:                                              ; preds = %362, %357
  %366 = call i64 @clock() #6
  store i64 %366, ptr @g_time, align 8, !tbaa !9
  %367 = load ptr, ptr @stderr, align 8, !tbaa !5
  %368 = load i32, ptr %25, align 4, !tbaa !11
  %369 = mul i32 %368, 100
  %370 = load i32, ptr %22, align 4, !tbaa !11
  %371 = udiv i32 %369, %370
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %367, ptr noundef @.str.49, i32 noundef %371) #6
  %373 = load ptr, ptr @stderr, align 8, !tbaa !5
  %374 = call i32 @fflush(ptr noundef %373)
  br label %375

375:                                              ; preds = %365, %362
  br label %376

376:                                              ; preds = %375, %354
  %377 = load i32, ptr %25, align 4, !tbaa !11
  %378 = add i32 %377, 1
  store i32 %378, ptr %25, align 4, !tbaa !11
  store i32 0, ptr %31, align 4
  br label %379

379:                                              ; preds = %376, %344, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  %380 = load i32, ptr %31, align 4
  switch i32 %380, label %387 [
    i32 0, label %381
    i32 7, label %382
  ]

381:                                              ; preds = %379
  br label %382

382:                                              ; preds = %381, %379
  %383 = load i32, ptr %21, align 4, !tbaa !11
  %384 = load i32, ptr %27, align 4, !tbaa !11
  %385 = add i32 %384, %383
  store i32 %385, ptr %27, align 4, !tbaa !11
  br label %269, !llvm.loop !36

386:                                              ; preds = %269
  call void @COVER_best_wait(ptr noundef %28)
  call void @COVER_ctx_destroy(ptr noundef %32)
  store i32 0, ptr %31, align 4
  br label %387

387:                                              ; preds = %386, %379, %257
  call void @llvm.lifetime.end.p0(i64 88, ptr %32) #6
  %388 = load i32, ptr %31, align 4
  switch i32 %388, label %423 [
    i32 0, label %389
  ]

389:                                              ; preds = %387
  br label %390

390:                                              ; preds = %389
  %391 = load i32, ptr %26, align 4, !tbaa !11
  %392 = add i32 %391, 2
  store i32 %392, ptr %26, align 4, !tbaa !11
  br label %222, !llvm.loop !38

393:                                              ; preds = %222
  %394 = load i32, ptr %24, align 4, !tbaa !11
  %395 = icmp sge i32 %394, 2
  br i1 %395, label %396, label %401

396:                                              ; preds = %393
  %397 = load ptr, ptr @stderr, align 8, !tbaa !5
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %397, ptr noundef @.str.50, ptr noundef @.str.51) #6
  %399 = load ptr, ptr @stderr, align 8, !tbaa !5
  %400 = call i32 @fflush(ptr noundef %399)
  br label %401

401:                                              ; preds = %396, %393
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %402 = getelementptr inbounds %struct.COVER_best_s, ptr %28, i32 0, i32 4
  %403 = load i64, ptr %402, align 8, !tbaa !39
  store i64 %403, ptr %35, align 8, !tbaa !9
  %404 = getelementptr inbounds %struct.COVER_best_s, ptr %28, i32 0, i32 6
  %405 = load i64, ptr %404, align 8, !tbaa !41
  %406 = call i32 @ZSTD_isError(i64 noundef %405)
  %407 = icmp ne i32 %406, 0
  br i1 %407, label %408, label %413

408:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %409 = getelementptr inbounds %struct.COVER_best_s, ptr %28, i32 0, i32 6
  %410 = load i64, ptr %409, align 8, !tbaa !41
  store i64 %410, ptr %36, align 8, !tbaa !9
  call void @COVER_best_destroy(ptr noundef %28)
  %411 = load ptr, ptr %29, align 8, !tbaa !5
  call void @POOL_free(ptr noundef %411)
  %412 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %412, ptr %7, align 8
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %422

413:                                              ; preds = %401
  %414 = load ptr, ptr %13, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.COVER_best_s, ptr %28, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %414, ptr align 8 %415, i64 48, i1 false), !tbaa.struct !29
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.COVER_best_s, ptr %28, i32 0, i32 3
  %418 = load ptr, ptr %417, align 8, !tbaa !42
  %419 = load i64, ptr %35, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %416, ptr align 1 %418, i64 %419, i1 false)
  call void @COVER_best_destroy(ptr noundef %28)
  %420 = load ptr, ptr %29, align 8, !tbaa !5
  call void @POOL_free(ptr noundef %420)
  %421 = load i64, ptr %35, align 8, !tbaa !9
  store i64 %421, ptr %7, align 8
  store i32 1, ptr %31, align 4
  br label %422

422:                                              ; preds = %413, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %423

423:                                              ; preds = %422, %387, %201, %191, %179, %167, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 168, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %424 = load i64, ptr %7, align 8
  ret i64 %424
}

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

; Function Attrs: nounwind
declare i64 @clock() #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 12}
!14 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !15, i64 16, !12, i64 24, !12, i64 28, !16, i64 32}
!15 = !{!"double", !7, i64 0}
!16 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!17 = !{!14, !15, i64 16}
!18 = !{!15, !15, i64 0}
!19 = !{!14, !12, i64 4}
!20 = !{!14, !12, i64 0}
!21 = !{!14, !12, i64 8}
!22 = !{!14, !12, i64 36}
!23 = !{!24, !10, i64 56}
!24 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !12, i64 80}
!25 = !{!26, !6, i64 0}
!26 = !{!"COVER_tryParameters_data_s", !6, i64 0, !6, i64 8, !10, i64 16, !14, i64 24}
!27 = !{!26, !6, i64 8}
!28 = !{!26, !10, i64 16}
!29 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11, i64 16, i64 8, !18, i64 24, i64 4, !11, i64 28, i64 4, !11, i64 32, i64 4, !11, i64 36, i64 4, !11, i64 40, i64 4, !11}
!30 = !{!26, !12, i64 24}
!31 = !{!26, !12, i64 28}
!32 = !{!26, !15, i64 40}
!33 = !{!26, !12, i64 32}
!34 = !{!26, !12, i64 48}
!35 = !{!26, !12, i64 60}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = !{!40, !10, i64 104}
!40 = !{!"COVER_best_s", !7, i64 0, !7, i64 40, !10, i64 88, !6, i64 96, !10, i64 104, !14, i64 112, !10, i64 160}
!41 = !{!40, !10, i64 160}
!42 = !{!40, !6, i64 96}


; 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.ZDICT_cover_params_t = type { i32, i32, i32, i32, double, i32, i32, %struct.ZDICT_params_t }
%struct.ZDICT_params_t = type { i32, i32, i32 }
%struct.COVER_best_s = type { %union.pthread_mutex_t, %union.pthread_cond_t, i64, ptr, i64, %struct.ZDICT_cover_params_t, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.COVER_ctx_t = type { ptr, ptr, ptr, i64, i64, i64, ptr, i64, ptr, ptr, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@g_displayLevel = external hidden local_unnamed_addr global i32, align 4
@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [31 x i8], align 1
@g_time = external hidden local_unnamed_addr global i64, align 8
@.str.49 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [1 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: nounwind uwtable
declare dso_local ptr @POOL_create(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @POOL_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ZSTD_isError(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @COVER_warnOnSmallCorpus(i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @COVER_checkParameters(ptr noundef byval(%struct.ZDICT_cover_params_t) align 8, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i64 @COVER_ctx_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local void @COVER_best_init(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @COVER_best_wait(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @COVER_best_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @COVER_best_start(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @ZDICT_optimizeTrainFromBuffer_cover(ptr nocapture noundef writeonly %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr nocapture noundef %5) local_unnamed_addr #1 {
  %7 = alloca %struct.COVER_best_s, align 8
  %8 = alloca %struct.COVER_ctx_t, align 8
  %9 = getelementptr inbounds i8, ptr %5, i64 12
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %5, i64 16
  %12 = load double, ptr %11, align 8, !tbaa !12
  %13 = fcmp ugt double %12, 0.000000e+00
  %14 = select i1 %13, double %12, double 1.000000e+00
  %15 = getelementptr inbounds i8, ptr %5, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !13
  %17 = icmp eq i32 %16, 0
  %18 = select i1 %17, i32 6, i32 %16
  %19 = select i1 %17, i32 8, i32 %16
  %20 = load i32, ptr %5, align 8, !tbaa !14
  %21 = icmp eq i32 %20, 0
  %22 = select i1 %21, i32 50, i32 %20
  %23 = select i1 %21, i32 2000, i32 %20
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !15
  %26 = icmp eq i32 %25, 0
  %27 = select i1 %26, i32 40, i32 %25
  %28 = select i1 %21, i32 1950, i32 0
  %29 = udiv i32 %28, %27
  %30 = tail call i32 @llvm.umax.i32(i32 %29, i32 1)
  %.lhs.trunc = trunc nuw nsw i32 %28 to i16
  %.rhs.trunc = trunc nuw nsw i32 %30 to i16
  %31 = udiv i16 %.lhs.trunc, %.rhs.trunc
  %narrow = add nuw nsw i16 %31, 1
  %32 = zext nneg i16 %narrow to i32
  %33 = zext i1 %17 to i32
  %34 = shl nuw nsw i32 %32, %33
  %35 = getelementptr inbounds i8, ptr %5, i64 36
  %36 = load i32, ptr %35, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %7) #8
  %37 = fcmp ogt double %14, 1.000000e+00
  br i1 %37, label %38, label %45

38:                                               ; preds = %6
  %39 = icmp sgt i32 %36, 0
  br i1 %39, label %40, label %184

40:                                               ; preds = %38
  %41 = load ptr, ptr @stderr, align 8, !tbaa !17
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.43) #9
  %43 = load ptr, ptr @stderr, align 8, !tbaa !17
  %44 = tail call i32 @fflush(ptr noundef %43)
  br label %184

45:                                               ; preds = %6
  %46 = icmp ult i32 %22, %19
  %47 = icmp ult i32 %23, %22
  %or.cond = or i1 %46, %47
  br i1 %or.cond, label %48, label %55

48:                                               ; preds = %45
  %49 = icmp sgt i32 %36, 0
  br i1 %49, label %50, label %184

50:                                               ; preds = %48
  %51 = load ptr, ptr @stderr, align 8, !tbaa !17
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.43) #9
  %53 = load ptr, ptr @stderr, align 8, !tbaa !17
  %54 = tail call i32 @fflush(ptr noundef %53)
  br label %184

55:                                               ; preds = %45
  %56 = icmp eq i32 %4, 0
  br i1 %56, label %57, label %65

57:                                               ; preds = %55
  %58 = load i32, ptr @g_displayLevel, align 4, !tbaa !19
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %60, label %184

60:                                               ; preds = %57
  %61 = load ptr, ptr @stderr, align 8, !tbaa !17
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.38) #9
  %63 = load ptr, ptr @stderr, align 8, !tbaa !17
  %64 = tail call i32 @fflush(ptr noundef %63)
  br label %184

65:                                               ; preds = %55
  %66 = icmp ult i64 %1, 256
  br i1 %66, label %67, label %75

67:                                               ; preds = %65
  %68 = load i32, ptr @g_displayLevel, align 4, !tbaa !19
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %184

70:                                               ; preds = %67
  %71 = load ptr, ptr @stderr, align 8, !tbaa !17
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.39, i32 noundef 256) #9
  %73 = load ptr, ptr @stderr, align 8, !tbaa !17
  %74 = tail call i32 @fflush(ptr noundef %73)
  br label %184

75:                                               ; preds = %65
  %76 = icmp ugt i32 %10, 1
  br i1 %76, label %77, label %80

77:                                               ; preds = %75
  %78 = zext i32 %10 to i64
  %79 = tail call ptr @POOL_create(i64 noundef %78, i64 noundef 1)
  %.not = icmp eq ptr %79, null
  br i1 %.not, label %184, label %80

80:                                               ; preds = %77, %75
  %.0125 = phi ptr [ %79, %77 ], [ null, %75 ]
  call void @COVER_best_init(ptr noundef nonnull %7)
  %81 = call i32 @llvm.usub.sat.i32(i32 %36, i32 1)
  store i32 %81, ptr @g_displayLevel, align 4, !tbaa !19
  %82 = icmp sgt i32 %36, 1
  br i1 %82, label %83, label %88

83:                                               ; preds = %80
  %84 = load ptr, ptr @stderr, align 8, !tbaa !17
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.44, i32 noundef %34) #9
  %86 = load ptr, ptr @stderr, align 8, !tbaa !17
  %87 = call i32 @fflush(ptr noundef %86)
  br label %88

88:                                               ; preds = %83, %80
  %.not143171 = icmp ugt i32 %18, %19
  br i1 %.not143171, label %._crit_edge177, label %.lr.ph176.split.preheader

.lr.ph176.split.preheader:                        ; preds = %88
  %89 = icmp sgt i32 %36, 2
  %90 = getelementptr inbounds i8, ptr %8, i64 56
  %.not150 = icmp eq ptr %.0125, null
  %91 = icmp ugt i32 %36, 3
  br label %.lr.ph176.split

.lr.ph176.split:                                  ; preds = %.lr.ph176.split.preheader, %._crit_edge
  %.0113174 = phi i32 [ %.2115.ph, %._crit_edge ], [ 1, %.lr.ph176.split.preheader ]
  %.0117173 = phi i32 [ %166, %._crit_edge ], [ %18, %.lr.ph176.split.preheader ]
  %.not146172 = phi i1 [ false, %._crit_edge ], [ true, %.lr.ph176.split.preheader ]
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #8
  br i1 %89, label %92, label %97

92:                                               ; preds = %.lr.ph176.split
  %93 = load ptr, ptr @stderr, align 8, !tbaa !17
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.45, i32 noundef %.0117173) #9
  %95 = load ptr, ptr @stderr, align 8, !tbaa !17
  %96 = call i32 @fflush(ptr noundef %95)
  br label %97

97:                                               ; preds = %92, %.lr.ph176.split
  %98 = call i64 @COVER_ctx_init(ptr noundef nonnull %8, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %.0117173, double noundef %14)
  %99 = call i32 @ZSTD_isError(i64 noundef %98)
  %.not145 = icmp eq i32 %99, 0
  br i1 %.not145, label %107, label %.split.us

.split.us:                                        ; preds = %97
  %100 = icmp sgt i32 %36, 0
  br i1 %100, label %101, label %106

101:                                              ; preds = %.split.us
  %102 = load ptr, ptr @stderr, align 8, !tbaa !17
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.46) #9
  %104 = load ptr, ptr @stderr, align 8, !tbaa !17
  %105 = call i32 @fflush(ptr noundef %104)
  br label %106

106:                                              ; preds = %.split.us, %101
  call void @COVER_best_destroy(ptr noundef nonnull %7)
  br label %.thread160

107:                                              ; preds = %97
  br i1 %.not146172, label %108, label %.lr.ph.preheader

108:                                              ; preds = %107
  %109 = load i64, ptr %90, align 8, !tbaa !20
  call void @COVER_warnOnSmallCorpus(i64 noundef %1, i64 noundef %109, i32 noundef %36)
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %108, %107
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %164
  %.1114170 = phi i32 [ %.2115.ph, %164 ], [ %.0113174, %.lr.ph.preheader ]
  %.0118169 = phi i32 [ %165, %164 ], [ %22, %.lr.ph.preheader ]
  %110 = call noalias dereferenceable_or_null(72) ptr @malloc(i64 noundef 72) #10
  br i1 %89, label %111, label %116

111:                                              ; preds = %.lr.ph
  %112 = load ptr, ptr @stderr, align 8, !tbaa !17
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef nonnull @.str.47, i32 noundef %.0118169) #9
  %114 = load ptr, ptr @stderr, align 8, !tbaa !17
  %115 = call i32 @fflush(ptr noundef %114)
  br label %116

116:                                              ; preds = %111, %.lr.ph
  %.not148 = icmp eq ptr %110, null
  br i1 %.not148, label %117, label %124

117:                                              ; preds = %116
  %118 = icmp sgt i32 %36, 0
  br i1 %118, label %119, label %163

119:                                              ; preds = %117
  %120 = load ptr, ptr @stderr, align 8, !tbaa !17
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.48) #9
  %122 = load ptr, ptr @stderr, align 8, !tbaa !17
  %123 = call i32 @fflush(ptr noundef %122)
  br label %163

124:                                              ; preds = %116
  store ptr %8, ptr %110, align 8, !tbaa !23
  %125 = getelementptr inbounds i8, ptr %110, i64 8
  store ptr %7, ptr %125, align 8, !tbaa !25
  %126 = getelementptr inbounds i8, ptr %110, i64 16
  store i64 %1, ptr %126, align 8, !tbaa !26
  %127 = getelementptr inbounds i8, ptr %110, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %127, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  store i32 %.0118169, ptr %127, align 8, !tbaa !29
  %128 = getelementptr inbounds i8, ptr %110, i64 28
  store i32 %.0117173, ptr %128, align 4, !tbaa !30
  %129 = getelementptr inbounds i8, ptr %110, i64 40
  store double %14, ptr %129, align 8, !tbaa !31
  %130 = getelementptr inbounds i8, ptr %110, i64 32
  store i32 %27, ptr %130, align 8, !tbaa !32
  %131 = getelementptr inbounds i8, ptr %110, i64 48
  store i32 0, ptr %131, align 8, !tbaa !33
  %132 = load i32, ptr @g_displayLevel, align 4, !tbaa !19
  %133 = getelementptr inbounds i8, ptr %110, i64 60
  store i32 %132, ptr %133, align 4, !tbaa !34
  %134 = call i32 @COVER_checkParameters(ptr noundef nonnull byval(%struct.ZDICT_cover_params_t) align 8 %127, i64 noundef %1)
  %.not149 = icmp eq i32 %134, 0
  br i1 %.not149, label %135, label %144

135:                                              ; preds = %124
  %136 = load i32, ptr @g_displayLevel, align 4, !tbaa !19
  %137 = icmp sgt i32 %136, 0
  br i1 %137, label %138, label %143

138:                                              ; preds = %135
  %139 = load ptr, ptr @stderr, align 8, !tbaa !17
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef nonnull @.str.37) #9
  %141 = load ptr, ptr @stderr, align 8, !tbaa !17
  %142 = call i32 @fflush(ptr noundef %141)
  br label %143

143:                                              ; preds = %138, %135
  call void @free(ptr noundef nonnull %110) #8
  br label %164

144:                                              ; preds = %124
  call void @COVER_best_start(ptr noundef nonnull %7)
  br i1 %.not150, label %146, label %145

145:                                              ; preds = %144
  call void @POOL_add(ptr noundef nonnull %.0125, ptr noundef nonnull @COVER_tryParameters, ptr noundef nonnull %110)
  br label %147

146:                                              ; preds = %144
  call void @COVER_tryParameters(ptr noundef nonnull %110)
  br label %147

147:                                              ; preds = %146, %145
  br i1 %82, label %148, label %161

148:                                              ; preds = %147
  %149 = call i64 @clock() #8
  %150 = load i64, ptr @g_time, align 8, !tbaa !35
  %151 = sub nsw i64 %149, %150
  %152 = icmp sgt i64 %151, 150000
  %or.cond4 = select i1 %152, i1 true, i1 %91
  br i1 %or.cond4, label %153, label %161

153:                                              ; preds = %148
  %154 = call i64 @clock() #8
  store i64 %154, ptr @g_time, align 8, !tbaa !35
  %155 = load ptr, ptr @stderr, align 8, !tbaa !17
  %156 = mul i32 %.1114170, 100
  %157 = udiv i32 %156, %34
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.49, i32 noundef %157) #9
  %159 = load ptr, ptr @stderr, align 8, !tbaa !17
  %160 = call i32 @fflush(ptr noundef %159)
  br label %161

161:                                              ; preds = %153, %148, %147
  %162 = add i32 %.1114170, 1
  br label %164

163:                                              ; preds = %117, %119
  call void @COVER_best_destroy(ptr noundef nonnull %7)
  call void @COVER_ctx_destroy(ptr noundef nonnull %8)
  br label %.thread160

164:                                              ; preds = %161, %143
  %.2115.ph = phi i32 [ %.1114170, %143 ], [ %162, %161 ]
  %165 = add i32 %.0118169, %30
  %.not147 = icmp ugt i32 %165, %23
  br i1 %.not147, label %._crit_edge, label %.lr.ph, !llvm.loop !36

.thread160:                                       ; preds = %163, %106
  %.4.ph = phi i64 [ %98, %106 ], [ -64, %163 ]
  call void @POOL_free(ptr noundef %.0125)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #8
  br label %184

._crit_edge:                                      ; preds = %164
  call void @COVER_best_wait(ptr noundef nonnull %7)
  call void @COVER_ctx_destroy(ptr noundef nonnull %8)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #8
  %166 = add i32 %.0117173, 2
  %.not143 = icmp ugt i32 %166, %19
  br i1 %.not143, label %._crit_edge177, label %.lr.ph176.split, !llvm.loop !38

._crit_edge177:                                   ; preds = %._crit_edge, %88
  br i1 %82, label %167, label %172

167:                                              ; preds = %._crit_edge177
  %168 = load ptr, ptr @stderr, align 8, !tbaa !17
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.51) #9
  %170 = load ptr, ptr @stderr, align 8, !tbaa !17
  %171 = call i32 @fflush(ptr noundef %170)
  br label %172

172:                                              ; preds = %167, %._crit_edge177
  %173 = getelementptr inbounds i8, ptr %7, i64 104
  %174 = load i64, ptr %173, align 8, !tbaa !39
  %175 = getelementptr inbounds i8, ptr %7, i64 160
  %176 = load i64, ptr %175, align 8, !tbaa !41
  %177 = call i32 @ZSTD_isError(i64 noundef %176)
  %.not144 = icmp eq i32 %177, 0
  br i1 %.not144, label %180, label %178

178:                                              ; preds = %172
  %179 = load i64, ptr %175, align 8, !tbaa !41
  call void @COVER_best_destroy(ptr noundef nonnull %7)
  call void @POOL_free(ptr noundef %.0125)
  br label %184

180:                                              ; preds = %172
  %181 = getelementptr inbounds i8, ptr %7, i64 112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %181, i64 48, i1 false), !tbaa.struct !27
  %182 = getelementptr inbounds i8, ptr %7, i64 96
  %183 = load ptr, ptr %182, align 8, !tbaa !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %0, ptr align 1 %183, i64 %174, i1 false)
  call void @COVER_best_destroy(ptr noundef nonnull %7)
  call void @POOL_free(ptr noundef %.0125)
  br label %184

184:                                              ; preds = %.thread160, %178, %180, %77, %67, %70, %57, %60, %48, %50, %38, %40
  %.6 = phi i64 [ -42, %40 ], [ -42, %38 ], [ -42, %50 ], [ -42, %48 ], [ -72, %60 ], [ -72, %57 ], [ -70, %70 ], [ -70, %67 ], [ -64, %77 ], [ %179, %178 ], [ %174, %180 ], [ %.4.ph, %.thread160 ]
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %7) #8
  ret i64 %.6
}

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #6

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

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

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

!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, !7, i64 12}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !7, i64 28, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 36}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !22, i64 56}
!21 = !{!"", !18, i64 0, !18, i64 8, !18, i64 16, !22, i64 24, !22, i64 32, !22, i64 40, !18, i64 48, !22, i64 56, !18, i64 64, !18, i64 72, !7, i64 80}
!22 = !{!"long", !8, i64 0}
!23 = !{!24, !18, i64 0}
!24 = !{!"COVER_tryParameters_data_s", !18, i64 0, !18, i64 8, !22, i64 16, !6, i64 24}
!25 = !{!24, !18, i64 8}
!26 = !{!24, !22, i64 16}
!27 = !{i64 0, i64 4, !19, i64 4, i64 4, !19, i64 8, i64 4, !19, i64 12, i64 4, !19, i64 16, i64 8, !28, i64 24, i64 4, !19, i64 28, i64 4, !19, i64 32, i64 4, !19, i64 36, i64 4, !19, i64 40, i64 4, !19}
!28 = !{!10, !10, i64 0}
!29 = !{!24, !7, i64 24}
!30 = !{!24, !7, i64 28}
!31 = !{!24, !10, i64 40}
!32 = !{!24, !7, i64 32}
!33 = !{!24, !7, i64 48}
!34 = !{!24, !7, i64 60}
!35 = !{!22, !22, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = !{!40, !22, i64 104}
!40 = !{!"COVER_best_s", !8, i64 0, !8, i64 40, !22, i64 88, !18, i64 96, !22, i64 104, !6, i64 112, !22, i64 160}
!41 = !{!40, !22, i64 160}
!42 = !{!40, !18, i64 96}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass