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

@.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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

; 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
define dso_local ptr @Clone_Kmer_Stream(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %5 = call ptr @Malloc(i64 noundef 136, ptr noundef @.str.31)
  store ptr %5, ptr %3, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %9

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

9:                                                ; preds = %1
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %11, i64 136, i1 false), !tbaa.struct !9
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct._Kmer_Stream, ptr %12, i32 0, i32 23
  store i32 1, ptr %13, align 8, !tbaa !14
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct._Kmer_Stream, ptr %14, i32 0, i32 10
  %16 = load i32, ptr %15, align 4, !tbaa !16
  %17 = mul nsw i32 1024, %16
  %18 = sext i32 %17 to i64
  %19 = call ptr @Malloc(i64 noundef %18, ptr noundef @.str.34)
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._Kmer_Stream, ptr %20, i32 0, i32 13
  store ptr %19, ptr %21, align 8, !tbaa !17
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._Kmer_Stream, ptr %22, i32 0, i32 19
  %24 = load i32, ptr %23, align 4, !tbaa !18
  %25 = add nsw i32 %24, 20
  %26 = sext i32 %25 to i64
  %27 = call ptr @Malloc(i64 noundef %26, ptr noundef @.str.34)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._Kmer_Stream, ptr %28, i32 0, i32 20
  store ptr %27, ptr %29, align 8, !tbaa !19
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._Kmer_Stream, ptr %30, i32 0, i32 13
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = icmp eq ptr %32, null
  br i1 %33, label %39, label %34

34:                                               ; preds = %9
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._Kmer_Stream, ptr %35, i32 0, i32 20
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %34, %9
  call void @exit(i32 noundef 1) #7
  unreachable

40:                                               ; preds = %34
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._Kmer_Stream, ptr %41, i32 0, i32 20
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._Kmer_Stream, ptr %44, i32 0, i32 20
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._Kmer_Stream, ptr %47, i32 0, i32 19
  %49 = load i32, ptr %48, align 4, !tbaa !18
  %50 = sext i32 %49 to i64
  %51 = call ptr @strncpy(ptr noundef %43, ptr noundef %46, i64 noundef %50) #6
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._Kmer_Stream, ptr %52, i32 0, i32 20
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._Kmer_Stream, ptr %55, i32 0, i32 19
  %57 = load i32, ptr %56, align 4, !tbaa !18
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %54, i64 %58
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %59, ptr noundef @.str.28, i32 noundef 1) #6
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._Kmer_Stream, ptr %61, i32 0, i32 20
  %63 = load ptr, ptr %62, align 8, !tbaa !19
  %64 = call i32 (ptr, i32, ...) @open(ptr noundef %63, i32 noundef 0)
  store i32 %64, ptr %4, align 4, !tbaa !10
  %65 = load i32, ptr %4, align 4, !tbaa !10
  %66 = call i64 @lseek(i32 noundef %65, i64 noundef 12, i32 noundef 0) #6
  %67 = load i32, ptr %4, align 4, !tbaa !10
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._Kmer_Stream, ptr %68, i32 0, i32 16
  store i32 %67, ptr %69, align 8, !tbaa !20
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._Kmer_Stream, ptr %70, i32 0, i32 17
  store i32 1, ptr %71, align 4, !tbaa !21
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  call void @More_Kmer_Stream(ptr noundef %72)
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._Kmer_Stream, ptr %73, i32 0, i32 3
  store i64 0, ptr %74, align 8, !tbaa !22
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._Kmer_Stream, ptr %75, i32 0, i32 3
  %77 = load i64, ptr %76, align 8, !tbaa !22
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._Kmer_Stream, ptr %78, i32 0, i32 2
  %80 = load i64, ptr %79, align 8, !tbaa !23
  %81 = icmp sge i64 %77, %80
  br i1 %81, label %82, label %96

82:                                               ; preds = %40
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._Kmer_Stream, ptr %83, i32 0, i32 4
  store ptr null, ptr %84, align 8, !tbaa !24
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._Kmer_Stream, ptr %85, i32 0, i32 11
  %87 = load i32, ptr %86, align 8, !tbaa !25
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._Kmer_Stream, ptr %88, i32 0, i32 5
  store i32 %87, ptr %89, align 8, !tbaa !26
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._Kmer_Stream, ptr %90, i32 0, i32 18
  %92 = load i32, ptr %91, align 8, !tbaa !27
  %93 = add nsw i32 %92, 1
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._Kmer_Stream, ptr %94, i32 0, i32 17
  store i32 %93, ptr %95, align 4, !tbaa !21
  br label %116

96:                                               ; preds = %40
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._Kmer_Stream, ptr %97, i32 0, i32 5
  store i32 0, ptr %98, align 8, !tbaa !26
  br label %99

99:                                               ; preds = %110, %96
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._Kmer_Stream, ptr %100, i32 0, i32 14
  %102 = load ptr, ptr %101, align 8, !tbaa !28
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._Kmer_Stream, ptr %103, i32 0, i32 5
  %105 = load i32, ptr %104, align 8, !tbaa !26
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i64, ptr %102, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !12
  %109 = icmp sle i64 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %99
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._Kmer_Stream, ptr %111, i32 0, i32 5
  %113 = load i32, ptr %112, align 8, !tbaa !26
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 8, !tbaa !26
  br label %99, !llvm.loop !29

115:                                              ; preds = %99
  br label %116

116:                                              ; preds = %115, %82
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr %117
}

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !5, i64 32, i64 4, !10, i64 36, i64 4, !10, i64 40, i64 4, !10, i64 44, i64 4, !10, i64 48, i64 4, !10, i64 52, i64 4, !10, i64 56, i64 4, !10, i64 60, i64 4, !10, i64 64, i64 8, !5, i64 72, i64 8, !5, i64 80, i64 8, !5, i64 88, i64 4, !10, i64 92, i64 4, !10, i64 96, i64 4, !10, i64 100, i64 4, !10, i64 104, i64 8, !5, i64 112, i64 8, !5, i64 120, i64 8, !5, i64 128, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !11, i64 128}
!15 = !{!"", !11, i64 0, !11, i64 4, !13, i64 8, !13, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !11, i64 128}
!16 = !{!15, !11, i64 52}
!17 = !{!15, !6, i64 64}
!18 = !{!15, !11, i64 100}
!19 = !{!15, !6, i64 104}
!20 = !{!15, !11, i64 88}
!21 = !{!15, !11, i64 92}
!22 = !{!15, !13, i64 16}
!23 = !{!15, !13, i64 8}
!24 = !{!15, !6, i64 24}
!25 = !{!15, !11, i64 56}
!26 = !{!15, !11, i64 32}
!27 = !{!15, !11, i64 96}
!28 = !{!15, !6, i64 72}
!29 = distinct !{!29, !30}
!30 = !{!"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.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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @Clone_Kmer_Stream(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = tail call ptr @Malloc(i64 noundef 136, ptr noundef nonnull @.str.31)
  %3 = icmp eq ptr %2, null
  br i1 %3, label %4, label %5

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

5:                                                ; preds = %1
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(136) %2, ptr noundef nonnull align 8 dereferenceable(136) %0, i64 136, i1 false), !tbaa.struct !5
  %6 = getelementptr inbounds i8, ptr %2, i64 128
  store i32 1, ptr %6, align 8, !tbaa !14
  %7 = getelementptr inbounds i8, ptr %0, i64 52
  %8 = load i32, ptr %7, align 4, !tbaa !16
  %9 = shl nsw i32 %8, 10
  %10 = sext i32 %9 to i64
  %11 = tail call ptr @Malloc(i64 noundef %10, ptr noundef nonnull @.str.34)
  %12 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr %11, ptr %12, align 8, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %2, i64 100
  %14 = load i32, ptr %13, align 4, !tbaa !18
  %15 = add nsw i32 %14, 20
  %16 = sext i32 %15 to i64
  %17 = tail call ptr @Malloc(i64 noundef %16, ptr noundef nonnull @.str.34)
  %18 = getelementptr inbounds i8, ptr %2, i64 104
  store ptr %17, ptr %18, align 8, !tbaa !19
  %19 = load ptr, ptr %12, align 8, !tbaa !17
  %20 = icmp eq ptr %19, null
  %21 = icmp eq ptr %17, null
  %or.cond = select i1 %20, i1 true, i1 %21
  br i1 %or.cond, label %22, label %23

22:                                               ; preds = %5
  tail call void @exit(i32 noundef 1) #7
  unreachable

23:                                               ; preds = %5
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = load i32, ptr %13, align 4, !tbaa !18
  %27 = sext i32 %26 to i64
  %28 = tail call ptr @strncpy(ptr noundef nonnull %17, ptr noundef %25, i64 noundef %27) #8
  %29 = load ptr, ptr %18, align 8, !tbaa !19
  %30 = load i32, ptr %13, align 4, !tbaa !18
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %29, i64 %31
  %33 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %32, ptr noundef nonnull dereferenceable(1) @.str.28, i32 noundef 1) #8
  %34 = load ptr, ptr %18, align 8, !tbaa !19
  %35 = tail call i32 (ptr, i32, ...) @open(ptr noundef %34, i32 noundef 0) #8
  %36 = tail call i64 @lseek(i32 noundef %35, i64 noundef 12, i32 noundef 0) #8
  %37 = getelementptr inbounds i8, ptr %2, i64 88
  store i32 %35, ptr %37, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %2, i64 92
  store i32 1, ptr %38, align 4, !tbaa !21
  tail call void @More_Kmer_Stream(ptr noundef nonnull %2)
  %39 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 0, ptr %39, align 8, !tbaa !22
  %40 = getelementptr inbounds i8, ptr %2, i64 8
  %41 = load i64, ptr %40, align 8, !tbaa !23
  %42 = icmp slt i64 %41, 1
  br i1 %42, label %43, label %51

43:                                               ; preds = %23
  %44 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr null, ptr %44, align 8, !tbaa !24
  %45 = getelementptr inbounds i8, ptr %2, i64 56
  %46 = load i32, ptr %45, align 8, !tbaa !25
  %47 = getelementptr inbounds i8, ptr %2, i64 32
  store i32 %46, ptr %47, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %2, i64 96
  %49 = load i32, ptr %48, align 8, !tbaa !27
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %38, align 4, !tbaa !21
  br label %60

51:                                               ; preds = %23
  %52 = getelementptr inbounds i8, ptr %2, i64 72
  %53 = load ptr, ptr %52, align 8, !tbaa !28
  br label %54

54:                                               ; preds = %54, %51
  %indvars.iv = phi i64 [ %indvars.iv.next, %54 ], [ 0, %51 ]
  %55 = getelementptr inbounds i64, ptr %53, i64 %indvars.iv
  %56 = load i64, ptr %55, align 8, !tbaa !10
  %57 = icmp slt i64 %56, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %57, label %54, label %.loopexit, !llvm.loop !29

.loopexit:                                        ; preds = %54
  %58 = getelementptr inbounds i8, ptr %2, i64 32
  %59 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %59, ptr %58, align 8, !tbaa !26
  br label %60

60:                                               ; preds = %.loopexit, %43
  ret ptr %2
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #6

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

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

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


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