; 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.SM3_LMS_SIGNATURE = type { [4 x i8], [4 x i8], %struct.anon, [25 x [32 x i8]] }
%struct.anon = type { [4 x i8], [34 x [32 x i8]], [32 x i8] }
%struct.SM3_LMS_PUBLIC_KEY = type { [4 x i8], [4 x i8], [16 x i8], [32 x i8] }

@stderr = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [61 x i8], align 1
@__FUNCTION__.sm3_lms_do_verify = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sm3_lms_type_to_height(i32 noundef, ptr noundef) #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.start.p0(i64 immarg, ptr nocapture) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sm3_lms_do_verify(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [32 x i8], align 16
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 0
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = zext i8 %18 to i32
  %20 = shl i32 %19, 24
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 1
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = shl i32 %25, 16
  %27 = or i32 %20, %26
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds [4 x i8], ptr %29, i64 0, i64 2
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = zext i8 %31 to i32
  %33 = shl i32 %32, 8
  %34 = or i32 %27, %33
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds [4 x i8], ptr %36, i64 0, i64 3
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = zext i8 %38 to i32
  %40 = or i32 %34, %39
  store i32 %40, ptr %8, align 4, !tbaa !10
  %41 = load i32, ptr %8, align 4, !tbaa !10
  %42 = call i32 @sm3_lms_type_to_height(i32 noundef %41, ptr noundef %10)
  %43 = icmp ne i32 %42, 1
  br i1 %43, label %44, label %50

44:                                               ; preds = %3
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 809, ptr noundef @__FUNCTION__.sm3_lms_do_verify) #4
  br label %48

48:                                               ; preds = %45
  br label %49

49:                                               ; preds = %48
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %160

50:                                               ; preds = %3
  %51 = load i32, ptr %10, align 4, !tbaa !10
  %52 = shl i32 1, %51
  store i32 %52, ptr %11, align 4, !tbaa !10
  %53 = load i32, ptr %8, align 4, !tbaa !10
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.SM3_LMS_PUBLIC_KEY, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds [4 x i8], ptr %55, i64 0, i64 0
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %58 = zext i8 %57 to i32
  %59 = shl i32 %58, 24
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SM3_LMS_PUBLIC_KEY, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds [4 x i8], ptr %61, i64 0, i64 1
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %64 = zext i8 %63 to i32
  %65 = shl i32 %64, 16
  %66 = or i32 %59, %65
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.SM3_LMS_PUBLIC_KEY, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds [4 x i8], ptr %68, i64 0, i64 2
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = zext i8 %70 to i32
  %72 = shl i32 %71, 8
  %73 = or i32 %66, %72
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.SM3_LMS_PUBLIC_KEY, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds [4 x i8], ptr %75, i64 0, i64 3
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = zext i8 %77 to i32
  %79 = or i32 %73, %78
  %80 = icmp ne i32 %53, %79
  br i1 %80, label %81, label %87

81:                                               ; preds = %50
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 815, ptr noundef @__FUNCTION__.sm3_lms_do_verify) #4
  br label %85

85:                                               ; preds = %82
  br label %86

86:                                               ; preds = %85
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %160

87:                                               ; preds = %50
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %88, i32 0, i32 1
  %90 = getelementptr inbounds [4 x i8], ptr %89, i64 0, i64 0
  %91 = load i8, ptr %90, align 1, !tbaa !9
  %92 = zext i8 %91 to i32
  %93 = shl i32 %92, 24
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %94, i32 0, i32 1
  %96 = getelementptr inbounds [4 x i8], ptr %95, i64 0, i64 1
  %97 = load i8, ptr %96, align 1, !tbaa !9
  %98 = zext i8 %97 to i32
  %99 = shl i32 %98, 16
  %100 = or i32 %93, %99
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds [4 x i8], ptr %102, i64 0, i64 2
  %104 = load i8, ptr %103, align 1, !tbaa !9
  %105 = zext i8 %104 to i32
  %106 = shl i32 %105, 8
  %107 = or i32 %100, %106
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds [4 x i8], ptr %109, i64 0, i64 3
  %111 = load i8, ptr %110, align 1, !tbaa !9
  %112 = zext i8 %111 to i32
  %113 = or i32 %107, %112
  store i32 %113, ptr %12, align 4, !tbaa !10
  %114 = load i32, ptr %12, align 4, !tbaa !10
  %115 = load i32, ptr %11, align 4, !tbaa !10
  %116 = icmp sge i32 %114, %115
  br i1 %116, label %117, label %123

117:                                              ; preds = %87
  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.14, ptr noundef @.str.15, i32 noundef 821, ptr noundef @__FUNCTION__.sm3_lms_do_verify) #4
  br label %121

121:                                              ; preds = %118
  br label %122

122:                                              ; preds = %121
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %160

123:                                              ; preds = %87
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.SM3_LMS_PUBLIC_KEY, ptr %124, i32 0, i32 2
  %126 = getelementptr inbounds [16 x i8], ptr %125, i64 0, i64 0
  %127 = load i32, ptr %10, align 4, !tbaa !10
  %128 = load i32, ptr %12, align 4, !tbaa !10
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %129, i32 0, i32 2
  %131 = getelementptr inbounds %struct.anon, ptr %130, i32 0, i32 1
  %132 = getelementptr inbounds [34 x [32 x i8]], ptr %131, i64 0, i64 0
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.SM3_LMS_SIGNATURE, ptr %133, i32 0, i32 3
  %135 = getelementptr inbounds [25 x [32 x i8]], ptr %134, i64 0, i64 0
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %138 = call i32 @sm3_lms_signature_to_merkle_root(ptr noundef %126, i32 noundef %127, i32 noundef %128, ptr noundef %132, ptr noundef %135, ptr noundef %136, ptr noundef %137)
  %139 = icmp ne i32 %138, 1
  br i1 %139, label %140, label %146

140:                                              ; preds = %123
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 826, ptr noundef @__FUNCTION__.sm3_lms_do_verify) #4
  br label %144

144:                                              ; preds = %141
  br label %145

145:                                              ; preds = %144
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %160

146:                                              ; preds = %123
  %147 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.SM3_LMS_PUBLIC_KEY, ptr %148, i32 0, i32 3
  %150 = getelementptr inbounds [32 x i8], ptr %149, i64 0, i64 0
  %151 = call i32 @memcmp(ptr noundef %147, ptr noundef %150, i64 noundef 32) #5
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %146
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %160

154:                                              ; preds = %146
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr @stderr, align 8, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 833, ptr noundef @__FUNCTION__.sm3_lms_do_verify) #4
  br label %158

158:                                              ; preds = %155
  br label %159

159:                                              ; preds = %158
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %160

160:                                              ; preds = %159, %153, %145, %122, %86, %49
  call void @llvm.lifetime.end.p0(i64 32, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %161 = load i32, ptr %4, align 4
  ret i32 %161
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #3

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(read) "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 }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [61 x i8], align 1
@__FUNCTION__.sm3_lms_do_verify = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sm3_lms_type_to_height(i32 noundef, ptr noundef) local_unnamed_addr #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.start.p0(i64 immarg, ptr nocapture) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @sm3_lms_do_verify(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  %6 = load i8, ptr %2, align 1, !tbaa !5
  %7 = zext i8 %6 to i32
  %8 = shl nuw i32 %7, 24
  %9 = getelementptr inbounds i8, ptr %2, i64 1
  %10 = load i8, ptr %9, align 1, !tbaa !5
  %11 = zext i8 %10 to i32
  %12 = shl nuw nsw i32 %11, 16
  %13 = or disjoint i32 %12, %8
  %14 = getelementptr inbounds i8, ptr %2, i64 2
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = zext i8 %15 to i32
  %17 = shl nuw nsw i32 %16, 8
  %18 = or disjoint i32 %13, %17
  %19 = getelementptr inbounds i8, ptr %2, i64 3
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = zext i8 %20 to i32
  %22 = or disjoint i32 %18, %21
  %23 = call i32 @sm3_lms_type_to_height(i32 noundef %22, ptr noundef nonnull %4)
  %.not = icmp eq i32 %23, 1
  br i1 %.not, label %24, label %.sink.split

24:                                               ; preds = %3
  %25 = load i32, ptr %4, align 4, !tbaa !8
  %26 = load i8, ptr %0, align 1, !tbaa !5
  %27 = zext i8 %26 to i32
  %28 = shl nuw i32 %27, 24
  %29 = getelementptr inbounds i8, ptr %0, i64 1
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = zext i8 %30 to i32
  %32 = shl nuw nsw i32 %31, 16
  %33 = or disjoint i32 %32, %28
  %34 = getelementptr inbounds i8, ptr %0, i64 2
  %35 = load i8, ptr %34, align 1, !tbaa !5
  %36 = zext i8 %35 to i32
  %37 = shl nuw nsw i32 %36, 8
  %38 = or disjoint i32 %33, %37
  %39 = getelementptr inbounds i8, ptr %0, i64 3
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = zext i8 %40 to i32
  %42 = or disjoint i32 %38, %41
  %.not23 = icmp eq i32 %22, %42
  br i1 %.not23, label %43, label %.sink.split

43:                                               ; preds = %24
  %44 = shl nuw i32 1, %25
  %45 = getelementptr inbounds i8, ptr %2, i64 4
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = zext i8 %46 to i32
  %48 = shl nuw i32 %47, 24
  %49 = getelementptr inbounds i8, ptr %2, i64 5
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %51 = zext i8 %50 to i32
  %52 = shl nuw nsw i32 %51, 16
  %53 = or disjoint i32 %52, %48
  %54 = getelementptr inbounds i8, ptr %2, i64 6
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = zext i8 %55 to i32
  %57 = shl nuw nsw i32 %56, 8
  %58 = or disjoint i32 %53, %57
  %59 = getelementptr inbounds i8, ptr %2, i64 7
  %60 = load i8, ptr %59, align 1, !tbaa !5
  %61 = zext i8 %60 to i32
  %62 = or disjoint i32 %58, %61
  %.not24 = icmp slt i32 %62, %44
  br i1 %.not24, label %63, label %.sink.split

63:                                               ; preds = %43
  %64 = getelementptr inbounds i8, ptr %0, i64 8
  %65 = getelementptr inbounds i8, ptr %2, i64 12
  %66 = getelementptr inbounds i8, ptr %2, i64 1132
  %67 = call i32 @sm3_lms_signature_to_merkle_root(ptr noundef nonnull %64, i32 noundef %25, i32 noundef %62, ptr noundef nonnull %65, ptr noundef nonnull %66, ptr noundef %1, ptr noundef nonnull %5)
  %.not25 = icmp eq i32 %67, 1
  br i1 %.not25, label %68, label %.sink.split

68:                                               ; preds = %63
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(32) %5, ptr noundef nonnull dereferenceable(32) %69, i64 32)
  %70 = icmp eq i32 %bcmp, 0
  br i1 %70, label %73, label %.sink.split

.sink.split:                                      ; preds = %68, %63, %43, %24, %3
  %.sink26 = phi i32 [ 809, %3 ], [ 815, %24 ], [ 821, %43 ], [ 826, %63 ], [ 833, %68 ]
  %.0.ph = phi i32 [ -1, %3 ], [ -1, %24 ], [ -1, %43 ], [ -1, %63 ], [ 0, %68 ]
  %71 = load ptr, ptr @stderr, align 8, !tbaa !10
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15, i32 noundef %.sink26, ptr noundef nonnull @__FUNCTION__.sm3_lms_do_verify) #5
  br label %73

73:                                               ; preds = %.sink.split, %68
  %.0 = phi i32 [ 1, %68 ], [ %.0.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  ret i32 %.0
}

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #3

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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind willreturn memory(argmem: read) }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}


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