; LLVM IR from IlyaGrebnov/libbsc :: bsc.ll (Z17decompression_ompPcP8_IO_FILERlS_S1_S2_)

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

%struct.BSC_BLOCK_HEADER = type <{ i64, i8, i8 }>

@stderr = external global ptr, align 8
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z13paramFeaturesv() #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

declare ptr @bsc_malloc(i64 noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #3

declare i64 @ftello64(ptr noundef) #2

declare i32 @fflush(ptr noundef) #2

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

declare i32 @fseeko64(ptr noundef, i64 noundef, i32 noundef) #2

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

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

declare void @bsc_free(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17decompression_ompPcP8_IO_FILERlS_S1_S2_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca %struct.BSC_BLOCK_HEADER, align 1
  %22 = alloca [28 x i8], align 16
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 -1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store ptr null, ptr %14, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %253, %6
  br label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  store i8 0, ptr %16, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  store i8 0, ptr %17, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call i32 @feof(ptr noundef %27) #8
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %151

30:                                               ; preds = %26
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = call i64 @ftello64(ptr noundef %31)
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = icmp ne i64 %32, %34
  br i1 %35, label %36, label %151

36:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call i64 @ftello64(ptr noundef %37)
  %39 = sitofp i64 %38 to double
  %40 = fmul double 1.000000e+02, %39
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = sitofp i64 %42 to double
  %44 = fdiv double %40, %43
  store double %44, ptr %20, align 8, !tbaa !14
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load double, ptr %20, align 8, !tbaa !14
  %48 = fptosi double %47 to i32
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.16, ptr noundef %46, i32 noundef %48) #8
  %50 = load ptr, ptr @stdout, align 8, !tbaa !5
  %51 = call i32 @fflush(ptr noundef %50)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 10, ptr %21) #8
  call void @llvm.memset.p0.i64(ptr align 1 %21, i8 0, i64 10, i1 false)
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call i64 @fread(ptr noundef %21, i64 noundef 10, i64 noundef 1, ptr noundef %52)
  %54 = icmp ne i64 %53, 1
  br i1 %54, label %55, label %59

55:                                               ; preds = %36
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.17, ptr noundef %57) #8
  call void @exit(i32 noundef 1) #9
  unreachable

59:                                               ; preds = %36
  %60 = getelementptr inbounds %struct.BSC_BLOCK_HEADER, ptr %21, i32 0, i32 1
  %61 = load i8, ptr %60, align 1, !tbaa !16
  store i8 %61, ptr %17, align 1, !tbaa !13
  %62 = load i8, ptr %17, align 1, !tbaa !13
  %63 = sext i8 %62 to i32
  %64 = icmp slt i32 %63, 1
  br i1 %64, label %65, label %68

65:                                               ; preds = %59
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.18) #8
  call void @exit(i32 noundef 2) #9
  unreachable

68:                                               ; preds = %59
  %69 = getelementptr inbounds %struct.BSC_BLOCK_HEADER, ptr %21, i32 0, i32 2
  %70 = load i8, ptr %69, align 1, !tbaa !19
  store i8 %70, ptr %16, align 1, !tbaa !13
  %71 = load i8, ptr %16, align 1, !tbaa !13
  %72 = sext i8 %71 to i32
  %73 = icmp ne i32 %72, 1
  br i1 %73, label %74, label %81

74:                                               ; preds = %68
  %75 = load i8, ptr %16, align 1, !tbaa !13
  %76 = sext i8 %75 to i32
  %77 = icmp ne i32 %76, 2
  br i1 %77, label %78, label %81

78:                                               ; preds = %74
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.18) #8
  call void @exit(i32 noundef 2) #9
  unreachable

81:                                               ; preds = %74, %68
  %82 = getelementptr inbounds %struct.BSC_BLOCK_HEADER, ptr %21, i32 0, i32 0
  %83 = load i64, ptr %82, align 1, !tbaa !20
  store i64 %83, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 28, ptr %22) #8
  %84 = getelementptr inbounds [28 x i8], ptr %22, i64 0, i64 0
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = call i64 @fread(ptr noundef %84, i64 noundef 28, i64 noundef 1, ptr noundef %85)
  %87 = icmp ne i64 %86, 1
  br i1 %87, label %88, label %92

88:                                               ; preds = %81
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.17, ptr noundef %90) #8
  call void @exit(i32 noundef 1) #9
  unreachable

92:                                               ; preds = %81
  %93 = getelementptr inbounds [28 x i8], ptr %22, i64 0, i64 0
  %94 = call noundef i32 @_Z13paramFeaturesv()
  %95 = call i32 @bsc_block_info(ptr noundef %93, i32 noundef 28, ptr noundef %18, ptr noundef %19, i32 noundef %94)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %100

97:                                               ; preds = %92
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.18) #8
  call void @exit(i32 noundef 2) #9
  unreachable

100:                                              ; preds = %92
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = icmp sgt i32 %101, %102
  br i1 %103, label %108, label %104

104:                                              ; preds = %100
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = icmp sgt i32 %105, %106
  br i1 %107, label %108, label %129

108:                                              ; preds = %104, %100
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = icmp sgt i32 %109, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %113, ptr %13, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %112, %108
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = icmp sgt i32 %115, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %114
  %119 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %119, ptr %13, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %118, %114
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  call void @bsc_free(ptr noundef %124)
  br label %125

125:                                              ; preds = %123, %120
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = call ptr @bsc_malloc(i64 noundef %127)
  store ptr %128, ptr %14, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %125, %104
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = icmp eq ptr %130, null
  br i1 %131, label %132, label %135

132:                                              ; preds = %129
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.3) #8
  call void @exit(i32 noundef 2) #9
  unreachable

135:                                              ; preds = %129
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds [28 x i8], ptr %22, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %136, ptr align 16 %137, i64 28, i1 false)
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 28
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = sub nsw i32 %140, 28
  %142 = sext i32 %141 to i64
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = call i64 @fread(ptr noundef %139, i64 noundef %142, i64 noundef 1, ptr noundef %143)
  %145 = icmp ne i64 %144, 1
  br i1 %145, label %146, label %150

146:                                              ; preds = %135
  %147 = load ptr, ptr @stderr, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.17, ptr noundef %148) #8
  call void @exit(i32 noundef 1) #9
  unreachable

150:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 28, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 10, ptr %21) #8
  br label %151

151:                                              ; preds = %150, %30, %26
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  store i32 3, ptr %23, align 4
  br label %251

155:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load i32, ptr %18, align 4, !tbaa !9
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = call noundef i32 @_Z13paramFeaturesv()
  %161 = call i32 @bsc_decompress(ptr noundef %156, i32 noundef %157, ptr noundef %158, i32 noundef %159, i32 noundef %160)
  store i32 %161, ptr %24, align 4, !tbaa !9
  %162 = load i32, ptr %24, align 4, !tbaa !9
  %163 = icmp slt i32 %162, 0
  br i1 %163, label %164, label %185

164:                                              ; preds = %155
  %165 = load i32, ptr %24, align 4, !tbaa !9
  switch i32 %165, label %181 [
    i32 -6, label %166
    i32 -2, label %169
    i32 -7, label %172
    i32 -8, label %175
    i32 -9, label %178
  ]

166:                                              ; preds = %164
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.19) #8
  br label %184

169:                                              ; preds = %164
  %170 = load ptr, ptr @stderr, align 8, !tbaa !5
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.3) #8
  br label %184

172:                                              ; preds = %164
  %173 = load ptr, ptr @stderr, align 8, !tbaa !5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.7) #8
  br label %184

175:                                              ; preds = %164
  %176 = load ptr, ptr @stderr, align 8, !tbaa !5
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.8) #8
  br label %184

178:                                              ; preds = %164
  %179 = load ptr, ptr @stderr, align 8, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.9) #8
  br label %184

181:                                              ; preds = %164
  %182 = load ptr, ptr @stderr, align 8, !tbaa !5
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.4) #8
  br label %184

184:                                              ; preds = %181, %178, %175, %172, %169, %166
  call void @exit(i32 noundef 2) #9
  unreachable

185:                                              ; preds = %155
  %186 = load i8, ptr %16, align 1, !tbaa !13
  %187 = sext i8 %186 to i32
  %188 = icmp eq i32 %187, 2
  br i1 %188, label %189, label %200

189:                                              ; preds = %185
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load i32, ptr %19, align 4, !tbaa !9
  %192 = call noundef i32 @_Z13paramFeaturesv()
  %193 = call i32 @bsc_reverse_block(ptr noundef %190, i32 noundef %191, i32 noundef %192)
  store i32 %193, ptr %24, align 4, !tbaa !9
  %194 = load i32, ptr %24, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %199

196:                                              ; preds = %189
  %197 = load ptr, ptr @stderr, align 8, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.4) #8
  call void @exit(i32 noundef 2) #9
  unreachable

199:                                              ; preds = %189
  br label %200

200:                                              ; preds = %199, %185
  %201 = load i8, ptr %17, align 1, !tbaa !13
  %202 = sext i8 %201 to i32
  %203 = icmp sgt i32 %202, 1
  br i1 %203, label %204, label %223

204:                                              ; preds = %200
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = load i32, ptr %19, align 4, !tbaa !9
  %207 = load i8, ptr %17, align 1, !tbaa !13
  %208 = sext i8 %207 to i32
  %209 = call noundef i32 @_Z13paramFeaturesv()
  %210 = call i32 @bsc_reorder_reverse(ptr noundef %205, i32 noundef %206, i32 noundef %208, i32 noundef %209)
  store i32 %210, ptr %24, align 4, !tbaa !9
  %211 = load i32, ptr %24, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %222

213:                                              ; preds = %204
  %214 = load i32, ptr %24, align 4, !tbaa !9
  switch i32 %214, label %218 [
    i32 -2, label %215
  ]

215:                                              ; preds = %213
  %216 = load ptr, ptr @stderr, align 8, !tbaa !5
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.3) #8
  br label %221

218:                                              ; preds = %213
  %219 = load ptr, ptr @stderr, align 8, !tbaa !5
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %219, ptr noundef @.str.4) #8
  br label %221

221:                                              ; preds = %218, %215
  call void @exit(i32 noundef 2) #9
  unreachable

222:                                              ; preds = %204
  br label %223

223:                                              ; preds = %222, %200
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = load i64, ptr %15, align 8, !tbaa !11
  %226 = call i32 @fseeko64(ptr noundef %224, i64 noundef %225, i32 noundef 0)
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %232

228:                                              ; preds = %223
  %229 = load ptr, ptr @stderr, align 8, !tbaa !5
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.2, ptr noundef %230) #8
  call void @exit(i32 noundef 1) #9
  unreachable

232:                                              ; preds = %223
  %233 = load ptr, ptr %14, align 8, !tbaa !5
  %234 = load i32, ptr %19, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = call i64 @fwrite(ptr noundef %233, i64 noundef 1, i64 noundef %235, ptr noundef %236)
  %238 = trunc i64 %237 to i32
  %239 = load i32, ptr %19, align 4, !tbaa !9
  %240 = icmp ne i32 %238, %239
  br i1 %240, label %241, label %245

241:                                              ; preds = %232
  %242 = load ptr, ptr @stderr, align 8, !tbaa !5
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.2, ptr noundef %243) #8
  call void @exit(i32 noundef 1) #9
  unreachable

245:                                              ; preds = %232
  %246 = load i32, ptr %19, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = load ptr, ptr %12, align 8, !tbaa !5
  %249 = load i64, ptr %248, align 8, !tbaa !11
  %250 = add nsw i64 %249, %247
  store i64 %250, ptr %248, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  store i32 0, ptr %23, align 4
  br label %251

251:                                              ; preds = %245, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %252 = load i32, ptr %23, align 4
  switch i32 %252, label %260 [
    i32 0, label %253
    i32 3, label %254
  ]

253:                                              ; preds = %251
  br label %25, !llvm.loop !21

254:                                              ; preds = %251
  %255 = load ptr, ptr %14, align 8, !tbaa !5
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %259

257:                                              ; preds = %254
  %258 = load ptr, ptr %14, align 8, !tbaa !5
  call void @bsc_free(ptr noundef %258)
  br label %259

259:                                              ; preds = %257, %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  ret void

260:                                              ; preds = %251
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !7, i64 8}
!17 = !{!"_ZTS16BSC_BLOCK_HEADER", !18, i64 0, !7, i64 8, !7, i64 9}
!18 = !{!"long long", !7, i64 0}
!19 = !{!17, !7, i64 9}
!20 = !{!17, !18, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"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"

%struct.BSC_BLOCK_HEADER = type <{ i64, i8, i8 }>

@stderr = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@switch.table._Z17decompression_ompPcP8_IO_FILERlS_S1_S2_ = private unnamed_addr constant [8 x ptr] [ptr @.str.9, ptr @.str.8, ptr @.str.7, ptr @.str.19, ptr @.str.4, ptr @.str.4, ptr @.str.4, ptr @.str.3], align 8

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

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

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

declare ptr @bsc_malloc(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

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

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

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

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

declare i32 @bsc_reverse_block(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare void @bsc_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17decompression_ompPcP8_IO_FILERlS_S1_S2_(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %2, ptr noundef %3, ptr nocapture noundef %4, ptr nocapture noundef nonnull align 8 dereferenceable(8) %5) local_unnamed_addr #5 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.BSC_BLOCK_HEADER, align 8
  %10 = alloca [28 x i8], align 16
  %11 = getelementptr inbounds i8, ptr %9, i64 8
  %12 = getelementptr inbounds i8, ptr %9, i64 9
  br label %13

13:                                               ; preds = %130, %6
  %.053 = phi ptr [ null, %6 ], [ %.255, %130 ]
  %.049 = phi i32 [ -1, %6 ], [ %.4, %130 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !5
  %14 = call i32 @feof(ptr noundef %1) #9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %84

16:                                               ; preds = %13
  %17 = call i64 @ftello64(ptr noundef %1)
  %18 = load i64, ptr %2, align 8, !tbaa !9
  %.not = icmp eq i64 %17, %18
  br i1 %.not, label %84, label %19

19:                                               ; preds = %16
  %20 = call i64 @ftello64(ptr noundef %1)
  %21 = sitofp i64 %20 to double
  %22 = fmul double %21, 1.000000e+02
  %23 = load i64, ptr %2, align 8, !tbaa !9
  %24 = sitofp i64 %23 to double
  %25 = fdiv double %22, %24
  %26 = load ptr, ptr @stdout, align 8, !tbaa !11
  %27 = fptosi double %25 to i32
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.16, ptr noundef %0, i32 noundef %27) #9
  %29 = load ptr, ptr @stdout, align 8, !tbaa !11
  %30 = call i32 @fflush(ptr noundef %29)
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %9) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(10) %9, i8 0, i64 10, i1 false)
  %31 = call i64 @fread(ptr noundef nonnull %9, i64 noundef 10, i64 noundef 1, ptr noundef %1)
  %.not63 = icmp eq i64 %31, 1
  br i1 %.not63, label %35, label %32

32:                                               ; preds = %19
  %33 = load ptr, ptr @stderr, align 8, !tbaa !11
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.17, ptr noundef %0) #10
  call void @exit(i32 noundef 1) #11
  unreachable

35:                                               ; preds = %19
  %36 = load i8, ptr %11, align 8, !tbaa !13
  %37 = icmp slt i8 %36, 1
  br i1 %37, label %38, label %41

38:                                               ; preds = %35
  %39 = load ptr, ptr @stderr, align 8, !tbaa !11
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.18) #10
  call void @exit(i32 noundef 2) #11
  unreachable

41:                                               ; preds = %35
  %42 = load i8, ptr %12, align 1, !tbaa !16
  %43 = add i8 %42, -3
  %or.cond = icmp ult i8 %43, -2
  br i1 %or.cond, label %44, label %47

44:                                               ; preds = %41
  %45 = load ptr, ptr @stderr, align 8, !tbaa !11
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.18) #10
  call void @exit(i32 noundef 2) #11
  unreachable

47:                                               ; preds = %41
  %48 = load i64, ptr %9, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %10) #9
  %49 = call i64 @fread(ptr noundef nonnull %10, i64 noundef 28, i64 noundef 1, ptr noundef %1)
  %.not64 = icmp eq i64 %49, 1
  br i1 %.not64, label %53, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !11
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.17, ptr noundef %0) #10
  call void @exit(i32 noundef 1) #11
  unreachable

53:                                               ; preds = %47
  %54 = call noundef i32 @_Z13paramFeaturesv()
  %55 = call i32 @bsc_block_info(ptr noundef nonnull %10, i32 noundef 28, ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef %54)
  %.not65 = icmp eq i32 %55, 0
  br i1 %.not65, label %59, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr @stderr, align 8, !tbaa !11
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.18) #10
  call void @exit(i32 noundef 2) #11
  unreachable

59:                                               ; preds = %53
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, %.049
  %62 = load i32, ptr %8, align 4
  %63 = icmp sgt i32 %62, %.049
  %or.cond74 = select i1 %61, i1 true, i1 %63
  br i1 %or.cond74, label %64, label %69

64:                                               ; preds = %59
  %spec.select = call i32 @llvm.smax.i32(i32 %60, i32 %.049)
  %.2 = call i32 @llvm.smax.i32(i32 %62, i32 %spec.select)
  %.not66 = icmp eq ptr %.053, null
  br i1 %.not66, label %66, label %65

65:                                               ; preds = %64
  call void @bsc_free(ptr noundef nonnull %.053)
  br label %66

66:                                               ; preds = %65, %64
  %67 = sext i32 %.2 to i64
  %68 = call ptr @bsc_malloc(i64 noundef %67)
  br label %69

69:                                               ; preds = %59, %66
  %.154 = phi ptr [ %68, %66 ], [ %.053, %59 ]
  %.3 = phi i32 [ %.2, %66 ], [ %.049, %59 ]
  %70 = icmp eq ptr %.154, null
  br i1 %70, label %71, label %74

71:                                               ; preds = %69
  %72 = load ptr, ptr @stderr, align 8, !tbaa !11
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.3) #10
  call void @exit(i32 noundef 2) #11
  unreachable

74:                                               ; preds = %69
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(28) %.154, ptr noundef nonnull align 16 dereferenceable(28) %10, i64 28, i1 false)
  %75 = getelementptr inbounds i8, ptr %.154, i64 28
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %76, -28
  %78 = sext i32 %77 to i64
  %79 = call i64 @fread(ptr noundef nonnull %75, i64 noundef %78, i64 noundef 1, ptr noundef %1)
  %.not67 = icmp eq i64 %79, 1
  br i1 %.not67, label %83, label %80

80:                                               ; preds = %74
  %81 = load ptr, ptr @stderr, align 8, !tbaa !11
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.17, ptr noundef %0) #10
  call void @exit(i32 noundef 1) #11
  unreachable

83:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %9) #9
  br label %84

84:                                               ; preds = %83, %16, %13
  %.255 = phi ptr [ %.154, %83 ], [ %.053, %16 ], [ %.053, %13 ]
  %.052 = phi i64 [ %48, %83 ], [ 0, %16 ], [ 0, %13 ]
  %.051 = phi i8 [ %42, %83 ], [ 0, %16 ], [ 0, %13 ]
  %.050 = phi i8 [ %36, %83 ], [ 0, %16 ], [ 0, %13 ]
  %.4 = phi i32 [ %.3, %83 ], [ %.049, %16 ], [ %.049, %13 ]
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %134, label %87

87:                                               ; preds = %84
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = call noundef i32 @_Z13paramFeaturesv()
  %90 = call i32 @bsc_decompress(ptr noundef %.255, i32 noundef %88, ptr noundef %.255, i32 noundef %85, i32 noundef %89)
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %98

92:                                               ; preds = %87
  %93 = load ptr, ptr @stderr, align 8, !tbaa !11
  %switch.tableidx = add nsw i32 %90, 9
  %94 = icmp ult i32 %switch.tableidx, 8
  br i1 %94, label %switch.lookup, label %96

switch.lookup:                                    ; preds = %92
  %95 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [8 x ptr], ptr @switch.table._Z17decompression_ompPcP8_IO_FILERlS_S1_S2_, i64 0, i64 %95
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %96

96:                                               ; preds = %92, %switch.lookup
  %.str.4.sink = phi ptr [ %switch.load, %switch.lookup ], [ @.str.4, %92 ]
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull %.str.4.sink) #10
  call void @exit(i32 noundef 2) #11
  unreachable

98:                                               ; preds = %87
  %99 = icmp eq i8 %.051, 2
  br i1 %99, label %100, label %107

100:                                              ; preds = %98
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = call noundef i32 @_Z13paramFeaturesv()
  %103 = call i32 @bsc_reverse_block(ptr noundef %.255, i32 noundef %101, i32 noundef %102)
  %.not68 = icmp eq i32 %103, 0
  br i1 %.not68, label %107, label %104

104:                                              ; preds = %100
  %105 = load ptr, ptr @stderr, align 8, !tbaa !11
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.4) #10
  call void @exit(i32 noundef 2) #11
  unreachable

107:                                              ; preds = %100, %98
  %108 = icmp ugt i8 %.050, 1
  br i1 %108, label %109, label %116

109:                                              ; preds = %107
  %110 = zext nneg i8 %.050 to i32
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = call noundef i32 @_Z13paramFeaturesv()
  %113 = call i32 @bsc_reorder_reverse(ptr noundef %.255, i32 noundef %111, i32 noundef %110, i32 noundef %112)
  switch i32 %113, label %.loopexit122 [
    i32 0, label %116
    i32 -2, label %.loopexit
  ]

.loopexit122:                                     ; preds = %109
  br label %.loopexit

.loopexit:                                        ; preds = %109, %.loopexit122
  %.str.4.sink110 = phi ptr [ @.str.4, %.loopexit122 ], [ @.str.3, %109 ]
  %114 = load ptr, ptr @stderr, align 8, !tbaa !11
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull %.str.4.sink110) #10
  call void @exit(i32 noundef 2) #11
  unreachable

116:                                              ; preds = %109, %107
  %117 = call i32 @fseeko64(ptr noundef %4, i64 noundef %.052, i32 noundef 0)
  %.not70 = icmp eq i32 %117, 0
  br i1 %.not70, label %121, label %118

118:                                              ; preds = %116
  %119 = load ptr, ptr @stderr, align 8, !tbaa !11
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef nonnull @.str.2, ptr noundef %3) #10
  call void @exit(i32 noundef 1) #11
  unreachable

121:                                              ; preds = %116
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = call i64 @fwrite(ptr noundef %.255, i64 noundef 1, i64 noundef %123, ptr noundef %4)
  %125 = trunc i64 %124 to i32
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %.not71 = icmp eq i32 %126, %125
  br i1 %.not71, label %130, label %127

127:                                              ; preds = %121
  %128 = load ptr, ptr @stderr, align 8, !tbaa !11
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.2, ptr noundef %3) #10
  call void @exit(i32 noundef 1) #11
  unreachable

130:                                              ; preds = %121
  %sext = shl i64 %124, 32
  %131 = ashr exact i64 %sext, 32
  %132 = load i64, ptr %5, align 8, !tbaa !9
  %133 = add nsw i64 %132, %131
  store i64 %133, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %13

134:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  %.not72 = icmp eq ptr %.255, null
  br i1 %.not72, label %136, label %135

135:                                              ; preds = %134
  call void @bsc_free(ptr noundef nonnull %.255)
  br label %136

136:                                              ; preds = %135, %134
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare i32 @bsc_block_info(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare i32 @bsc_decompress(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @bsc_reorder_reverse(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass