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

; 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.SM9_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sm9_z256_get_booth(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_dbl(ptr noundef, ptr noundef) #2

; 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) #3

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_add(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_sub(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_dbl_x5(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @sm9_z256_point_mul(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca [16 x %struct.SM9_Z256_POINT], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 5, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1536, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %13 = load i64, ptr %7, align 8, !tbaa !9
  %14 = add i64 256, %13
  %15 = sub i64 %14, 1
  %16 = load i64, ptr %7, align 8, !tbaa !9
  %17 = udiv i64 %15, %16
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %19 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 0
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 8 %20, i64 96, i1 false), !tbaa.struct !13
  %21 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 1
  %22 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 0
  call void @sm9_z256_point_dbl(ptr noundef %21, ptr noundef %22)
  %23 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 3
  %24 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 1
  call void @sm9_z256_point_dbl(ptr noundef %23, ptr noundef %24)
  %25 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 7
  %26 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 3
  call void @sm9_z256_point_dbl(ptr noundef %25, ptr noundef %26)
  %27 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 15
  %28 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 7
  call void @sm9_z256_point_dbl(ptr noundef %27, ptr noundef %28)
  %29 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 2
  %30 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 1
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sm9_z256_point_add(ptr noundef %29, ptr noundef %30, ptr noundef %31)
  %32 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 5
  %33 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 2
  call void @sm9_z256_point_dbl(ptr noundef %32, ptr noundef %33)
  %34 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 11
  %35 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 5
  call void @sm9_z256_point_dbl(ptr noundef %34, ptr noundef %35)
  %36 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 4
  %37 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 2
  %38 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 1
  call void @sm9_z256_point_add(ptr noundef %36, ptr noundef %37, ptr noundef %38)
  %39 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 9
  %40 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 4
  call void @sm9_z256_point_dbl(ptr noundef %39, ptr noundef %40)
  %41 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 6
  %42 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 3
  %43 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 2
  call void @sm9_z256_point_add(ptr noundef %41, ptr noundef %42, ptr noundef %43)
  %44 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 13
  %45 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 6
  call void @sm9_z256_point_dbl(ptr noundef %44, ptr noundef %45)
  %46 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 8
  %47 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 3
  %48 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 4
  call void @sm9_z256_point_add(ptr noundef %46, ptr noundef %47, ptr noundef %48)
  %49 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 10
  %50 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 5
  %51 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 4
  call void @sm9_z256_point_add(ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %52 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 12
  %53 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 6
  %54 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 5
  call void @sm9_z256_point_add(ptr noundef %52, ptr noundef %53, ptr noundef %54)
  %55 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 14
  %56 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 7
  %57 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 6
  call void @sm9_z256_point_add(ptr noundef %55, ptr noundef %56, ptr noundef %57)
  %58 = load i32, ptr %10, align 4, !tbaa !11
  %59 = sub nsw i32 %58, 1
  store i32 %59, ptr %11, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %106, %3
  %61 = load i32, ptr %11, align 4, !tbaa !11
  %62 = icmp sge i32 %61, 0
  br i1 %62, label %63, label %109

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !11
  %67 = call i32 @sm9_z256_get_booth(ptr noundef %64, i64 noundef %65, i32 noundef %66)
  store i32 %67, ptr %12, align 4, !tbaa !11
  %68 = load i32, ptr %9, align 4, !tbaa !11
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %80

70:                                               ; preds = %63
  %71 = load i32, ptr %12, align 4, !tbaa !11
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %79

73:                                               ; preds = %70
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i32, ptr %12, align 4, !tbaa !11
  %76 = sub nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 16 %78, i64 96, i1 false), !tbaa.struct !13
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %73, %70
  br label %105

80:                                               ; preds = %63
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sm9_z256_point_dbl_x5(ptr noundef %81, ptr noundef %82)
  %83 = load i32, ptr %12, align 4, !tbaa !11
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %85, label %92

85:                                               ; preds = %80
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load i32, ptr %12, align 4, !tbaa !11
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 %90
  call void @sm9_z256_point_add(ptr noundef %86, ptr noundef %87, ptr noundef %91)
  br label %104

92:                                               ; preds = %80
  %93 = load i32, ptr %12, align 4, !tbaa !11
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %95, label %103

95:                                               ; preds = %92
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !11
  %99 = sub nsw i32 0, %98
  %100 = sub nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %8, i64 0, i64 %101
  call void @sm9_z256_point_sub(ptr noundef %96, ptr noundef %97, ptr noundef %102)
  br label %103

103:                                              ; preds = %95, %92
  br label %104

104:                                              ; preds = %103, %85
  br label %105

105:                                              ; preds = %104, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %11, align 4, !tbaa !11
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr %11, align 4, !tbaa !11
  br label %60, !llvm.loop !15

109:                                              ; preds = %60
  %110 = load i32, ptr %9, align 4, !tbaa !11
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %113, i8 0, i64 96, i1 false)
  br label %114

114:                                              ; preds = %112, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1536, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 32, !14, i64 32, i64 32, !14, i64 64, i64 32, !14}
!14 = !{!7, !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"

%struct.SM9_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sm9_z256_get_booth(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_dbl(ptr noundef, ptr noundef) local_unnamed_addr #2

; 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) #3

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_sub(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @sm9_z256_point_dbl_x5(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @sm9_z256_point_mul(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [16 x %struct.SM9_Z256_POINT], align 16
  call void @llvm.lifetime.start.p0(i64 1536, ptr nonnull %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(96) %2, i64 96, i1 false), !tbaa.struct !5
  %5 = getelementptr inbounds i8, ptr %4, i64 96
  call void @sm9_z256_point_dbl(ptr noundef nonnull %5, ptr noundef nonnull %4)
  %6 = getelementptr inbounds i8, ptr %4, i64 288
  call void @sm9_z256_point_dbl(ptr noundef nonnull %6, ptr noundef nonnull %5)
  %7 = getelementptr inbounds i8, ptr %4, i64 672
  call void @sm9_z256_point_dbl(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %8 = getelementptr inbounds i8, ptr %4, i64 1440
  call void @sm9_z256_point_dbl(ptr noundef nonnull %8, ptr noundef nonnull %7)
  %9 = getelementptr inbounds i8, ptr %4, i64 192
  call void @sm9_z256_point_add(ptr noundef nonnull %9, ptr noundef nonnull %5, ptr noundef %2)
  %10 = getelementptr inbounds i8, ptr %4, i64 480
  call void @sm9_z256_point_dbl(ptr noundef nonnull %10, ptr noundef nonnull %9)
  %11 = getelementptr inbounds i8, ptr %4, i64 1056
  call void @sm9_z256_point_dbl(ptr noundef nonnull %11, ptr noundef nonnull %10)
  %12 = getelementptr inbounds i8, ptr %4, i64 384
  call void @sm9_z256_point_add(ptr noundef nonnull %12, ptr noundef nonnull %9, ptr noundef nonnull %5)
  %13 = getelementptr inbounds i8, ptr %4, i64 864
  call void @sm9_z256_point_dbl(ptr noundef nonnull %13, ptr noundef nonnull %12)
  %14 = getelementptr inbounds i8, ptr %4, i64 576
  call void @sm9_z256_point_add(ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull %9)
  %15 = getelementptr inbounds i8, ptr %4, i64 1248
  call void @sm9_z256_point_dbl(ptr noundef nonnull %15, ptr noundef nonnull %14)
  %16 = getelementptr inbounds i8, ptr %4, i64 768
  call void @sm9_z256_point_add(ptr noundef nonnull %16, ptr noundef nonnull %6, ptr noundef nonnull %12)
  %17 = getelementptr inbounds i8, ptr %4, i64 960
  call void @sm9_z256_point_add(ptr noundef nonnull %17, ptr noundef nonnull %10, ptr noundef nonnull %12)
  %18 = getelementptr inbounds i8, ptr %4, i64 1152
  call void @sm9_z256_point_add(ptr noundef nonnull %18, ptr noundef nonnull %14, ptr noundef nonnull %10)
  %19 = getelementptr inbounds i8, ptr %4, i64 1344
  call void @sm9_z256_point_add(ptr noundef nonnull %19, ptr noundef nonnull %7, ptr noundef nonnull %14)
  br label %20

20:                                               ; preds = %.backedge, %3
  %.031 = phi i32 [ 1, %3 ], [ %.031.be, %.backedge ]
  %.02530 = phi i32 [ 51, %3 ], [ %.02530.be, %.backedge ]
  %21 = call i32 @sm9_z256_get_booth(ptr noundef %1, i64 noundef 5, i32 noundef %.02530)
  %.not28 = icmp eq i32 %.031, 0
  br i1 %.not28, label %27, label %22

22:                                               ; preds = %20
  %.not29 = icmp eq i32 %21, 0
  br i1 %.not29, label %.thread, label %23

23:                                               ; preds = %22
  %24 = add nsw i32 %21, -1
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %4, i64 0, i64 %25
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 16 dereferenceable(96) %26, i64 96, i1 false), !tbaa.struct !5
  br label %39

27:                                               ; preds = %20
  call void @sm9_z256_point_dbl_x5(ptr noundef %0, ptr noundef %0)
  %28 = icmp sgt i32 %21, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %27
  %30 = add nsw i32 %21, -1
  %31 = zext nneg i32 %30 to i64
  %32 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %4, i64 0, i64 %31
  call void @sm9_z256_point_add(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %32)
  br label %39

33:                                               ; preds = %27
  %34 = icmp slt i32 %21, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %33
  %36 = xor i32 %21, -1
  %37 = zext nneg i32 %36 to i64
  %38 = getelementptr inbounds [16 x %struct.SM9_Z256_POINT], ptr %4, i64 0, i64 %37
  call void @sm9_z256_point_sub(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %38)
  br label %39

39:                                               ; preds = %29, %35, %33, %23
  %.not32 = icmp eq i32 %.02530, 0
  br i1 %.not32, label %.loopexit, label %.backedge

.backedge:                                        ; preds = %39, %.thread
  %.031.be = phi i32 [ 0, %39 ], [ 1, %.thread ]
  %.02530.be = add nsw i32 %.02530, -1
  br label %20, !llvm.loop !9

.thread:                                          ; preds = %22
  %.not3235 = icmp eq i32 %.02530, 0
  br i1 %.not3235, label %40, label %.backedge

40:                                               ; preds = %.thread
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %0, i8 0, i64 96, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %39, %40
  call void @llvm.lifetime.end.p0(i64 1536, ptr nonnull %4) #4
  ret void
}

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


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