; 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_PBLC = external hidden constant [2 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

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

declare void @sha256_init(ptr noundef) #2

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

declare void @sha256_finish(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

; Function Attrs: nounwind uwtable
define dso_local void @sm3_lmots_secrets_to_public_hash(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.SHA256_CTX, align 8
  %10 = alloca [4 x i8], align 1
  %11 = alloca [2 x i8], align 1
  %12 = alloca [1 x i8], align 1
  %13 = alloca [34 x [32 x i8]], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 112, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1088, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = ashr i32 %16, 24
  %18 = trunc i32 %17 to i8
  %19 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  store i8 %18, ptr %19, align 1, !tbaa !11
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = ashr i32 %20, 16
  %22 = trunc i32 %21 to i8
  %23 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 1
  store i8 %22, ptr %23, align 1, !tbaa !11
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = ashr i32 %24, 8
  %26 = trunc i32 %25 to i8
  %27 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 2
  store i8 %26, ptr %27, align 1, !tbaa !11
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = trunc i32 %28 to i8
  %30 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 3
  store i8 %29, ptr %30, align 1, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %74, %4
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 34
  br i1 %33, label %34, label %77

34:                                               ; preds = %31
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = ashr i32 %35, 8
  %37 = trunc i32 %36 to i8
  %38 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 0
  store i8 %37, ptr %38, align 1, !tbaa !11
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = trunc i32 %39 to i8
  %41 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 1
  store i8 %40, ptr %41, align 1, !tbaa !11
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %43
  %45 = getelementptr inbounds [32 x i8], ptr %44, i64 0, i64 0
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [32 x i8], ptr %46, i64 %48
  %50 = getelementptr inbounds [32 x i8], ptr %49, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 1 %50, i64 32, i1 false)
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %70, %34
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = icmp slt i32 %52, 255
  br i1 %53, label %54, label %73

54:                                               ; preds = %51
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = trunc i32 %55 to i8
  %57 = getelementptr inbounds [1 x i8], ptr %12, i64 0, i64 0
  store i8 %56, ptr %57, align 1, !tbaa !11
  call void @sha256_init(ptr noundef %9)
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sha256_update(ptr noundef %9, ptr noundef %58, i64 noundef 16)
  %59 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  call void @sha256_update(ptr noundef %9, ptr noundef %59, i64 noundef 4)
  %60 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 0
  call void @sha256_update(ptr noundef %9, ptr noundef %60, i64 noundef 2)
  %61 = getelementptr inbounds [1 x i8], ptr %12, i64 0, i64 0
  call void @sha256_update(ptr noundef %9, ptr noundef %61, i64 noundef 1)
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %63
  %65 = getelementptr inbounds [32 x i8], ptr %64, i64 0, i64 0
  call void @sha256_update(ptr noundef %9, ptr noundef %65, i64 noundef 32)
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %67
  %69 = getelementptr inbounds [32 x i8], ptr %68, i64 0, i64 0
  call void @sha256_finish(ptr noundef %9, ptr noundef %69)
  br label %70

70:                                               ; preds = %54
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %15, align 4, !tbaa !9
  br label %51, !llvm.loop !12

73:                                               ; preds = %51
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %14, align 4, !tbaa !9
  br label %31, !llvm.loop !14

77:                                               ; preds = %31
  call void @sha256_init(ptr noundef %9)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  call void @sha256_update(ptr noundef %9, ptr noundef %78, i64 noundef 16)
  %79 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  call void @sha256_update(ptr noundef %9, ptr noundef %79, i64 noundef 4)
  call void @sha256_update(ptr noundef %9, ptr noundef @D_PBLC, i64 noundef 2)
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %88, %77
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp slt i32 %81, 34
  br i1 %82, label %83, label %91

83:                                               ; preds = %80
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %85
  %87 = getelementptr inbounds [32 x i8], ptr %86, i64 0, i64 0
  call void @sha256_update(ptr noundef %9, ptr noundef %87, i64 noundef 32)
  br label %88

88:                                               ; preds = %83
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %14, align 4, !tbaa !9
  br label %80, !llvm.loop !15

91:                                               ; preds = %80
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @sha256_finish(ptr noundef %9, ptr noundef %92)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1088, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %9) #4
  ret void
}

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

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

declare void @sha256_init(ptr noundef) local_unnamed_addr #2

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

declare void @sha256_finish(ptr noundef, ptr noundef) 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

; Function Attrs: nounwind uwtable
define dso_local void @sm3_lmots_secrets_to_public_hash(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca %struct.SHA256_CTX, align 8
  %6 = alloca [4 x i8], align 1
  %7 = alloca [2 x i8], align 1
  %8 = alloca [1 x i8], align 1
  %9 = alloca [34 x [32 x i8]], align 16
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 1088, ptr nonnull %9) #4
  %10 = lshr i32 %1, 24
  %11 = trunc nuw i32 %10 to i8
  store i8 %11, ptr %6, align 1, !tbaa !5
  %12 = lshr i32 %1, 16
  %13 = trunc i32 %12 to i8
  %14 = getelementptr inbounds i8, ptr %6, i64 1
  store i8 %13, ptr %14, align 1, !tbaa !5
  %15 = lshr i32 %1, 8
  %16 = trunc i32 %15 to i8
  %17 = getelementptr inbounds i8, ptr %6, i64 2
  store i8 %16, ptr %17, align 1, !tbaa !5
  %18 = trunc i32 %1 to i8
  %19 = getelementptr inbounds i8, ptr %6, i64 3
  store i8 %18, ptr %19, align 1, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %7, i64 1
  br label %21

21:                                               ; preds = %4, %28
  %indvars.iv = phi i64 [ 0, %4 ], [ %indvars.iv.next, %28 ]
  store i8 0, ptr %7, align 1, !tbaa !5
  %22 = trunc i64 %indvars.iv to i8
  store i8 %22, ptr %20, align 1, !tbaa !5
  %23 = getelementptr inbounds [34 x [32 x i8]], ptr %9, i64 0, i64 %indvars.iv
  %24 = getelementptr inbounds [32 x i8], ptr %2, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %23, ptr noundef nonnull align 1 dereferenceable(32) %24, i64 32, i1 false)
  br label %25

25:                                               ; preds = %21, %25
  %.022 = phi i32 [ 0, %21 ], [ %27, %25 ]
  %26 = trunc nuw i32 %.022 to i8
  store i8 %26, ptr %8, align 1, !tbaa !5
  call void @sha256_init(ptr noundef nonnull %5) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef %0, i64 noundef 16) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef 4) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef 2) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %8, i64 noundef 1) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %23, i64 noundef 32) #4
  call void @sha256_finish(ptr noundef nonnull %5, ptr noundef nonnull %23) #4
  %27 = add nuw nsw i32 %.022, 1
  %exitcond.not = icmp eq i32 %27, 255
  br i1 %exitcond.not, label %28, label %25, !llvm.loop !8

28:                                               ; preds = %25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond26.not = icmp eq i64 %indvars.iv.next, 34
  br i1 %exitcond26.not, label %29, label %21, !llvm.loop !10

29:                                               ; preds = %28
  call void @sha256_init(ptr noundef nonnull %5) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef %0, i64 noundef 16) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef 4) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull @D_PBLC, i64 noundef 2) #4
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %9, i64 noundef 32) #4
  %30 = getelementptr inbounds i8, ptr %9, i64 32
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %30, i64 noundef 32) #4
  %31 = getelementptr inbounds i8, ptr %9, i64 64
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %31, i64 noundef 32) #4
  %32 = getelementptr inbounds i8, ptr %9, i64 96
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %32, i64 noundef 32) #4
  %33 = getelementptr inbounds i8, ptr %9, i64 128
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %33, i64 noundef 32) #4
  %34 = getelementptr inbounds i8, ptr %9, i64 160
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %34, i64 noundef 32) #4
  %35 = getelementptr inbounds i8, ptr %9, i64 192
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %35, i64 noundef 32) #4
  %36 = getelementptr inbounds i8, ptr %9, i64 224
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %36, i64 noundef 32) #4
  %37 = getelementptr inbounds i8, ptr %9, i64 256
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %37, i64 noundef 32) #4
  %38 = getelementptr inbounds i8, ptr %9, i64 288
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %38, i64 noundef 32) #4
  %39 = getelementptr inbounds i8, ptr %9, i64 320
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %39, i64 noundef 32) #4
  %40 = getelementptr inbounds i8, ptr %9, i64 352
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %40, i64 noundef 32) #4
  %41 = getelementptr inbounds i8, ptr %9, i64 384
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %41, i64 noundef 32) #4
  %42 = getelementptr inbounds i8, ptr %9, i64 416
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %42, i64 noundef 32) #4
  %43 = getelementptr inbounds i8, ptr %9, i64 448
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %43, i64 noundef 32) #4
  %44 = getelementptr inbounds i8, ptr %9, i64 480
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %44, i64 noundef 32) #4
  %45 = getelementptr inbounds i8, ptr %9, i64 512
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %45, i64 noundef 32) #4
  %46 = getelementptr inbounds i8, ptr %9, i64 544
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %46, i64 noundef 32) #4
  %47 = getelementptr inbounds i8, ptr %9, i64 576
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %47, i64 noundef 32) #4
  %48 = getelementptr inbounds i8, ptr %9, i64 608
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %48, i64 noundef 32) #4
  %49 = getelementptr inbounds i8, ptr %9, i64 640
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %49, i64 noundef 32) #4
  %50 = getelementptr inbounds i8, ptr %9, i64 672
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %50, i64 noundef 32) #4
  %51 = getelementptr inbounds i8, ptr %9, i64 704
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %51, i64 noundef 32) #4
  %52 = getelementptr inbounds i8, ptr %9, i64 736
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %52, i64 noundef 32) #4
  %53 = getelementptr inbounds i8, ptr %9, i64 768
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %53, i64 noundef 32) #4
  %54 = getelementptr inbounds i8, ptr %9, i64 800
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %54, i64 noundef 32) #4
  %55 = getelementptr inbounds i8, ptr %9, i64 832
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %55, i64 noundef 32) #4
  %56 = getelementptr inbounds i8, ptr %9, i64 864
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %56, i64 noundef 32) #4
  %57 = getelementptr inbounds i8, ptr %9, i64 896
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %57, i64 noundef 32) #4
  %58 = getelementptr inbounds i8, ptr %9, i64 928
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %58, i64 noundef 32) #4
  %59 = getelementptr inbounds i8, ptr %9, i64 960
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %59, i64 noundef 32) #4
  %60 = getelementptr inbounds i8, ptr %9, i64 992
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %60, i64 noundef 32) #4
  %61 = getelementptr inbounds i8, ptr %9, i64 1024
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %61, i64 noundef 32) #4
  %62 = getelementptr inbounds i8, ptr %9, i64 1056
  call void @sha256_update(ptr noundef nonnull %5, ptr noundef nonnull %62, i64 noundef 32) #4
  call void @sha256_finish(ptr noundef nonnull %5, ptr noundef %3) #4
  call void @llvm.lifetime.end.p0(i64 1088, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree 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 = !{!"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,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass