; LLVM IR from ryanlayer/giggle :: src (file_read)

; 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.htsFormat = type { i32, i32, %struct.anon, i32, i16, ptr }
%struct.anon = type { i16, i16 }
%struct.input_file = type { ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, ptr, ptr, ptr }
%struct.htsFile = type { i32, i64, %struct.__kstring_t, ptr, ptr, %union.anon, %struct.htsFormat }
%struct.__kstring_t = type { i64, i64, ptr }
%union.anon = type { ptr }
%struct.BGZF = type { i32, i32, i32, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @input_file_init(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.htsFormat, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %7 = call noalias ptr @malloc(i64 noundef 88) #10
  store ptr %7, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %1
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str) #11
  unreachable

11:                                               ; preds = %1
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call noalias ptr @strdup(ptr noundef %12) #9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.input_file, ptr %14, i32 0, i32 0
  store ptr %13, ptr %15, align 8, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.input_file, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call i64 @strlen(ptr noundef %18) #12
  %20 = icmp ugt i64 %19, 7
  br i1 %20, label %21, label %34

21:                                               ; preds = %11
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.input_file, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call i64 @strlen(ptr noundef %25) #12
  %27 = getelementptr inbounds i8, ptr %22, i64 %26
  %28 = getelementptr inbounds i8, ptr %27, i64 -7
  %29 = call i32 @strcmp(ptr noundef @.str.1, ptr noundef %28) #12
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %21
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.input_file, ptr %32, i32 0, i32 7
  store i32 0, ptr %33, align 8, !tbaa !13
  br label %84

34:                                               ; preds = %21, %11
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.input_file, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = call i64 @strlen(ptr noundef %37) #12
  %39 = icmp ugt i64 %38, 7
  br i1 %39, label %40, label %53

40:                                               ; preds = %34
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.input_file, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = call i64 @strlen(ptr noundef %44) #12
  %46 = getelementptr inbounds i8, ptr %41, i64 %45
  %47 = getelementptr inbounds i8, ptr %46, i64 -7
  %48 = call i32 @strcmp(ptr noundef @.str.2, ptr noundef %47) #12
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %53

50:                                               ; preds = %40
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.input_file, ptr %51, i32 0, i32 7
  store i32 1, ptr %52, align 8, !tbaa !13
  br label %83

53:                                               ; preds = %40, %34
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.input_file, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i64 @strlen(ptr noundef %56) #12
  %58 = icmp ugt i64 %57, 4
  br i1 %58, label %59, label %72

59:                                               ; preds = %53
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.input_file, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i64 @strlen(ptr noundef %63) #12
  %65 = getelementptr inbounds i8, ptr %60, i64 %64
  %66 = getelementptr inbounds i8, ptr %65, i64 -4
  %67 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %66) #12
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %72

69:                                               ; preds = %59
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.input_file, ptr %70, i32 0, i32 7
  store i32 2, ptr %71, align 8, !tbaa !13
  br label %82

72:                                               ; preds = %59, %53
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.input_file, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.4, ptr noundef %76) #9
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.input_file, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  call void @free(ptr noundef %80) #9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %81) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

82:                                               ; preds = %69
  br label %83

83:                                               ; preds = %82, %50
  br label %84

84:                                               ; preds = %83, %31
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.input_file, ptr %85, i32 0, i32 7
  %87 = load i32, ptr %86, align 8, !tbaa !13
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %141

89:                                               ; preds = %84
  %90 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 24) #13
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.input_file, ptr %91, i32 0, i32 5
  store ptr %90, ptr %92, align 8, !tbaa !14
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.input_file, ptr %93, i32 0, i32 5
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %100

97:                                               ; preds = %89
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.5) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

100:                                              ; preds = %89
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = call ptr @bgzf_open(ptr noundef %101, ptr noundef @.str.6)
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.input_file, ptr %103, i32 0, i32 2
  store ptr %102, ptr %104, align 8, !tbaa !15
  %105 = icmp eq ptr %102, null
  br i1 %105, label %106, label %110

106:                                              ; preds = %100
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.7, ptr noundef %108) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

110:                                              ; preds = %100
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.input_file, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = call i32 @bgzf_compression(ptr noundef %113)
  %115 = icmp ne i32 %114, 2
  br i1 %115, label %116, label %120

116:                                              ; preds = %110
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.8, ptr noundef %118) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

120:                                              ; preds = %110
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.input_file, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = load i32, ptr %123, align 8
  %125 = lshr i32 %124, 30
  %126 = and i32 %125, 1
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %132, label %128

128:                                              ; preds = %120
  %129 = load ptr, ptr @stderr, align 8, !tbaa !5
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.9, ptr noundef %130) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

132:                                              ; preds = %120
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.input_file, ptr %133, i32 0, i32 6
  store i64 0, ptr %134, align 8, !tbaa !16
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.input_file, ptr %135, i32 0, i32 8
  store ptr @input_file_get_next_interval_bed, ptr %136, align 8, !tbaa !17
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.input_file, ptr %137, i32 0, i32 9
  store ptr @input_file_get_next_line_bgzf, ptr %138, align 8, !tbaa !18
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.input_file, ptr %139, i32 0, i32 10
  store ptr @input_file_seek_bgzf, ptr %140, align 8, !tbaa !19
  br label %327

141:                                              ; preds = %84
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.input_file, ptr %142, i32 0, i32 7
  %144 = load i32, ptr %143, align 8, !tbaa !13
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %151, label %146

146:                                              ; preds = %141
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.input_file, ptr %147, i32 0, i32 7
  %149 = load i32, ptr %148, align 8, !tbaa !13
  %150 = icmp eq i32 %149, 2
  br i1 %150, label %151, label %326

151:                                              ; preds = %146, %141
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.input_file, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = call ptr @hts_open(ptr noundef %154, ptr noundef @.str.10)
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.input_file, ptr %156, i32 0, i32 3
  store ptr %155, ptr %157, align 8, !tbaa !20
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.input_file, ptr %158, i32 0, i32 3
  %160 = load ptr, ptr %159, align 8, !tbaa !20
  %161 = icmp ne ptr %160, null
  br i1 %161, label %168, label %162

162:                                              ; preds = %151
  %163 = load ptr, ptr @stderr, align 8, !tbaa !5
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.input_file, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !9
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.11, ptr noundef %166) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

168:                                              ; preds = %151
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.input_file, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !20
  %172 = getelementptr inbounds %struct.htsFile, ptr %171, i32 0, i32 6
  %173 = getelementptr inbounds %struct.htsFormat, ptr %172, i32 0, i32 3
  %174 = load i32, ptr %173, align 4, !tbaa !21
  %175 = icmp ne i32 %174, 2
  br i1 %175, label %176, label %182

176:                                              ; preds = %168
  %177 = load ptr, ptr @stderr, align 8, !tbaa !5
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.input_file, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !9
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.8, ptr noundef %180) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

182:                                              ; preds = %168
  %183 = call ptr @bcf_init()
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.input_file, ptr %184, i32 0, i32 1
  store ptr %183, ptr %185, align 8, !tbaa !27
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.input_file, ptr %186, i32 0, i32 3
  %188 = load ptr, ptr %187, align 8, !tbaa !20
  %189 = call ptr @bcf_hdr_read(ptr noundef %188)
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.input_file, ptr %190, i32 0, i32 4
  store ptr %189, ptr %191, align 8, !tbaa !28
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.input_file, ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !28
  %195 = icmp ne ptr %194, null
  br i1 %195, label %202, label %196

196:                                              ; preds = %182
  %197 = load ptr, ptr @stderr, align 8, !tbaa !5
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.input_file, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !9
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.12, ptr noundef %200) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

202:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #9
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.input_file, ptr %203, i32 0, i32 3
  %205 = load ptr, ptr %204, align 8, !tbaa !20
  %206 = call ptr @hts_get_format(ptr noundef %205)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %206, i64 32, i1 false), !tbaa.struct !29
  %207 = getelementptr inbounds %struct.htsFormat, ptr %6, i32 0, i32 1
  %208 = load i32, ptr %207, align 4, !tbaa !32
  %209 = icmp eq i32 %208, 9
  br i1 %209, label %210, label %220

210:                                              ; preds = %202
  %211 = load ptr, ptr @stderr, align 8, !tbaa !5
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.input_file, ptr %212, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !9
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.4, ptr noundef %214) #9
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.input_file, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !9
  call void @free(ptr noundef %218) #9
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %219) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %323

220:                                              ; preds = %202
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.input_file, ptr %221, i32 0, i32 3
  %223 = load ptr, ptr %222, align 8, !tbaa !20
  %224 = call i32 @hts_close(ptr noundef %223)
  %225 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 24) #13
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.input_file, ptr %226, i32 0, i32 5
  store ptr %225, ptr %227, align 8, !tbaa !14
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.input_file, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !14
  %231 = icmp eq ptr %230, null
  br i1 %231, label %232, label %235

232:                                              ; preds = %220
  %233 = load ptr, ptr @stderr, align 8, !tbaa !5
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef @.str.5) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %323

235:                                              ; preds = %220
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = call ptr @bgzf_open(ptr noundef %236, ptr noundef @.str.6)
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.input_file, ptr %238, i32 0, i32 2
  store ptr %237, ptr %239, align 8, !tbaa !15
  %240 = icmp eq ptr %237, null
  br i1 %240, label %241, label %247

241:                                              ; preds = %235
  %242 = load ptr, ptr @stderr, align 8, !tbaa !5
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.input_file, ptr %243, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8, !tbaa !9
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.7, ptr noundef %245) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %323

247:                                              ; preds = %235
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.input_file, ptr %248, i32 0, i32 2
  %250 = load ptr, ptr %249, align 8, !tbaa !15
  %251 = load i32, ptr %250, align 8
  %252 = lshr i32 %251, 30
  %253 = and i32 %252, 1
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %261, label %255

255:                                              ; preds = %247
  %256 = load ptr, ptr @stderr, align 8, !tbaa !5
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.input_file, ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !9
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.9, ptr noundef %259) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %323

261:                                              ; preds = %247
  br label %262

262:                                              ; preds = %299, %261
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.input_file, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !15
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.input_file, ptr %266, i32 0, i32 5
  %268 = load ptr, ptr %267, align 8, !tbaa !14
  %269 = call i32 @bgzf_getline(ptr noundef %265, i32 noundef 10, ptr noundef %268)
  %270 = icmp sge i32 %269, 0
  br i1 %270, label %271, label %300

271:                                              ; preds = %262
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.input_file, ptr %272, i32 0, i32 5
  %274 = load ptr, ptr %273, align 8, !tbaa !14
  %275 = getelementptr inbounds %struct.__kstring_t, ptr %274, i32 0, i32 2
  %276 = load ptr, ptr %275, align 8, !tbaa !33
  %277 = getelementptr inbounds i8, ptr %276, i64 0
  %278 = load i8, ptr %277, align 1, !tbaa !34
  %279 = sext i8 %278 to i32
  %280 = icmp eq i32 %279, 35
  br i1 %280, label %281, label %298

281:                                              ; preds = %271
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.input_file, ptr %282, i32 0, i32 2
  %284 = load ptr, ptr %283, align 8, !tbaa !15
  %285 = getelementptr inbounds %struct.BGZF, ptr %284, i32 0, i32 5
  %286 = load i64, ptr %285, align 8, !tbaa !35
  %287 = shl i64 %286, 16
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.input_file, ptr %288, i32 0, i32 2
  %290 = load ptr, ptr %289, align 8, !tbaa !15
  %291 = getelementptr inbounds %struct.BGZF, ptr %290, i32 0, i32 4
  %292 = load i32, ptr %291, align 8, !tbaa !37
  %293 = and i32 %292, 65535
  %294 = sext i32 %293 to i64
  %295 = or i64 %287, %294
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.input_file, ptr %296, i32 0, i32 6
  store i64 %295, ptr %297, align 8, !tbaa !16
  br label %299

298:                                              ; preds = %271
  br label %300

299:                                              ; preds = %281
  br label %262, !llvm.loop !38

300:                                              ; preds = %298, %262
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.input_file, ptr %301, i32 0, i32 2
  %303 = load ptr, ptr %302, align 8, !tbaa !15
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.input_file, ptr %304, i32 0, i32 6
  %306 = load i64, ptr %305, align 8, !tbaa !16
  %307 = call i64 @bgzf_seek(ptr noundef %303, i64 noundef %306, i32 noundef 0)
  %308 = icmp ne i64 %307, 0
  br i1 %308, label %309, label %315

309:                                              ; preds = %300
  %310 = load ptr, ptr @stderr, align 8, !tbaa !5
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.input_file, ptr %311, i32 0, i32 0
  %313 = load ptr, ptr %312, align 8, !tbaa !9
  %314 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %310, ptr noundef @.str.13, ptr noundef %313) #9
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %323

315:                                              ; preds = %300
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.input_file, ptr %316, i32 0, i32 8
  store ptr @input_file_get_next_interval_vcf, ptr %317, align 8, !tbaa !17
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.input_file, ptr %318, i32 0, i32 9
  store ptr @input_file_get_next_line_bgzf, ptr %319, align 8, !tbaa !18
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.input_file, ptr %320, i32 0, i32 10
  store ptr @input_file_seek_bgzf, ptr %321, align 8, !tbaa !19
  br label %322

322:                                              ; preds = %315
  store i32 0, ptr %5, align 4
  br label %323

323:                                              ; preds = %322, %309, %255, %241, %232, %210
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  %324 = load i32, ptr %5, align 4
  switch i32 %324, label %329 [
    i32 0, label %325
  ]

325:                                              ; preds = %323
  br label %326

326:                                              ; preds = %325, %146
  br label %327

327:                                              ; preds = %326, %132
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %328, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %329

329:                                              ; preds = %327, %323, %196, %176, %162, %128, %116, %106, %97, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  %330 = load ptr, ptr %2, align 8
  ret ptr %330
}

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

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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

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

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

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #6

declare ptr @bgzf_open(ptr noundef, ptr noundef) #7

declare i32 @bgzf_compression(ptr noundef) #7

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

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

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

declare ptr @hts_open(ptr noundef, ptr noundef) #7

declare ptr @bcf_init() #7

declare ptr @bcf_hdr_read(ptr noundef) #7

declare ptr @hts_get_format(ptr noundef) #7

; 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) #8

declare i32 @hts_close(ptr noundef) #7

declare i32 @bgzf_getline(ptr noundef, i32 noundef, ptr noundef) #7

declare i64 @bgzf_seek(ptr noundef, i64 noundef, i32 noundef) #7

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

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

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 = { 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 #3 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind 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 #6 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { noreturn }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { nounwind allocsize(0,1) }

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

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


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

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @input_file_init(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call noalias dereferenceable_or_null(88) ptr @malloc(i64 noundef 88) #10
  %3 = icmp eq ptr %2, null
  br i1 %3, label %4, label %5

4:                                                ; preds = %1
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str) #11
  unreachable

5:                                                ; preds = %1
  %6 = tail call noalias ptr @strdup(ptr noundef %0) #12
  store ptr %6, ptr %2, align 8, !tbaa !5
  %7 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #13
  %8 = icmp ugt i64 %7, 7
  br i1 %8, label %9, label %17

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 %7
  %11 = getelementptr inbounds i8, ptr %10, i64 -7
  %12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull dereferenceable(1) %11) #13
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %26, label %14

14:                                               ; preds = %9
  %15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull dereferenceable(1) %11) #13
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %57, label %.thread85

17:                                               ; preds = %5
  %18 = icmp ugt i64 %7, 4
  br i1 %18, label %.thread85, label %23

.thread85:                                        ; preds = %14, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 %7
  %20 = getelementptr inbounds i8, ptr %19, i64 -4
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull dereferenceable(1) %20) #13
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %57, label %23

23:                                               ; preds = %.thread85, %17
  %24 = load ptr, ptr @stderr, align 8, !tbaa !12
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.4, ptr noundef %6) #14
  tail call void @free(ptr noundef %6) #12
  tail call void @free(ptr noundef nonnull %2) #12
  br label %.critedge

26:                                               ; preds = %9
  %27 = getelementptr inbounds i8, ptr %2, i64 56
  store i32 0, ptr %27, align 8, !tbaa !13
  %28 = tail call noalias dereferenceable_or_null(24) ptr @calloc(i64 noundef 1, i64 noundef 24) #15
  %29 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %28, ptr %29, align 8, !tbaa !14
  %30 = icmp eq ptr %28, null
  br i1 %30, label %31, label %34

31:                                               ; preds = %26
  %32 = load ptr, ptr @stderr, align 8, !tbaa !12
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.5) #14
  br label %.critedge

34:                                               ; preds = %26
  %35 = tail call ptr @bgzf_open(ptr noundef %0, ptr noundef nonnull @.str.6) #12
  %36 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %35, ptr %36, align 8, !tbaa !15
  %37 = icmp eq ptr %35, null
  br i1 %37, label %38, label %41

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !12
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.7, ptr noundef %0) #14
  br label %.critedge

41:                                               ; preds = %34
  %42 = tail call i32 @bgzf_compression(ptr noundef nonnull %35) #12
  %.not83 = icmp eq i32 %42, 2
  br i1 %.not83, label %46, label %43

43:                                               ; preds = %41
  %44 = load ptr, ptr @stderr, align 8, !tbaa !12
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.8, ptr noundef %0) #14
  br label %.critedge

46:                                               ; preds = %41
  %47 = load i32, ptr %35, align 8
  %48 = and i32 %47, 1073741824
  %.not84 = icmp eq i32 %48, 0
  br i1 %.not84, label %49, label %52

49:                                               ; preds = %46
  %50 = load ptr, ptr @stderr, align 8, !tbaa !12
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.9, ptr noundef %0) #14
  br label %.critedge

52:                                               ; preds = %46
  %53 = getelementptr inbounds i8, ptr %2, i64 48
  store i64 0, ptr %53, align 8, !tbaa !16
  %54 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr @input_file_get_next_interval_bed, ptr %54, align 8, !tbaa !17
  %55 = getelementptr inbounds i8, ptr %2, i64 72
  store ptr @input_file_get_next_line_bgzf, ptr %55, align 8, !tbaa !18
  %56 = getelementptr inbounds i8, ptr %2, i64 80
  store ptr @input_file_seek_bgzf, ptr %56, align 8, !tbaa !19
  br label %.critedge

57:                                               ; preds = %.thread85, %14
  %.sink = phi i32 [ 1, %14 ], [ 2, %.thread85 ]
  %58 = getelementptr inbounds i8, ptr %2, i64 56
  store i32 %.sink, ptr %58, align 8, !tbaa !13
  %59 = tail call ptr @hts_open(ptr noundef %6, ptr noundef nonnull @.str.10) #12
  %60 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %59, ptr %60, align 8, !tbaa !20
  %.not = icmp eq ptr %59, null
  br i1 %.not, label %61, label %64

61:                                               ; preds = %57
  %62 = load ptr, ptr @stderr, align 8, !tbaa !12
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.11, ptr noundef %6) #14
  br label %.critedge

64:                                               ; preds = %57
  %65 = getelementptr inbounds i8, ptr %59, i64 76
  %66 = load i32, ptr %65, align 4, !tbaa !21
  %.not79 = icmp eq i32 %66, 2
  br i1 %.not79, label %70, label %67

67:                                               ; preds = %64
  %68 = load ptr, ptr @stderr, align 8, !tbaa !12
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.8, ptr noundef %6) #14
  br label %.critedge

70:                                               ; preds = %64
  %71 = tail call ptr @bcf_init() #12
  %72 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %71, ptr %72, align 8, !tbaa !27
  %73 = tail call ptr @bcf_hdr_read(ptr noundef nonnull %59) #12
  %74 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr %73, ptr %74, align 8, !tbaa !28
  %.not80 = icmp eq ptr %73, null
  br i1 %.not80, label %75, label %78

75:                                               ; preds = %70
  %76 = load ptr, ptr @stderr, align 8, !tbaa !12
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.12, ptr noundef %6) #14
  br label %.critedge

78:                                               ; preds = %70
  %79 = tail call ptr @hts_get_format(ptr noundef nonnull %59) #12
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %79, i64 4
  %.sroa.3.0.copyload = load i32, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !29
  %80 = icmp eq i32 %.sroa.3.0.copyload, 9
  br i1 %80, label %81, label %84

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !12
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.4, ptr noundef %6) #14
  tail call void @free(ptr noundef %6) #12
  tail call void @free(ptr noundef nonnull %2) #12
  br label %.critedge

84:                                               ; preds = %78
  %85 = tail call i32 @hts_close(ptr noundef nonnull %59) #12
  %86 = tail call noalias dereferenceable_or_null(24) ptr @calloc(i64 noundef 1, i64 noundef 24) #15
  %87 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %86, ptr %87, align 8, !tbaa !14
  %88 = icmp eq ptr %86, null
  br i1 %88, label %89, label %92

89:                                               ; preds = %84
  %90 = load ptr, ptr @stderr, align 8, !tbaa !12
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.5) #14
  br label %.critedge

92:                                               ; preds = %84
  %93 = tail call ptr @bgzf_open(ptr noundef %0, ptr noundef nonnull @.str.6) #12
  %94 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %93, ptr %94, align 8, !tbaa !15
  %95 = icmp eq ptr %93, null
  br i1 %95, label %96, label %99

96:                                               ; preds = %92
  %97 = load ptr, ptr @stderr, align 8, !tbaa !12
  %98 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.7, ptr noundef %6) #14
  br label %.critedge

99:                                               ; preds = %92
  %100 = load i32, ptr %93, align 8
  %101 = and i32 %100, 1073741824
  %.not81 = icmp eq i32 %101, 0
  br i1 %.not81, label %111, label %.preheader

.preheader:                                       ; preds = %99
  %102 = getelementptr inbounds i8, ptr %86, i64 16
  %103 = tail call i32 @bgzf_getline(ptr noundef nonnull %93, i32 noundef 10, ptr noundef nonnull %86) #12
  %104 = icmp sgt i32 %103, -1
  tail call void @llvm.assume(i1 %104)
  %105 = getelementptr inbounds i8, ptr %93, i64 24
  %106 = getelementptr inbounds i8, ptr %93, i64 16
  %107 = getelementptr inbounds i8, ptr %2, i64 48
  %108 = load ptr, ptr %102, align 8, !tbaa !30
  %109 = load i8, ptr %108, align 1, !tbaa !31
  %110 = icmp eq i8 %109, 35
  tail call void @llvm.assume(i1 %110)
  br label %.lr.ph

111:                                              ; preds = %99
  %112 = load ptr, ptr @stderr, align 8, !tbaa !12
  %113 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef nonnull @.str.9, ptr noundef %6) #14
  br label %.critedge

114:                                              ; preds = %.lr.ph
  %115 = load ptr, ptr %102, align 8, !tbaa !30
  %116 = load i8, ptr %115, align 1, !tbaa !31
  %117 = icmp eq i8 %116, 35
  br i1 %117, label %.lr.ph, label %._crit_edge, !llvm.loop !32

.lr.ph:                                           ; preds = %.preheader, %114
  %118 = load i64, ptr %105, align 8, !tbaa !34
  %119 = shl i64 %118, 16
  %120 = load i32, ptr %106, align 8, !tbaa !36
  %121 = and i32 %120, 65535
  %122 = zext nneg i32 %121 to i64
  %123 = or disjoint i64 %119, %122
  %124 = tail call i32 @bgzf_getline(ptr noundef nonnull %93, i32 noundef 10, ptr noundef nonnull %86) #12
  %125 = icmp sgt i32 %124, -1
  br i1 %125, label %114, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %114, %.lr.ph
  store i64 %123, ptr %107, align 8, !tbaa !16
  %126 = tail call i64 @bgzf_seek(ptr noundef nonnull %93, i64 noundef %123, i32 noundef 0) #12
  %.not82 = icmp eq i64 %126, 0
  br i1 %.not82, label %130, label %127

127:                                              ; preds = %._crit_edge
  %128 = load ptr, ptr @stderr, align 8, !tbaa !12
  %129 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.13, ptr noundef %6) #14
  br label %.critedge

130:                                              ; preds = %._crit_edge
  %131 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr @input_file_get_next_interval_vcf, ptr %131, align 8, !tbaa !17
  %132 = getelementptr inbounds i8, ptr %2, i64 72
  store ptr @input_file_get_next_line_bgzf, ptr %132, align 8, !tbaa !18
  %133 = getelementptr inbounds i8, ptr %2, i64 80
  store ptr @input_file_seek_bgzf, ptr %133, align 8, !tbaa !19
  br label %.critedge

.critedge:                                        ; preds = %81, %89, %96, %127, %111, %52, %130, %75, %67, %61, %49, %43, %38, %31, %23
  %.1 = phi ptr [ null, %31 ], [ null, %38 ], [ null, %43 ], [ null, %49 ], [ null, %67 ], [ null, %75 ], [ null, %61 ], [ null, %23 ], [ %2, %130 ], [ %2, %52 ], [ null, %111 ], [ null, %127 ], [ null, %96 ], [ null, %89 ], [ null, %81 ]
  ret ptr %.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 #1

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #7

declare ptr @bgzf_open(ptr noundef, ptr noundef) local_unnamed_addr #8

declare i32 @bgzf_compression(ptr noundef) local_unnamed_addr #8

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

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

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

declare ptr @hts_open(ptr noundef, ptr noundef) local_unnamed_addr #8

declare ptr @bcf_init() local_unnamed_addr #8

declare ptr @bcf_hdr_read(ptr noundef) local_unnamed_addr #8

declare ptr @hts_get_format(ptr noundef) local_unnamed_addr #8

declare i32 @hts_close(ptr noundef) local_unnamed_addr #8

declare i32 @bgzf_getline(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

declare i64 @bgzf_seek(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #8

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #9

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 = { 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 #2 = { noreturn "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 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #8 = { "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 #9 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { noreturn nounwind }
attributes #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { cold nounwind }
attributes #15 = { nounwind allocsize(0,1) }

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

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


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