; LLVM IR from guanzhi/GmSSL :: src (tls_ext)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@__FUNCTION__.tls13_key_share_ext_print = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

declare i32 @tls_length_is_zero(i64 noundef) #2

declare ptr @tls_curve_name(i32 noundef) #2

declare i32 @tls_uint16array_from_bytes(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @tls_uint16_from_bytes(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @format_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @tls13_key_share_ext_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i64 noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i16, align 2
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i64 %5, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %20 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %20, label %101 [
    i32 1, label %21
    i32 2, label %71
  ]

21:                                               ; preds = %6
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = load i32, ptr %10, align 4, !tbaa !9
  %25 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %22, i32 noundef %23, i32 noundef %24, ptr noundef @.str.6)
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = add nsw i32 %26, 4
  store i32 %27, ptr %10, align 4, !tbaa !9
  %28 = call i32 @tls_uint16array_from_bytes(ptr noundef %14, ptr noundef %15, ptr noundef %12, ptr noundef %13)
  %29 = icmp ne i32 %28, 1
  br i1 %29, label %30, label %36

30:                                               ; preds = %21
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 595, ptr noundef @__FUNCTION__.tls13_key_share_ext_print) #4
  br label %34

34:                                               ; preds = %31
  br label %35

35:                                               ; preds = %34
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %119

36:                                               ; preds = %21
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %37, i32 noundef %38, i32 noundef %39, ptr noundef @.str.7)
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = add nsw i32 %41, 4
  store i32 %42, ptr %10, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %63, %36
  %44 = load i64, ptr %15, align 8, !tbaa !11
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %46, label %70

46:                                               ; preds = %43
  %47 = call i32 @tls_uint16_from_bytes(ptr noundef %16, ptr noundef %14, ptr noundef %15)
  %48 = icmp ne i32 %47, 1
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  br label %113

50:                                               ; preds = %46
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i16, ptr %16, align 2, !tbaa !13
  %55 = zext i16 %54 to i32
  %56 = call ptr @tls_curve_name(i32 noundef %55)
  %57 = load i16, ptr %16, align 2, !tbaa !13
  %58 = zext i16 %57 to i32
  %59 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %51, i32 noundef %52, i32 noundef %53, ptr noundef @.str.8, ptr noundef %56, i32 noundef %58)
  %60 = call i32 @tls_uint16array_from_bytes(ptr noundef %17, ptr noundef %18, ptr noundef %14, ptr noundef %15)
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %50
  br label %113

63:                                               ; preds = %50
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = load i64, ptr %18, align 8, !tbaa !11
  %69 = call i32 @format_bytes(ptr noundef %64, i32 noundef %65, i32 noundef %66, ptr noundef @.str.9, ptr noundef %67, i64 noundef %68)
  br label %43, !llvm.loop !15

70:                                               ; preds = %43
  br label %107

71:                                               ; preds = %6
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %72, i32 noundef %73, i32 noundef %74, ptr noundef @.str.10)
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = add nsw i32 %76, 4
  store i32 %77, ptr %10, align 4, !tbaa !9
  %78 = call i32 @tls_uint16_from_bytes(ptr noundef %16, ptr noundef %12, ptr noundef %13)
  %79 = icmp ne i32 %78, 1
  br i1 %79, label %80, label %81

80:                                               ; preds = %71
  br label %113

81:                                               ; preds = %71
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = load i16, ptr %16, align 2, !tbaa !13
  %86 = zext i16 %85 to i32
  %87 = call ptr @tls_curve_name(i32 noundef %86)
  %88 = load i16, ptr %16, align 2, !tbaa !13
  %89 = zext i16 %88 to i32
  %90 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %82, i32 noundef %83, i32 noundef %84, ptr noundef @.str.8, ptr noundef %87, i32 noundef %89)
  %91 = call i32 @tls_uint16array_from_bytes(ptr noundef %17, ptr noundef %18, ptr noundef %12, ptr noundef %13)
  %92 = icmp ne i32 %91, 1
  br i1 %92, label %93, label %94

93:                                               ; preds = %81
  br label %113

94:                                               ; preds = %81
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = load i64, ptr %18, align 8, !tbaa !11
  %100 = call i32 @format_bytes(ptr noundef %95, i32 noundef %96, i32 noundef %97, ptr noundef @.str.9, ptr noundef %98, i64 noundef %99)
  br label %107

101:                                              ; preds = %6
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr @stderr, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 616, ptr noundef @__FUNCTION__.tls13_key_share_ext_print) #4
  br label %105

105:                                              ; preds = %102
  br label %106

106:                                              ; preds = %105
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %119

107:                                              ; preds = %94, %70
  %108 = load i64, ptr %13, align 8, !tbaa !11
  %109 = call i32 @tls_length_is_zero(i64 noundef %108)
  %110 = icmp ne i32 %109, 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  br label %113

112:                                              ; preds = %107
  store i32 1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %119

113:                                              ; preds = %111, %93, %80, %62, %49
  br label %114

114:                                              ; preds = %113
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 622, ptr noundef @__FUNCTION__.tls13_key_share_ext_print) #4
  br label %117

117:                                              ; preds = %114
  br label %118

118:                                              ; preds = %117
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %119

119:                                              ; preds = %118, %112, %106, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %120 = load i32, ptr %7, align 4
  ret i32 %120
}

declare i32 @format_bytes(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #2

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

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@__FUNCTION__.tls13_key_share_ext_print = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare i32 @tls_length_is_zero(i64 noundef) local_unnamed_addr #2

declare ptr @tls_curve_name(i32 noundef) local_unnamed_addr #2

declare i32 @tls_uint16array_from_bytes(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @tls_uint16_from_bytes(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @format_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @tls13_key_share_ext_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i64 noundef %5) local_unnamed_addr #3 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  store ptr %4, ptr %7, align 8, !tbaa !5
  store i64 %5, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  switch i32 %3, label %55 [
    i32 1, label %14
    i32 2, label %39
  ]

14:                                               ; preds = %6
  %15 = tail call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull @.str.6) #4
  %16 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %.not26 = icmp eq i32 %16, 1
  br i1 %.not26, label %20, label %17

17:                                               ; preds = %14
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 595, ptr noundef nonnull @__FUNCTION__.tls13_key_share_ext_print) #5
  br label %62

20:                                               ; preds = %14
  %21 = add nsw i32 %2, 4
  %22 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %21, ptr noundef nonnull @.str.7) #4
  %23 = add nsw i32 %2, 8
  %24 = load i64, ptr %10, align 8, !tbaa !9
  %.not2732 = icmp eq i64 %24, 0
  br i1 %.not2732, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %20, %34
  %25 = call i32 @tls_uint16_from_bytes(ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  %.not29 = icmp eq i32 %25, 1
  br i1 %.not29, label %26, label %.loopexit31

26:                                               ; preds = %.lr.ph
  %27 = load i16, ptr %11, align 2, !tbaa !11
  %28 = zext i16 %27 to i32
  %29 = call ptr @tls_curve_name(i32 noundef %28) #4
  %30 = load i16, ptr %11, align 2, !tbaa !11
  %31 = zext i16 %30 to i32
  %32 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %23, ptr noundef nonnull @.str.8, ptr noundef %29, i32 noundef %31) #4
  %33 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  %.not30 = icmp eq i32 %33, 1
  br i1 %.not30, label %34, label %.loopexit31

34:                                               ; preds = %26
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = load i64, ptr %13, align 8, !tbaa !9
  %37 = call i32 @format_bytes(ptr noundef %0, i32 noundef %1, i32 noundef %23, ptr noundef nonnull @.str.9, ptr noundef %35, i64 noundef %36) #4
  %38 = load i64, ptr %10, align 8, !tbaa !9
  %.not27 = icmp eq i64 %38, 0
  br i1 %.not27, label %.loopexit, label %.lr.ph, !llvm.loop !13

39:                                               ; preds = %6
  %40 = tail call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull @.str.10) #4
  %41 = add nsw i32 %2, 4
  %42 = call i32 @tls_uint16_from_bytes(ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %.not = icmp eq i32 %42, 1
  br i1 %.not, label %43, label %.loopexit31

43:                                               ; preds = %39
  %44 = load i16, ptr %11, align 2, !tbaa !11
  %45 = zext i16 %44 to i32
  %46 = call ptr @tls_curve_name(i32 noundef %45) #4
  %47 = load i16, ptr %11, align 2, !tbaa !11
  %48 = zext i16 %47 to i32
  %49 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %0, i32 noundef %1, i32 noundef %41, ptr noundef nonnull @.str.8, ptr noundef %46, i32 noundef %48) #4
  %50 = call i32 @tls_uint16array_from_bytes(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %.not25 = icmp eq i32 %50, 1
  br i1 %.not25, label %51, label %.loopexit31

51:                                               ; preds = %43
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load i64, ptr %13, align 8, !tbaa !9
  %54 = call i32 @format_bytes(ptr noundef %0, i32 noundef %1, i32 noundef %41, ptr noundef nonnull @.str.9, ptr noundef %52, i64 noundef %53) #4
  br label %.loopexit

55:                                               ; preds = %6
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 616, ptr noundef nonnull @__FUNCTION__.tls13_key_share_ext_print) #5
  br label %62

.loopexit:                                        ; preds = %34, %20, %51
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = call i32 @tls_length_is_zero(i64 noundef %58) #4
  %.not28 = icmp eq i32 %59, 1
  br i1 %.not28, label %62, label %.loopexit31

.loopexit31:                                      ; preds = %.lr.ph, %26, %39, %43, %.loopexit
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 622, ptr noundef nonnull @__FUNCTION__.tls13_key_share_ext_print) #5
  br label %62

62:                                               ; preds = %.loopexit, %.loopexit31, %55, %17
  %.0 = phi i32 [ -1, %55 ], [ -1, %.loopexit31 ], [ -1, %17 ], [ 1, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  ret i32 %.0
}

declare i32 @format_bytes(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 }
attributes #5 = { cold 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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