; LLVM IR from Nigh/Basic-Compression-Library :: src (bcltest)

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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @GetFileSize(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @TestFile(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %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 double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %20)
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noalias ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
  store ptr %23, ptr %15, align 8, !tbaa !5
  %24 = load ptr, ptr %15, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %28, label %26

26:                                               ; preds = %2
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %376

28:                                               ; preds = %2
  %29 = load ptr, ptr %15, align 8, !tbaa !5
  %30 = call i64 @GetFileSize(ptr noundef %29)
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %6, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = icmp ult i32 %32, 1
  br i1 %33, label %34, label %38

34:                                               ; preds = %28
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = call i32 @fclose(ptr noundef %36)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %376

38:                                               ; preds = %28
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = mul i32 %39, 104
  %41 = add i32 %40, 50
  %42 = udiv i32 %41, 100
  %43 = add i32 %42, 384
  store i32 %43, ptr %8, align 4, !tbaa !9
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = mul i32 2, %45
  %47 = add i32 %44, %46
  %48 = zext i32 %47 to i64
  %49 = call noalias ptr @malloc(i64 noundef %48) #6
  store ptr %49, ptr %12, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %56, label %52

52:                                               ; preds = %38
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %54 = load ptr, ptr %15, align 8, !tbaa !5
  %55 = call i32 @fclose(ptr noundef %54)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %376

56:                                               ; preds = %38
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %57, i64 %59
  store ptr %60, ptr %14, align 8, !tbaa !5
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %61, i64 %63
  store ptr %64, ptr %13, align 8, !tbaa !5
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = call i64 @fread(ptr noundef %65, i64 noundef 1, i64 noundef %67, ptr noundef %68)
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = call i32 @fclose(ptr noundef %70)
  %72 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %72, label %270 [
    i32 1, label %73
    i32 2, label %89
    i32 3, label %106
    i32 4, label %123
    i32 5, label %140
    i32 6, label %157
    i32 7, label %174
    i32 8, label %191
    i32 9, label %208
    i32 10, label %224
    i32 11, label %253
  ]

73:                                               ; preds = %56
  %74 = call double @GetTime()
  store double %74, ptr %16, align 8, !tbaa !11
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = call i32 @RLE_Compress(ptr noundef %75, ptr noundef %76, i32 noundef %77)
  store i32 %78, ptr %7, align 4, !tbaa !9
  %79 = call double @GetTime()
  %80 = load double, ptr %16, align 8, !tbaa !11
  %81 = fsub double %79, %80
  store double %81, ptr %17, align 8, !tbaa !11
  %82 = call double @GetTime()
  store double %82, ptr %16, align 8, !tbaa !11
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i32, ptr %7, align 4, !tbaa !9
  call void @RLE_Uncompress(ptr noundef %83, ptr noundef %84, i32 noundef %85)
  %86 = call double @GetTime()
  %87 = load double, ptr %16, align 8, !tbaa !11
  %88 = fsub double %86, %87
  store double %88, ptr %18, align 8, !tbaa !11
  br label %271

89:                                               ; preds = %56
  %90 = call double @GetTime()
  store double %90, ptr %16, align 8, !tbaa !11
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = call i32 @Huffman_Compress(ptr noundef %91, ptr noundef %92, i32 noundef %93)
  store i32 %94, ptr %7, align 4, !tbaa !9
  %95 = call double @GetTime()
  %96 = load double, ptr %16, align 8, !tbaa !11
  %97 = fsub double %95, %96
  store double %97, ptr %17, align 8, !tbaa !11
  %98 = call double @GetTime()
  store double %98, ptr %16, align 8, !tbaa !11
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = load i32, ptr %6, align 4, !tbaa !9
  call void @Huffman_Uncompress(ptr noundef %99, ptr noundef %100, i32 noundef %101, i32 noundef %102)
  %103 = call double @GetTime()
  %104 = load double, ptr %16, align 8, !tbaa !11
  %105 = fsub double %103, %104
  store double %105, ptr %18, align 8, !tbaa !11
  br label %271

106:                                              ; preds = %56
  %107 = call double @GetTime()
  store double %107, ptr %16, align 8, !tbaa !11
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = call i32 @Rice_Compress(ptr noundef %108, ptr noundef %109, i32 noundef %110, i32 noundef 2)
  store i32 %111, ptr %7, align 4, !tbaa !9
  %112 = call double @GetTime()
  %113 = load double, ptr %16, align 8, !tbaa !11
  %114 = fsub double %112, %113
  store double %114, ptr %17, align 8, !tbaa !11
  %115 = call double @GetTime()
  store double %115, ptr %16, align 8, !tbaa !11
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = load i32, ptr %6, align 4, !tbaa !9
  call void @Rice_Uncompress(ptr noundef %116, ptr noundef %117, i32 noundef %118, i32 noundef %119, i32 noundef 2)
  %120 = call double @GetTime()
  %121 = load double, ptr %16, align 8, !tbaa !11
  %122 = fsub double %120, %121
  store double %122, ptr %18, align 8, !tbaa !11
  br label %271

123:                                              ; preds = %56
  %124 = call double @GetTime()
  store double %124, ptr %16, align 8, !tbaa !11
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i32, ptr %6, align 4, !tbaa !9
  %128 = call i32 @Rice_Compress(ptr noundef %125, ptr noundef %126, i32 noundef %127, i32 noundef 4)
  store i32 %128, ptr %7, align 4, !tbaa !9
  %129 = call double @GetTime()
  %130 = load double, ptr %16, align 8, !tbaa !11
  %131 = fsub double %129, %130
  store double %131, ptr %17, align 8, !tbaa !11
  %132 = call double @GetTime()
  store double %132, ptr %16, align 8, !tbaa !11
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load i32, ptr %7, align 4, !tbaa !9
  %136 = load i32, ptr %6, align 4, !tbaa !9
  call void @Rice_Uncompress(ptr noundef %133, ptr noundef %134, i32 noundef %135, i32 noundef %136, i32 noundef 4)
  %137 = call double @GetTime()
  %138 = load double, ptr %16, align 8, !tbaa !11
  %139 = fsub double %137, %138
  store double %139, ptr %18, align 8, !tbaa !11
  br label %271

140:                                              ; preds = %56
  %141 = call double @GetTime()
  store double %141, ptr %16, align 8, !tbaa !11
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = call i32 @Rice_Compress(ptr noundef %142, ptr noundef %143, i32 noundef %144, i32 noundef 8)
  store i32 %145, ptr %7, align 4, !tbaa !9
  %146 = call double @GetTime()
  %147 = load double, ptr %16, align 8, !tbaa !11
  %148 = fsub double %146, %147
  store double %148, ptr %17, align 8, !tbaa !11
  %149 = call double @GetTime()
  store double %149, ptr %16, align 8, !tbaa !11
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = load i32, ptr %6, align 4, !tbaa !9
  call void @Rice_Uncompress(ptr noundef %150, ptr noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef 8)
  %154 = call double @GetTime()
  %155 = load double, ptr %16, align 8, !tbaa !11
  %156 = fsub double %154, %155
  store double %156, ptr %18, align 8, !tbaa !11
  br label %271

157:                                              ; preds = %56
  %158 = call double @GetTime()
  store double %158, ptr %16, align 8, !tbaa !11
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = load i32, ptr %6, align 4, !tbaa !9
  %162 = call i32 @Rice_Compress(ptr noundef %159, ptr noundef %160, i32 noundef %161, i32 noundef 1)
  store i32 %162, ptr %7, align 4, !tbaa !9
  %163 = call double @GetTime()
  %164 = load double, ptr %16, align 8, !tbaa !11
  %165 = fsub double %163, %164
  store double %165, ptr %17, align 8, !tbaa !11
  %166 = call double @GetTime()
  store double %166, ptr %16, align 8, !tbaa !11
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load i32, ptr %7, align 4, !tbaa !9
  %170 = load i32, ptr %6, align 4, !tbaa !9
  call void @Rice_Uncompress(ptr noundef %167, ptr noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef 1)
  %171 = call double @GetTime()
  %172 = load double, ptr %16, align 8, !tbaa !11
  %173 = fsub double %171, %172
  store double %173, ptr %18, align 8, !tbaa !11
  br label %271

174:                                              ; preds = %56
  %175 = call double @GetTime()
  store double %175, ptr %16, align 8, !tbaa !11
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load i32, ptr %6, align 4, !tbaa !9
  %179 = call i32 @Rice_Compress(ptr noundef %176, ptr noundef %177, i32 noundef %178, i32 noundef 3)
  store i32 %179, ptr %7, align 4, !tbaa !9
  %180 = call double @GetTime()
  %181 = load double, ptr %16, align 8, !tbaa !11
  %182 = fsub double %180, %181
  store double %182, ptr %17, align 8, !tbaa !11
  %183 = call double @GetTime()
  store double %183, ptr %16, align 8, !tbaa !11
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = load i32, ptr %6, align 4, !tbaa !9
  call void @Rice_Uncompress(ptr noundef %184, ptr noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef 3)
  %188 = call double @GetTime()
  %189 = load double, ptr %16, align 8, !tbaa !11
  %190 = fsub double %188, %189
  store double %190, ptr %18, align 8, !tbaa !11
  br label %271

191:                                              ; preds = %56
  %192 = call double @GetTime()
  store double %192, ptr %16, align 8, !tbaa !11
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = load i32, ptr %6, align 4, !tbaa !9
  %196 = call i32 @Rice_Compress(ptr noundef %193, ptr noundef %194, i32 noundef %195, i32 noundef 7)
  store i32 %196, ptr %7, align 4, !tbaa !9
  %197 = call double @GetTime()
  %198 = load double, ptr %16, align 8, !tbaa !11
  %199 = fsub double %197, %198
  store double %199, ptr %17, align 8, !tbaa !11
  %200 = call double @GetTime()
  store double %200, ptr %16, align 8, !tbaa !11
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = load i32, ptr %7, align 4, !tbaa !9
  %204 = load i32, ptr %6, align 4, !tbaa !9
  call void @Rice_Uncompress(ptr noundef %201, ptr noundef %202, i32 noundef %203, i32 noundef %204, i32 noundef 7)
  %205 = call double @GetTime()
  %206 = load double, ptr %16, align 8, !tbaa !11
  %207 = fsub double %205, %206
  store double %207, ptr %18, align 8, !tbaa !11
  br label %271

208:                                              ; preds = %56
  %209 = call double @GetTime()
  store double %209, ptr %16, align 8, !tbaa !11
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = load i32, ptr %6, align 4, !tbaa !9
  %213 = call i32 @LZ_Compress(ptr noundef %210, ptr noundef %211, i32 noundef %212)
  store i32 %213, ptr %7, align 4, !tbaa !9
  %214 = call double @GetTime()
  %215 = load double, ptr %16, align 8, !tbaa !11
  %216 = fsub double %214, %215
  store double %216, ptr %17, align 8, !tbaa !11
  %217 = call double @GetTime()
  store double %217, ptr %16, align 8, !tbaa !11
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = load i32, ptr %7, align 4, !tbaa !9
  call void @LZ_Uncompress(ptr noundef %218, ptr noundef %219, i32 noundef %220)
  %221 = call double @GetTime()
  %222 = load double, ptr %16, align 8, !tbaa !11
  %223 = fsub double %221, %222
  store double %223, ptr %18, align 8, !tbaa !11
  br label %271

224:                                              ; preds = %56
  %225 = load i32, ptr %6, align 4, !tbaa !9
  %226 = add i32 65536, %225
  %227 = zext i32 %226 to i64
  %228 = mul i64 4, %227
  %229 = call noalias ptr @malloc(i64 noundef %228) #6
  store ptr %229, ptr %9, align 8, !tbaa !5
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = icmp ne ptr %230, null
  br i1 %231, label %232, label %250

232:                                              ; preds = %224
  %233 = call double @GetTime()
  store double %233, ptr %16, align 8, !tbaa !11
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = load i32, ptr %6, align 4, !tbaa !9
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = call i32 @LZ_CompressFast(ptr noundef %234, ptr noundef %235, i32 noundef %236, ptr noundef %237)
  store i32 %238, ptr %7, align 4, !tbaa !9
  %239 = call double @GetTime()
  %240 = load double, ptr %16, align 8, !tbaa !11
  %241 = fsub double %239, %240
  store double %241, ptr %17, align 8, !tbaa !11
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %242) #5
  %243 = call double @GetTime()
  store double %243, ptr %16, align 8, !tbaa !11
  %244 = load ptr, ptr %14, align 8, !tbaa !5
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = load i32, ptr %7, align 4, !tbaa !9
  call void @LZ_Uncompress(ptr noundef %244, ptr noundef %245, i32 noundef %246)
  %247 = call double @GetTime()
  %248 = load double, ptr %16, align 8, !tbaa !11
  %249 = fsub double %247, %248
  store double %249, ptr %18, align 8, !tbaa !11
  br label %252

250:                                              ; preds = %224
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %250, %232
  br label %271

253:                                              ; preds = %56
  %254 = call double @GetTime()
  store double %254, ptr %16, align 8, !tbaa !11
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = load i32, ptr %6, align 4, !tbaa !9
  %258 = call i32 @SF_Compress(ptr noundef %255, ptr noundef %256, i32 noundef %257)
  store i32 %258, ptr %7, align 4, !tbaa !9
  %259 = call double @GetTime()
  %260 = load double, ptr %16, align 8, !tbaa !11
  %261 = fsub double %259, %260
  store double %261, ptr %17, align 8, !tbaa !11
  %262 = call double @GetTime()
  store double %262, ptr %16, align 8, !tbaa !11
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = load ptr, ptr %13, align 8, !tbaa !5
  %265 = load i32, ptr %7, align 4, !tbaa !9
  %266 = load i32, ptr %6, align 4, !tbaa !9
  call void @SF_Uncompress(ptr noundef %263, ptr noundef %264, i32 noundef %265, i32 noundef %266)
  %267 = call double @GetTime()
  %268 = load double, ptr %16, align 8, !tbaa !11
  %269 = fsub double %267, %268
  store double %269, ptr %18, align 8, !tbaa !11
  br label %271

270:                                              ; preds = %56
  store i32 0, ptr %7, align 4, !tbaa !9
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  br label %271

271:                                              ; preds = %270, %253, %252, %208, %191, %174, %157, %140, %123, %106, %89, %73
  store i32 0, ptr %11, align 4, !tbaa !9
  %272 = load i32, ptr %7, align 4, !tbaa !9
  %273 = icmp ugt i32 %272, 0
  br i1 %273, label %274, label %366

274:                                              ; preds = %271
  %275 = load i32, ptr %7, align 4, !tbaa !9
  %276 = load i32, ptr %6, align 4, !tbaa !9
  %277 = load i32, ptr %7, align 4, !tbaa !9
  %278 = uitofp i32 %277 to float
  %279 = fmul float 1.000000e+02, %278
  %280 = load i32, ptr %6, align 4, !tbaa !9
  %281 = uitofp i32 %280 to float
  %282 = fdiv float %279, %281
  %283 = fpext float %282 to double
  %284 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %275, i32 noundef %276, double noundef %283)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %285

285:                                              ; preds = %336, %274
  %286 = load i32, ptr %10, align 4, !tbaa !9
  %287 = load i32, ptr %6, align 4, !tbaa !9
  %288 = icmp ult i32 %286, %287
  br i1 %288, label %289, label %339

289:                                              ; preds = %285
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  %291 = load i32, ptr %10, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = getelementptr inbounds i8, ptr %290, i64 %292
  %294 = load i8, ptr %293, align 1, !tbaa !13
  %295 = zext i8 %294 to i32
  %296 = load ptr, ptr %13, align 8, !tbaa !5
  %297 = load i32, ptr %10, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = getelementptr inbounds i8, ptr %296, i64 %298
  %300 = load i8, ptr %299, align 1, !tbaa !13
  %301 = zext i8 %300 to i32
  %302 = icmp ne i32 %295, %301
  br i1 %302, label %303, label %335

303:                                              ; preds = %289
  %304 = load i32, ptr %11, align 4, !tbaa !9
  %305 = icmp eq i32 %304, 0
  br i1 %305, label %306, label %308

306:                                              ; preds = %303
  %307 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %308

308:                                              ; preds = %306, %303
  %309 = load i32, ptr %11, align 4, !tbaa !9
  %310 = icmp eq i32 %309, 30
  br i1 %310, label %311, label %313

311:                                              ; preds = %308
  %312 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %332

313:                                              ; preds = %308
  %314 = load i32, ptr %11, align 4, !tbaa !9
  %315 = icmp ult i32 %314, 30
  br i1 %315, label %316, label %331

316:                                              ; preds = %313
  %317 = load i32, ptr %10, align 4, !tbaa !9
  %318 = load ptr, ptr %13, align 8, !tbaa !5
  %319 = load i32, ptr %10, align 4, !tbaa !9
  %320 = zext i32 %319 to i64
  %321 = getelementptr inbounds i8, ptr %318, i64 %320
  %322 = load i8, ptr %321, align 1, !tbaa !13
  %323 = zext i8 %322 to i32
  %324 = load ptr, ptr %12, align 8, !tbaa !5
  %325 = load i32, ptr %10, align 4, !tbaa !9
  %326 = zext i32 %325 to i64
  %327 = getelementptr inbounds i8, ptr %324, i64 %326
  %328 = load i8, ptr %327, align 1, !tbaa !13
  %329 = zext i8 %328 to i32
  %330 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %317, i32 noundef %323, i32 noundef %329)
  br label %331

331:                                              ; preds = %316, %313
  br label %332

332:                                              ; preds = %331, %311
  %333 = load i32, ptr %11, align 4, !tbaa !9
  %334 = add i32 %333, 1
  store i32 %334, ptr %11, align 4, !tbaa !9
  br label %335

335:                                              ; preds = %332, %289
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %10, align 4, !tbaa !9
  %338 = add i32 %337, 1
  store i32 %338, ptr %10, align 4, !tbaa !9
  br label %285, !llvm.loop !14

339:                                              ; preds = %285
  %340 = load i32, ptr %11, align 4, !tbaa !9
  %341 = icmp eq i32 %340, 0
  br i1 %341, label %342, label %360

342:                                              ; preds = %339
  %343 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %344 = load i32, ptr %6, align 4, !tbaa !9
  %345 = uitofp i32 %344 to double
  %346 = load double, ptr %17, align 8, !tbaa !11
  %347 = fmul double 1.024000e+03, %346
  %348 = fdiv double %345, %347
  %349 = load double, ptr %17, align 8, !tbaa !11
  %350 = fmul double 1.000000e+03, %349
  %351 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %348, double noundef %350)
  %352 = load i32, ptr %6, align 4, !tbaa !9
  %353 = uitofp i32 %352 to double
  %354 = load double, ptr %18, align 8, !tbaa !11
  %355 = fmul double 1.024000e+03, %354
  %356 = fdiv double %353, %355
  %357 = load double, ptr %18, align 8, !tbaa !11
  %358 = fmul double 1.000000e+03, %357
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %356, double noundef %358)
  br label %365

360:                                              ; preds = %339
  %361 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %362 = load i32, ptr %11, align 4, !tbaa !9
  %363 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %362)
  %364 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %365

365:                                              ; preds = %360, %342
  br label %366

366:                                              ; preds = %365, %271
  %367 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %367) #5
  %368 = load i32, ptr %7, align 4, !tbaa !9
  %369 = icmp ugt i32 %368, 0
  br i1 %369, label %370, label %373

370:                                              ; preds = %366
  %371 = load i32, ptr %11, align 4, !tbaa !9
  %372 = icmp eq i32 %371, 0
  br label %373

373:                                              ; preds = %370, %366
  %374 = phi i1 [ false, %366 ], [ %372, %370 ]
  %375 = zext i1 %374 to i32
  store i32 %375, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %376

376:                                              ; preds = %373, %52, %34, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %377 = load i32, ptr %3, align 4
  ret i32 %377
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare double @GetTime() #2

declare i32 @RLE_Compress(ptr noundef, ptr noundef, i32 noundef) #2

declare void @RLE_Uncompress(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @Huffman_Compress(ptr noundef, ptr noundef, i32 noundef) #2

declare void @Huffman_Uncompress(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @Rice_Compress(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare void @Rice_Uncompress(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare i32 @LZ_Compress(ptr noundef, ptr noundef, i32 noundef) #2

declare void @LZ_Uncompress(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @LZ_CompressFast(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

declare i32 @SF_Compress(ptr noundef, ptr noundef, i32 noundef) #2

declare void @SF_Uncompress(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @GetFileSize(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @TestFile(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %0)
  %4 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %7

5:                                                ; preds = %2
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %155

7:                                                ; preds = %2
  %8 = tail call i64 @GetFileSize(ptr noundef nonnull %4)
  %9 = trunc i64 %8 to i32
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %14

11:                                               ; preds = %7
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %13 = tail call i32 @fclose(ptr noundef nonnull %4)
  br label %155

14:                                               ; preds = %7
  %15 = mul i32 %9, 104
  %16 = add i32 %15, 50
  %17 = udiv i32 %16, 100
  %18 = add nuw nsw i32 %17, 384
  %19 = shl nuw nsw i32 %18, 1
  %20 = add i32 %19, %9
  %21 = zext i32 %20 to i64
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #5
  %.not161 = icmp eq ptr %22, null
  br i1 %.not161, label %23, label %26

23:                                               ; preds = %14
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %25 = tail call i32 @fclose(ptr noundef nonnull %4)
  br label %155

26:                                               ; preds = %14
  %27 = and i64 %8, 4294967295
  %28 = getelementptr inbounds i8, ptr %22, i64 %27
  %29 = zext nneg i32 %18 to i64
  %30 = getelementptr inbounds i8, ptr %28, i64 %29
  %31 = tail call i64 @fread(ptr noundef nonnull %22, i64 noundef 1, i64 noundef %27, ptr noundef nonnull %4)
  %32 = tail call i32 @fclose(ptr noundef nonnull %4)
  switch i32 %1, label %.thread [
    i32 1, label %33
    i32 2, label %39
    i32 3, label %45
    i32 4, label %51
    i32 5, label %57
    i32 6, label %63
    i32 7, label %69
    i32 8, label %75
    i32 9, label %81
    i32 10, label %87
    i32 11, label %100
  ]

33:                                               ; preds = %26
  %34 = tail call double @GetTime() #6
  %35 = tail call i32 @RLE_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9) #6
  %36 = tail call double @GetTime() #6
  %37 = fsub double %36, %34
  %38 = tail call double @GetTime() #6
  tail call void @RLE_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %35) #6
  br label %106

39:                                               ; preds = %26
  %40 = tail call double @GetTime() #6
  %41 = tail call i32 @Huffman_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9) #6
  %42 = tail call double @GetTime() #6
  %43 = fsub double %42, %40
  %44 = tail call double @GetTime() #6
  tail call void @Huffman_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %41, i32 noundef %9) #6
  br label %106

45:                                               ; preds = %26
  %46 = tail call double @GetTime() #6
  %47 = tail call i32 @Rice_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, i32 noundef 2) #6
  %48 = tail call double @GetTime() #6
  %49 = fsub double %48, %46
  %50 = tail call double @GetTime() #6
  tail call void @Rice_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %47, i32 noundef %9, i32 noundef 2) #6
  br label %106

51:                                               ; preds = %26
  %52 = tail call double @GetTime() #6
  %53 = tail call i32 @Rice_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, i32 noundef 4) #6
  %54 = tail call double @GetTime() #6
  %55 = fsub double %54, %52
  %56 = tail call double @GetTime() #6
  tail call void @Rice_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %53, i32 noundef %9, i32 noundef 4) #6
  br label %106

57:                                               ; preds = %26
  %58 = tail call double @GetTime() #6
  %59 = tail call i32 @Rice_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, i32 noundef 8) #6
  %60 = tail call double @GetTime() #6
  %61 = fsub double %60, %58
  %62 = tail call double @GetTime() #6
  tail call void @Rice_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %59, i32 noundef %9, i32 noundef 8) #6
  br label %106

63:                                               ; preds = %26
  %64 = tail call double @GetTime() #6
  %65 = tail call i32 @Rice_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, i32 noundef 1) #6
  %66 = tail call double @GetTime() #6
  %67 = fsub double %66, %64
  %68 = tail call double @GetTime() #6
  tail call void @Rice_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %65, i32 noundef %9, i32 noundef 1) #6
  br label %106

69:                                               ; preds = %26
  %70 = tail call double @GetTime() #6
  %71 = tail call i32 @Rice_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, i32 noundef 3) #6
  %72 = tail call double @GetTime() #6
  %73 = fsub double %72, %70
  %74 = tail call double @GetTime() #6
  tail call void @Rice_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %71, i32 noundef %9, i32 noundef 3) #6
  br label %106

75:                                               ; preds = %26
  %76 = tail call double @GetTime() #6
  %77 = tail call i32 @Rice_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, i32 noundef 7) #6
  %78 = tail call double @GetTime() #6
  %79 = fsub double %78, %76
  %80 = tail call double @GetTime() #6
  tail call void @Rice_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %77, i32 noundef %9, i32 noundef 7) #6
  br label %106

81:                                               ; preds = %26
  %82 = tail call double @GetTime() #6
  %83 = tail call i32 @LZ_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9) #6
  %84 = tail call double @GetTime() #6
  %85 = fsub double %84, %82
  %86 = tail call double @GetTime() #6
  tail call void @LZ_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %83) #6
  br label %106

87:                                               ; preds = %26
  %88 = shl i64 %8, 2
  %89 = add i64 %88, 262144
  %90 = and i64 %89, 17179869180
  %91 = tail call noalias ptr @malloc(i64 noundef %90) #5
  %.not162 = icmp eq ptr %91, null
  br i1 %.not162, label %98, label %92

92:                                               ; preds = %87
  %93 = tail call double @GetTime() #6
  %94 = tail call i32 @LZ_CompressFast(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9, ptr noundef nonnull %91) #6
  %95 = tail call double @GetTime() #6
  %96 = fsub double %95, %93
  tail call void @free(ptr noundef nonnull %91) #6
  %97 = tail call double @GetTime() #6
  tail call void @LZ_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %94) #6
  br label %106

98:                                               ; preds = %87
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.thread

100:                                              ; preds = %26
  %101 = tail call double @GetTime() #6
  %102 = tail call i32 @SF_Compress(ptr noundef nonnull %22, ptr noundef nonnull %28, i32 noundef %9) #6
  %103 = tail call double @GetTime() #6
  %104 = fsub double %103, %101
  %105 = tail call double @GetTime() #6
  tail call void @SF_Uncompress(ptr noundef nonnull %28, ptr noundef nonnull %30, i32 noundef %102, i32 noundef %9) #6
  br label %106

106:                                              ; preds = %92, %100, %81, %75, %69, %63, %57, %51, %45, %39, %33
  %.sink175 = phi double [ %97, %92 ], [ %105, %100 ], [ %86, %81 ], [ %80, %75 ], [ %74, %69 ], [ %68, %63 ], [ %62, %57 ], [ %56, %51 ], [ %50, %45 ], [ %44, %39 ], [ %38, %33 ]
  %.0154 = phi i32 [ %94, %92 ], [ %102, %100 ], [ %83, %81 ], [ %77, %75 ], [ %71, %69 ], [ %65, %63 ], [ %59, %57 ], [ %53, %51 ], [ %47, %45 ], [ %41, %39 ], [ %35, %33 ]
  %.0152 = phi double [ %96, %92 ], [ %104, %100 ], [ %85, %81 ], [ %79, %75 ], [ %73, %69 ], [ %67, %63 ], [ %61, %57 ], [ %55, %51 ], [ %49, %45 ], [ %43, %39 ], [ %37, %33 ]
  %107 = tail call double @GetTime() #6
  %108 = fsub double %107, %.sink175
  %.not172 = icmp eq i32 %.0154, 0
  br i1 %.not172, label %.thread, label %109

109:                                              ; preds = %106
  %110 = uitofp i32 %.0154 to float
  %111 = fmul float %110, 1.000000e+02
  %112 = uitofp i32 %9 to float
  %113 = fdiv float %111, %112
  %114 = fpext float %113 to double
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %.0154, i32 noundef %9, double noundef %114)
  %wide.trip.count = and i64 %8, 4294967295
  br label %116

116:                                              ; preds = %109, %136
  %indvars.iv = phi i64 [ 0, %109 ], [ %indvars.iv.next, %136 ]
  %.0156168 = phi i32 [ 0, %109 ], [ %.1, %136 ]
  %117 = getelementptr inbounds i8, ptr %22, i64 %indvars.iv
  %118 = load i8, ptr %117, align 1, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %30, i64 %indvars.iv
  %120 = load i8, ptr %119, align 1, !tbaa !5
  %.not163 = icmp eq i8 %118, %120
  br i1 %.not163, label %136, label %121

121:                                              ; preds = %116
  switch i32 %.0156168, label %125 [
    i32 0, label %.thread167
    i32 30, label %123
  ]

.thread167:                                       ; preds = %121
  %122 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %.pre = load i8, ptr %119, align 1, !tbaa !5
  %.pre174 = load i8, ptr %117, align 1, !tbaa !5
  br label %127

123:                                              ; preds = %121
  %124 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %134

125:                                              ; preds = %121
  %126 = icmp ult i32 %.0156168, 30
  br i1 %126, label %127, label %134

127:                                              ; preds = %.thread167, %125
  %128 = phi i8 [ %.pre174, %.thread167 ], [ %118, %125 ]
  %129 = phi i8 [ %.pre, %.thread167 ], [ %120, %125 ]
  %130 = zext i8 %129 to i32
  %131 = zext i8 %128 to i32
  %132 = trunc nuw i64 %indvars.iv to i32
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %132, i32 noundef %130, i32 noundef %131)
  br label %134

134:                                              ; preds = %125, %127, %123
  %135 = add i32 %.0156168, 1
  br label %136

136:                                              ; preds = %116, %134
  %.1 = phi i32 [ %135, %134 ], [ %.0156168, %116 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %137, label %116, !llvm.loop !8

137:                                              ; preds = %136
  %138 = icmp eq i32 %.1, 0
  br i1 %138, label %139, label %150

139:                                              ; preds = %137
  %140 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %141 = uitofp i32 %9 to double
  %142 = fmul double %.0152, 1.024000e+03
  %143 = fdiv double %141, %142
  %144 = fmul double %.0152, 1.000000e+03
  %145 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %143, double noundef %144)
  %146 = fmul double %108, 1.024000e+03
  %147 = fdiv double %141, %146
  %148 = fmul double %108, 1.000000e+03
  %149 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %147, double noundef %148)
  br label %.thread

150:                                              ; preds = %137
  %151 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %152 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %.1)
  %153 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %.thread

.thread:                                          ; preds = %26, %98, %139, %150, %106
  %154 = phi i32 [ 1, %139 ], [ 0, %150 ], [ 0, %106 ], [ 0, %98 ], [ 0, %26 ]
  tail call void @free(ptr noundef nonnull %22) #6
  br label %155

155:                                              ; preds = %.thread, %23, %11, %5
  %.0153 = phi i32 [ 0, %11 ], [ %154, %.thread ], [ 0, %23 ], [ 0, %5 ]
  ret i32 %.0153
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture 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 #2

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

declare double @GetTime() local_unnamed_addr #3

declare i32 @RLE_Compress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @RLE_Uncompress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @Huffman_Compress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @Huffman_Uncompress(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @Rice_Compress(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @Rice_Uncompress(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @LZ_Compress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @LZ_Uncompress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @LZ_CompressFast(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @SF_Compress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @SF_Uncompress(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 #3 = { "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 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 #5 = { nounwind allocsize(0) }
attributes #6 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass