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

; 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.SHA256_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@D_LEAF = external hidden constant [2 x i8], align 1
@D_INTR = external hidden constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sm3_lmots_derive_secrets(ptr noundef, ptr noundef, i32 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @sha256_init(ptr noundef) #3

declare void @sha256_update(ptr noundef, ptr noundef, i64 noundef) #3

declare void @sha256_finish(ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @sm3_lmots_secrets_to_public_hash(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @sm3_lms_derive_merkle_root(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %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 i32, align 4
  %13 = alloca %struct.SHA256_CTX, align 8
  %14 = alloca [25 x [32 x i8]], align 16
  %15 = alloca i32, align 4
  %16 = alloca [34 x [32 x i8]], align 16
  %17 = alloca [4 x i8], align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = shl i32 1, %18
  store i32 %19, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 112, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 800, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1088, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %111, %4
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %114

24:                                               ; preds = %20
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = getelementptr inbounds [34 x [32 x i8]], ptr %16, i64 0, i64 0
  call void @sm3_lmots_derive_secrets(ptr noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %28)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = getelementptr inbounds [34 x [32 x i8]], ptr %16, i64 0, i64 0
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 %33
  %35 = getelementptr inbounds [32 x i8], ptr %34, i64 0, i64 0
  call void @sm3_lmots_secrets_to_public_hash(ptr noundef %29, i32 noundef %30, ptr noundef %31, ptr noundef %35)
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = add nsw i32 %36, %37
  store i32 %38, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = ashr i32 %39, 24
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  store i8 %41, ptr %42, align 1, !tbaa !11
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = ashr i32 %43, 16
  %45 = trunc i32 %44 to i8
  %46 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 1
  store i8 %45, ptr %46, align 1, !tbaa !11
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = ashr i32 %47, 8
  %49 = trunc i32 %48 to i8
  %50 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 2
  store i8 %49, ptr %50, align 1, !tbaa !11
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = trunc i32 %51 to i8
  %53 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 3
  store i8 %52, ptr %53, align 1, !tbaa !11
  call void @sha256_init(ptr noundef %13)
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sha256_update(ptr noundef %13, ptr noundef %54, i64 noundef 16)
  %55 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  call void @sha256_update(ptr noundef %13, ptr noundef %55, i64 noundef 4)
  call void @sha256_update(ptr noundef %13, ptr noundef @D_LEAF, i64 noundef 2)
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 %57
  %59 = getelementptr inbounds [32 x i8], ptr %58, i64 0, i64 0
  call void @sha256_update(ptr noundef %13, ptr noundef %59, i64 noundef 32)
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 %61
  %63 = getelementptr inbounds [32 x i8], ptr %62, i64 0, i64 0
  call void @sha256_finish(ptr noundef %13, ptr noundef %63)
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %66, ptr %12, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %71, %24
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = and i32 %68, 1
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %110

71:                                               ; preds = %67
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = sdiv i32 %72, 2
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = ashr i32 %74, 24
  %76 = trunc i32 %75 to i8
  %77 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  store i8 %76, ptr %77, align 1, !tbaa !11
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = ashr i32 %78, 16
  %80 = trunc i32 %79 to i8
  %81 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 1
  store i8 %80, ptr %81, align 1, !tbaa !11
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = ashr i32 %82, 8
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 2
  store i8 %84, ptr %85, align 1, !tbaa !11
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = trunc i32 %86 to i8
  %88 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 3
  store i8 %87, ptr %88, align 1, !tbaa !11
  call void @sha256_init(ptr noundef %13)
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sha256_update(ptr noundef %13, ptr noundef %89, i64 noundef 16)
  %90 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  call void @sha256_update(ptr noundef %13, ptr noundef %90, i64 noundef 4)
  call void @sha256_update(ptr noundef %13, ptr noundef @D_INTR, i64 noundef 2)
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 2
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 %93
  %95 = getelementptr inbounds [32 x i8], ptr %94, i64 0, i64 0
  call void @sha256_update(ptr noundef %13, ptr noundef %95, i64 noundef 32)
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 %98
  %100 = getelementptr inbounds [32 x i8], ptr %99, i64 0, i64 0
  call void @sha256_update(ptr noundef %13, ptr noundef %100, i64 noundef 32)
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 2
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 %103
  %105 = getelementptr inbounds [32 x i8], ptr %104, i64 0, i64 0
  call void @sha256_finish(ptr noundef %13, ptr noundef %105)
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = add nsw i32 %106, -1
  store i32 %107, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = ashr i32 %108, 1
  store i32 %109, ptr %12, align 4, !tbaa !9
  br label %67, !llvm.loop !12

110:                                              ; preds = %67
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !9
  br label %20, !llvm.loop !14

114:                                              ; preds = %20
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds [25 x [32 x i8]], ptr %14, i64 0, i64 0
  %117 = getelementptr inbounds [32 x i8], ptr %116, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %115, ptr align 16 %117, i64 32, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1088, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 800, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  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
  ret void
}

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


; 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.SHA256_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@D_LEAF = external hidden constant [2 x i8], align 1
@D_INTR = external hidden constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sm3_lmots_derive_secrets(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

declare void @sha256_init(ptr noundef) local_unnamed_addr #3

declare void @sha256_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @sha256_finish(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @sm3_lmots_secrets_to_public_hash(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @sm3_lms_derive_merkle_root(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %5 = alloca %struct.SHA256_CTX, align 8
  %6 = alloca [25 x [32 x i8]], align 16
  %7 = alloca [34 x [32 x i8]], align 16
  %8 = alloca [4 x i8], align 1
  %9 = shl nuw i32 1, %2
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1088, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %.not46 = icmp eq i32 %2, 31
  br i1 %.not46, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %4
  %10 = getelementptr inbounds i8, ptr %8, i64 1
  %11 = getelementptr inbounds i8, ptr %8, i64 2
  %12 = getelementptr inbounds i8, ptr %8, i64 3
  %smax = tail call i32 @llvm.smax.i32(i32 %9, i32 1)
  br label %13

13:                                               ; preds = %.lr.ph44, %._crit_edge
  %.042 = phi i32 [ 0, %.lr.ph44 ], [ %.1.lcssa, %._crit_edge ]
  %.03441 = phi i32 [ 0, %.lr.ph44 ], [ %41, %._crit_edge ]
  call void @sm3_lmots_derive_secrets(ptr noundef %0, ptr noundef %1, i32 noundef %.03441, ptr noundef nonnull %7)
  %14 = sext i32 %.042 to i64
  %15 = getelementptr inbounds [25 x [32 x i8]], ptr %6, i64 0, i64 %14
  call void @sm3_lmots_secrets_to_public_hash(ptr noundef %1, i32 noundef %.03441, ptr noundef nonnull %7, ptr noundef nonnull %15)
  %16 = add nuw nsw i32 %.03441, %9
  %17 = lshr i32 %16, 24
  %18 = trunc nuw i32 %17 to i8
  store i8 %18, ptr %8, align 1, !tbaa !5
  %19 = lshr i32 %16, 16
  %20 = trunc i32 %19 to i8
  store i8 %20, ptr %10, align 1, !tbaa !5
  %21 = lshr i32 %16, 8
  %22 = trunc i32 %21 to i8
  store i8 %22, ptr %11, align 1, !tbaa !5
  %23 = trunc i32 %16 to i8
  store i8 %23, ptr %12, align 1, !tbaa !5
  call void @sha256_init(ptr noundef nonnull %5) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef %1, i64 noundef 16) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %8, i64 noundef 4) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull @D_LEAF, i64 noundef 2) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %15, i64 noundef 32) #5
  call void @sha256_finish(ptr noundef nonnull %5, ptr noundef nonnull %15) #5
  %24 = add i32 %.042, 1
  %25 = and i32 %.03441, 1
  %.not37 = icmp eq i32 %25, 0
  br i1 %.not37, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %13
  %26 = sext i32 %24 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %26, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.03339 = phi i32 [ %.03441, %.lr.ph.preheader ], [ %38, %.lr.ph ]
  %.03538 = phi i32 [ %16, %.lr.ph.preheader ], [ %27, %.lr.ph ]
  %27 = sdiv i32 %.03538, 2
  %28 = lshr i32 %27, 24
  %29 = trunc nuw i32 %28 to i8
  store i8 %29, ptr %8, align 1, !tbaa !5
  %30 = lshr i32 %27, 16
  %31 = trunc i32 %30 to i8
  store i8 %31, ptr %10, align 1, !tbaa !5
  %32 = lshr i32 %27, 8
  %33 = trunc i32 %32 to i8
  store i8 %33, ptr %11, align 1, !tbaa !5
  %34 = trunc i32 %27 to i8
  store i8 %34, ptr %12, align 1, !tbaa !5
  call void @sha256_init(ptr noundef nonnull %5) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef %1, i64 noundef 16) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %8, i64 noundef 4) #5
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull @D_INTR, i64 noundef 2) #5
  %35 = add nsw i64 %indvars.iv, -2
  %36 = getelementptr inbounds [25 x [32 x i8]], ptr %6, i64 0, i64 %35
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %36, i64 noundef 32) #5
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %37 = getelementptr inbounds [25 x [32 x i8]], ptr %6, i64 0, i64 %indvars.iv.next
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %37, i64 noundef 32) #5
  call void @sha256_finish(ptr noundef nonnull %5, ptr noundef nonnull %36) #5
  %38 = lshr i32 %.03339, 1
  %39 = and i32 %.03339, 2
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !8

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %40 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %13
  %.1.lcssa = phi i32 [ %24, %13 ], [ %40, %._crit_edge.loopexit ]
  %41 = add nuw nsw i32 %.03441, 1
  %exitcond.not = icmp eq i32 %41, %smax
  br i1 %exitcond.not, label %._crit_edge45, label %13, !llvm.loop !10

._crit_edge45:                                    ; preds = %._crit_edge, %4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(32) %3, ptr noundef nonnull align 16 dereferenceable(32) %6, i64 32, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 1088, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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


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