; LLVM IR from wrnlb666/yet-another-string-library-in-c :: yasli (str_strip)

; 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.string_t = type { i64, i64, [1 x i8] }

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @str_resize(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @str_strip(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call i64 @strlen(ptr noundef %14) #6
  store i64 %15, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %55, %2
  %17 = load i64, ptr %9, align 8, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.string_t, ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = icmp ult i64 %17, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %16
  store i32 2, ptr %10, align 4
  br label %58

24:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %48, %24
  %26 = load i64, ptr %11, align 8, !tbaa !9
  %27 = load i64, ptr %6, align 8, !tbaa !9
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 5, ptr %10, align 4
  br label %51

30:                                               ; preds = %25
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.string_t, ptr %32, i32 0, i32 2
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !13
  %37 = sext i8 %36 to i32
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %38, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %37, %42
  br i1 %43, label %44, label %47

44:                                               ; preds = %30
  %45 = load i64, ptr %7, align 8, !tbaa !9
  %46 = add i64 %45, 1
  store i64 %46, ptr %7, align 8, !tbaa !9
  store i32 8, ptr %10, align 4
  br label %51

47:                                               ; preds = %30
  br label %48

48:                                               ; preds = %47
  %49 = load i64, ptr %11, align 8, !tbaa !9
  %50 = add i64 %49, 1
  store i64 %50, ptr %11, align 8, !tbaa !9
  br label %25, !llvm.loop !14

51:                                               ; preds = %44, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %52 = load i32, ptr %10, align 4
  switch i32 %52, label %58 [
    i32 5, label %53
    i32 8, label %54
  ]

53:                                               ; preds = %51
  store i32 2, ptr %10, align 4
  br label %58

54:                                               ; preds = %51
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = add i64 %56, 1
  store i64 %57, ptr %9, align 8, !tbaa !9
  br label %16, !llvm.loop !16

58:                                               ; preds = %53, %51, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %59

59:                                               ; preds = %58
  %60 = load i64, ptr %7, align 8, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.string_t, ptr %62, i32 0, i32 0
  %64 = load i64, ptr %63, align 8, !tbaa !11
  %65 = icmp eq i64 %60, %64
  br i1 %65, label %66, label %77

66:                                               ; preds = %59
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call zeroext i1 @str_resize(ptr noundef %67, i64 noundef 0)
  br i1 %68, label %69, label %76

69:                                               ; preds = %66
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.string_t, ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds [1 x i8], ptr %72, i64 0, i64 0
  store i8 0, ptr %73, align 8, !tbaa !13
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  store ptr %75, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %163

76:                                               ; preds = %66
  store ptr null, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %163

77:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.string_t, ptr %79, i32 0, i32 0
  %81 = load i64, ptr %80, align 8, !tbaa !11
  %82 = sub i64 %81, 1
  store i64 %82, ptr %12, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %118, %77
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = icmp ugt i64 %84, 0
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 9, ptr %10, align 4
  br label %121

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %111, %87
  %89 = load i64, ptr %13, align 8, !tbaa !9
  %90 = load i64, ptr %6, align 8, !tbaa !9
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 12, ptr %10, align 4
  br label %114

93:                                               ; preds = %88
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.string_t, ptr %95, i32 0, i32 2
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = getelementptr inbounds [1 x i8], ptr %96, i64 0, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !13
  %100 = sext i8 %99 to i32
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load i64, ptr %13, align 8, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %101, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !13
  %105 = sext i8 %104 to i32
  %106 = icmp eq i32 %100, %105
  br i1 %106, label %107, label %110

107:                                              ; preds = %93
  %108 = load i64, ptr %8, align 8, !tbaa !9
  %109 = add i64 %108, 1
  store i64 %109, ptr %8, align 8, !tbaa !9
  store i32 15, ptr %10, align 4
  br label %114

110:                                              ; preds = %93
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %13, align 8, !tbaa !9
  %113 = add i64 %112, 1
  store i64 %113, ptr %13, align 8, !tbaa !9
  br label %88, !llvm.loop !17

114:                                              ; preds = %107, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %115 = load i32, ptr %10, align 4
  switch i32 %115, label %121 [
    i32 12, label %116
    i32 15, label %117
  ]

116:                                              ; preds = %114
  store i32 9, ptr %10, align 4
  br label %121

117:                                              ; preds = %114
  br label %118

118:                                              ; preds = %117
  %119 = load i64, ptr %12, align 8, !tbaa !9
  %120 = add i64 %119, -1
  store i64 %120, ptr %12, align 8, !tbaa !9
  br label %83, !llvm.loop !18

121:                                              ; preds = %116, %114, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.string_t, ptr %124, i32 0, i32 2
  %126 = getelementptr inbounds [1 x i8], ptr %125, i64 0, i64 0
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.string_t, ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds [1 x i8], ptr %129, i64 0, i64 0
  %131 = load i64, ptr %7, align 8, !tbaa !9
  %132 = getelementptr inbounds i8, ptr %130, i64 %131
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.string_t, ptr %134, i32 0, i32 0
  %136 = load i64, ptr %135, align 8, !tbaa !11
  %137 = load i64, ptr %7, align 8, !tbaa !9
  %138 = sub i64 %136, %137
  %139 = load i64, ptr %8, align 8, !tbaa !9
  %140 = sub i64 %138, %139
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %126, ptr align 1 %132, i64 %140, i1 false)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.string_t, ptr %143, i32 0, i32 0
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = load i64, ptr %7, align 8, !tbaa !9
  %147 = sub i64 %145, %146
  %148 = load i64, ptr %8, align 8, !tbaa !9
  %149 = sub i64 %147, %148
  %150 = call zeroext i1 @str_resize(ptr noundef %141, i64 noundef %149)
  br i1 %150, label %151, label %162

151:                                              ; preds = %122
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.string_t, ptr %153, i32 0, i32 2
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.string_t, ptr %156, i32 0, i32 0
  %158 = load i64, ptr %157, align 8, !tbaa !11
  %159 = getelementptr inbounds [1 x i8], ptr %154, i64 0, i64 %158
  store i8 0, ptr %159, align 1, !tbaa !13
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  store ptr %161, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %163

162:                                              ; preds = %122
  store ptr null, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %163

163:                                              ; preds = %162, %151, %76, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %164 = load ptr, ptr %3, align 8
  ret ptr %164
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"string_t", !10, i64 0, !10, i64 8, !7, i64 16}
!13 = !{!7, !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"

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @str_resize(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @str_strip(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #3 {
  %3 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #4
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = load i64, ptr %4, align 8, !tbaa !9
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %.loopexit, label %.preheader65.lr.ph

.preheader65.lr.ph:                               ; preds = %2
  %.not99 = icmp eq i64 %3, 0
  %6 = getelementptr inbounds i8, ptr %4, i64 16
  br i1 %.not99, label %.loopexit, label %.preheader65.us

.preheader65.us:                                  ; preds = %.preheader65.lr.ph, %15
  %.04681.us = phi i64 [ %16, %15 ], [ 0, %.preheader65.lr.ph ]
  %7 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %.04681.us
  %8 = load i8, ptr %7, align 1, !tbaa !12
  br label %11

9:                                                ; preds = %11
  %10 = add nuw i64 %.04474.us, 1
  %exitcond.not = icmp eq i64 %10, %3
  br i1 %exitcond.not, label %.loopexit, label %11, !llvm.loop !13

11:                                               ; preds = %.preheader65.us, %9
  %.04474.us = phi i64 [ 0, %.preheader65.us ], [ %10, %9 ]
  %12 = getelementptr inbounds i8, ptr %1, i64 %.04474.us
  %13 = load i8, ptr %12, align 1, !tbaa !12
  %14 = icmp eq i8 %8, %13
  br i1 %14, label %15, label %9

15:                                               ; preds = %11
  %16 = add nuw i64 %.04681.us, 1
  %exitcond106.not = icmp eq i64 %16, %5
  br i1 %exitcond106.not, label %.loopexit.thread, label %.preheader65.us, !llvm.loop !15

.loopexit:                                        ; preds = %9, %2, %.preheader65.lr.ph
  %.04973 = phi i64 [ 0, %.preheader65.lr.ph ], [ 0, %2 ], [ %.04681.us, %9 ]
  %17 = icmp eq i64 %.04973, %5
  br i1 %17, label %.loopexit.thread, label %.preheader63

.preheader63:                                     ; preds = %.loopexit
  %.04393 = add i64 %5, -1
  %.not94 = icmp eq i64 %.04393, 0
  br i1 %.not94, label %.thread59, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader63
  %.not100 = icmp eq i64 %3, 0
  %18 = getelementptr inbounds i8, ptr %4, i64 16
  br i1 %.not100, label %.thread59, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %27
  %.04396.us = phi i64 [ %.043.us, %27 ], [ %.04393, %.preheader.lr.ph ]
  %.04795.us = phi i64 [ %28, %27 ], [ 0, %.preheader.lr.ph ]
  %19 = getelementptr inbounds [1 x i8], ptr %18, i64 0, i64 %.04396.us
  %20 = load i8, ptr %19, align 1, !tbaa !12
  br label %23

21:                                               ; preds = %23
  %22 = add nuw i64 %.090.us, 1
  %exitcond107.not = icmp eq i64 %22, %3
  br i1 %exitcond107.not, label %.thread59, label %23, !llvm.loop !16

23:                                               ; preds = %.preheader.us, %21
  %.090.us = phi i64 [ 0, %.preheader.us ], [ %22, %21 ]
  %24 = getelementptr inbounds i8, ptr %1, i64 %.090.us
  %25 = load i8, ptr %24, align 1, !tbaa !12
  %26 = icmp eq i8 %20, %25
  br i1 %26, label %27, label %21

27:                                               ; preds = %23
  %28 = add nuw i64 %.04795.us, 1
  %.043.us = add i64 %.04396.us, -1
  %.not.us = icmp eq i64 %.043.us, 0
  br i1 %.not.us, label %.thread59, label %.preheader.us

.loopexit.thread:                                 ; preds = %15, %.loopexit
  %29 = tail call zeroext i1 @str_resize(ptr noundef nonnull %0, i64 noundef 0)
  br i1 %29, label %30, label %47

30:                                               ; preds = %.loopexit.thread
  %31 = load ptr, ptr %0, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store i8 0, ptr %32, align 8, !tbaa !12
  br label %.sink.split

.thread59:                                        ; preds = %27, %21, %.preheader63, %.preheader.lr.ph
  %.04768 = phi i64 [ 0, %.preheader.lr.ph ], [ 0, %.preheader63 ], [ %.04795.us, %21 ], [ %.04393, %27 ]
  %33 = getelementptr inbounds i8, ptr %4, i64 16
  %34 = getelementptr inbounds i8, ptr %33, i64 %.04973
  %35 = add i64 %.04768, %.04973
  %36 = sub i64 %5, %35
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 8 %33, ptr nonnull align 1 %34, i64 %36, i1 false)
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = sub i64 %38, %35
  %40 = tail call zeroext i1 @str_resize(ptr noundef nonnull %0, i64 noundef %39)
  br i1 %40, label %41, label %47

41:                                               ; preds = %.thread59
  %42 = load ptr, ptr %0, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load i64, ptr %42, align 8, !tbaa !9
  %45 = getelementptr inbounds [1 x i8], ptr %43, i64 0, i64 %44
  store i8 0, ptr %45, align 1, !tbaa !12
  br label %.sink.split

.sink.split:                                      ; preds = %30, %41
  %46 = load ptr, ptr %0, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %.sink.split, %.thread59, %.loopexit.thread
  %.052 = phi ptr [ null, %.loopexit.thread ], [ null, %.thread59 ], [ %46, %.sink.split ]
  ret ptr %.052
}

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 0}
!10 = !{!"string_t", !11, i64 0, !11, i64 8, !7, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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