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

; 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 [57 x i8], align 1
@__FUNCTION__.tls_record_get_handshake = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @tls_uint24_from_bytes(ptr noundef, ptr noundef, ptr noundef) #1

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

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

declare ptr @tls_protocol_name(i32 noundef) #3

declare ptr @tls_handshake_type_name(i32 noundef) #3

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

16:                                               ; preds = %4
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %25

19:                                               ; preds = %16
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %25

22:                                               ; preds = %19
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %31, label %25

25:                                               ; preds = %22, %19, %16, %4
  br label %26

26:                                               ; preds = %25
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 639, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %29

29:                                               ; preds = %26
  br label %30

30:                                               ; preds = %29
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

31:                                               ; preds = %22
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 1
  %34 = load i8, ptr %33, align 1, !tbaa !9
  %35 = zext i8 %34 to i16
  %36 = zext i16 %35 to i32
  %37 = shl i32 %36, 8
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 2
  %40 = load i8, ptr %39, align 1, !tbaa !9
  %41 = zext i8 %40 to i32
  %42 = or i32 %37, %41
  %43 = call ptr @tls_protocol_name(i32 noundef %42)
  %44 = icmp ne ptr %43, null
  br i1 %44, label %51, label %45

45:                                               ; preds = %31
  br label %46

46:                                               ; preds = %45
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 643, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %49

49:                                               ; preds = %46
  br label %50

50:                                               ; preds = %49
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

51:                                               ; preds = %31
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 0
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = zext i8 %54 to i32
  %56 = icmp ne i32 %55, 22
  br i1 %56, label %57, label %63

57:                                               ; preds = %51
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 647, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %61

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %61
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

63:                                               ; preds = %51
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 5
  store ptr %65, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 3
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = zext i8 %68 to i16
  %70 = zext i16 %69 to i32
  %71 = shl i32 %70, 8
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 4
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = zext i8 %74 to i32
  %76 = or i32 %71, %75
  %77 = sext i32 %76 to i64
  store i64 %77, ptr %11, align 8, !tbaa !10
  %78 = load i64, ptr %11, align 8, !tbaa !10
  %79 = icmp ult i64 %78, 4
  br i1 %79, label %80, label %86

80:                                               ; preds = %63
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 654, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %84

84:                                               ; preds = %81
  br label %85

85:                                               ; preds = %84
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

86:                                               ; preds = %63
  %87 = load i64, ptr %11, align 8, !tbaa !10
  %88 = icmp ugt i64 %87, 16384
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 659, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %93

93:                                               ; preds = %90
  br label %94

94:                                               ; preds = %93
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

95:                                               ; preds = %86
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 0
  %98 = load i8, ptr %97, align 1, !tbaa !9
  %99 = zext i8 %98 to i32
  %100 = call ptr @tls_handshake_type_name(i32 noundef %99)
  %101 = icmp ne ptr %100, null
  br i1 %101, label %108, label %102

102:                                              ; preds = %95
  br label %103

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

106:                                              ; preds = %103
  br label %107

107:                                              ; preds = %106
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

108:                                              ; preds = %95
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 0
  %111 = load i8, ptr %110, align 1, !tbaa !9
  %112 = zext i8 %111 to i32
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %112, ptr %113, align 4, !tbaa !12
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i32 1
  store ptr %115, ptr %10, align 8, !tbaa !5
  %116 = load i64, ptr %11, align 8, !tbaa !10
  %117 = add i64 %116, -1
  store i64 %117, ptr %11, align 8, !tbaa !10
  %118 = call i32 @tls_uint24_from_bytes(ptr noundef %12, ptr noundef %10, ptr noundef %11)
  %119 = icmp ne i32 %118, 1
  br i1 %119, label %120, label %126

120:                                              ; preds = %108
  br label %121

121:                                              ; preds = %120
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 672, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %124

124:                                              ; preds = %121
  br label %125

125:                                              ; preds = %124
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

126:                                              ; preds = %108
  %127 = load i64, ptr %11, align 8, !tbaa !10
  %128 = load i32, ptr %12, align 4, !tbaa !12
  %129 = zext i32 %128 to i64
  %130 = icmp ne i64 %127, %129
  br i1 %130, label %131, label %137

131:                                              ; preds = %126
  br label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 676, ptr noundef @__FUNCTION__.tls_record_get_handshake) #4
  br label %135

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

137:                                              ; preds = %126
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %138, ptr %139, align 8, !tbaa !5
  %140 = load i32, ptr %12, align 4, !tbaa !12
  %141 = zext i32 %140 to i64
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %141, ptr %142, align 8, !tbaa !10
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !10
  %145 = icmp eq i64 %144, 0
  br i1 %145, label %146, label %148

146:                                              ; preds = %137
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr null, ptr %147, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %146, %137
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

149:                                              ; preds = %148, %136, %125, %107, %94, %85, %62, %50, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %150 = load i32, ptr %5, align 4
  ret i32 %150
}

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


; 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 [57 x i8], align 1
@__FUNCTION__.tls_record_get_handshake = external hidden unnamed_addr constant [25 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @tls_uint24_from_bytes(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare ptr @tls_protocol_name(i32 noundef) local_unnamed_addr #3

declare ptr @tls_handshake_type_name(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @tls_record_get_handshake(ptr noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3) local_unnamed_addr #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %8 = insertelement <4 x ptr> poison, ptr %0, i64 0
  %9 = insertelement <4 x ptr> %8, ptr %1, i64 1
  %10 = insertelement <4 x ptr> %9, ptr %2, i64 2
  %11 = insertelement <4 x ptr> %10, ptr %3, i64 3
  %12 = icmp eq <4 x ptr> %11, zeroinitializer
  %13 = bitcast <4 x i1> %12 to i4
  %14 = icmp eq i4 %13, 0
  br i1 %14, label %18, label %15

15:                                               ; preds = %4
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 639, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

18:                                               ; preds = %4
  %19 = getelementptr inbounds i8, ptr %0, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = zext i8 %20 to i32
  %22 = shl nuw nsw i32 %21, 8
  %23 = getelementptr inbounds i8, ptr %0, i64 2
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = or disjoint i32 %22, %25
  %27 = tail call ptr @tls_protocol_name(i32 noundef %26) #4
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %28, label %31

28:                                               ; preds = %18
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 643, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

31:                                               ; preds = %18
  %32 = load i8, ptr %0, align 1, !tbaa !9
  %.not25 = icmp eq i8 %32, 22
  br i1 %.not25, label %36, label %33

33:                                               ; preds = %31
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 647, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %0, i64 5
  %38 = getelementptr inbounds i8, ptr %0, i64 3
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = zext i8 %39 to i64
  %41 = shl nuw nsw i64 %40, 8
  %42 = getelementptr inbounds i8, ptr %0, i64 4
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = zext i8 %43 to i64
  %45 = or disjoint i64 %41, %44
  %46 = icmp ult i64 %45, 4
  br i1 %46, label %47, label %50

47:                                               ; preds = %36
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 654, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

50:                                               ; preds = %36
  %51 = icmp ugt i64 %45, 16384
  br i1 %51, label %52, label %55

52:                                               ; preds = %50
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 659, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

55:                                               ; preds = %50
  %56 = load i8, ptr %37, align 1, !tbaa !9
  %57 = zext i8 %56 to i32
  %58 = tail call ptr @tls_handshake_type_name(i32 noundef %57) #4
  %.not26 = icmp eq ptr %58, null
  br i1 %.not26, label %59, label %62

59:                                               ; preds = %55
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 664, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

62:                                               ; preds = %55
  %63 = load i8, ptr %37, align 1, !tbaa !9
  %64 = zext i8 %63 to i32
  store i32 %64, ptr %1, align 4, !tbaa !10
  %65 = getelementptr inbounds i8, ptr %0, i64 6
  store ptr %65, ptr %5, align 8, !tbaa !5
  %66 = add nsw i64 %45, -1
  store i64 %66, ptr %6, align 8, !tbaa !12
  %67 = call i32 @tls_uint24_from_bytes(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %.not27 = icmp eq i32 %67, 1
  br i1 %.not27, label %71, label %68

68:                                               ; preds = %62
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 672, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

71:                                               ; preds = %62
  %72 = load i64, ptr %6, align 8, !tbaa !12
  %73 = load i32, ptr %7, align 4, !tbaa !10
  %74 = zext i32 %73 to i64
  %.not28 = icmp eq i64 %72, %74
  br i1 %.not28, label %78, label %75

75:                                               ; preds = %71
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 676, ptr noundef nonnull @__FUNCTION__.tls_record_get_handshake) #5
  br label %82

78:                                               ; preds = %71
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %79, ptr %2, align 8, !tbaa !5
  store i64 %72, ptr %3, align 8, !tbaa !12
  %80 = icmp eq i32 %73, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %78, %81, %75, %68, %59, %52, %47, %33, %28, %15
  %.0 = phi i32 [ -1, %33 ], [ -1, %47 ], [ -1, %52 ], [ -1, %68 ], [ -1, %75 ], [ -1, %59 ], [ -1, %28 ], [ -1, %15 ], [ 1, %81 ], [ 1, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret i32 %.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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass