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

; 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.hmac_ctx_st = type { ptr, %struct.DIGEST_CTX, %struct.DIGEST_CTX, %struct.DIGEST_CTX }
%struct.DIGEST_CTX = type { %union.anon, ptr }
%union.anon = type { %struct.SM3_CTX }
%struct.SM3_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [58 x i8], align 1
@__FUNCTION__.hkdf_expand = external hidden unnamed_addr constant [12 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

declare i32 @hmac_init(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1

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

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

declare i32 @hmac_update(ptr noundef, ptr noundef, i64 noundef) #1

declare i32 @hmac_finish(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @hkdf_expand(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6) #3 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.hmac_ctx_st, align 8
  %17 = alloca [64 x i8], align 16
  %18 = alloca i8, align 1
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i64 %4, ptr %13, align 8, !tbaa !9
  store i64 %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 368, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  store i8 1, ptr %18, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %21 = load i64, ptr %14, align 8, !tbaa !9
  %22 = icmp ugt i64 %21, 0
  br i1 %22, label %23, label %65

23:                                               ; preds = %7
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = load i64, ptr %11, align 8, !tbaa !9
  %27 = call i32 @hmac_init(ptr noundef %16, ptr noundef %24, ptr noundef %25, i64 noundef %26)
  %28 = icmp ne i32 %27, 1
  br i1 %28, label %41, label %29

29:                                               ; preds = %23
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = load i64, ptr %13, align 8, !tbaa !9
  %32 = call i32 @hmac_update(ptr noundef %16, ptr noundef %30, i64 noundef %31)
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %41, label %34

34:                                               ; preds = %29
  %35 = call i32 @hmac_update(ptr noundef %16, ptr noundef %18, i64 noundef 1)
  %36 = icmp ne i32 %35, 1
  br i1 %36, label %41, label %37

37:                                               ; preds = %34
  %38 = getelementptr inbounds [64 x i8], ptr %17, i64 0, i64 0
  %39 = call i32 @hmac_finish(ptr noundef %16, ptr noundef %38, ptr noundef %19)
  %40 = icmp ne i32 %39, 1
  br i1 %40, label %41, label %47

41:                                               ; preds = %37, %34, %29, %23
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 91, ptr noundef @__FUNCTION__.hkdf_expand) #5
  br label %45

45:                                               ; preds = %42
  br label %46

46:                                               ; preds = %45
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %127

47:                                               ; preds = %37
  %48 = load i8, ptr %18, align 1, !tbaa !11
  %49 = add i8 %48, 1
  store i8 %49, ptr %18, align 1, !tbaa !11
  %50 = load i64, ptr %19, align 8, !tbaa !9
  %51 = load i64, ptr %14, align 8, !tbaa !9
  %52 = icmp ugt i64 %50, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %47
  %54 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %54, ptr %19, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %53, %47
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds [64 x i8], ptr %17, i64 0, i64 0
  %58 = load i64, ptr %19, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %56, ptr align 16 %57, i64 %58, i1 false)
  %59 = load i64, ptr %19, align 8, !tbaa !9
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 %59
  store ptr %61, ptr %15, align 8, !tbaa !5
  %62 = load i64, ptr %19, align 8, !tbaa !9
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = sub i64 %63, %62
  store i64 %64, ptr %14, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %55, %7
  br label %66

66:                                               ; preds = %116, %65
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = icmp ugt i64 %67, 0
  br i1 %68, label %69, label %126

69:                                               ; preds = %66
  %70 = load i8, ptr %18, align 1, !tbaa !11
  %71 = zext i8 %70 to i32
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %79

73:                                               ; preds = %69
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 104, ptr noundef @__FUNCTION__.hkdf_expand) #5
  br label %77

77:                                               ; preds = %74
  br label %78

78:                                               ; preds = %77
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %127

79:                                               ; preds = %69
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = call i32 @hmac_init(ptr noundef %16, ptr noundef %80, ptr noundef %81, i64 noundef %82)
  %84 = icmp ne i32 %83, 1
  br i1 %84, label %102, label %85

85:                                               ; preds = %79
  %86 = getelementptr inbounds [64 x i8], ptr %17, i64 0, i64 0
  %87 = load i64, ptr %19, align 8, !tbaa !9
  %88 = call i32 @hmac_update(ptr noundef %16, ptr noundef %86, i64 noundef %87)
  %89 = icmp ne i32 %88, 1
  br i1 %89, label %102, label %90

90:                                               ; preds = %85
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load i64, ptr %13, align 8, !tbaa !9
  %93 = call i32 @hmac_update(ptr noundef %16, ptr noundef %91, i64 noundef %92)
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %102, label %95

95:                                               ; preds = %90
  %96 = call i32 @hmac_update(ptr noundef %16, ptr noundef %18, i64 noundef 1)
  %97 = icmp ne i32 %96, 1
  br i1 %97, label %102, label %98

98:                                               ; preds = %95
  %99 = getelementptr inbounds [64 x i8], ptr %17, i64 0, i64 0
  %100 = call i32 @hmac_finish(ptr noundef %16, ptr noundef %99, ptr noundef %19)
  %101 = icmp ne i32 %100, 1
  br i1 %101, label %102, label %108

102:                                              ; preds = %98, %95, %90, %85, %79
  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 112, ptr noundef @__FUNCTION__.hkdf_expand) #5
  br label %106

106:                                              ; preds = %103
  br label %107

107:                                              ; preds = %106
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %127

108:                                              ; preds = %98
  %109 = load i8, ptr %18, align 1, !tbaa !11
  %110 = add i8 %109, 1
  store i8 %110, ptr %18, align 1, !tbaa !11
  %111 = load i64, ptr %19, align 8, !tbaa !9
  %112 = load i64, ptr %14, align 8, !tbaa !9
  %113 = icmp ugt i64 %111, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %108
  %115 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %115, ptr %19, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %114, %108
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds [64 x i8], ptr %17, i64 0, i64 0
  %119 = load i64, ptr %19, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %117, ptr align 16 %118, i64 %119, i1 false)
  %120 = load i64, ptr %19, align 8, !tbaa !9
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 %120
  store ptr %122, ptr %15, align 8, !tbaa !5
  %123 = load i64, ptr %19, align 8, !tbaa !9
  %124 = load i64, ptr %14, align 8, !tbaa !9
  %125 = sub i64 %124, %123
  store i64 %125, ptr %14, align 8, !tbaa !9
  br label %66, !llvm.loop !12

126:                                              ; preds = %66
  store i32 1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %127

127:                                              ; preds = %126, %107, %78, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %16) #5
  %128 = load i32, ptr %8, align 4
  ret i32 %128
}

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

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

%struct.hmac_ctx_st = type { ptr, %struct.DIGEST_CTX, %struct.DIGEST_CTX, %struct.DIGEST_CTX }
%struct.DIGEST_CTX = type { %union.anon, ptr }
%union.anon = type { %struct.SM3_CTX }
%struct.SM3_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@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 [58 x i8], align 1
@__FUNCTION__.hkdf_expand = external hidden unnamed_addr constant [12 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

declare i32 @hmac_init(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

declare i32 @hmac_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @hmac_finish(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @hkdf_expand(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #3 {
  %8 = alloca %struct.hmac_ctx_st, align 8
  %9 = alloca [64 x i8], align 16
  %10 = alloca i8, align 1
  %11 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  store i8 1, ptr %10, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %.loopexit, label %12

12:                                               ; preds = %7
  %13 = call i32 @hmac_init(ptr noundef nonnull %8, ptr noundef %0, ptr noundef %1, i64 noundef %2) #5
  %.not27 = icmp eq i32 %13, 1
  br i1 %.not27, label %14, label %.loopexit.sink.split

14:                                               ; preds = %12
  %15 = call i32 @hmac_update(ptr noundef nonnull %8, ptr noundef %3, i64 noundef %4) #5
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %.loopexit.sink.split, label %17

17:                                               ; preds = %14
  %18 = call i32 @hmac_update(ptr noundef nonnull %8, ptr noundef nonnull %10, i64 noundef 1) #5
  %.not28 = icmp eq i32 %18, 1
  br i1 %.not28, label %19, label %.loopexit.sink.split

19:                                               ; preds = %17
  %20 = call i32 @hmac_finish(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %11) #5
  %.not29 = icmp eq i32 %20, 1
  br i1 %.not29, label %21, label %.loopexit.sink.split

21:                                               ; preds = %19
  %22 = load i8, ptr %10, align 1, !tbaa !5
  %23 = add i8 %22, 1
  store i8 %23, ptr %10, align 1, !tbaa !5
  %24 = load i64, ptr %11, align 8, !tbaa !8
  %25 = icmp ugt i64 %24, %5
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  store i64 %5, ptr %11, align 8, !tbaa !8
  br label %27

27:                                               ; preds = %21, %26
  %28 = phi i64 [ %5, %26 ], [ %24, %21 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr nonnull align 16 %9, i64 %28, i1 false)
  %29 = sub i64 %5, %28
  %.not3035 = icmp eq i64 %29, 0
  br i1 %.not3035, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %27
  %30 = getelementptr inbounds i8, ptr %6, i64 %28
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %51
  %31 = phi i8 [ %47, %51 ], [ %23, %.lr.ph.preheader ]
  %.137 = phi ptr [ %53, %51 ], [ %30, %.lr.ph.preheader ]
  %.12336 = phi i64 [ %54, %51 ], [ %29, %.lr.ph.preheader ]
  %32 = icmp eq i8 %31, 0
  br i1 %32, label %.loopexit.sink.split, label %33

33:                                               ; preds = %.lr.ph
  %34 = call i32 @hmac_init(ptr noundef nonnull %8, ptr noundef %0, ptr noundef %1, i64 noundef %2) #5
  %.not31 = icmp eq i32 %34, 1
  br i1 %.not31, label %35, label %.loopexit.sink.split

35:                                               ; preds = %33
  %36 = load i64, ptr %11, align 8, !tbaa !8
  %37 = call i32 @hmac_update(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %36) #5
  %.not32 = icmp eq i32 %37, 1
  br i1 %.not32, label %38, label %.loopexit.sink.split

38:                                               ; preds = %35
  %39 = call i32 @hmac_update(ptr noundef nonnull %8, ptr noundef %3, i64 noundef %4) #5
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %.loopexit.sink.split, label %41

41:                                               ; preds = %38
  %42 = call i32 @hmac_update(ptr noundef nonnull %8, ptr noundef nonnull %10, i64 noundef 1) #5
  %.not33 = icmp eq i32 %42, 1
  br i1 %.not33, label %43, label %.loopexit.sink.split

43:                                               ; preds = %41
  %44 = call i32 @hmac_finish(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %11) #5
  %.not34 = icmp eq i32 %44, 1
  br i1 %.not34, label %45, label %.loopexit.sink.split

45:                                               ; preds = %43
  %46 = load i8, ptr %10, align 1, !tbaa !5
  %47 = add i8 %46, 1
  store i8 %47, ptr %10, align 1, !tbaa !5
  %48 = load i64, ptr %11, align 8, !tbaa !8
  %49 = icmp ugt i64 %48, %.12336
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  store i64 %.12336, ptr %11, align 8, !tbaa !8
  br label %51

51:                                               ; preds = %50, %45
  %52 = phi i64 [ %.12336, %50 ], [ %48, %45 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.137, ptr nonnull align 16 %9, i64 %52, i1 false)
  %53 = getelementptr inbounds i8, ptr %.137, i64 %52
  %54 = sub i64 %.12336, %52
  %.not30 = icmp eq i64 %54, 0
  br i1 %.not30, label %.loopexit, label %.lr.ph, !llvm.loop !10

.loopexit.sink.split:                             ; preds = %43, %41, %38, %35, %33, %.lr.ph, %19, %17, %14, %12
  %.sink41 = phi i32 [ 91, %12 ], [ 91, %14 ], [ 91, %17 ], [ 91, %19 ], [ 104, %.lr.ph ], [ 112, %33 ], [ 112, %35 ], [ 112, %38 ], [ 112, %41 ], [ 112, %43 ]
  %55 = load ptr, ptr @stderr, align 8, !tbaa !12
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %.sink41, ptr noundef nonnull @__FUNCTION__.hkdf_expand) #6
  br label %.loopexit

.loopexit:                                        ; preds = %51, %.loopexit.sink.split, %7, %27
  %.024 = phi i32 [ 1, %27 ], [ 1, %7 ], [ -1, %.loopexit.sink.split ], [ 1, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %8) #5
  ret i32 %.024
}

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

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


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