; LLVM IR from openssl/openssl :: crypto/slh_dsa (slh_hypertree)

; 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.PACKET = type { ptr, i64 }
%struct.slh_dsa_hash_ctx_st = type { ptr, ptr, ptr, ptr, i32 }
%struct.slh_dsa_key_st = type { [128 x i8], ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.slh_dsa_params_st = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct.slh_adrs_func_st = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

59:                                               ; preds = %125, %7
  %60 = load i32, ptr %20, align 4, !tbaa !11
  %61 = load i32, ptr %24, align 4, !tbaa !11
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %63, label %128

63:                                               ; preds = %59
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.slh_adrs_func_st, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %68 = load i32, ptr %20, align 4, !tbaa !11
  call void %66(ptr noundef %67, i32 noundef %68)
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.slh_adrs_func_st, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  %72 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %73 = load i64, ptr %13, align 8, !tbaa !9
  call void %71(ptr noundef %72, i64 noundef %73)
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = call ptr @WPACKET_get_curr(ptr noundef %74)
  store ptr %75, ptr %26, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load i32, ptr %14, align 4, !tbaa !11
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = call i32 @ossl_slh_xmss_sign(ptr noundef %76, ptr noundef %77, ptr noundef %78, i32 noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %86, label %85

85:                                               ; preds = %63
  store i32 0, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %129

86:                                               ; preds = %63
  %87 = load i32, ptr %20, align 4, !tbaa !11
  %88 = load i32, ptr %24, align 4, !tbaa !11
  %89 = sub i32 %88, 1
  %90 = icmp ult i32 %87, %89
  br i1 %90, label %91, label %124

91:                                               ; preds = %86
  %92 = load ptr, ptr %28, align 8, !tbaa !5
  %93 = load ptr, ptr %26, align 8, !tbaa !5
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = call ptr @WPACKET_get_curr(ptr noundef %94)
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  %97 = ptrtoint ptr %95 to i64
  %98 = ptrtoint ptr %96 to i64
  %99 = sub i64 %97, %98
  %100 = call i32 @PACKET_buf_init(ptr noundef %92, ptr noundef %93, i64 noundef %99)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %103, label %102

102:                                              ; preds = %91
  store i32 0, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %129

103:                                              ; preds = %91
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load i32, ptr %14, align 4, !tbaa !11
  %106 = load ptr, ptr %28, align 8, !tbaa !5
  %107 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %110 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %111 = call i32 @ossl_slh_xmss_pk_from_sig(ptr noundef %104, i32 noundef %105, ptr noundef %106, ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, i64 noundef 32)
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %114, label %113

113:                                              ; preds = %103
  store i32 0, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %129

114:                                              ; preds = %103
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = load i32, ptr %21, align 4, !tbaa !11
  %117 = zext i32 %116 to i64
  %118 = and i64 %115, %117
  %119 = trunc i64 %118 to i32
  store i32 %119, ptr %14, align 4, !tbaa !11
  %120 = load i32, ptr %25, align 4, !tbaa !11
  %121 = load i64, ptr %13, align 8, !tbaa !9
  %122 = zext i32 %120 to i64
  %123 = lshr i64 %121, %122
  store i64 %123, ptr %13, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %114, %86
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %20, align 4, !tbaa !11
  %127 = add i32 %126, 1
  store i32 %127, ptr %20, align 4, !tbaa !11
  br label %59, !llvm.loop !26

128:                                              ; preds = %59
  store i32 1, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %129

129:                                              ; preds = %128, %113, %102, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %130 = load i32, ptr %8, align 4
  ret i32 %130
}

; 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 ptr @WPACKET_get_curr(ptr noundef) #3

declare i32 @ossl_slh_xmss_sign(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @PACKET_buf_init(ptr noundef, ptr noundef, i64 noundef) #4

declare i32 @ossl_slh_xmss_pk_from_sig(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

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

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 = { inlinehint 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 #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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"slh_dsa_hash_ctx_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!15 = !{!16, !6, i64 168}
!16 = !{!"slh_dsa_key_st", !7, i64 0, !6, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200}
!17 = !{!16, !6, i64 160}
!18 = !{!19, !12, i64 16}
!19 = !{!"slh_dsa_params_st", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !10, i64 56}
!20 = !{!19, !12, i64 24}
!21 = !{!19, !12, i64 28}
!22 = !{!23, !6, i64 72}
!23 = !{!"slh_adrs_func_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!24 = !{!23, !6, i64 0}
!25 = !{!23, !6, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"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.PACKET = type { ptr, i64 }

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @ossl_slh_ht_sign(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca [32 x i8], align 16
  %9 = alloca [32 x i8], align 16
  %10 = alloca %struct.PACKET, align 8
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 168
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %14 = getelementptr inbounds i8, ptr %11, i64 160
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %15, i64 24
  %19 = load i32, ptr %18, align 8, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %15, i64 28
  %21 = load i32, ptr %20, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %notmask = shl nsw i32 -1, %21
  %22 = xor i32 %notmask, -1
  %23 = getelementptr inbounds i8, ptr %13, i64 72
  %24 = load ptr, ptr %23, align 8, !tbaa !19
  call void %24(ptr noundef nonnull %8) #5
  %25 = zext i32 %17 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %9, ptr align 1 %1, i64 %25, i1 false)
  %.not53 = icmp eq i32 %19, 0
  br i1 %.not53, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %26 = getelementptr inbounds i8, ptr %13, i64 8
  %27 = add i32 %19, -1
  %28 = zext nneg i32 %21 to i64
  br label %29

29:                                               ; preds = %.lr.ph, %48
  %.03746 = phi i64 [ %4, %.lr.ph ], [ %.1, %48 ]
  %.03845 = phi i32 [ %5, %.lr.ph ], [ %.139, %48 ]
  %.04044 = phi i32 [ 0, %.lr.ph ], [ %49, %48 ]
  %30 = load ptr, ptr %13, align 8, !tbaa !21
  call void %30(ptr noundef nonnull %8, i32 noundef %.04044) #5
  %31 = load ptr, ptr %26, align 8, !tbaa !22
  call void %31(ptr noundef nonnull %8, i64 noundef %.03746) #5
  %32 = call ptr @WPACKET_get_curr(ptr noundef %6) #5
  %33 = call i32 @ossl_slh_xmss_sign(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef %2, i32 noundef %.03845, ptr noundef %3, ptr noundef nonnull %8, ptr noundef %6) #5
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %._crit_edge, label %34

34:                                               ; preds = %29
  %35 = icmp ult i32 %.04044, %27
  br i1 %35, label %36, label %48

36:                                               ; preds = %34
  %37 = call ptr @WPACKET_get_curr(ptr noundef %6) #5
  %38 = ptrtoint ptr %37 to i64
  %39 = ptrtoint ptr %32 to i64
  %40 = sub i64 %38, %39
  %41 = call i32 @PACKET_buf_init(ptr noundef nonnull %10, ptr noundef %32, i64 noundef %40)
  %.not42 = icmp eq i32 %41, 0
  br i1 %.not42, label %._crit_edge, label %42

42:                                               ; preds = %36
  %43 = call i32 @ossl_slh_xmss_pk_from_sig(ptr noundef nonnull %0, i32 noundef %.03845, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %3, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef 32) #5
  %.not43 = icmp eq i32 %43, 0
  br i1 %.not43, label %._crit_edge, label %44

44:                                               ; preds = %42
  %45 = trunc i64 %.03746 to i32
  %46 = and i32 %45, %22
  %47 = lshr i64 %.03746, %28
  br label %48

48:                                               ; preds = %34, %44
  %.139 = phi i32 [ %46, %44 ], [ %.03845, %34 ]
  %.1 = phi i64 [ %47, %44 ], [ %.03746, %34 ]
  %49 = add nuw i32 %.04044, 1
  %exitcond.not = icmp eq i32 %49, %19
  br i1 %exitcond.not, label %._crit_edge, label %29, !llvm.loop !23

._crit_edge:                                      ; preds = %29, %36, %42, %48, %7
  %.0 = phi i32 [ 1, %7 ], [ 1, %48 ], [ 0, %42 ], [ 0, %36 ], [ 0, %29 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  ret i32 %.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 ptr @WPACKET_get_curr(ptr noundef) local_unnamed_addr #3

declare i32 @ossl_slh_xmss_sign(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @PACKET_buf_init(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @ossl_slh_xmss_pk_from_sig(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 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

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 = { inlinehint 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 #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, !7, i64 0}
!6 = !{!"slh_dsa_hash_ctx_st", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 168}
!12 = !{!"slh_dsa_key_st", !8, i64 0, !7, i64 128, !7, i64 136, !7, i64 144, !10, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200}
!13 = !{!12, !7, i64 160}
!14 = !{!15, !10, i64 16}
!15 = !{!"slh_dsa_params_st", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !16, i64 56}
!16 = !{!"long", !8, i64 0}
!17 = !{!15, !10, i64 24}
!18 = !{!15, !10, i64 28}
!19 = !{!20, !7, i64 72}
!20 = !{!"slh_adrs_func_st", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!21 = !{!20, !7, i64 0}
!22 = !{!20, !7, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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