; LLVM IR from attractivechaos/klib :: ksw (ksw_align)

; 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.kswr_t = type { i32, i32, i32, i32, i32, i32, i32 }
%struct._kswq_t = type { i32, i32, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
declare dso_local ptr @ksw_qinit(i32 noundef, i32 noundef, ptr noundef, i32 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 uwtable
declare dso_local void @ksw_u8(ptr dead_on_unwind noalias writable sret(%struct.kswr_t) align 4, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @ksw_i16(ptr dead_on_unwind noalias writable sret(%struct.kswr_t) align 4, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @ksw_align(ptr dead_on_unwind noalias writable sret(%struct.kswr_t) align 4 %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10) #0 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %struct.kswr_t, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %struct.kswr_t, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.kswr_t, align 4
  store i32 %1, ptr %12, align 4, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !9
  store i32 %3, ptr %14, align 4, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !5
  store i32 %8, ptr %19, align 4, !tbaa !5
  store i32 %9, ptr %20, align 4, !tbaa !5
  store ptr %10, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 28, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %29 = load ptr, ptr %21, align 8, !tbaa !9
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %38

31:                                               ; preds = %11
  %32 = load ptr, ptr %21, align 8, !tbaa !9
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %31
  %36 = load ptr, ptr %21, align 8, !tbaa !9
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  br label %49

38:                                               ; preds = %31, %11
  %39 = load i32, ptr %20, align 4, !tbaa !5
  %40 = and i32 %39, 65536
  %41 = icmp ne i32 %40, 0
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, i32 1, i32 2
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = load ptr, ptr %13, align 8, !tbaa !9
  %46 = load i32, ptr %16, align 4, !tbaa !5
  %47 = load ptr, ptr %17, align 8, !tbaa !9
  %48 = call ptr @ksw_qinit(i32 noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef %46, ptr noundef %47)
  br label %49

49:                                               ; preds = %38, %35
  %50 = phi ptr [ %37, %35 ], [ %48, %38 ]
  store ptr %50, ptr %23, align 8, !tbaa !9
  %51 = load ptr, ptr %21, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %60

53:                                               ; preds = %49
  %54 = load ptr, ptr %21, align 8, !tbaa !9
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %60

57:                                               ; preds = %53
  %58 = load ptr, ptr %23, align 8, !tbaa !9
  %59 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %58, ptr %59, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %57, %53, %49
  %61 = load ptr, ptr %23, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct._kswq_t, ptr %61, i32 0, i32 5
  %63 = load i8, ptr %62, align 1, !tbaa !11
  %64 = zext i8 %63 to i32
  %65 = icmp eq i32 %64, 2
  %66 = zext i1 %65 to i64
  %67 = select i1 %65, ptr @ksw_i16, ptr @ksw_u8
  store ptr %67, ptr %25, align 8, !tbaa !9
  %68 = load ptr, ptr %23, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct._kswq_t, ptr %68, i32 0, i32 5
  %70 = load i8, ptr %69, align 1, !tbaa !11
  %71 = zext i8 %70 to i32
  store i32 %71, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr %26) #5
  %72 = load ptr, ptr %25, align 8, !tbaa !9
  %73 = load ptr, ptr %23, align 8, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = load ptr, ptr %15, align 8, !tbaa !9
  %76 = load i32, ptr %18, align 4, !tbaa !5
  %77 = load i32, ptr %19, align 4, !tbaa !5
  %78 = load i32, ptr %20, align 4, !tbaa !5
  call void %72(ptr dead_on_unwind writable sret(%struct.kswr_t) align 4 %26, ptr noundef %73, i32 noundef %74, ptr noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %26, i64 28, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %26) #5
  %79 = load ptr, ptr %21, align 8, !tbaa !9
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %83

81:                                               ; preds = %60
  %82 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %82) #5
  br label %83

83:                                               ; preds = %81, %60
  %84 = load i32, ptr %20, align 4, !tbaa !5
  %85 = and i32 %84, 524288
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %97, label %87

87:                                               ; preds = %83
  %88 = load i32, ptr %20, align 4, !tbaa !5
  %89 = and i32 %88, 262144
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %98

91:                                               ; preds = %87
  %92 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !14
  %94 = load i32, ptr %20, align 4, !tbaa !5
  %95 = and i32 %94, 65535
  %96 = icmp slt i32 %93, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %91, %83
  store i32 1, ptr %27, align 4
  br label %152

98:                                               ; preds = %91, %87
  %99 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 2
  %100 = load i32, ptr %99, align 4, !tbaa !16
  %101 = add nsw i32 %100, 1
  %102 = load ptr, ptr %13, align 8, !tbaa !9
  call void @revseq(i32 noundef %101, ptr noundef %102)
  %103 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 1
  %104 = load i32, ptr %103, align 4, !tbaa !17
  %105 = add nsw i32 %104, 1
  %106 = load ptr, ptr %15, align 8, !tbaa !9
  call void @revseq(i32 noundef %105, ptr noundef %106)
  %107 = load i32, ptr %22, align 4, !tbaa !5
  %108 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !16
  %110 = add nsw i32 %109, 1
  %111 = load ptr, ptr %13, align 8, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !5
  %113 = load ptr, ptr %17, align 8, !tbaa !9
  %114 = call ptr @ksw_qinit(i32 noundef %107, i32 noundef %110, ptr noundef %111, i32 noundef %112, ptr noundef %113)
  store ptr %114, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 28, ptr %28) #5
  %115 = load ptr, ptr %25, align 8, !tbaa !9
  %116 = load ptr, ptr %23, align 8, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !5
  %118 = load ptr, ptr %15, align 8, !tbaa !9
  %119 = load i32, ptr %18, align 4, !tbaa !5
  %120 = load i32, ptr %19, align 4, !tbaa !5
  %121 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !14
  %123 = or i32 131072, %122
  call void %115(ptr dead_on_unwind writable sret(%struct.kswr_t) align 4 %28, ptr noundef %116, i32 noundef %117, ptr noundef %118, i32 noundef %119, i32 noundef %120, i32 noundef %123)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %28, i64 28, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %28) #5
  %124 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 2
  %125 = load i32, ptr %124, align 4, !tbaa !16
  %126 = add nsw i32 %125, 1
  %127 = load ptr, ptr %13, align 8, !tbaa !9
  call void @revseq(i32 noundef %126, ptr noundef %127)
  %128 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %130 = add nsw i32 %129, 1
  %131 = load ptr, ptr %15, align 8, !tbaa !9
  call void @revseq(i32 noundef %130, ptr noundef %131)
  %132 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %132) #5
  %133 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 0
  %134 = load i32, ptr %133, align 4, !tbaa !14
  %135 = getelementptr inbounds %struct.kswr_t, ptr %24, i32 0, i32 0
  %136 = load i32, ptr %135, align 4, !tbaa !14
  %137 = icmp eq i32 %134, %136
  br i1 %137, label %138, label %151

138:                                              ; preds = %98
  %139 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !17
  %141 = getelementptr inbounds %struct.kswr_t, ptr %24, i32 0, i32 1
  %142 = load i32, ptr %141, align 4, !tbaa !17
  %143 = sub nsw i32 %140, %142
  %144 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 5
  store i32 %143, ptr %144, align 4, !tbaa !18
  %145 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 2
  %146 = load i32, ptr %145, align 4, !tbaa !16
  %147 = getelementptr inbounds %struct.kswr_t, ptr %24, i32 0, i32 2
  %148 = load i32, ptr %147, align 4, !tbaa !16
  %149 = sub nsw i32 %146, %148
  %150 = getelementptr inbounds %struct.kswr_t, ptr %0, i32 0, i32 6
  store i32 %149, ptr %150, align 4, !tbaa !19
  br label %151

151:                                              ; preds = %138, %98
  store i32 1, ptr %27, align 4
  br label %152

152:                                              ; preds = %151, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @revseq(i32 noundef, ptr noundef) #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 uwtable "min-legal-vector-width"="128" "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 }

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

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


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

%struct.kswr_t = type { i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local ptr @ksw_qinit(i32 noundef, i32 noundef, ptr noundef, i32 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: 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 void @ksw_u8(ptr dead_on_unwind noalias writable sret(%struct.kswr_t) align 4, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @ksw_i16(ptr dead_on_unwind noalias writable sret(%struct.kswr_t) align 4, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @ksw_align(ptr dead_on_unwind noalias nocapture writable sret(%struct.kswr_t) align 4 %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca %struct.kswr_t, align 4
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %15, label %13

13:                                               ; preds = %11
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %.not41 = icmp eq ptr %14, null
  br i1 %.not41, label %15, label %.thread44

15:                                               ; preds = %11, %13
  %16 = and i32 %9, 65536
  %.not42 = icmp eq i32 %16, 0
  %17 = select i1 %.not42, i32 2, i32 1
  %18 = tail call ptr @ksw_qinit(i32 noundef %17, i32 noundef %1, ptr noundef %2, i32 noundef %5, ptr noundef %6)
  br i1 %.not, label %.thread44, label %19

19:                                               ; preds = %15
  %.pr = load ptr, ptr %10, align 8, !tbaa !5
  %20 = icmp eq ptr %.pr, null
  br i1 %20, label %21, label %.thread44

21:                                               ; preds = %19
  store ptr %18, ptr %10, align 8, !tbaa !5
  br label %.thread44

.thread44:                                        ; preds = %13, %21, %19, %15
  %22 = phi ptr [ %18, %21 ], [ %18, %19 ], [ %18, %15 ], [ %14, %13 ]
  %23 = getelementptr inbounds i8, ptr %22, i64 11
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = icmp eq i8 %24, 2
  %27 = select i1 %26, ptr @ksw_i16, ptr @ksw_u8
  tail call void %27(ptr dead_on_unwind nonnull writable sret(%struct.kswr_t) align 4 %0, ptr noundef %22, i32 noundef %3, ptr noundef %4, i32 noundef %7, i32 noundef %8, i32 noundef %9) #4
  br i1 %.not, label %28, label %29

28:                                               ; preds = %.thread44
  tail call void @free(ptr noundef nonnull %22) #4
  br label %29

29:                                               ; preds = %28, %.thread44
  %30 = and i32 %9, 524288
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %51, label %32

32:                                               ; preds = %29
  %33 = and i32 %9, 262144
  %.not43 = icmp ne i32 %33, 0
  %.pre = load i32, ptr %0, align 4, !tbaa !12
  %34 = and i32 %9, 65535
  %35 = icmp slt i32 %.pre, %34
  %or.cond = select i1 %.not43, i1 %35, i1 false
  br i1 %or.cond, label %51, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = add nsw i32 %38, 1
  tail call void @revseq(i32 noundef %39, ptr noundef %2)
  %40 = getelementptr inbounds i8, ptr %0, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = add nsw i32 %41, 1
  tail call void @revseq(i32 noundef %42, ptr noundef %4)
  %43 = tail call ptr @ksw_qinit(i32 noundef %25, i32 noundef %39, ptr noundef %2, i32 noundef %5, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %12) #4
  %44 = or i32 %.pre, 131072
  call void %27(ptr dead_on_unwind nonnull writable sret(%struct.kswr_t) align 4 %12, ptr noundef %43, i32 noundef %3, ptr noundef %4, i32 noundef %7, i32 noundef %8, i32 noundef %44) #4, !callees !16
  %.sroa.0.0.copyload = load i32, ptr %12, align 4, !tbaa !17
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !17
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #4
  call void @revseq(i32 noundef %39, ptr noundef %2)
  call void @revseq(i32 noundef %42, ptr noundef %4)
  call void @free(ptr noundef %43) #4
  %45 = icmp eq i32 %.pre, %.sroa.0.0.copyload
  br i1 %45, label %46, label %51

46:                                               ; preds = %36
  %47 = sub nsw i32 %41, %.sroa.4.0.copyload
  %48 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %47, ptr %48, align 4, !tbaa !18
  %49 = sub nsw i32 %38, %.sroa.5.0.copyload
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %49, ptr %50, align 4, !tbaa !19
  br label %51

51:                                               ; preds = %32, %36, %46, %29
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @revseq(i32 noundef, ptr noundef) 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 = { nounwind uwtable "min-legal-vector-width"="128" "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 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 #4 = { 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, !7, i64 11}
!10 = !{!"_kswq_t", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!14 = !{!13, !11, i64 8}
!15 = !{!13, !11, i64 4}
!16 = !{ptr @ksw_i16, ptr @ksw_u8}
!17 = !{!11, !11, i64 0}
!18 = !{!13, !11, i64 20}
!19 = !{!13, !11, i64 24}


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