; LLVM IR from musetronstar/tagd :: tagl/src (lemon)

; 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.3 = external hidden unnamed_addr constant [68 x i8], align 1
@append_str.empty = external hidden global [1 x i8], align 1
@append_str.z = external hidden global ptr, align 8
@append_str.alloced = external hidden global i32, align 4
@append_str.used = external hidden global i32, align 4
@.str.144 = external hidden unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__.append_str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.145 = 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(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @lemon_strcpy(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @lemon_sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @append_str(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [40 x i8], align 16
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #5
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %26

15:                                               ; preds = %4
  %16 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %24

18:                                               ; preds = %15
  %19 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  %22 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 0
  store i8 0, ptr %23, align 1, !tbaa !11
  br label %24

24:                                               ; preds = %21, %18, %15
  store i32 0, ptr @append_str.used, align 4, !tbaa !9
  %25 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  store ptr %25, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %130

26:                                               ; preds = %4
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = icmp sle i32 %27, 0
  br i1 %28, label %29, label %45

29:                                               ; preds = %26
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 0
  br i1 %31, label %32, label %41

32:                                               ; preds = %29
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %35 = add nsw i32 %34, %33
  store i32 %35, ptr @append_str.used, align 4, !tbaa !9
  %36 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %37 = icmp sge i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %32
  br label %40

39:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.3, i32 noundef 3680, ptr noundef @__PRETTY_FUNCTION__.append_str) #6
  unreachable

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %40, %29
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call i64 @strlen(ptr noundef %42) #7
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %7, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %41, %26
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = add i64 %47, 80
  %49 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = add i64 %48, %50
  %52 = trunc i64 %51 to i32
  %53 = load i32, ptr @append_str.alloced, align 4, !tbaa !9
  %54 = icmp sge i32 %52, %53
  br i1 %54, label %55, label %68

55:                                               ; preds = %45
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = add i64 %57, 80
  %59 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = add i64 %58, %60
  %62 = add i64 %61, 200
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr @append_str.alloced, align 4, !tbaa !9
  %64 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %65 = load i32, ptr @append_str.alloced, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call ptr @realloc(ptr noundef %64, i64 noundef %66) #8
  store ptr %67, ptr @append_str.z, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %55, %45
  %69 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  store ptr @append_str.empty, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %130

72:                                               ; preds = %68
  br label %73

73:                                               ; preds = %123, %72
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %7, align 4, !tbaa !9
  %76 = icmp sgt i32 %74, 0
  br i1 %76, label %77, label %124

77:                                               ; preds = %73
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i32 1
  store ptr %79, ptr %6, align 8, !tbaa !5
  %80 = load i8, ptr %78, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  store i32 %81, ptr %10, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 37
  br i1 %83, label %84, label %115

84:                                               ; preds = %77
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %87, label %115

87:                                               ; preds = %84
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 0
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 100
  br i1 %92, label %93, label %115

93:                                               ; preds = %87
  %94 = getelementptr inbounds [40 x i8], ptr %11, i64 0, i64 0
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @lemon_sprintf(ptr noundef %94, ptr noundef @.str.145, i32 noundef %95)
  %97 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %97, ptr %8, align 4, !tbaa !9
  %98 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %99 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i8, ptr %98, i64 %100
  %102 = getelementptr inbounds [40 x i8], ptr %11, i64 0, i64 0
  call void @lemon_strcpy(ptr noundef %101, ptr noundef %102)
  %103 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %104 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %103, i64 %105
  %107 = call i64 @strlen(ptr noundef %106) #7
  %108 = trunc i64 %107 to i32
  %109 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %110 = add nsw i32 %109, %108
  store i32 %110, ptr @append_str.used, align 4, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i32 1
  store ptr %112, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = add nsw i32 %113, -1
  store i32 %114, ptr %7, align 4, !tbaa !9
  br label %123

115:                                              ; preds = %87, %84, %77
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = trunc i32 %116 to i8
  %118 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %119 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr @append_str.used, align 4, !tbaa !9
  %121 = sext i32 %119 to i64
  %122 = getelementptr inbounds i8, ptr %118, i64 %121
  store i8 %117, ptr %122, align 1, !tbaa !11
  br label %123

123:                                              ; preds = %115, %93
  br label %73, !llvm.loop !12

124:                                              ; preds = %73
  %125 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  %126 = load i32, ptr @append_str.used, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i8, ptr %125, i64 %127
  store i8 0, ptr %128, align 1, !tbaa !11
  %129 = load ptr, ptr @append_str.z, align 8, !tbaa !5
  store ptr %129, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %130

130:                                              ; preds = %124, %71, %24
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %131 = load ptr, ptr %5, align 8
  ret ptr %131
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }
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, !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 = distinct !{!12, !13}
!13 = !{!"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.3 = external hidden unnamed_addr constant [68 x i8], align 1
@append_str.empty = external hidden global [1 x i8], align 1
@append_str.z = external hidden local_unnamed_addr global ptr, align 8
@append_str.alloced = external hidden local_unnamed_addr global i32, align 4
@append_str.used = external hidden local_unnamed_addr global i32, align 4
@.str.144 = external hidden unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__.append_str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

; 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 #1

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

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

; Function Attrs: nounwind uwtable
declare hidden void @lemon_strcpy(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @lemon_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local ptr @append_str(ptr noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = alloca [40 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  %6 = icmp eq ptr %0, null
  br i1 %6, label %7, label %15

7:                                                ; preds = %4
  %8 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 0
  %10 = load ptr, ptr @append_str.z, align 8
  %11 = icmp ne ptr %10, null
  %or.cond = select i1 %9, i1 %11, i1 false
  br i1 %or.cond, label %12, label %13

12:                                               ; preds = %7
  store i8 0, ptr %10, align 1, !tbaa !9
  %.pre33 = load ptr, ptr @append_str.z, align 8, !tbaa !10
  br label %13

13:                                               ; preds = %12, %7
  %14 = phi ptr [ %.pre33, %12 ], [ %10, %7 ]
  store i32 0, ptr @append_str.used, align 4, !tbaa !5
  br label %77

15:                                               ; preds = %4
  %16 = icmp slt i32 %1, 1
  br i1 %16, label %17, label %27

17:                                               ; preds = %15
  %18 = icmp slt i32 %1, 0
  br i1 %18, label %19, label %24

19:                                               ; preds = %17
  %20 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %21 = add nsw i32 %20, %1
  store i32 %21, ptr @append_str.used, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, -1
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.3, i32 noundef 3680, ptr noundef nonnull @__PRETTY_FUNCTION__.append_str) #6
  unreachable

24:                                               ; preds = %19, %17
  %25 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #7
  %26 = trunc i64 %25 to i32
  br label %27

27:                                               ; preds = %24, %15
  %.023 = phi i32 [ %26, %24 ], [ %1, %15 ]
  %28 = add i32 %.023, 80
  %29 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %30 = add i32 %28, %29
  %31 = load i32, ptr @append_str.alloced, align 4, !tbaa !5
  %.not = icmp sgt i32 %31, %30
  br i1 %.not, label %thread-pre-split, label %32

32:                                               ; preds = %27
  %33 = add i32 %30, 200
  store i32 %33, ptr @append_str.alloced, align 4, !tbaa !5
  %34 = load ptr, ptr @append_str.z, align 8, !tbaa !10
  %35 = sext i32 %33 to i64
  %36 = tail call ptr @realloc(ptr noundef %34, i64 noundef %35) #8
  store ptr %36, ptr @append_str.z, align 8, !tbaa !10
  br label %37

thread-pre-split:                                 ; preds = %27
  %.pr = load ptr, ptr @append_str.z, align 8, !tbaa !10
  br label %37

37:                                               ; preds = %thread-pre-split, %32
  %38 = phi ptr [ %.pr, %thread-pre-split ], [ %36, %32 ]
  %39 = icmp eq ptr %38, null
  br i1 %39, label %77, label %.preheader

.preheader:                                       ; preds = %37
  %40 = icmp sgt i32 %.023, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %70
  %.02032 = phi ptr [ %.1, %70 ], [ %0, %.preheader ]
  %.02131 = phi i32 [ %.122, %70 ], [ %2, %.preheader ]
  %.12430 = phi i32 [ %.2, %70 ], [ %.023, %.preheader ]
  %41 = add nsw i32 %.12430, -1
  %42 = getelementptr inbounds i8, ptr %.02032, i64 1
  %43 = load i8, ptr %.02032, align 1, !tbaa !9
  %44 = icmp eq i8 %43, 37
  %45 = icmp ne i32 %.12430, 1
  %or.cond3 = and i1 %45, %44
  br i1 %or.cond3, label %46, label %64

46:                                               ; preds = %.lr.ph
  %47 = load i8, ptr %42, align 1, !tbaa !9
  %48 = icmp eq i8 %47, 100
  br i1 %48, label %49, label %64

49:                                               ; preds = %46
  %50 = call i32 (ptr, ptr, ...) @lemon_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.145, i32 noundef %.02131)
  %51 = load ptr, ptr @append_str.z, align 8, !tbaa !10
  %52 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %51, i64 %53
  call void @lemon_strcpy(ptr noundef %54, ptr noundef nonnull %5)
  %55 = load ptr, ptr @append_str.z, align 8, !tbaa !10
  %56 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i8, ptr %55, i64 %57
  %59 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %58) #7
  %60 = trunc i64 %59 to i32
  %61 = add nsw i32 %56, %60
  store i32 %61, ptr @append_str.used, align 4, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %.02032, i64 2
  %63 = add nsw i32 %.12430, -2
  br label %70

64:                                               ; preds = %46, %.lr.ph
  %65 = load ptr, ptr @append_str.z, align 8, !tbaa !10
  %66 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr @append_str.used, align 4, !tbaa !5
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds i8, ptr %65, i64 %68
  store i8 %43, ptr %69, align 1, !tbaa !9
  br label %70

70:                                               ; preds = %64, %49
  %.2 = phi i32 [ %63, %49 ], [ %41, %64 ]
  %.122 = phi i32 [ %3, %49 ], [ %.02131, %64 ]
  %.1 = phi ptr [ %62, %49 ], [ %42, %64 ]
  %71 = icmp sgt i32 %.2, 0
  br i1 %71, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !12

._crit_edge.loopexit:                             ; preds = %70
  %.pre = load ptr, ptr @append_str.z, align 8, !tbaa !10
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %72 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %38, %.preheader ]
  %73 = load i32, ptr @append_str.used, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %72, i64 %74
  store i8 0, ptr %75, align 1, !tbaa !9
  %76 = load ptr, ptr @append_str.z, align 8, !tbaa !10
  br label %77

77:                                               ; preds = %37, %._crit_edge, %13
  %.0 = phi ptr [ %14, %13 ], [ %76, %._crit_edge ], [ @append_str.empty, %37 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  ret ptr %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass