; LLVM IR from kala13x/libxutils :: src/data (str)

; 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.XString = type { ptr, i64, i64, i16, i8, i8 }

@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1

; 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @xstrncpyf(ptr noundef, i64 noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @XString_Resize(ptr noundef %0, i64 noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.XString, ptr %9, i32 0, i32 0
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %40

13:                                               ; preds = %2
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = icmp ne i64 %14, 0
  br i1 %15, label %16, label %40

16:                                               ; preds = %13
  %17 = load i64, ptr %5, align 8, !tbaa !9
  %18 = call noalias ptr @malloc(i64 noundef %17) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.XString, ptr %19, i32 0, i32 0
  store ptr %18, ptr %20, align 8, !tbaa !11
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.XString, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %32

25:                                               ; preds = %16
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.XString, ptr %26, i32 0, i32 3
  store i16 -1, ptr %27, align 8, !tbaa !14
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.XString, ptr %28, i32 0, i32 3
  %30 = load i16, ptr %29, align 8, !tbaa !14
  %31 = sext i16 %30 to i32
  store i32 %31, ptr %3, align 4
  br label %170

32:                                               ; preds = %16
  %33 = load i64, ptr %5, align 8, !tbaa !9
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.XString, ptr %34, i32 0, i32 2
  store i64 %33, ptr %35, align 8, !tbaa !15
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.XString, ptr %36, i32 0, i32 1
  store i64 0, ptr %37, align 8, !tbaa !16
  %38 = load i64, ptr %5, align 8, !tbaa !9
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %3, align 4
  br label %170

40:                                               ; preds = %13, %2
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.XString, ptr %41, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !15
  %44 = icmp ne i64 %43, 0
  br i1 %44, label %82, label %45

45:                                               ; preds = %40
  %46 = load i64, ptr %5, align 8, !tbaa !9
  %47 = icmp ne i64 %46, 0
  br i1 %47, label %48, label %82

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.XString, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  store ptr %51, ptr %6, align 8, !tbaa !5
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = call noalias ptr @malloc(i64 noundef %52) #5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.XString, ptr %54, i32 0, i32 0
  store ptr %53, ptr %55, align 8, !tbaa !11
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.XString, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %67

60:                                               ; preds = %48
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.XString, ptr %61, i32 0, i32 3
  store i16 -1, ptr %62, align 8, !tbaa !14
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.XString, ptr %63, i32 0, i32 3
  %65 = load i16, ptr %64, align 8, !tbaa !14
  %66 = sext i16 %65 to i32
  store i32 %66, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %81

67:                                               ; preds = %48
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.XString, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = load i64, ptr %5, align 8, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call i64 (ptr, i64, ptr, ...) @xstrncpyf(ptr noundef %70, i64 noundef %71, ptr noundef @.str.38, ptr noundef %72)
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.XString, ptr %74, i32 0, i32 1
  store i64 %73, ptr %75, align 8, !tbaa !16
  %76 = load i64, ptr %5, align 8, !tbaa !9
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.XString, ptr %77, i32 0, i32 2
  store i64 %76, ptr %78, align 8, !tbaa !15
  %79 = load i64, ptr %5, align 8, !tbaa !9
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %81

81:                                               ; preds = %67, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %170

82:                                               ; preds = %45, %40
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.XString, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %105

87:                                               ; preds = %82
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.XString, ptr %88, i32 0, i32 2
  %90 = load i64, ptr %89, align 8, !tbaa !15
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %105

92:                                               ; preds = %87
  %93 = load i64, ptr %5, align 8, !tbaa !9
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %105, label %95

95:                                               ; preds = %92
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.XString, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  call void @free(ptr noundef %98) #6
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.XString, ptr %99, i32 0, i32 0
  store ptr null, ptr %100, align 8, !tbaa !11
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.XString, ptr %101, i32 0, i32 1
  store i64 0, ptr %102, align 8, !tbaa !16
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.XString, ptr %103, i32 0, i32 2
  store i64 0, ptr %104, align 8, !tbaa !15
  store i32 0, ptr %3, align 4
  br label %170

105:                                              ; preds = %92, %87, %82
  %106 = load i64, ptr %5, align 8, !tbaa !9
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %115, label %108

108:                                              ; preds = %105
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.XString, ptr %109, i32 0, i32 0
  store ptr null, ptr %110, align 8, !tbaa !11
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.XString, ptr %111, i32 0, i32 1
  store i64 0, ptr %112, align 8, !tbaa !16
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.XString, ptr %113, i32 0, i32 2
  store i64 0, ptr %114, align 8, !tbaa !15
  store i32 0, ptr %3, align 4
  br label %170

115:                                              ; preds = %105
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.XString, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !11
  store ptr %121, ptr %8, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.XString, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = load i64, ptr %5, align 8, !tbaa !9
  %126 = call ptr @realloc(ptr noundef %124, i64 noundef %125) #7
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.XString, ptr %127, i32 0, i32 0
  store ptr %126, ptr %128, align 8, !tbaa !11
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.XString, ptr %129, i32 0, i32 1
  %131 = load i64, ptr %130, align 8, !tbaa !16
  %132 = load i64, ptr %5, align 8, !tbaa !9
  %133 = icmp ult i64 %131, %132
  br i1 %133, label %134, label %138

134:                                              ; preds = %118
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.XString, ptr %135, i32 0, i32 1
  %137 = load i64, ptr %136, align 8, !tbaa !16
  br label %140

138:                                              ; preds = %118
  %139 = load i64, ptr %5, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %138, %134
  %141 = phi i64 [ %137, %134 ], [ %139, %138 ]
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.XString, ptr %142, i32 0, i32 1
  store i64 %141, ptr %143, align 8, !tbaa !16
  %144 = load i64, ptr %5, align 8, !tbaa !9
  %145 = icmp ne i64 %144, 0
  br i1 %145, label %146, label %161

146:                                              ; preds = %140
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.XString, ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !11
  %150 = icmp eq ptr %149, null
  br i1 %150, label %151, label %161

151:                                              ; preds = %146
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.XString, ptr %153, i32 0, i32 0
  store ptr %152, ptr %154, align 8, !tbaa !11
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.XString, ptr %155, i32 0, i32 3
  store i16 -1, ptr %156, align 8, !tbaa !14
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.XString, ptr %157, i32 0, i32 3
  %159 = load i16, ptr %158, align 8, !tbaa !14
  %160 = sext i16 %159 to i32
  store i32 %160, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %169

161:                                              ; preds = %146, %140
  %162 = load i64, ptr %5, align 8, !tbaa !9
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.XString, ptr %163, i32 0, i32 2
  store i64 %162, ptr %164, align 8, !tbaa !15
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.XString, ptr %165, i32 0, i32 2
  %167 = load i64, ptr %166, align 8, !tbaa !15
  %168 = trunc i64 %167 to i32
  store i32 %168, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %169

169:                                              ; preds = %161, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %170

170:                                              ; preds = %169, %108, %95, %81, %32, %25
  %171 = load i32, ptr %3, align 4
  ret i32 %171
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 allocsize(1) "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 allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(1) }

!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, !6, i64 0}
!12 = !{!"XString", !6, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !7, i64 26, !7, i64 27}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !13, i64 24}
!15 = !{!12, !10, i64 16}
!16 = !{!12, !10, i64 8}


; 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.38 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @xstrncpyf(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @XString_Resize(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #2 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  %5 = icmp ne i64 %1, 0
  %or.cond = and i1 %5, %4
  br i1 %or.cond, label %6, label %15

6:                                                ; preds = %2
  %7 = tail call noalias ptr @malloc(i64 noundef %1) #6
  store ptr %7, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %11

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  store i16 -1, ptr %10, align 8, !tbaa !12
  br label %41

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %1, ptr %12, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %13, align 8, !tbaa !14
  %14 = trunc i64 %1 to i32
  br label %41

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load i64, ptr %16, align 8, !tbaa !13
  %18 = icmp eq i64 %17, 0
  %or.cond3 = and i1 %5, %18
  br i1 %or.cond3, label %19, label %28

19:                                               ; preds = %15
  %20 = tail call noalias ptr @malloc(i64 noundef %1) #6
  store ptr %20, ptr %0, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  store i16 -1, ptr %23, align 8, !tbaa !12
  br label %41

24:                                               ; preds = %19
  %25 = tail call i64 (ptr, i64, ptr, ...) @xstrncpyf(ptr noundef nonnull %20, i64 noundef %1, ptr noundef nonnull @.str.38, ptr noundef %3)
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %25, ptr %26, align 8, !tbaa !14
  store i64 %1, ptr %16, align 8, !tbaa !13
  %27 = trunc i64 %1 to i32
  br label %41

28:                                               ; preds = %15
  %or.cond5 = or i1 %5, %18
  %or.cond66 = or i1 %4, %or.cond5
  br i1 %or.cond66, label %30, label %29

29:                                               ; preds = %28
  tail call void @free(ptr noundef nonnull %3) #7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  br label %41

30:                                               ; preds = %28
  br i1 %5, label %32, label %31

31:                                               ; preds = %30
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  br label %41

32:                                               ; preds = %30
  %33 = tail call ptr @realloc(ptr noundef %3, i64 noundef %1) #8
  store ptr %33, ptr %0, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %. = tail call i64 @llvm.umin.i64(i64 %35, i64 %1)
  store i64 %., ptr %34, align 8, !tbaa !14
  %36 = icmp eq ptr %33, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %32
  store ptr %3, ptr %0, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  store i16 -1, ptr %38, align 8, !tbaa !12
  br label %41

39:                                               ; preds = %32
  store i64 %1, ptr %16, align 8, !tbaa !13
  %40 = trunc i64 %1 to i32
  br label %41

41:                                               ; preds = %37, %39, %22, %24, %31, %29, %11, %9
  %.2 = phi i32 [ -1, %9 ], [ %14, %11 ], [ 0, %31 ], [ 0, %29 ], [ -1, %22 ], [ %27, %24 ], [ -1, %37 ], [ %40, %39 ]
  ret i32 %.2
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(1) }

!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, !7, i64 0}
!6 = !{!"XString", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 26, !8, i64 27}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!6, !11, i64 24}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass