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

; 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.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ReadWord32(ptr noundef) #0

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

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

; 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
declare dso_local void @WriteWord32(i32 noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @Help(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 4
  br i1 %18, label %19, label %23

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  call void @Help(ptr noundef %22)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

23:                                               ; preds = %2
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %26, i64 0
  %28 = load i8, ptr %27, align 1, !tbaa !11
  store i8 %28, ptr %9, align 1, !tbaa !11
  %29 = load i8, ptr %9, align 1, !tbaa !11
  %30 = zext i8 %29 to i32
  %31 = icmp ne i32 %30, 99
  br i1 %31, label %32, label %40

32:                                               ; preds = %23
  %33 = load i8, ptr %9, align 1, !tbaa !11
  %34 = zext i8 %33 to i32
  %35 = icmp ne i32 %34, 100
  br i1 %35, label %36, label %40

36:                                               ; preds = %32
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  call void @Help(ptr noundef %39)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

40:                                               ; preds = %32, %23
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp eq i32 %41, 5
  br i1 %42, label %43, label %131

43:                                               ; preds = %40
  %44 = load i8, ptr %9, align 1, !tbaa !11
  %45 = zext i8 %44 to i32
  %46 = icmp eq i32 %45, 99
  br i1 %46, label %47, label %131

47:                                               ; preds = %43
  store i8 0, ptr %10, align 1, !tbaa !11
  %48 = load ptr, ptr %5, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 2
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str.15) #7
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %47
  store i8 1, ptr %10, align 1, !tbaa !11
  br label %54

54:                                               ; preds = %53, %47
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i64 2
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.16) #7
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %54
  store i8 2, ptr %10, align 1, !tbaa !11
  br label %61

61:                                               ; preds = %60, %54
  %62 = load ptr, ptr %5, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %62, i64 2
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = call i32 @strcmp(ptr noundef %64, ptr noundef @.str.17) #7
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %61
  store i8 3, ptr %10, align 1, !tbaa !11
  br label %68

68:                                               ; preds = %67, %61
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = getelementptr inbounds ptr, ptr %69, i64 2
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = call i32 @strcmp(ptr noundef %71, ptr noundef @.str.18) #7
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  store i8 4, ptr %10, align 1, !tbaa !11
  br label %75

75:                                               ; preds = %74, %68
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 2
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call i32 @strcmp(ptr noundef %78, ptr noundef @.str.19) #7
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %75
  store i8 5, ptr %10, align 1, !tbaa !11
  br label %82

82:                                               ; preds = %81, %75
  %83 = load ptr, ptr %5, align 8, !tbaa !9
  %84 = getelementptr inbounds ptr, ptr %83, i64 2
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = call i32 @strcmp(ptr noundef %85, ptr noundef @.str.20) #7
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  store i8 6, ptr %10, align 1, !tbaa !11
  br label %89

89:                                               ; preds = %88, %82
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 2
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = call i32 @strcmp(ptr noundef %92, ptr noundef @.str.21) #7
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %89
  store i8 7, ptr %10, align 1, !tbaa !11
  br label %96

96:                                               ; preds = %95, %89
  %97 = load ptr, ptr %5, align 8, !tbaa !9
  %98 = getelementptr inbounds ptr, ptr %97, i64 2
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = call i32 @strcmp(ptr noundef %99, ptr noundef @.str.22) #7
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %96
  store i8 8, ptr %10, align 1, !tbaa !11
  br label %103

103:                                              ; preds = %102, %96
  %104 = load ptr, ptr %5, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 2
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef @.str.23) #7
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %103
  store i8 9, ptr %10, align 1, !tbaa !11
  br label %110

110:                                              ; preds = %109, %103
  %111 = load ptr, ptr %5, align 8, !tbaa !9
  %112 = getelementptr inbounds ptr, ptr %111, i64 2
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = call i32 @strcmp(ptr noundef %113, ptr noundef @.str.24) #7
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  store i8 10, ptr %10, align 1, !tbaa !11
  br label %117

117:                                              ; preds = %116, %110
  %118 = load i8, ptr %10, align 1, !tbaa !11
  %119 = icmp ne i8 %118, 0
  br i1 %119, label %124, label %120

120:                                              ; preds = %117
  %121 = load ptr, ptr %5, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %121, i64 0
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  call void @Help(ptr noundef %123)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

124:                                              ; preds = %117
  %125 = load ptr, ptr %5, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %125, i64 3
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  store ptr %127, ptr %14, align 8, !tbaa !9
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = getelementptr inbounds ptr, ptr %128, i64 4
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  store ptr %130, ptr %15, align 8, !tbaa !9
  br label %150

131:                                              ; preds = %43, %40
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = icmp eq i32 %132, 4
  br i1 %133, label %134, label %145

134:                                              ; preds = %131
  %135 = load i8, ptr %9, align 1, !tbaa !11
  %136 = zext i8 %135 to i32
  %137 = icmp eq i32 %136, 100
  br i1 %137, label %138, label %145

138:                                              ; preds = %134
  %139 = load ptr, ptr %5, align 8, !tbaa !9
  %140 = getelementptr inbounds ptr, ptr %139, i64 2
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  store ptr %141, ptr %14, align 8, !tbaa !9
  %142 = load ptr, ptr %5, align 8, !tbaa !9
  %143 = getelementptr inbounds ptr, ptr %142, i64 3
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  store ptr %144, ptr %15, align 8, !tbaa !9
  br label %149

145:                                              ; preds = %134, %131
  %146 = load ptr, ptr %5, align 8, !tbaa !9
  %147 = getelementptr inbounds ptr, ptr %146, i64 0
  %148 = load ptr, ptr %147, align 8, !tbaa !9
  call void @Help(ptr noundef %148)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

149:                                              ; preds = %138
  br label %150

150:                                              ; preds = %149, %124
  %151 = load ptr, ptr %14, align 8, !tbaa !9
  %152 = call noalias ptr @fopen(ptr noundef %151, ptr noundef @.str.25)
  store ptr %152, ptr %6, align 8, !tbaa !9
  %153 = load ptr, ptr %6, align 8, !tbaa !9
  %154 = icmp ne ptr %153, null
  br i1 %154, label %158, label %155

155:                                              ; preds = %150
  %156 = load ptr, ptr %14, align 8, !tbaa !9
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, ptr noundef %156)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

158:                                              ; preds = %150
  %159 = load ptr, ptr %6, align 8, !tbaa !9
  %160 = call i64 @GetFileSize(ptr noundef %159)
  %161 = trunc i64 %160 to i32
  store i32 %161, ptr %11, align 4, !tbaa !5
  %162 = load i8, ptr %9, align 1, !tbaa !11
  %163 = zext i8 %162 to i32
  %164 = icmp eq i32 %163, 100
  br i1 %164, label %165, label %176

165:                                              ; preds = %158
  %166 = load ptr, ptr %6, align 8, !tbaa !9
  %167 = call i32 @ReadWord32(ptr noundef %166)
  %168 = trunc i32 %167 to i8
  store i8 %168, ptr %10, align 1, !tbaa !11
  %169 = load ptr, ptr %6, align 8, !tbaa !9
  %170 = call i32 @ReadWord32(ptr noundef %169)
  %171 = trunc i32 %170 to i8
  store i8 %171, ptr %10, align 1, !tbaa !11
  %172 = load ptr, ptr %6, align 8, !tbaa !9
  %173 = call i32 @ReadWord32(ptr noundef %172)
  store i32 %173, ptr %12, align 4, !tbaa !5
  %174 = load i32, ptr %11, align 4, !tbaa !5
  %175 = sub i32 %174, 12
  store i32 %175, ptr %11, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %165, %158
  %177 = load i8, ptr %10, align 1, !tbaa !11
  %178 = zext i8 %177 to i32
  switch i32 %178, label %199 [
    i32 1, label %179
    i32 2, label %181
    i32 3, label %183
    i32 4, label %185
    i32 5, label %187
    i32 6, label %189
    i32 7, label %191
    i32 8, label %193
    i32 9, label %195
    i32 10, label %197
  ]

179:                                              ; preds = %176
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %199

181:                                              ; preds = %176
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  br label %199

183:                                              ; preds = %176
  %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  br label %199

185:                                              ; preds = %176
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  br label %199

187:                                              ; preds = %176
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  br label %199

189:                                              ; preds = %176
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  br label %199

191:                                              ; preds = %176
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  br label %199

193:                                              ; preds = %176
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  br label %199

195:                                              ; preds = %176
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  br label %199

197:                                              ; preds = %176
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  br label %199

199:                                              ; preds = %197, %195, %193, %191, %189, %187, %185, %183, %181, %179, %176
  %200 = load i8, ptr %9, align 1, !tbaa !11
  %201 = zext i8 %200 to i32
  switch i32 %201, label %206 [
    i32 99, label %202
    i32 100, label %204
  ]

202:                                              ; preds = %199
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  br label %206

204:                                              ; preds = %199
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  br label %206

206:                                              ; preds = %204, %202, %199
  %207 = load ptr, ptr %14, align 8, !tbaa !9
  %208 = load ptr, ptr %15, align 8, !tbaa !9
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef %207, ptr noundef %208)
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, i32 noundef %210)
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = zext i32 %212 to i64
  %214 = call noalias ptr @malloc(i64 noundef %213) #8
  store ptr %214, ptr %7, align 8, !tbaa !9
  %215 = load ptr, ptr %7, align 8, !tbaa !9
  %216 = icmp ne ptr %215, null
  br i1 %216, label %221, label %217

217:                                              ; preds = %206
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  %219 = load ptr, ptr %6, align 8, !tbaa !9
  %220 = call i32 @fclose(ptr noundef %219)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

221:                                              ; preds = %206
  %222 = load ptr, ptr %7, align 8, !tbaa !9
  %223 = load i32, ptr %11, align 4, !tbaa !5
  %224 = zext i32 %223 to i64
  %225 = load ptr, ptr %6, align 8, !tbaa !9
  %226 = call i64 @fread(ptr noundef %222, i64 noundef %224, i64 noundef 1, ptr noundef %225)
  %227 = load ptr, ptr %6, align 8, !tbaa !9
  %228 = call i32 @fclose(ptr noundef %227)
  %229 = load i8, ptr %9, align 1, !tbaa !11
  %230 = zext i8 %229 to i32
  %231 = icmp eq i32 %230, 100
  br i1 %231, label %232, label %235

232:                                              ; preds = %221
  %233 = load i32, ptr %12, align 4, !tbaa !5
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str.42, i32 noundef %233)
  br label %235

235:                                              ; preds = %232, %221
  %236 = load ptr, ptr %15, align 8, !tbaa !9
  %237 = call noalias ptr @fopen(ptr noundef %236, ptr noundef @.str.43)
  store ptr %237, ptr %6, align 8, !tbaa !9
  %238 = load ptr, ptr %6, align 8, !tbaa !9
  %239 = icmp ne ptr %238, null
  br i1 %239, label %244, label %240

240:                                              ; preds = %235
  %241 = load ptr, ptr %15, align 8, !tbaa !9
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.44, ptr noundef %241)
  %243 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %243) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

244:                                              ; preds = %235
  %245 = load i8, ptr %9, align 1, !tbaa !11
  %246 = zext i8 %245 to i32
  %247 = icmp eq i32 %246, 99
  br i1 %247, label %248, label %261

248:                                              ; preds = %244
  %249 = load ptr, ptr %6, align 8, !tbaa !9
  %250 = call i64 @fwrite(ptr noundef @.str.45, i64 noundef 4, i64 noundef 1, ptr noundef %249)
  %251 = load i8, ptr %10, align 1, !tbaa !11
  %252 = zext i8 %251 to i32
  %253 = load ptr, ptr %6, align 8, !tbaa !9
  call void @WriteWord32(i32 noundef %252, ptr noundef %253)
  %254 = load i32, ptr %11, align 4, !tbaa !5
  %255 = load ptr, ptr %6, align 8, !tbaa !9
  call void @WriteWord32(i32 noundef %254, ptr noundef %255)
  %256 = load i32, ptr %11, align 4, !tbaa !5
  %257 = mul i32 %256, 104
  %258 = add i32 %257, 50
  %259 = udiv i32 %258, 100
  %260 = add i32 %259, 384
  store i32 %260, ptr %12, align 4, !tbaa !5
  br label %261

261:                                              ; preds = %248, %244
  %262 = load i32, ptr %12, align 4, !tbaa !5
  %263 = zext i32 %262 to i64
  %264 = call noalias ptr @malloc(i64 noundef %263) #8
  store ptr %264, ptr %8, align 8, !tbaa !9
  %265 = load ptr, ptr %8, align 8, !tbaa !9
  %266 = icmp ne ptr %265, null
  br i1 %266, label %272, label %267

267:                                              ; preds = %261
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  %269 = load ptr, ptr %6, align 8, !tbaa !9
  %270 = call i32 @fclose(ptr noundef %269)
  %271 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %271) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

272:                                              ; preds = %261
  %273 = load i8, ptr %9, align 1, !tbaa !11
  %274 = zext i8 %273 to i32
  %275 = icmp eq i32 %274, 99
  br i1 %275, label %276, label %355

276:                                              ; preds = %272
  %277 = load i8, ptr %10, align 1, !tbaa !11
  %278 = zext i8 %277 to i32
  switch i32 %278, label %345 [
    i32 1, label %279
    i32 2, label %284
    i32 3, label %289
    i32 4, label %294
    i32 5, label %299
    i32 6, label %304
    i32 7, label %309
    i32 8, label %314
    i32 9, label %319
    i32 10, label %340
  ]

279:                                              ; preds = %276
  %280 = load ptr, ptr %7, align 8, !tbaa !9
  %281 = load ptr, ptr %8, align 8, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !5
  %283 = call i32 @RLE_Compress(ptr noundef %280, ptr noundef %281, i32 noundef %282)
  store i32 %283, ptr %12, align 4, !tbaa !5
  br label %345

284:                                              ; preds = %276
  %285 = load ptr, ptr %7, align 8, !tbaa !9
  %286 = load ptr, ptr %8, align 8, !tbaa !9
  %287 = load i32, ptr %11, align 4, !tbaa !5
  %288 = call i32 @Huffman_Compress(ptr noundef %285, ptr noundef %286, i32 noundef %287)
  store i32 %288, ptr %12, align 4, !tbaa !5
  br label %345

289:                                              ; preds = %276
  %290 = load ptr, ptr %7, align 8, !tbaa !9
  %291 = load ptr, ptr %8, align 8, !tbaa !9
  %292 = load i32, ptr %11, align 4, !tbaa !5
  %293 = call i32 @Rice_Compress(ptr noundef %290, ptr noundef %291, i32 noundef %292, i32 noundef 2)
  store i32 %293, ptr %12, align 4, !tbaa !5
  br label %345

294:                                              ; preds = %276
  %295 = load ptr, ptr %7, align 8, !tbaa !9
  %296 = load ptr, ptr %8, align 8, !tbaa !9
  %297 = load i32, ptr %11, align 4, !tbaa !5
  %298 = call i32 @Rice_Compress(ptr noundef %295, ptr noundef %296, i32 noundef %297, i32 noundef 4)
  store i32 %298, ptr %12, align 4, !tbaa !5
  br label %345

299:                                              ; preds = %276
  %300 = load ptr, ptr %7, align 8, !tbaa !9
  %301 = load ptr, ptr %8, align 8, !tbaa !9
  %302 = load i32, ptr %11, align 4, !tbaa !5
  %303 = call i32 @Rice_Compress(ptr noundef %300, ptr noundef %301, i32 noundef %302, i32 noundef 8)
  store i32 %303, ptr %12, align 4, !tbaa !5
  br label %345

304:                                              ; preds = %276
  %305 = load ptr, ptr %7, align 8, !tbaa !9
  %306 = load ptr, ptr %8, align 8, !tbaa !9
  %307 = load i32, ptr %11, align 4, !tbaa !5
  %308 = call i32 @Rice_Compress(ptr noundef %305, ptr noundef %306, i32 noundef %307, i32 noundef 1)
  store i32 %308, ptr %12, align 4, !tbaa !5
  br label %345

309:                                              ; preds = %276
  %310 = load ptr, ptr %7, align 8, !tbaa !9
  %311 = load ptr, ptr %8, align 8, !tbaa !9
  %312 = load i32, ptr %11, align 4, !tbaa !5
  %313 = call i32 @Rice_Compress(ptr noundef %310, ptr noundef %311, i32 noundef %312, i32 noundef 3)
  store i32 %313, ptr %12, align 4, !tbaa !5
  br label %345

314:                                              ; preds = %276
  %315 = load ptr, ptr %7, align 8, !tbaa !9
  %316 = load ptr, ptr %8, align 8, !tbaa !9
  %317 = load i32, ptr %11, align 4, !tbaa !5
  %318 = call i32 @Rice_Compress(ptr noundef %315, ptr noundef %316, i32 noundef %317, i32 noundef 7)
  store i32 %318, ptr %12, align 4, !tbaa !5
  br label %345

319:                                              ; preds = %276
  %320 = load i32, ptr %11, align 4, !tbaa !5
  %321 = add i32 65536, %320
  %322 = zext i32 %321 to i64
  %323 = mul i64 4, %322
  %324 = call noalias ptr @malloc(i64 noundef %323) #8
  store ptr %324, ptr %13, align 8, !tbaa !9
  %325 = load ptr, ptr %13, align 8, !tbaa !9
  %326 = icmp ne ptr %325, null
  br i1 %326, label %327, label %334

327:                                              ; preds = %319
  %328 = load ptr, ptr %7, align 8, !tbaa !9
  %329 = load ptr, ptr %8, align 8, !tbaa !9
  %330 = load i32, ptr %11, align 4, !tbaa !5
  %331 = load ptr, ptr %13, align 8, !tbaa !9
  %332 = call i32 @LZ_CompressFast(ptr noundef %328, ptr noundef %329, i32 noundef %330, ptr noundef %331)
  store i32 %332, ptr %12, align 4, !tbaa !5
  %333 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %333) #6
  br label %339

334:                                              ; preds = %319
  %335 = load ptr, ptr %7, align 8, !tbaa !9
  %336 = load ptr, ptr %8, align 8, !tbaa !9
  %337 = load i32, ptr %11, align 4, !tbaa !5
  %338 = call i32 @LZ_Compress(ptr noundef %335, ptr noundef %336, i32 noundef %337)
  store i32 %338, ptr %12, align 4, !tbaa !5
  br label %339

339:                                              ; preds = %334, %327
  br label %345

340:                                              ; preds = %276
  %341 = load ptr, ptr %7, align 8, !tbaa !9
  %342 = load ptr, ptr %8, align 8, !tbaa !9
  %343 = load i32, ptr %11, align 4, !tbaa !5
  %344 = call i32 @SF_Compress(ptr noundef %341, ptr noundef %342, i32 noundef %343)
  store i32 %344, ptr %12, align 4, !tbaa !5
  br label %345

345:                                              ; preds = %340, %339, %314, %309, %304, %299, %294, %289, %284, %279, %276
  %346 = load i32, ptr %12, align 4, !tbaa !5
  %347 = load i32, ptr %12, align 4, !tbaa !5
  %348 = uitofp i32 %347 to float
  %349 = fmul float 1.000000e+02, %348
  %350 = load i32, ptr %11, align 4, !tbaa !5
  %351 = uitofp i32 %350 to float
  %352 = fdiv float %349, %351
  %353 = fpext float %352 to double
  %354 = call i32 (ptr, ...) @printf(ptr noundef @.str.46, i32 noundef %346, double noundef %353)
  br label %415

355:                                              ; preds = %272
  %356 = load i8, ptr %10, align 1, !tbaa !11
  %357 = zext i8 %356 to i32
  switch i32 %357, label %406 [
    i32 1, label %358
    i32 2, label %362
    i32 3, label %367
    i32 4, label %372
    i32 5, label %377
    i32 6, label %382
    i32 7, label %387
    i32 8, label %392
    i32 9, label %397
    i32 10, label %401
  ]

358:                                              ; preds = %355
  %359 = load ptr, ptr %7, align 8, !tbaa !9
  %360 = load ptr, ptr %8, align 8, !tbaa !9
  %361 = load i32, ptr %11, align 4, !tbaa !5
  call void @RLE_Uncompress(ptr noundef %359, ptr noundef %360, i32 noundef %361)
  br label %414

362:                                              ; preds = %355
  %363 = load ptr, ptr %7, align 8, !tbaa !9
  %364 = load ptr, ptr %8, align 8, !tbaa !9
  %365 = load i32, ptr %11, align 4, !tbaa !5
  %366 = load i32, ptr %12, align 4, !tbaa !5
  call void @Huffman_Uncompress(ptr noundef %363, ptr noundef %364, i32 noundef %365, i32 noundef %366)
  br label %414

367:                                              ; preds = %355
  %368 = load ptr, ptr %7, align 8, !tbaa !9
  %369 = load ptr, ptr %8, align 8, !tbaa !9
  %370 = load i32, ptr %11, align 4, !tbaa !5
  %371 = load i32, ptr %12, align 4, !tbaa !5
  call void @Rice_Uncompress(ptr noundef %368, ptr noundef %369, i32 noundef %370, i32 noundef %371, i32 noundef 2)
  br label %414

372:                                              ; preds = %355
  %373 = load ptr, ptr %7, align 8, !tbaa !9
  %374 = load ptr, ptr %8, align 8, !tbaa !9
  %375 = load i32, ptr %11, align 4, !tbaa !5
  %376 = load i32, ptr %12, align 4, !tbaa !5
  call void @Rice_Uncompress(ptr noundef %373, ptr noundef %374, i32 noundef %375, i32 noundef %376, i32 noundef 4)
  br label %414

377:                                              ; preds = %355
  %378 = load ptr, ptr %7, align 8, !tbaa !9
  %379 = load ptr, ptr %8, align 8, !tbaa !9
  %380 = load i32, ptr %11, align 4, !tbaa !5
  %381 = load i32, ptr %12, align 4, !tbaa !5
  call void @Rice_Uncompress(ptr noundef %378, ptr noundef %379, i32 noundef %380, i32 noundef %381, i32 noundef 8)
  br label %414

382:                                              ; preds = %355
  %383 = load ptr, ptr %7, align 8, !tbaa !9
  %384 = load ptr, ptr %8, align 8, !tbaa !9
  %385 = load i32, ptr %11, align 4, !tbaa !5
  %386 = load i32, ptr %12, align 4, !tbaa !5
  call void @Rice_Uncompress(ptr noundef %383, ptr noundef %384, i32 noundef %385, i32 noundef %386, i32 noundef 1)
  br label %414

387:                                              ; preds = %355
  %388 = load ptr, ptr %7, align 8, !tbaa !9
  %389 = load ptr, ptr %8, align 8, !tbaa !9
  %390 = load i32, ptr %11, align 4, !tbaa !5
  %391 = load i32, ptr %12, align 4, !tbaa !5
  call void @Rice_Uncompress(ptr noundef %388, ptr noundef %389, i32 noundef %390, i32 noundef %391, i32 noundef 3)
  br label %414

392:                                              ; preds = %355
  %393 = load ptr, ptr %7, align 8, !tbaa !9
  %394 = load ptr, ptr %8, align 8, !tbaa !9
  %395 = load i32, ptr %11, align 4, !tbaa !5
  %396 = load i32, ptr %12, align 4, !tbaa !5
  call void @Rice_Uncompress(ptr noundef %393, ptr noundef %394, i32 noundef %395, i32 noundef %396, i32 noundef 7)
  br label %414

397:                                              ; preds = %355
  %398 = load ptr, ptr %7, align 8, !tbaa !9
  %399 = load ptr, ptr %8, align 8, !tbaa !9
  %400 = load i32, ptr %11, align 4, !tbaa !5
  call void @LZ_Uncompress(ptr noundef %398, ptr noundef %399, i32 noundef %400)
  br label %414

401:                                              ; preds = %355
  %402 = load ptr, ptr %7, align 8, !tbaa !9
  %403 = load ptr, ptr %8, align 8, !tbaa !9
  %404 = load i32, ptr %11, align 4, !tbaa !5
  %405 = load i32, ptr %12, align 4, !tbaa !5
  call void @SF_Uncompress(ptr noundef %402, ptr noundef %403, i32 noundef %404, i32 noundef %405)
  br label %414

406:                                              ; preds = %355
  %407 = load i8, ptr %10, align 1, !tbaa !11
  %408 = zext i8 %407 to i32
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, i32 noundef %408)
  %410 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %410) #6
  %411 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %411) #6
  %412 = load ptr, ptr %6, align 8, !tbaa !9
  %413 = call i32 @fclose(ptr noundef %412)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

414:                                              ; preds = %401, %397, %392, %387, %382, %377, %372, %367, %362, %358
  br label %415

415:                                              ; preds = %414, %345
  %416 = load ptr, ptr %8, align 8, !tbaa !9
  %417 = load i32, ptr %12, align 4, !tbaa !5
  %418 = zext i32 %417 to i64
  %419 = load ptr, ptr %6, align 8, !tbaa !9
  %420 = call i64 @fwrite(ptr noundef %416, i64 noundef %418, i64 noundef 1, ptr noundef %419)
  %421 = load ptr, ptr %6, align 8, !tbaa !9
  %422 = call i32 @fclose(ptr noundef %421)
  %423 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %423) #6
  %424 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %424) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %425

425:                                              ; preds = %415, %406, %267, %240, %217, %155, %145, %120, %36, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %426 = load i32, ptr %3, align 4
  ret i32 %426
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

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

declare i32 @fclose(ptr noundef) #2

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

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

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

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

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

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

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

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

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

declare void @Huffman_Uncompress(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 void @LZ_Uncompress(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 willreturn memory(read) "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 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}


; 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.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [35 x i8], align 1
@switch.table.main = private unnamed_addr constant [10 x ptr] [ptr @.str.27, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr @.str.31, ptr @.str.32, ptr @.str.33, ptr @.str.34, ptr @.str.35, ptr @.str.36], align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @WriteWord32(i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = icmp slt i32 %0, 4
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  %5 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @Help(ptr noundef %5)
  br label %151

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = load i8, ptr %8, align 1, !tbaa !9
  %10 = add i8 %9, -101
  %or.cond = icmp ult i8 %10, -2
  br i1 %or.cond, label %11, label %13

11:                                               ; preds = %6
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @Help(ptr noundef %12)
  br label %151

13:                                               ; preds = %6
  %14 = icmp eq i32 %0, 5
  %15 = icmp eq i8 %9, 99
  %or.cond5 = and i1 %14, %15
  br i1 %or.cond5, label %16, label %41

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.15) #6
  %20 = icmp eq i32 %19, 0
  %spec.store.select = zext i1 %20 to i8
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.16) #6
  %22 = icmp eq i32 %21, 0
  %spec.store.select9 = select i1 %22, i8 2, i8 %spec.store.select
  %23 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.17) #6
  %24 = icmp eq i32 %23, 0
  %spec.store.select10 = select i1 %24, i8 3, i8 %spec.store.select9
  %25 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.18) #6
  %26 = icmp eq i32 %25, 0
  %spec.store.select11 = select i1 %26, i8 4, i8 %spec.store.select10
  %27 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.19) #6
  %28 = icmp eq i32 %27, 0
  %spec.store.select12 = select i1 %28, i8 5, i8 %spec.store.select11
  %29 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.20) #6
  %30 = icmp eq i32 %29, 0
  %spec.store.select13 = select i1 %30, i8 6, i8 %spec.store.select12
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.21) #6
  %32 = icmp eq i32 %31, 0
  %spec.store.select14 = select i1 %32, i8 7, i8 %spec.store.select13
  %33 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.22) #6
  %34 = icmp eq i32 %33, 0
  %spec.store.select15 = select i1 %34, i8 8, i8 %spec.store.select14
  %35 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.23) #6
  %36 = icmp eq i32 %35, 0
  %spec.store.select16 = select i1 %36, i8 9, i8 %spec.store.select15
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.24) #6
  %38 = icmp eq i32 %37, 0
  %spec.store.select17 = select i1 %38, i8 10, i8 %spec.store.select16
  %.not = icmp eq i8 %spec.store.select17, 0
  br i1 %.not, label %39, label %46

39:                                               ; preds = %16
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @Help(ptr noundef %40)
  br label %151

41:                                               ; preds = %13
  %42 = icmp eq i32 %0, 4
  %43 = icmp eq i8 %9, 100
  %or.cond8 = and i1 %42, %43
  br i1 %or.cond8, label %46, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @Help(ptr noundef %45)
  br label %151

46:                                               ; preds = %41, %16
  %.sink196 = phi i64 [ 24, %16 ], [ 16, %41 ]
  %.sink = phi i64 [ 32, %16 ], [ 24, %41 ]
  %.0177 = phi i8 [ %spec.store.select17, %16 ], [ 0, %41 ]
  %47 = getelementptr inbounds i8, ptr %1, i64 %.sink196
  %48 = getelementptr inbounds i8, ptr %1, i64 %.sink
  %.0 = load ptr, ptr %48, align 8, !tbaa !5
  %.0173 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = tail call noalias ptr @fopen(ptr noundef %.0173, ptr noundef nonnull @.str.25)
  %.not185 = icmp eq ptr %49, null
  br i1 %.not185, label %50, label %52

50:                                               ; preds = %46
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %.0173)
  br label %151

52:                                               ; preds = %46
  %53 = tail call i64 @GetFileSize(ptr noundef nonnull %49)
  %54 = trunc i64 %53 to i32
  %55 = icmp eq i8 %9, 100
  br i1 %55, label %56, label %62

56:                                               ; preds = %52
  %57 = tail call i32 @ReadWord32(ptr noundef nonnull %49)
  %58 = tail call i32 @ReadWord32(ptr noundef nonnull %49)
  %59 = trunc i32 %58 to i8
  %60 = tail call i32 @ReadWord32(ptr noundef nonnull %49)
  %61 = add i32 %54, -12
  br label %62

62:                                               ; preds = %56, %52
  %.1178 = phi i8 [ %59, %56 ], [ %.0177, %52 ]
  %.0176 = phi i32 [ %61, %56 ], [ %54, %52 ]
  %.0175 = phi i32 [ %60, %56 ], [ 0, %52 ]
  %63 = zext i8 %.1178 to i32
  %switch.tableidx = add i8 %.1178, -1
  %64 = icmp ult i8 %switch.tableidx, 10
  br i1 %64, label %switch.lookup, label %67

switch.lookup:                                    ; preds = %62
  %65 = zext nneg i8 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [10 x ptr], ptr @switch.table.main, i64 0, i64 %65
  %switch.load = load ptr, ptr %switch.gep, align 8
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load)
  br label %67

67:                                               ; preds = %62, %switch.lookup
  %.str.37..str.38 = select i1 %15, ptr @.str.37, ptr @.str.38
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.37..str.38)
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef %.0173, ptr noundef %.0)
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef %.0176)
  %71 = zext i32 %.0176 to i64
  %72 = tail call noalias ptr @malloc(i64 noundef %71) #7
  %.not186 = icmp eq ptr %72, null
  br i1 %.not186, label %73, label %76

73:                                               ; preds = %67
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  %75 = tail call i32 @fclose(ptr noundef nonnull %49)
  br label %151

76:                                               ; preds = %67
  %77 = tail call i64 @fread(ptr noundef nonnull %72, i64 noundef %71, i64 noundef 1, ptr noundef nonnull %49)
  %78 = tail call i32 @fclose(ptr noundef nonnull %49)
  br i1 %55, label %79, label %81

79:                                               ; preds = %76
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42, i32 noundef %.0175)
  br label %81

81:                                               ; preds = %79, %76
  %82 = tail call noalias ptr @fopen(ptr noundef %.0, ptr noundef nonnull @.str.43)
  %.not187 = icmp eq ptr %82, null
  br i1 %.not187, label %83, label %85

83:                                               ; preds = %81
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, ptr noundef %.0)
  tail call void @free(ptr noundef nonnull %72) #8
  br label %151

85:                                               ; preds = %81
  br i1 %15, label %86, label %.thread

86:                                               ; preds = %85
  %87 = tail call i64 @fwrite(ptr noundef nonnull @.str.45, i64 noundef 4, i64 noundef 1, ptr noundef nonnull %82)
  tail call void @WriteWord32(i32 noundef %63, ptr noundef nonnull %82)
  tail call void @WriteWord32(i32 noundef %.0176, ptr noundef nonnull %82)
  %88 = mul i32 %.0176, 104
  %89 = add i32 %88, 50
  %90 = udiv i32 %89, 100
  %91 = add nuw nsw i32 %90, 384
  %92 = zext nneg i32 %91 to i64
  %93 = tail call noalias ptr @malloc(i64 noundef %92) #7
  %.not188 = icmp eq ptr %93, null
  br i1 %.not188, label %96, label %99

.thread:                                          ; preds = %85
  %94 = zext i32 %.0175 to i64
  %95 = tail call noalias ptr @malloc(i64 noundef %94) #7
  %.not188191 = icmp eq ptr %95, null
  br i1 %.not188191, label %96, label %.thread193

96:                                               ; preds = %.thread, %86
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  %98 = tail call i32 @fclose(ptr noundef nonnull %82)
  tail call void @free(ptr noundef nonnull %72) #8
  br label %151

99:                                               ; preds = %86
  switch i8 %.1178, label %127 [
    i8 1, label %100
    i8 2, label %102
    i8 3, label %104
    i8 4, label %106
    i8 5, label %108
    i8 6, label %110
    i8 7, label %112
    i8 8, label %114
    i8 9, label %116
    i8 10, label %125
  ]

100:                                              ; preds = %99
  %101 = tail call i32 @RLE_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176) #8
  br label %127

102:                                              ; preds = %99
  %103 = tail call i32 @Huffman_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176) #8
  br label %127

104:                                              ; preds = %99
  %105 = tail call i32 @Rice_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, i32 noundef 2) #8
  br label %127

106:                                              ; preds = %99
  %107 = tail call i32 @Rice_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, i32 noundef 4) #8
  br label %127

108:                                              ; preds = %99
  %109 = tail call i32 @Rice_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, i32 noundef 8) #8
  br label %127

110:                                              ; preds = %99
  %111 = tail call i32 @Rice_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, i32 noundef 1) #8
  br label %127

112:                                              ; preds = %99
  %113 = tail call i32 @Rice_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, i32 noundef 3) #8
  br label %127

114:                                              ; preds = %99
  %115 = tail call i32 @Rice_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, i32 noundef 7) #8
  br label %127

116:                                              ; preds = %99
  %117 = add i32 %.0176, 65536
  %118 = zext i32 %117 to i64
  %119 = shl nuw nsw i64 %118, 2
  %120 = tail call noalias ptr @malloc(i64 noundef %119) #7
  %.not189 = icmp eq ptr %120, null
  br i1 %.not189, label %123, label %121

121:                                              ; preds = %116
  %122 = tail call i32 @LZ_CompressFast(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176, ptr noundef nonnull %120) #8
  tail call void @free(ptr noundef nonnull %120) #8
  br label %127

123:                                              ; preds = %116
  %124 = tail call i32 @LZ_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176) #8
  br label %127

125:                                              ; preds = %99
  %126 = tail call i32 @SF_Compress(ptr noundef nonnull %72, ptr noundef nonnull %93, i32 noundef %.0176) #8
  br label %127

127:                                              ; preds = %121, %123, %125, %114, %112, %110, %108, %106, %104, %102, %100, %99
  %.2 = phi i32 [ %91, %99 ], [ %126, %125 ], [ %122, %121 ], [ %124, %123 ], [ %115, %114 ], [ %113, %112 ], [ %111, %110 ], [ %109, %108 ], [ %107, %106 ], [ %105, %104 ], [ %103, %102 ], [ %101, %100 ]
  %128 = uitofp i32 %.2 to float
  %129 = fmul float %128, 1.000000e+02
  %130 = uitofp i32 %.0176 to float
  %131 = fdiv float %129, %130
  %132 = fpext float %131 to double
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46, i32 noundef %.2, double noundef %132)
  %.pre = zext i32 %.2 to i64
  br label %147

.thread193:                                       ; preds = %.thread
  switch i8 %.1178, label %144 [
    i8 1, label %134
    i8 2, label %135
    i8 3, label %136
    i8 4, label %137
    i8 5, label %138
    i8 6, label %139
    i8 7, label %140
    i8 8, label %141
    i8 9, label %142
    i8 10, label %143
  ]

134:                                              ; preds = %.thread193
  tail call void @RLE_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176) #8
  br label %147

135:                                              ; preds = %.thread193
  tail call void @Huffman_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175) #8
  br label %147

136:                                              ; preds = %.thread193
  tail call void @Rice_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175, i32 noundef 2) #8
  br label %147

137:                                              ; preds = %.thread193
  tail call void @Rice_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175, i32 noundef 4) #8
  br label %147

138:                                              ; preds = %.thread193
  tail call void @Rice_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175, i32 noundef 8) #8
  br label %147

139:                                              ; preds = %.thread193
  tail call void @Rice_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175, i32 noundef 1) #8
  br label %147

140:                                              ; preds = %.thread193
  tail call void @Rice_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175, i32 noundef 3) #8
  br label %147

141:                                              ; preds = %.thread193
  tail call void @Rice_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175, i32 noundef 7) #8
  br label %147

142:                                              ; preds = %.thread193
  tail call void @LZ_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176) #8
  br label %147

143:                                              ; preds = %.thread193
  tail call void @SF_Uncompress(ptr noundef nonnull %72, ptr noundef nonnull %95, i32 noundef %.0176, i32 noundef %.0175) #8
  br label %147

144:                                              ; preds = %.thread193
  %145 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, i32 noundef %63)
  tail call void @free(ptr noundef nonnull %72) #8
  tail call void @free(ptr noundef nonnull %95) #8
  %146 = tail call i32 @fclose(ptr noundef nonnull %82)
  br label %151

147:                                              ; preds = %134, %135, %136, %137, %138, %139, %140, %141, %142, %143, %127
  %.pre-phi = phi i64 [ %94, %134 ], [ %94, %135 ], [ %94, %136 ], [ %94, %137 ], [ %94, %138 ], [ %94, %139 ], [ %94, %140 ], [ %94, %141 ], [ %94, %142 ], [ %94, %143 ], [ %.pre, %127 ]
  %148 = phi ptr [ %95, %134 ], [ %95, %135 ], [ %95, %136 ], [ %95, %137 ], [ %95, %138 ], [ %95, %139 ], [ %95, %140 ], [ %95, %141 ], [ %95, %142 ], [ %95, %143 ], [ %93, %127 ]
  %149 = tail call i64 @fwrite(ptr noundef nonnull %148, i64 noundef %.pre-phi, i64 noundef 1, ptr noundef nonnull %82)
  %150 = tail call i32 @fclose(ptr noundef nonnull %82)
  tail call void @free(ptr noundef nonnull %72) #8
  tail call void @free(ptr noundef nonnull %148) #8
  br label %151

151:                                              ; preds = %147, %144, %96, %83, %73, %50, %44, %39, %11, %4
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) 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 #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 = { "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 willreturn memory(read) }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind }

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

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass