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

%struct.TLS_CTX = type { i32, i32, [64 x i32], i64, ptr, i64, ptr, i64, %struct.SM2_KEY, %struct.SM2_KEY, i32, i32 }
%struct.SM2_KEY = type { %struct.SM2_Z256_POINT, [4 x i64] }
%struct.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x 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 [57 x i8], align 1
@__FUNCTION__.tls_ctx_set_cipher_suites = external hidden unnamed_addr constant [26 x i8], align 1

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

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

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

declare ptr @tls_cipher_suite_name(i32 noundef) #2

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

12:                                               ; preds = %3
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %12
  %16 = load i64, ptr %7, align 8, !tbaa !9
  %17 = icmp ne i64 %16, 0
  br i1 %17, label %24, label %18

18:                                               ; preds = %15, %12, %3
  br label %19

19:                                               ; preds = %18
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 2085, ptr noundef @__FUNCTION__.tls_ctx_set_cipher_suites) #4
  br label %22

22:                                               ; preds = %19
  br label %23

23:                                               ; preds = %22
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %79

24:                                               ; preds = %15
  %25 = load i64, ptr %7, align 8, !tbaa !9
  %26 = icmp ult i64 %25, 1
  br i1 %26, label %30, label %27

27:                                               ; preds = %24
  %28 = load i64, ptr %7, align 8, !tbaa !9
  %29 = icmp ugt i64 %28, 64
  br i1 %29, label %30, label %36

30:                                               ; preds = %27, %24
  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 2089, ptr noundef @__FUNCTION__.tls_ctx_set_cipher_suites) #4
  br label %34

34:                                               ; preds = %31
  br label %35

35:                                               ; preds = %34
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %79

36:                                               ; preds = %27
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %55, %36
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = load i64, ptr %7, align 8, !tbaa !9
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %41, label %58

41:                                               ; preds = %37
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i64, ptr %8, align 8, !tbaa !9
  %44 = getelementptr inbounds i32, ptr %42, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = call ptr @tls_cipher_suite_name(i32 noundef %45)
  %47 = icmp ne ptr %46, null
  br i1 %47, label %54, label %48

48:                                               ; preds = %41
  br label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 2094, ptr noundef @__FUNCTION__.tls_ctx_set_cipher_suites) #4
  br label %52

52:                                               ; preds = %49
  br label %53

53:                                               ; preds = %52
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %79

54:                                               ; preds = %41
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %8, align 8, !tbaa !9
  %57 = add i64 %56, 1
  store i64 %57, ptr %8, align 8, !tbaa !9
  br label %37, !llvm.loop !13

58:                                               ; preds = %37
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %72, %58
  %60 = load i64, ptr %8, align 8, !tbaa !9
  %61 = load i64, ptr %7, align 8, !tbaa !9
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %63, label %75

63:                                               ; preds = %59
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = getelementptr inbounds i32, ptr %64, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TLS_CTX, ptr %68, i32 0, i32 2
  %70 = load i64, ptr %8, align 8, !tbaa !9
  %71 = getelementptr inbounds [64 x i32], ptr %69, i64 0, i64 %70
  store i32 %67, ptr %71, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %63
  %73 = load i64, ptr %8, align 8, !tbaa !9
  %74 = add i64 %73, 1
  store i64 %74, ptr %8, align 8, !tbaa !9
  br label %59, !llvm.loop !15

75:                                               ; preds = %59
  %76 = load i64, ptr %7, align 8, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.TLS_CTX, ptr %77, i32 0, i32 3
  store i64 %76, ptr %78, align 8, !tbaa !16
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %79

79:                                               ; preds = %75, %53, %35, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %80 = load i32, ptr %4, align 4
  ret i32 %80
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !10, i64 264}
!17 = !{!"", !12, i64 0, !12, i64 4, !7, i64 8, !10, i64 264, !6, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !18, i64 304, !18, i64 432, !12, i64 560, !12, i64 564}
!18 = !{!"", !19, i64 0, !7, i64 96}
!19 = !{!"", !7, i64 0, !7, i64 32, !7, i64 64}


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

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

declare ptr @tls_cipher_suite_name(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @tls_ctx_set_cipher_suites(ptr noundef writeonly %0, ptr noundef readonly %1, i64 noundef %2) local_unnamed_addr #2 {
  %4 = ptrtoint ptr %1 to i64
  %5 = ptrtoint ptr %0 to i64
  %6 = icmp ne ptr %0, null
  %7 = icmp ne ptr %1, null
  %or.cond = and i1 %6, %7
  %8 = icmp ne i64 %2, 0
  %or.cond3 = and i1 %or.cond, %8
  br i1 %or.cond3, label %12, label %9

9:                                                ; preds = %3
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 2085, ptr noundef nonnull @__FUNCTION__.tls_ctx_set_cipher_suites) #3
  br label %88

12:                                               ; preds = %3
  %13 = icmp ugt i64 %2, 64
  br i1 %13, label %14, label %.preheader28

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 2089, ptr noundef nonnull @__FUNCTION__.tls_ctx_set_cipher_suites) #3
  br label %88

17:                                               ; preds = %.preheader28
  %18 = add nuw i64 %.029, 1
  %exitcond.not = icmp eq i64 %18, %2
  br i1 %exitcond.not, label %.preheader, label %.preheader28, !llvm.loop !9

.preheader:                                       ; preds = %17
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %min.iters.check = icmp ult i64 %2, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader
  %.130.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %2, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.130.prol = phi i64 [ %23, %scalar.ph.prol ], [ %.130.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %20 = getelementptr inbounds i32, ptr %1, i64 %.130.prol
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = getelementptr inbounds [64 x i32], ptr %19, i64 0, i64 %.130.prol
  store i32 %21, ptr %22, align 4, !tbaa !11
  %23 = add nuw nsw i64 %.130.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !13

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.130.unr = phi i64 [ %.130.ph, %scalar.ph.preheader ], [ %23, %scalar.ph.prol ]
  %24 = sub nsw i64 %.130.ph, %2
  %25 = icmp ugt i64 %24, -4
  br i1 %25, label %.loopexit, label %scalar.ph

vector.memcheck:                                  ; preds = %.preheader
  %26 = add i64 %5, 8
  %27 = sub i64 %26, %4
  %diff.check = icmp ult i64 %27, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %2, 120
  %28 = getelementptr inbounds i8, ptr %1, i64 16
  %wide.load = load <4 x i32>, ptr %1, align 4, !tbaa !11
  %wide.load32 = load <4 x i32>, ptr %28, align 4, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  store <4 x i32> %wide.load, ptr %19, align 4, !tbaa !11
  store <4 x i32> %wide.load32, ptr %29, align 4, !tbaa !11
  %30 = icmp eq i64 %n.vec, 8
  br i1 %30, label %middle.block, label %vector.body.1, !llvm.loop !15

vector.body.1:                                    ; preds = %vector.ph
  %31 = getelementptr inbounds i8, ptr %1, i64 32
  %32 = getelementptr inbounds i8, ptr %1, i64 48
  %wide.load.1 = load <4 x i32>, ptr %31, align 4, !tbaa !11
  %wide.load32.1 = load <4 x i32>, ptr %32, align 4, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  store <4 x i32> %wide.load.1, ptr %33, align 4, !tbaa !11
  store <4 x i32> %wide.load32.1, ptr %34, align 4, !tbaa !11
  %35 = icmp eq i64 %n.vec, 16
  br i1 %35, label %middle.block, label %vector.body.2, !llvm.loop !15

vector.body.2:                                    ; preds = %vector.body.1
  %36 = getelementptr inbounds i8, ptr %1, i64 64
  %37 = getelementptr inbounds i8, ptr %1, i64 80
  %wide.load.2 = load <4 x i32>, ptr %36, align 4, !tbaa !11
  %wide.load32.2 = load <4 x i32>, ptr %37, align 4, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  %39 = getelementptr inbounds i8, ptr %0, i64 88
  store <4 x i32> %wide.load.2, ptr %38, align 4, !tbaa !11
  store <4 x i32> %wide.load32.2, ptr %39, align 4, !tbaa !11
  %40 = icmp eq i64 %n.vec, 24
  br i1 %40, label %middle.block, label %vector.body.3, !llvm.loop !15

vector.body.3:                                    ; preds = %vector.body.2
  %41 = getelementptr inbounds i8, ptr %1, i64 96
  %42 = getelementptr inbounds i8, ptr %1, i64 112
  %wide.load.3 = load <4 x i32>, ptr %41, align 4, !tbaa !11
  %wide.load32.3 = load <4 x i32>, ptr %42, align 4, !tbaa !11
  %43 = getelementptr inbounds i8, ptr %0, i64 104
  %44 = getelementptr inbounds i8, ptr %0, i64 120
  store <4 x i32> %wide.load.3, ptr %43, align 4, !tbaa !11
  store <4 x i32> %wide.load32.3, ptr %44, align 4, !tbaa !11
  %45 = icmp eq i64 %n.vec, 32
  br i1 %45, label %middle.block, label %vector.body.4, !llvm.loop !15

vector.body.4:                                    ; preds = %vector.body.3
  %46 = getelementptr inbounds i8, ptr %1, i64 128
  %47 = getelementptr inbounds i8, ptr %1, i64 144
  %wide.load.4 = load <4 x i32>, ptr %46, align 4, !tbaa !11
  %wide.load32.4 = load <4 x i32>, ptr %47, align 4, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %0, i64 136
  %49 = getelementptr inbounds i8, ptr %0, i64 152
  store <4 x i32> %wide.load.4, ptr %48, align 4, !tbaa !11
  store <4 x i32> %wide.load32.4, ptr %49, align 4, !tbaa !11
  %50 = icmp eq i64 %n.vec, 40
  br i1 %50, label %middle.block, label %vector.body.5, !llvm.loop !15

vector.body.5:                                    ; preds = %vector.body.4
  %51 = getelementptr inbounds i8, ptr %1, i64 160
  %52 = getelementptr inbounds i8, ptr %1, i64 176
  %wide.load.5 = load <4 x i32>, ptr %51, align 4, !tbaa !11
  %wide.load32.5 = load <4 x i32>, ptr %52, align 4, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %0, i64 168
  %54 = getelementptr inbounds i8, ptr %0, i64 184
  store <4 x i32> %wide.load.5, ptr %53, align 4, !tbaa !11
  store <4 x i32> %wide.load32.5, ptr %54, align 4, !tbaa !11
  %55 = icmp eq i64 %n.vec, 48
  br i1 %55, label %middle.block, label %vector.body.6, !llvm.loop !15

vector.body.6:                                    ; preds = %vector.body.5
  %56 = getelementptr inbounds i8, ptr %1, i64 192
  %57 = getelementptr inbounds i8, ptr %1, i64 208
  %wide.load.6 = load <4 x i32>, ptr %56, align 4, !tbaa !11
  %wide.load32.6 = load <4 x i32>, ptr %57, align 4, !tbaa !11
  %58 = getelementptr inbounds i8, ptr %0, i64 200
  %59 = getelementptr inbounds i8, ptr %0, i64 216
  store <4 x i32> %wide.load.6, ptr %58, align 4, !tbaa !11
  store <4 x i32> %wide.load32.6, ptr %59, align 4, !tbaa !11
  %60 = icmp eq i64 %n.vec, 56
  br i1 %60, label %middle.block, label %vector.body.7, !llvm.loop !15

vector.body.7:                                    ; preds = %vector.body.6
  %61 = getelementptr inbounds i8, ptr %1, i64 224
  %62 = getelementptr inbounds i8, ptr %1, i64 240
  %wide.load.7 = load <4 x i32>, ptr %61, align 4, !tbaa !11
  %wide.load32.7 = load <4 x i32>, ptr %62, align 4, !tbaa !11
  %63 = getelementptr inbounds i8, ptr %0, i64 232
  %64 = getelementptr inbounds i8, ptr %0, i64 248
  store <4 x i32> %wide.load.7, ptr %63, align 4, !tbaa !11
  store <4 x i32> %wide.load32.7, ptr %64, align 4, !tbaa !11
  br label %middle.block

middle.block:                                     ; preds = %vector.body.7, %vector.body.6, %vector.body.5, %vector.body.4, %vector.body.3, %vector.body.2, %vector.body.1, %vector.ph
  %cmp.n = icmp eq i64 %n.vec, %2
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

.preheader28:                                     ; preds = %12, %17
  %.029 = phi i64 [ %18, %17 ], [ 0, %12 ]
  %65 = getelementptr inbounds i32, ptr %1, i64 %.029
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = tail call ptr @tls_cipher_suite_name(i32 noundef %66) #4
  %.not = icmp eq ptr %67, null
  br i1 %.not, label %68, label %17

68:                                               ; preds = %.preheader28
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 2094, ptr noundef nonnull @__FUNCTION__.tls_ctx_set_cipher_suites) #3
  br label %88

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.130 = phi i64 [ %86, %scalar.ph ], [ %.130.unr, %scalar.ph.prol.loopexit ]
  %71 = getelementptr inbounds i32, ptr %1, i64 %.130
  %72 = load i32, ptr %71, align 4, !tbaa !11
  %73 = getelementptr inbounds [64 x i32], ptr %19, i64 0, i64 %.130
  store i32 %72, ptr %73, align 4, !tbaa !11
  %74 = add nuw nsw i64 %.130, 1
  %75 = getelementptr inbounds i32, ptr %1, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = getelementptr inbounds [64 x i32], ptr %19, i64 0, i64 %74
  store i32 %76, ptr %77, align 4, !tbaa !11
  %78 = add nuw nsw i64 %.130, 2
  %79 = getelementptr inbounds i32, ptr %1, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = getelementptr inbounds [64 x i32], ptr %19, i64 0, i64 %78
  store i32 %80, ptr %81, align 4, !tbaa !11
  %82 = add nuw nsw i64 %.130, 3
  %83 = getelementptr inbounds i32, ptr %1, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !11
  %85 = getelementptr inbounds [64 x i32], ptr %19, i64 0, i64 %82
  store i32 %84, ptr %85, align 4, !tbaa !11
  %86 = add nuw nsw i64 %.130, 4
  %exitcond31.not.3 = icmp eq i64 %86, %2
  br i1 %exitcond31.not.3, label %.loopexit, label %scalar.ph, !llvm.loop !18

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %87 = getelementptr inbounds i8, ptr %0, i64 264
  store i64 %2, ptr %87, align 8, !tbaa !19
  br label %88

88:                                               ; preds = %.loopexit, %68, %14, %9
  %.024 = phi i32 [ -1, %14 ], [ -1, %68 ], [ 1, %.loopexit ], [ -1, %9 ]
  ret i32 %.024
}

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 = { "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 = { cold nounwind }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !10, !16}
!19 = !{!20, !21, i64 264}
!20 = !{!"", !12, i64 0, !12, i64 4, !7, i64 8, !21, i64 264, !6, i64 272, !21, i64 280, !6, i64 288, !21, i64 296, !22, i64 304, !22, i64 432, !12, i64 560, !12, i64 564}
!21 = !{!"long", !7, i64 0}
!22 = !{!"", !23, i64 0, !7, i64 96}
!23 = !{!"", !7, i64 0, !7, i64 32, !7, i64 64}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass