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

; 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.SM2_KEY = type { %struct.SM2_Z256_POINT, [4 x i64] }
%struct.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }
%struct.SM3_CTX = type { [8 x i32], i64, [64 x i8], 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__.cms_signer_info_verify_from_der = external hidden unnamed_addr constant [32 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

declare i32 @asn1_check(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @cms_signer_info_from_der(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

declare void @sm3_finish(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @cms_signer_info_verify_from_der(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) #3 {
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca i64, align 8
  %37 = alloca %struct.SM2_KEY, align 8
  %38 = alloca %struct.SM3_CTX, align 8
  %39 = alloca [32 x i8], align 16
  %40 = alloca i32, align 4
  store ptr %0, ptr %17, align 8, !tbaa !5
  store ptr %1, ptr %18, align 8, !tbaa !5
  store i64 %2, ptr %19, align 8, !tbaa !9
  store ptr %3, ptr %20, align 8, !tbaa !5
  store ptr %4, ptr %21, align 8, !tbaa !5
  store ptr %5, ptr %22, align 8, !tbaa !5
  store ptr %6, ptr %23, align 8, !tbaa !5
  store ptr %7, ptr %24, align 8, !tbaa !5
  store ptr %8, ptr %25, align 8, !tbaa !5
  store ptr %9, ptr %26, align 8, !tbaa !5
  store ptr %10, ptr %27, align 8, !tbaa !5
  store ptr %11, ptr %28, align 8, !tbaa !5
  store ptr %12, ptr %29, align 8, !tbaa !5
  store ptr %13, ptr %30, align 8, !tbaa !5
  store ptr %14, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 112, ptr %38) #5
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %41, i64 112, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #5
  %42 = load ptr, ptr %22, align 8, !tbaa !5
  %43 = load ptr, ptr %23, align 8, !tbaa !5
  %44 = load ptr, ptr %24, align 8, !tbaa !5
  %45 = load ptr, ptr %25, align 8, !tbaa !5
  %46 = load ptr, ptr %26, align 8, !tbaa !5
  %47 = load ptr, ptr %27, align 8, !tbaa !5
  %48 = load ptr, ptr %28, align 8, !tbaa !5
  %49 = load ptr, ptr %29, align 8, !tbaa !5
  %50 = load ptr, ptr %30, align 8, !tbaa !5
  %51 = load ptr, ptr %31, align 8, !tbaa !5
  %52 = call i32 @cms_signer_info_from_der(ptr noundef %32, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %33, ptr noundef %46, ptr noundef %47, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %48, ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %53 = icmp ne i32 %52, 1
  br i1 %53, label %72, label %54

54:                                               ; preds = %15
  %55 = load i32, ptr %32, align 4, !tbaa !13
  %56 = icmp eq i32 %55, 1
  %57 = zext i1 %56 to i32
  %58 = call i32 @asn1_check(i32 noundef %57)
  %59 = icmp ne i32 %58, 1
  br i1 %59, label %72, label %60

60:                                               ; preds = %54
  %61 = load i32, ptr %33, align 4, !tbaa !13
  %62 = icmp eq i32 %61, 13
  %63 = zext i1 %62 to i32
  %64 = call i32 @asn1_check(i32 noundef %63)
  %65 = icmp ne i32 %64, 1
  br i1 %65, label %72, label %66

66:                                               ; preds = %60
  %67 = load i32, ptr %34, align 4, !tbaa !13
  %68 = icmp eq i32 %67, 16
  %69 = zext i1 %68 to i32
  %70 = call i32 @asn1_check(i32 noundef %69)
  %71 = icmp ne i32 %70, 1
  br i1 %71, label %72, label %78

72:                                               ; preds = %66, %60, %54, %15
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 801, ptr noundef @__FUNCTION__.cms_signer_info_verify_from_der) #5
  br label %76

76:                                               ; preds = %73
  br label %77

77:                                               ; preds = %76
  store i32 -1, ptr %16, align 4
  store i32 1, ptr %40, align 4
  br label %124

78:                                               ; preds = %66
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  %80 = load i64, ptr %19, align 8, !tbaa !9
  %81 = load ptr, ptr %22, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load ptr, ptr %23, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr %24, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %25, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  %90 = load ptr, ptr %21, align 8, !tbaa !5
  %91 = call i32 @x509_certs_get_cert_by_issuer_and_serial_number(ptr noundef %79, i64 noundef %80, ptr noundef %82, i64 noundef %84, ptr noundef %86, i64 noundef %88, ptr noundef %89, ptr noundef %90)
  %92 = icmp ne i32 %91, 1
  br i1 %92, label %100, label %93

93:                                               ; preds = %78
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = call i32 @x509_cert_get_subject_public_key(ptr noundef %95, i64 noundef %97, ptr noundef %37)
  %99 = icmp ne i32 %98, 1
  br i1 %99, label %100, label %106

100:                                              ; preds = %93, %78
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 807, ptr noundef @__FUNCTION__.cms_signer_info_verify_from_der) #5
  br label %104

104:                                              ; preds = %101
  br label %105

105:                                              ; preds = %104
  store i32 -1, ptr %16, align 4
  store i32 1, ptr %40, align 4
  br label %124

106:                                              ; preds = %93
  %107 = load ptr, ptr %26, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load ptr, ptr %27, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  call void @sm3_update(ptr noundef %38, ptr noundef %108, i64 noundef %110)
  %111 = getelementptr inbounds [32 x i8], ptr %39, i64 0, i64 0
  call void @sm3_finish(ptr noundef %38, ptr noundef %111)
  %112 = getelementptr inbounds [32 x i8], ptr %39, i64 0, i64 0
  %113 = load ptr, ptr %35, align 8, !tbaa !5
  %114 = load i64, ptr %36, align 8, !tbaa !9
  %115 = call i32 @sm2_verify(ptr noundef %37, ptr noundef %112, ptr noundef %113, i64 noundef %114)
  %116 = icmp ne i32 %115, 1
  br i1 %116, label %117, label %123

117:                                              ; preds = %106
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr @stderr, align 8, !tbaa !5
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 815, ptr noundef @__FUNCTION__.cms_signer_info_verify_from_der) #5
  br label %121

121:                                              ; preds = %118
  br label %122

122:                                              ; preds = %121
  store i32 -1, ptr %16, align 4
  store i32 1, ptr %40, align 4
  br label %124

123:                                              ; preds = %106
  store i32 1, ptr %16, align 4
  store i32 1, ptr %40, align 4
  br label %124

124:                                              ; preds = %123, %122, %105, %77
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  %125 = load i32, ptr %16, align 4
  ret i32 %125
}

declare i32 @x509_certs_get_cert_by_issuer_and_serial_number(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare i32 @x509_cert_get_subject_public_key(ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @sm2_verify(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

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


; 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.SM2_KEY = type { %struct.SM2_Z256_POINT, [4 x i64] }
%struct.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }
%struct.SM3_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@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__.cms_signer_info_verify_from_der = external hidden unnamed_addr constant [32 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare i32 @asn1_check(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @cms_signer_info_from_der(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @sm3_finish(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @cms_signer_info_verify_from_der(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #3 {
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca %struct.SM2_KEY, align 8
  %22 = alloca %struct.SM3_CTX, align 8
  %23 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(112) %22, ptr noundef nonnull align 8 dereferenceable(112) %0, i64 112, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #5
  %24 = call i32 @cms_signer_info_from_der(ptr noundef nonnull %16, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef %9, ptr noundef %10, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
  %.not = icmp eq i32 %24, 1
  br i1 %.not, label %25, label %.sink.split

25:                                               ; preds = %15
  %26 = load i32, ptr %16, align 4, !tbaa !11
  %27 = icmp eq i32 %26, 1
  %28 = zext i1 %27 to i32
  %29 = call i32 @asn1_check(i32 noundef %28) #5
  %.not23 = icmp eq i32 %29, 1
  br i1 %.not23, label %30, label %.sink.split

30:                                               ; preds = %25
  %31 = load i32, ptr %17, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 13
  %33 = zext i1 %32 to i32
  %34 = call i32 @asn1_check(i32 noundef %33) #5
  %.not24 = icmp eq i32 %34, 1
  br i1 %.not24, label %35, label %.sink.split

35:                                               ; preds = %30
  %36 = load i32, ptr %18, align 4, !tbaa !11
  %37 = icmp eq i32 %36, 16
  %38 = zext i1 %37 to i32
  %39 = call i32 @asn1_check(i32 noundef %38) #5
  %.not25 = icmp eq i32 %39, 1
  br i1 %.not25, label %40, label %.sink.split

40:                                               ; preds = %35
  %41 = load ptr, ptr %5, align 8, !tbaa !13
  %42 = load i64, ptr %6, align 8, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !13
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = call i32 @x509_certs_get_cert_by_issuer_and_serial_number(ptr noundef %1, i64 noundef %2, ptr noundef %41, i64 noundef %42, ptr noundef %43, i64 noundef %44, ptr noundef %3, ptr noundef %4) #5
  %.not26 = icmp eq i32 %45, 1
  br i1 %.not26, label %46, label %.sink.split

46:                                               ; preds = %40
  %47 = load ptr, ptr %3, align 8, !tbaa !13
  %48 = load i64, ptr %4, align 8, !tbaa !9
  %49 = call i32 @x509_cert_get_subject_public_key(ptr noundef %47, i64 noundef %48, ptr noundef nonnull %21) #5
  %.not27 = icmp eq i32 %49, 1
  br i1 %.not27, label %50, label %.sink.split

50:                                               ; preds = %46
  %51 = load ptr, ptr %9, align 8, !tbaa !13
  %52 = load i64, ptr %10, align 8, !tbaa !9
  call void @sm3_update(ptr noundef nonnull %22, ptr noundef %51, i64 noundef %52) #5
  call void @sm3_finish(ptr noundef nonnull %22, ptr noundef nonnull %23) #5
  %53 = load ptr, ptr %19, align 8, !tbaa !13
  %54 = load i64, ptr %20, align 8, !tbaa !9
  %55 = call i32 @sm2_verify(ptr noundef nonnull %21, ptr noundef nonnull %23, ptr noundef %53, i64 noundef %54) #5
  %.not28 = icmp eq i32 %55, 1
  br i1 %.not28, label %58, label %.sink.split

.sink.split:                                      ; preds = %50, %46, %40, %35, %30, %25, %15
  %.sink29 = phi i32 [ 801, %15 ], [ 801, %25 ], [ 801, %30 ], [ 801, %35 ], [ 807, %40 ], [ 807, %46 ], [ 815, %50 ]
  %56 = load ptr, ptr @stderr, align 8, !tbaa !13
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef %.sink29, ptr noundef nonnull @__FUNCTION__.cms_signer_info_verify_from_der) #6
  br label %58

58:                                               ; preds = %.sink.split, %50
  %.0 = phi i32 [ 1, %50 ], [ -1, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  ret i32 %.0
}

declare i32 @x509_certs_get_cert_by_issuer_and_serial_number(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @x509_cert_get_subject_public_key(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @sm2_verify(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { cold 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 8, !9, i64 40, i64 64, !6, i64 104, i64 8, !9}
!6 = !{!7, !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, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass