; LLVM IR from holzschu/ios_system :: text_cmds/rs (rs)

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

@.str.9 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@stdout = external global ptr, align 8

declare i32 @printf(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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @getlist(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 1
  store ptr %8, ptr %6, align 8, !tbaa !5
  br label %9

9:                                                ; preds = %59, %2
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = load i8, ptr %10, align 1, !tbaa !11
  %12 = icmp ne i8 %11, 0
  br i1 %12, label %13, label %62

13:                                               ; preds = %9
  %14 = call ptr @__ctype_b_loc() #8
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load i8, ptr %16, align 1, !tbaa !11
  %18 = zext i8 %17 to i32
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i16, ptr %15, i64 %19
  %21 = load i16, ptr %20, align 2, !tbaa !12
  %22 = zext i16 %21 to i32
  %23 = and i32 %22, 2048
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %27, label %25

25:                                               ; preds = %13
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.9, ptr noundef %26) #9
  unreachable

27:                                               ; preds = %13
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %5, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %49, %27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load i8, ptr %31, align 1, !tbaa !11
  %33 = sext i8 %32 to i32
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %47

35:                                               ; preds = %30
  %36 = call ptr @__ctype_b_loc() #8
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = zext i8 %39 to i32
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i16, ptr %37, i64 %41
  %43 = load i16, ptr %42, align 2, !tbaa !12
  %44 = zext i16 %43 to i32
  %45 = and i32 %44, 2048
  %46 = icmp ne i32 %45, 0
  br label %47

47:                                               ; preds = %35, %30
  %48 = phi i1 [ false, %30 ], [ %46, %35 ]
  br i1 %48, label %49, label %52

49:                                               ; preds = %47
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i32 1
  store ptr %51, ptr %6, align 8, !tbaa !5
  br label %30, !llvm.loop !14

52:                                               ; preds = %47
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp ne i32 %55, 44
  br i1 %56, label %57, label %58

57:                                               ; preds = %52
  br label %62

58:                                               ; preds = %52
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i32 1
  store ptr %61, ptr %6, align 8, !tbaa !5
  br label %9, !llvm.loop !16

62:                                               ; preds = %57, %9
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = mul i64 %64, 2
  %66 = call noalias ptr @malloc(i64 noundef %65) #10
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %66, ptr %67, align 8, !tbaa !5
  %68 = icmp ne ptr %66, null
  br i1 %68, label %70, label %69

69:                                               ; preds = %62
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.10) #9
  unreachable

70:                                               ; preds = %62
  store i32 0, ptr %5, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 1
  store ptr %72, ptr %6, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %127, %70
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = icmp ne i8 %75, 0
  br i1 %76, label %77, label %130

77:                                               ; preds = %73
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = call i32 @atoi(ptr noundef %78) #11
  %80 = trunc i32 %79 to i16
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !9
  %85 = sext i32 %83 to i64
  %86 = getelementptr inbounds i16, ptr %82, i64 %85
  store i16 %80, ptr %86, align 2, !tbaa !12
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i16, ptr %88, i64 %91
  %93 = load i16, ptr %92, align 2, !tbaa !12
  %94 = sext i16 %93 to i32
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %94)
  %96 = load ptr, ptr @stdout, align 8, !tbaa !5
  %97 = call i32 @fflush(ptr noundef %96)
  br label %98

98:                                               ; preds = %117, %77
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = sext i8 %100 to i32
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %115

103:                                              ; preds = %98
  %104 = call ptr @__ctype_b_loc() #8
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i8, ptr %106, align 1, !tbaa !11
  %108 = zext i8 %107 to i32
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i16, ptr %105, i64 %109
  %111 = load i16, ptr %110, align 2, !tbaa !12
  %112 = zext i16 %111 to i32
  %113 = and i32 %112, 2048
  %114 = icmp ne i32 %113, 0
  br label %115

115:                                              ; preds = %103, %98
  %116 = phi i1 [ false, %98 ], [ %114, %103 ]
  br i1 %116, label %117, label %120

117:                                              ; preds = %115
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %118, i32 1
  store ptr %119, ptr %6, align 8, !tbaa !5
  br label %98, !llvm.loop !17

120:                                              ; preds = %115
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load i8, ptr %121, align 1, !tbaa !11
  %123 = sext i8 %122 to i32
  %124 = icmp ne i32 %123, 44
  br i1 %124, label %125, label %126

125:                                              ; preds = %120
  br label %130

126:                                              ; preds = %120
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i32 1
  store ptr %129, ptr %6, align 8, !tbaa !5
  br label %73, !llvm.loop !18

130:                                              ; preds = %125, %73
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i32, ptr %5, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i16, ptr %132, i64 %134
  store i16 0, ptr %135, align 2, !tbaa !12
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i64 -1
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret ptr %137
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #6

declare i32 @fflush(ptr noundef) #0

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

!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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


; 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.9 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

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

; 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 @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local nonnull ptr @getlist(ptr nocapture noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %1, i64 1
  %4 = load i8, ptr %3, align 1, !tbaa !5
  %.not58 = icmp eq i8 %4, 0
  br i1 %.not58, label %.critedge.thread, label %.lr.ph61

.lr.ph61:                                         ; preds = %2
  %5 = tail call ptr @__ctype_b_loc() #6
  %6 = load ptr, ptr %5, align 8, !tbaa !8
  br label %10

7:                                                ; preds = %.critedge
  %8 = getelementptr inbounds i8, ptr %.155, i64 1
  %9 = load i8, ptr %8, align 1, !tbaa !5
  %.not = icmp eq i8 %9, 0
  br i1 %.not, label %.critedge.thread, label %10, !llvm.loop !10

10:                                               ; preds = %.lr.ph61, %7
  %11 = phi i8 [ %4, %.lr.ph61 ], [ %9, %7 ]
  %.060 = phi ptr [ %3, %.lr.ph61 ], [ %8, %7 ]
  %.02859 = phi i32 [ 1, %.lr.ph61 ], [ %17, %7 ]
  %12 = zext i8 %11 to i64
  %13 = getelementptr inbounds i16, ptr %6, i64 %12
  %14 = load i16, ptr %13, align 2, !tbaa !12
  %15 = and i16 %14, 2048
  %.not33 = icmp eq i16 %15, 0
  br i1 %.not33, label %16, label %.lr.ph.preheader

16:                                               ; preds = %10
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.9, ptr noundef nonnull %.060) #7
  unreachable

.lr.ph.preheader:                                 ; preds = %10
  %17 = add nuw nsw i32 %.02859, 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %23
  %18 = phi i8 [ %25, %23 ], [ %11, %.lr.ph.preheader ]
  %.155 = phi ptr [ %24, %23 ], [ %.060, %.lr.ph.preheader ]
  %19 = zext i8 %18 to i64
  %20 = getelementptr inbounds i16, ptr %6, i64 %19
  %21 = load i16, ptr %20, align 2, !tbaa !12
  %22 = and i16 %21, 2048
  %.not35 = icmp eq i16 %22, 0
  br i1 %.not35, label %.critedge, label %23

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds i8, ptr %.155, i64 1
  %25 = load i8, ptr %24, align 1, !tbaa !5
  %.not34 = icmp eq i8 %25, 0
  br i1 %.not34, label %.critedge.thread, label %.lr.ph, !llvm.loop !14

.critedge:                                        ; preds = %.lr.ph
  %.not36 = icmp eq i8 %18, 44
  br i1 %.not36, label %7, label %.critedge.thread

.critedge.thread:                                 ; preds = %7, %.critedge, %23, %2
  %.129 = phi i32 [ 1, %2 ], [ %17, %23 ], [ %17, %.critedge ], [ %17, %7 ]
  %26 = sext i32 %.129 to i64
  %27 = shl nsw i64 %26, 1
  %28 = tail call noalias ptr @malloc(i64 noundef %27) #8
  store ptr %28, ptr %0, align 8, !tbaa !8
  %.not37 = icmp eq ptr %28, null
  br i1 %.not37, label %30, label %.preheader

.preheader:                                       ; preds = %.critedge.thread
  %29 = load i8, ptr %3, align 1, !tbaa !5
  %.not3872 = icmp eq i8 %29, 0
  br i1 %.not3872, label %.critedge2.thread, label %.lr.ph75

30:                                               ; preds = %.critedge.thread
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.10) #7
  unreachable

.lr.ph75:                                         ; preds = %.preheader, %51
  %indvars.iv = phi i64 [ %indvars.iv.next, %51 ], [ 0, %.preheader ]
  %.274 = phi ptr [ %52, %51 ], [ %3, %.preheader ]
  %31 = tail call i32 @atoi(ptr nocapture noundef %.274) #9
  %32 = trunc i32 %31 to i16
  %33 = load ptr, ptr %0, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = getelementptr inbounds i16, ptr %33, i64 %indvars.iv
  store i16 %32, ptr %34, align 2, !tbaa !12
  %sext = shl i32 %31, 16
  %35 = ashr exact i32 %sext, 16
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %35)
  %37 = load ptr, ptr @stdout, align 8, !tbaa !8
  %38 = tail call i32 @fflush(ptr noundef %37)
  %39 = load i8, ptr %.274, align 1, !tbaa !5
  %.not3964 = icmp eq i8 %39, 0
  br i1 %.not3964, label %.critedge2.thread, label %.lr.ph66

.lr.ph66:                                         ; preds = %.lr.ph75
  %40 = tail call ptr @__ctype_b_loc() #6
  %41 = load ptr, ptr %40, align 8, !tbaa !8
  br label %42

42:                                               ; preds = %.lr.ph66, %48
  %43 = phi i8 [ %39, %.lr.ph66 ], [ %50, %48 ]
  %.365 = phi ptr [ %.274, %.lr.ph66 ], [ %49, %48 ]
  %44 = zext i8 %43 to i64
  %45 = getelementptr inbounds i16, ptr %41, i64 %44
  %46 = load i16, ptr %45, align 2, !tbaa !12
  %47 = and i16 %46, 2048
  %.not40 = icmp eq i16 %47, 0
  br i1 %.not40, label %.critedge2, label %48

48:                                               ; preds = %42
  %49 = getelementptr inbounds i8, ptr %.365, i64 1
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %.not39 = icmp eq i8 %50, 0
  br i1 %.not39, label %.critedge2.thread, label %42, !llvm.loop !15

.critedge2:                                       ; preds = %42
  %.not41 = icmp eq i8 %43, 44
  br i1 %.not41, label %51, label %.critedge2.thread

51:                                               ; preds = %.critedge2
  %52 = getelementptr inbounds i8, ptr %.365, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %.not38 = icmp eq i8 %53, 0
  br i1 %.not38, label %.critedge2.thread, label %.lr.ph75, !llvm.loop !16

.critedge2.thread:                                ; preds = %51, %.critedge2, %.lr.ph75, %48, %.preheader
  %.331 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %48 ], [ %indvars.iv.next, %.lr.ph75 ], [ %indvars.iv.next, %.critedge2 ], [ %indvars.iv.next, %51 ]
  %.4 = phi ptr [ %3, %.preheader ], [ %49, %48 ], [ %52, %51 ], [ %.365, %.critedge2 ], [ %.274, %.lr.ph75 ]
  %54 = load ptr, ptr %0, align 8, !tbaa !8
  %sext95 = shl i64 %.331, 32
  %55 = ashr exact i64 %sext95, 31
  %56 = getelementptr inbounds i8, ptr %54, i64 %55
  store i16 0, ptr %56, align 2, !tbaa !12
  %57 = getelementptr inbounds i8, ptr %.4, i64 -1
  ret ptr %57
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #5

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

attributes #0 = { 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 #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 = { 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 #4 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #5 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 willreturn memory(none) }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !6, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


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