; LLVM IR from KamilSJaron/smudgeplot :: src_ploidyplot (libfastk)

; 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._Kmer_Stream = type { i32, i32, i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i32 }

@stderr = external global ptr, align 8
@Prog_Name = external dso_local global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [62 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

declare i32 @open(ptr noundef, i32 noundef, ...) #5

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #5

declare i32 @close(i32 noundef) #5

; Function Attrs: nounwind uwtable
define dso_local ptr @Open_Kmer_Stream(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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @setup_fmer_table()
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = call ptr @PathTo(ptr noundef %25)
  store ptr %26, ptr %18, align 8, !tbaa !5
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = call ptr @Root(ptr noundef %27, ptr noundef @.str.24)
  store ptr %28, ptr %19, align 8, !tbaa !5
  %29 = load ptr, ptr %18, align 8, !tbaa !5
  %30 = call i64 @strlen(ptr noundef %29) #7
  %31 = load ptr, ptr %19, align 8, !tbaa !5
  %32 = call i64 @strlen(ptr noundef %31) #7
  %33 = add i64 %30, %32
  %34 = add i64 %33, 20
  %35 = call ptr @Malloc(i64 noundef %34, ptr noundef @.str.20)
  store ptr %35, ptr %20, align 8, !tbaa !5
  %36 = load ptr, ptr %20, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %1
  call void @exit(i32 noundef 1) #8
  unreachable

39:                                               ; preds = %1
  %40 = load ptr, ptr %20, align 8, !tbaa !5
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  %42 = load ptr, ptr %19, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %40, ptr noundef @.str.25, ptr noundef %41, ptr noundef %42) #6
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = call i32 (ptr, i32, ...) @open(ptr noundef %44, i32 noundef 0)
  store i32 %45, ptr %16, align 4, !tbaa !9
  %46 = load ptr, ptr %20, align 8, !tbaa !5
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = load ptr, ptr %19, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %46, ptr noundef @.str.26, ptr noundef %47, ptr noundef %48) #6
  %50 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %50) #6
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %51) #6
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = icmp slt i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %39
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %55) #6
  store ptr null, ptr %2, align 8
  store i32 1, ptr %24, align 4
  br label %306

56:                                               ; preds = %39
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = call i64 @read(i32 noundef %57, ptr noundef %21, i64 noundef 4)
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = call i64 @read(i32 noundef %59, ptr noundef %22, i64 noundef 4)
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = call i64 @read(i32 noundef %61, ptr noundef %8, i64 noundef 4)
  %63 = load i32, ptr %16, align 4, !tbaa !9
  %64 = call i64 @read(i32 noundef %63, ptr noundef %9, i64 noundef 4)
  %65 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %65, ptr %5, align 4, !tbaa !9
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = add nsw i32 %66, 3
  %68 = ashr i32 %67, 2
  store i32 %68, ptr %7, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = add nsw i32 %69, 2
  store i32 %70, ptr %6, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sub nsw i32 %71, %72
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = sub nsw i32 %74, %75
  store i32 %76, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = mul nsw i32 8, %77
  %79 = shl i32 1, %78
  store i32 %79, ptr %12, align 4, !tbaa !9
  %80 = call ptr @Malloc(i64 noundef 136, ptr noundef @.str.31)
  store ptr %80, ptr %4, align 8, !tbaa !5
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._Kmer_Stream, ptr %82, i32 0, i32 20
  store ptr %81, ptr %83, align 8, !tbaa !11
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = call i64 @strlen(ptr noundef %84) #7
  %86 = trunc i64 %85 to i32
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._Kmer_Stream, ptr %87, i32 0, i32 19
  store i32 %86, ptr %88, align 4, !tbaa !14
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = mul nsw i32 1024, %89
  %91 = sext i32 %90 to i64
  %92 = call ptr @Malloc(i64 noundef %91, ptr noundef @.str.34)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._Kmer_Stream, ptr %93, i32 0, i32 13
  store ptr %92, ptr %94, align 8, !tbaa !15
  %95 = load i32, ptr %22, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = mul i64 %96, 8
  %98 = call ptr @Malloc(i64 noundef %97, ptr noundef @.str.35)
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._Kmer_Stream, ptr %99, i32 0, i32 22
  store ptr %98, ptr %100, align 8, !tbaa !16
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = mul i64 %102, 8
  %104 = call ptr @Malloc(i64 noundef %103, ptr noundef @.str.27)
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._Kmer_Stream, ptr %105, i32 0, i32 14
  store ptr %104, ptr %106, align 8, !tbaa !17
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %124, label %109

109:                                              ; preds = %56
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._Kmer_Stream, ptr %110, i32 0, i32 13
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = icmp eq ptr %112, null
  br i1 %113, label %124, label %114

114:                                              ; preds = %109
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._Kmer_Stream, ptr %115, i32 0, i32 22
  %117 = load ptr, ptr %116, align 8, !tbaa !16
  %118 = icmp eq ptr %117, null
  br i1 %118, label %124, label %119

119:                                              ; preds = %114
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._Kmer_Stream, ptr %120, i32 0, i32 14
  %122 = load ptr, ptr %121, align 8, !tbaa !17
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %125

124:                                              ; preds = %119, %114, %109, %56
  call void @exit(i32 noundef 1) #8
  unreachable

125:                                              ; preds = %119
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._Kmer_Stream, ptr %127, i32 0, i32 14
  %129 = load ptr, ptr %128, align 8, !tbaa !17
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = mul i64 %131, 8
  %133 = call i64 @read(i32 noundef %126, ptr noundef %129, i64 noundef %132)
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = call i32 @close(i32 noundef %134)
  store i64 0, ptr %13, align 8, !tbaa !18
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %193, %125
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = load i32, ptr %22, align 4, !tbaa !9
  %139 = icmp sle i32 %137, %138
  br i1 %139, label %140, label %196

140:                                              ; preds = %136
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._Kmer_Stream, ptr %141, i32 0, i32 20
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._Kmer_Stream, ptr %144, i32 0, i32 19
  %146 = load i32, ptr %145, align 4, !tbaa !14
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i8, ptr %143, i64 %147
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %148, ptr noundef @.str.28, i32 noundef %149) #6
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._Kmer_Stream, ptr %151, i32 0, i32 20
  %153 = load ptr, ptr %152, align 8, !tbaa !11
  %154 = call i32 (ptr, i32, ...) @open(ptr noundef %153, i32 noundef 0)
  store i32 %154, ptr %14, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = icmp slt i32 %155, 0
  br i1 %156, label %157, label %164

157:                                              ; preds = %140
  %158 = load ptr, ptr @stderr, align 8, !tbaa !5
  %159 = load ptr, ptr @Prog_Name, align 8, !tbaa !5
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._Kmer_Stream, ptr %160, i32 0, i32 20
  %162 = load ptr, ptr %161, align 8, !tbaa !11
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.36, ptr noundef %159, ptr noundef %162) #6
  call void @exit(i32 noundef 1) #8
  unreachable

164:                                              ; preds = %140
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = call i64 @read(i32 noundef %165, ptr noundef %5, i64 noundef 4)
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = call i64 @read(i32 noundef %167, ptr noundef %23, i64 noundef 8)
  %169 = load i64, ptr %23, align 8, !tbaa !18
  %170 = load i64, ptr %13, align 8, !tbaa !18
  %171 = add nsw i64 %170, %169
  store i64 %171, ptr %13, align 8, !tbaa !18
  %172 = load i64, ptr %13, align 8, !tbaa !18
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct._Kmer_Stream, ptr %173, i32 0, i32 22
  %175 = load ptr, ptr %174, align 8, !tbaa !16
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = sub nsw i32 %176, 1
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds i64, ptr %175, i64 %178
  store i64 %172, ptr %179, align 8, !tbaa !18
  %180 = load i32, ptr %5, align 4, !tbaa !9
  %181 = load i32, ptr %21, align 4, !tbaa !9
  %182 = icmp ne i32 %180, %181
  br i1 %182, label %183, label %190

183:                                              ; preds = %164
  %184 = load ptr, ptr @stderr, align 8, !tbaa !5
  %185 = load ptr, ptr @Prog_Name, align 8, !tbaa !5
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct._Kmer_Stream, ptr %186, i32 0, i32 20
  %188 = load ptr, ptr %187, align 8, !tbaa !11
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.37, ptr noundef %185, ptr noundef %188) #6
  call void @exit(i32 noundef 1) #8
  unreachable

190:                                              ; preds = %164
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = call i32 @close(i32 noundef %191)
  br label %193

193:                                              ; preds = %190
  %194 = load i32, ptr %17, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %17, align 4, !tbaa !9
  br label %136, !llvm.loop !19

196:                                              ; preds = %136
  %197 = load i32, ptr %12, align 4, !tbaa !9
  %198 = load i64, ptr %13, align 8, !tbaa !18
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct._Kmer_Stream, ptr %199, i32 0, i32 14
  %201 = load ptr, ptr %200, align 8, !tbaa !17
  %202 = call ptr @inverse_index(i32 noundef %197, i64 noundef %198, ptr noundef %201, ptr noundef %15)
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._Kmer_Stream, ptr %203, i32 0, i32 15
  store ptr %202, ptr %204, align 8, !tbaa !21
  %205 = load i32, ptr %5, align 4, !tbaa !9
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct._Kmer_Stream, ptr %206, i32 0, i32 0
  store i32 %205, ptr %207, align 8, !tbaa !22
  %208 = load i32, ptr %8, align 4, !tbaa !9
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._Kmer_Stream, ptr %209, i32 0, i32 1
  store i32 %208, ptr %210, align 4, !tbaa !23
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct._Kmer_Stream, ptr %212, i32 0, i32 8
  store i32 %211, ptr %213, align 4, !tbaa !24
  %214 = load i32, ptr %7, align 4, !tbaa !9
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct._Kmer_Stream, ptr %215, i32 0, i32 7
  store i32 %214, ptr %216, align 8, !tbaa !25
  %217 = load i64, ptr %13, align 8, !tbaa !18
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct._Kmer_Stream, ptr %218, i32 0, i32 2
  store i64 %217, ptr %219, align 8, !tbaa !26
  %220 = load i32, ptr %9, align 4, !tbaa !9
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct._Kmer_Stream, ptr %221, i32 0, i32 6
  store i32 %220, ptr %222, align 4, !tbaa !27
  %223 = load i32, ptr %10, align 4, !tbaa !9
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct._Kmer_Stream, ptr %224, i32 0, i32 10
  store i32 %223, ptr %225, align 4, !tbaa !28
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct._Kmer_Stream, ptr %227, i32 0, i32 11
  store i32 %226, ptr %228, align 8, !tbaa !29
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct._Kmer_Stream, ptr %230, i32 0, i32 12
  store i32 %229, ptr %231, align 4, !tbaa !30
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct._Kmer_Stream, ptr %233, i32 0, i32 9
  store i32 %232, ptr %234, align 8, !tbaa !31
  %235 = load i32, ptr %22, align 4, !tbaa !9
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct._Kmer_Stream, ptr %236, i32 0, i32 18
  store i32 %235, ptr %237, align 8, !tbaa !32
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct._Kmer_Stream, ptr %238, i32 0, i32 23
  store i32 0, ptr %239, align 8, !tbaa !33
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct._Kmer_Stream, ptr %240, i32 0, i32 20
  %242 = load ptr, ptr %241, align 8, !tbaa !11
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct._Kmer_Stream, ptr %243, i32 0, i32 19
  %245 = load i32, ptr %244, align 4, !tbaa !14
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i8, ptr %242, i64 %246
  %248 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %247, ptr noundef @.str.28, i32 noundef 1) #6
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct._Kmer_Stream, ptr %249, i32 0, i32 20
  %251 = load ptr, ptr %250, align 8, !tbaa !11
  %252 = call i32 (ptr, i32, ...) @open(ptr noundef %251, i32 noundef 0)
  store i32 %252, ptr %14, align 4, !tbaa !9
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = call i64 @lseek(i32 noundef %253, i64 noundef 12, i32 noundef 0) #6
  %255 = load i32, ptr %14, align 4, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct._Kmer_Stream, ptr %256, i32 0, i32 16
  store i32 %255, ptr %257, align 8, !tbaa !34
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct._Kmer_Stream, ptr %258, i32 0, i32 17
  store i32 1, ptr %259, align 4, !tbaa !35
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  call void @More_Kmer_Stream(ptr noundef %260)
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct._Kmer_Stream, ptr %261, i32 0, i32 3
  store i64 0, ptr %262, align 8, !tbaa !36
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct._Kmer_Stream, ptr %263, i32 0, i32 3
  %265 = load i64, ptr %264, align 8, !tbaa !36
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct._Kmer_Stream, ptr %266, i32 0, i32 2
  %268 = load i64, ptr %267, align 8, !tbaa !26
  %269 = icmp sge i64 %265, %268
  br i1 %269, label %270, label %284

270:                                              ; preds = %196
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct._Kmer_Stream, ptr %271, i32 0, i32 4
  store ptr null, ptr %272, align 8, !tbaa !37
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct._Kmer_Stream, ptr %273, i32 0, i32 11
  %275 = load i32, ptr %274, align 8, !tbaa !29
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct._Kmer_Stream, ptr %276, i32 0, i32 5
  store i32 %275, ptr %277, align 8, !tbaa !38
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct._Kmer_Stream, ptr %278, i32 0, i32 18
  %280 = load i32, ptr %279, align 8, !tbaa !32
  %281 = add nsw i32 %280, 1
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct._Kmer_Stream, ptr %282, i32 0, i32 17
  store i32 %281, ptr %283, align 4, !tbaa !35
  br label %304

284:                                              ; preds = %196
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct._Kmer_Stream, ptr %285, i32 0, i32 5
  store i32 0, ptr %286, align 8, !tbaa !38
  br label %287

287:                                              ; preds = %298, %284
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct._Kmer_Stream, ptr %288, i32 0, i32 14
  %290 = load ptr, ptr %289, align 8, !tbaa !17
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct._Kmer_Stream, ptr %291, i32 0, i32 5
  %293 = load i32, ptr %292, align 8, !tbaa !38
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds i64, ptr %290, i64 %294
  %296 = load i64, ptr %295, align 8, !tbaa !18
  %297 = icmp sle i64 %296, 0
  br i1 %297, label %298, label %303

298:                                              ; preds = %287
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct._Kmer_Stream, ptr %299, i32 0, i32 5
  %301 = load i32, ptr %300, align 8, !tbaa !38
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %300, align 8, !tbaa !38
  br label %287, !llvm.loop !39

303:                                              ; preds = %287
  br label %304

304:                                              ; preds = %303, %270
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %305, ptr %2, align 8
  store i32 1, ptr %24, align 4
  br label %306

306:                                              ; preds = %304, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %307 = load ptr, ptr %2, align 8
  ret ptr %307
}

; Function Attrs: nounwind uwtable
declare hidden ptr @inverse_index(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @More_Kmer_Stream(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @setup_fmer_table() #0

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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 104}
!12 = !{!"", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !10, i64 128}
!13 = !{!"long long", !7, i64 0}
!14 = !{!12, !10, i64 100}
!15 = !{!12, !6, i64 64}
!16 = !{!12, !6, i64 120}
!17 = !{!12, !6, i64 72}
!18 = !{!13, !13, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !6, i64 80}
!22 = !{!12, !10, i64 0}
!23 = !{!12, !10, i64 4}
!24 = !{!12, !10, i64 44}
!25 = !{!12, !10, i64 40}
!26 = !{!12, !13, i64 8}
!27 = !{!12, !10, i64 36}
!28 = !{!12, !10, i64 52}
!29 = !{!12, !10, i64 56}
!30 = !{!12, !10, i64 60}
!31 = !{!12, !10, i64 48}
!32 = !{!12, !10, i64 96}
!33 = !{!12, !10, i64 128}
!34 = !{!12, !10, i64 88}
!35 = !{!12, !10, i64 92}
!36 = !{!12, !13, i64 16}
!37 = !{!12, !6, i64 24}
!38 = !{!12, !10, i64 32}
!39 = distinct !{!39, !20}


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

@stderr = external local_unnamed_addr global ptr, align 8
@Prog_Name = external dso_local local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @Malloc(i64 noundef, ptr noundef) 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #6

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #6

declare i32 @close(i32 noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
define dso_local ptr @Open_Kmer_Stream(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  tail call void @setup_fmer_table()
  %9 = tail call ptr @PathTo(ptr noundef %0)
  %10 = tail call ptr @Root(ptr noundef %0, ptr noundef nonnull @.str.24)
  %11 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %9) #10
  %12 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %10) #10
  %13 = add i64 %11, 20
  %14 = add i64 %13, %12
  %15 = tail call ptr @Malloc(i64 noundef %14, ptr noundef nonnull @.str.20)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %1
  tail call void @exit(i32 noundef 1) #11
  unreachable

18:                                               ; preds = %1
  %19 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef %9, ptr noundef %10) #9
  %20 = tail call i32 (ptr, i32, ...) @open(ptr noundef nonnull %15, i32 noundef 0) #9
  %21 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %9, ptr noundef %10) #9
  tail call void @free(ptr noundef %10) #9
  tail call void @free(ptr noundef %9) #9
  %22 = icmp slt i32 %20, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  tail call void @free(ptr noundef nonnull %15) #9
  br label %140

24:                                               ; preds = %18
  %25 = call i64 @read(i32 noundef %20, ptr noundef nonnull %6, i64 noundef 4) #9
  %26 = call i64 @read(i32 noundef %20, ptr noundef nonnull %7, i64 noundef 4) #9
  %27 = call i64 @read(i32 noundef %20, ptr noundef nonnull %3, i64 noundef 4) #9
  %28 = call i64 @read(i32 noundef %20, ptr noundef nonnull %4, i64 noundef 4) #9
  %29 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %29, ptr %2, align 4, !tbaa !5
  %30 = add nsw i32 %29, 3
  %31 = ashr i32 %30, 2
  %32 = add nsw i32 %31, 2
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = sub nsw i32 %32, %33
  %35 = sub nsw i32 %31, %33
  %36 = shl nsw i32 %33, 3
  %37 = shl nuw i32 1, %36
  %38 = tail call ptr @Malloc(i64 noundef 136, ptr noundef nonnull @.str.31)
  %39 = getelementptr inbounds i8, ptr %38, i64 104
  store ptr %15, ptr %39, align 8, !tbaa !9
  %40 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %15) #10
  %41 = trunc i64 %40 to i32
  %42 = getelementptr inbounds i8, ptr %38, i64 100
  store i32 %41, ptr %42, align 4, !tbaa !13
  %43 = shl nsw i32 %34, 10
  %44 = sext i32 %43 to i64
  %45 = tail call ptr @Malloc(i64 noundef %44, ptr noundef nonnull @.str.34)
  %46 = getelementptr inbounds i8, ptr %38, i64 64
  store ptr %45, ptr %46, align 8, !tbaa !14
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 3
  %50 = tail call ptr @Malloc(i64 noundef %49, ptr noundef nonnull @.str.35)
  %51 = getelementptr inbounds i8, ptr %38, i64 120
  store ptr %50, ptr %51, align 8, !tbaa !15
  %52 = shl i32 8, %36
  %53 = zext nneg i32 %52 to i64
  %54 = tail call ptr @Malloc(i64 noundef %53, ptr noundef nonnull @.str.27)
  %55 = getelementptr inbounds i8, ptr %38, i64 72
  store ptr %54, ptr %55, align 8, !tbaa !16
  %56 = load ptr, ptr %46, align 8, !tbaa !14
  %57 = icmp eq ptr %56, null
  br i1 %57, label %62, label %58

58:                                               ; preds = %24
  %59 = load ptr, ptr %51, align 8, !tbaa !15
  %60 = icmp eq ptr %59, null
  %61 = icmp eq ptr %54, null
  %or.cond = select i1 %60, i1 true, i1 %61
  br i1 %or.cond, label %62, label %63

62:                                               ; preds = %58, %24
  tail call void @exit(i32 noundef 1) #11
  unreachable

63:                                               ; preds = %58
  %64 = tail call i64 @read(i32 noundef %20, ptr noundef nonnull %54, i64 noundef %53) #9
  %65 = tail call i32 @close(i32 noundef %20) #9
  %.not109 = icmp slt i32 %47, 1
  br i1 %.not109, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %63
  %66 = add nuw i32 %47, 1
  %wide.trip.count = zext i32 %66 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %95
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %95 ]
  %.099111 = phi i64 [ 0, %.lr.ph.preheader ], [ %85, %95 ]
  %67 = load ptr, ptr %39, align 8, !tbaa !9
  %68 = load i32, ptr %42, align 4, !tbaa !13
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i8, ptr %67, i64 %69
  %71 = trunc nuw nsw i64 %indvars.iv to i32
  %72 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %70, ptr noundef nonnull dereferenceable(1) @.str.28, i32 noundef %71) #9
  %73 = load ptr, ptr %39, align 8, !tbaa !9
  %74 = tail call i32 (ptr, i32, ...) @open(ptr noundef %73, i32 noundef 0) #9
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %.lr.ph
  %77 = load ptr, ptr @stderr, align 8, !tbaa !17
  %78 = load ptr, ptr @Prog_Name, align 8, !tbaa !17
  %79 = load ptr, ptr %39, align 8, !tbaa !9
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.36, ptr noundef %78, ptr noundef %79) #12
  tail call void @exit(i32 noundef 1) #11
  unreachable

81:                                               ; preds = %.lr.ph
  %82 = call i64 @read(i32 noundef %74, ptr noundef nonnull %2, i64 noundef 4) #9
  %83 = call i64 @read(i32 noundef %74, ptr noundef nonnull %8, i64 noundef 8) #9
  %84 = load i64, ptr %8, align 8, !tbaa !18
  %85 = add nsw i64 %84, %.099111
  %86 = load ptr, ptr %51, align 8, !tbaa !15
  %87 = getelementptr i64, ptr %86, i64 %indvars.iv
  %88 = getelementptr i8, ptr %87, i64 -8
  store i64 %85, ptr %88, align 8, !tbaa !18
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %.not106 = icmp eq i32 %89, %29
  br i1 %.not106, label %95, label %90

90:                                               ; preds = %81
  %91 = load ptr, ptr @stderr, align 8, !tbaa !17
  %92 = load ptr, ptr @Prog_Name, align 8, !tbaa !17
  %93 = load ptr, ptr %39, align 8, !tbaa !9
  %94 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.37, ptr noundef %92, ptr noundef %93) #12
  tail call void @exit(i32 noundef 1) #11
  unreachable

95:                                               ; preds = %81
  %96 = tail call i32 @close(i32 noundef %74) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %95, %63
  %.099.lcssa = phi i64 [ 0, %63 ], [ %85, %95 ]
  %97 = load ptr, ptr %55, align 8, !tbaa !16
  %98 = call ptr @inverse_index(i32 noundef %37, i64 noundef %.099.lcssa, ptr noundef %97, ptr noundef nonnull %5)
  %99 = getelementptr inbounds i8, ptr %38, i64 80
  store ptr %98, ptr %99, align 8, !tbaa !21
  store i32 %29, ptr %38, align 8, !tbaa !22
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %38, i64 4
  store i32 %100, ptr %101, align 4, !tbaa !23
  %102 = getelementptr inbounds i8, ptr %38, i64 44
  store i32 %32, ptr %102, align 4, !tbaa !24
  %103 = getelementptr inbounds i8, ptr %38, i64 40
  store i32 %31, ptr %103, align 8, !tbaa !25
  %104 = getelementptr inbounds i8, ptr %38, i64 8
  store i64 %.099.lcssa, ptr %104, align 8, !tbaa !26
  %105 = getelementptr inbounds i8, ptr %38, i64 36
  store i32 %33, ptr %105, align 4, !tbaa !27
  %106 = getelementptr inbounds i8, ptr %38, i64 52
  store i32 %34, ptr %106, align 4, !tbaa !28
  %107 = getelementptr inbounds i8, ptr %38, i64 56
  store i32 %37, ptr %107, align 8, !tbaa !29
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %38, i64 60
  store i32 %108, ptr %109, align 4, !tbaa !30
  %110 = getelementptr inbounds i8, ptr %38, i64 48
  store i32 %35, ptr %110, align 8, !tbaa !31
  %111 = getelementptr inbounds i8, ptr %38, i64 96
  store i32 %47, ptr %111, align 8, !tbaa !32
  %112 = getelementptr inbounds i8, ptr %38, i64 128
  store i32 0, ptr %112, align 8, !tbaa !33
  %113 = load ptr, ptr %39, align 8, !tbaa !9
  %114 = load i32, ptr %42, align 4, !tbaa !13
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %113, i64 %115
  %117 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %116, ptr noundef nonnull dereferenceable(1) @.str.28, i32 noundef 1) #9
  %118 = load ptr, ptr %39, align 8, !tbaa !9
  %119 = call i32 (ptr, i32, ...) @open(ptr noundef %118, i32 noundef 0) #9
  %120 = call i64 @lseek(i32 noundef %119, i64 noundef 12, i32 noundef 0) #9
  %121 = getelementptr inbounds i8, ptr %38, i64 88
  store i32 %119, ptr %121, align 8, !tbaa !34
  %122 = getelementptr inbounds i8, ptr %38, i64 92
  store i32 1, ptr %122, align 4, !tbaa !35
  call void @More_Kmer_Stream(ptr noundef nonnull %38)
  %123 = getelementptr inbounds i8, ptr %38, i64 16
  store i64 0, ptr %123, align 8, !tbaa !36
  %124 = load i64, ptr %104, align 8, !tbaa !26
  %125 = icmp slt i64 %124, 1
  br i1 %125, label %126, label %132

126:                                              ; preds = %._crit_edge
  %127 = getelementptr inbounds i8, ptr %38, i64 24
  store ptr null, ptr %127, align 8, !tbaa !37
  %128 = load i32, ptr %107, align 8, !tbaa !29
  %129 = getelementptr inbounds i8, ptr %38, i64 32
  store i32 %128, ptr %129, align 8, !tbaa !38
  %130 = load i32, ptr %111, align 8, !tbaa !32
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %122, align 4, !tbaa !35
  br label %140

132:                                              ; preds = %._crit_edge
  %133 = load ptr, ptr %55, align 8, !tbaa !16
  br label %134

134:                                              ; preds = %134, %132
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %134 ], [ 0, %132 ]
  %135 = getelementptr inbounds i64, ptr %133, i64 %indvars.iv114
  %136 = load i64, ptr %135, align 8, !tbaa !18
  %137 = icmp slt i64 %136, 1
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  br i1 %137, label %134, label %.loopexit, !llvm.loop !39

.loopexit:                                        ; preds = %134
  %138 = getelementptr inbounds i8, ptr %38, i64 32
  %139 = trunc nuw nsw i64 %indvars.iv114 to i32
  store i32 %139, ptr %138, align 8, !tbaa !38
  br label %140

140:                                              ; preds = %.loopexit, %126, %23
  %.0 = phi ptr [ null, %23 ], [ %38, %126 ], [ %38, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  ret ptr %.0
}

; Function Attrs: nounwind uwtable
declare hidden ptr @inverse_index(i32 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #8

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

; Function Attrs: nounwind uwtable
declare hidden void @setup_fmer_table() local_unnamed_addr #0

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nofree "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 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }
attributes #12 = { cold 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/C++ TBAA"}
!9 = !{!10, !12, i64 104}
!10 = !{!"", !6, i64 0, !6, i64 4, !11, i64 8, !11, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !12, i64 64, !12, i64 72, !12, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !12, i64 104, !12, i64 112, !12, i64 120, !6, i64 128}
!11 = !{!"long long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !6, i64 100}
!14 = !{!10, !12, i64 64}
!15 = !{!10, !12, i64 120}
!16 = !{!10, !12, i64 72}
!17 = !{!12, !12, i64 0}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !12, i64 80}
!22 = !{!10, !6, i64 0}
!23 = !{!10, !6, i64 4}
!24 = !{!10, !6, i64 44}
!25 = !{!10, !6, i64 40}
!26 = !{!10, !11, i64 8}
!27 = !{!10, !6, i64 36}
!28 = !{!10, !6, i64 52}
!29 = !{!10, !6, i64 56}
!30 = !{!10, !6, i64 60}
!31 = !{!10, !6, i64 48}
!32 = !{!10, !6, i64 96}
!33 = !{!10, !6, i64 128}
!34 = !{!10, !6, i64 88}
!35 = !{!10, !6, i64 92}
!36 = !{!10, !11, i64 16}
!37 = !{!10, !12, i64 24}
!38 = !{!10, !6, i64 32}
!39 = distinct !{!39, !20}


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