; LLVM IR from guanzhi/GmSSL :: tests (ghashtest)

; 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.anon = type { ptr, ptr, ptr, ptr }

@ghash_tests = external dso_local global [6 x %struct.anon], align 16
@stderr = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@__FUNCTION__.test_ghash = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @test_ghash() #0 {
  %1 = alloca [16 x i8], align 16
  %2 = alloca [32 x i8], align 16
  %3 = alloca [64 x i8], align 16
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %116, %0
  %12 = load i32, ptr %10, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = icmp ult i64 %13, 6
  br i1 %14, label %15, label %119

15:                                               ; preds = %11
  %16 = load i32, ptr %10, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.anon, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 16, !tbaa !9
  %21 = load i32, ptr %10, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %22
  %24 = getelementptr inbounds %struct.anon, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 16, !tbaa !9
  %26 = call i64 @strlen(ptr noundef %25) #5
  %27 = getelementptr inbounds [16 x i8], ptr %1, i64 0, i64 0
  %28 = call i32 @hex_to_bytes(ptr noundef %20, i64 noundef %26, ptr noundef %27, ptr noundef %6)
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.anon, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.anon, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = call i64 @strlen(ptr noundef %38) #5
  %40 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
  %41 = call i32 @hex_to_bytes(ptr noundef %33, i64 noundef %39, ptr noundef %40, ptr noundef %7)
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.anon, ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %45, align 16, !tbaa !13
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.anon, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 16, !tbaa !13
  %52 = call i64 @strlen(ptr noundef %51) #5
  %53 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
  %54 = call i32 @hex_to_bytes(ptr noundef %46, i64 noundef %52, ptr noundef %53, ptr noundef %8)
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %56
  %58 = getelementptr inbounds %struct.anon, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !14
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.anon, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !14
  %65 = call i64 @strlen(ptr noundef %64) #5
  %66 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %67 = call i32 @hex_to_bytes(ptr noundef %59, i64 noundef %65, ptr noundef %66, ptr noundef %9)
  %68 = getelementptr inbounds [16 x i8], ptr %1, i64 0, i64 0
  %69 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
  %70 = load i64, ptr %7, align 8, !tbaa !15
  %71 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
  %72 = load i64, ptr %8, align 8, !tbaa !15
  %73 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  call void @ghash(ptr noundef %68, ptr noundef %69, i64 noundef %70, ptr noundef %71, i64 noundef %72, ptr noundef %73)
  %74 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %75 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %76 = load i64, ptr %9, align 8, !tbaa !15
  %77 = call i32 @memcmp(ptr noundef %74, ptr noundef %75, i64 noundef %76) #5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %115

79:                                               ; preds = %15
  %80 = load ptr, ptr @stderr, align 8, !tbaa !17
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  %83 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %80, i32 noundef 0, i32 noundef 0, ptr noundef @.str.15, i32 noundef %82)
  %84 = load ptr, ptr @stderr, align 8, !tbaa !17
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %86
  %88 = getelementptr inbounds %struct.anon, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 16, !tbaa !9
  %90 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %84, i32 noundef 0, i32 noundef 2, ptr noundef @.str.16, ptr noundef %89)
  %91 = load ptr, ptr @stderr, align 8, !tbaa !17
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %93
  %95 = getelementptr inbounds %struct.anon, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !12
  %97 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %91, i32 noundef 0, i32 noundef 2, ptr noundef @.str.17, ptr noundef %96)
  %98 = load ptr, ptr @stderr, align 8, !tbaa !17
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.anon, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 16, !tbaa !13
  %104 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %98, i32 noundef 0, i32 noundef 2, ptr noundef @.str.18, ptr noundef %103)
  %105 = load ptr, ptr @stderr, align 8, !tbaa !17
  %106 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %107 = call i32 @format_bytes(ptr noundef %105, i32 noundef 0, i32 noundef 2, ptr noundef @.str.19, ptr noundef %106, i64 noundef 16)
  %108 = load ptr, ptr @stderr, align 8, !tbaa !17
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.anon, ptr %111, i32 0, i32 3
  %113 = load ptr, ptr %112, align 8, !tbaa !14
  %114 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %108, i32 noundef 0, i32 noundef 2, ptr noundef @.str.20, ptr noundef %113)
  br label %115

115:                                              ; preds = %79, %15
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %10, align 4, !tbaa !5
  br label %11, !llvm.loop !18

119:                                              ; preds = %11
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef @__FUNCTION__.test_ghash)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #4
  ret i32 1
}

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

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

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

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

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

declare i32 @format_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) #2

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

declare i32 @printf(ptr noundef, ...) #2

; 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 = { "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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
!14 = !{!10, !11, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"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.anon = type { ptr, ptr, ptr, ptr }

@ghash_tests = external dso_local local_unnamed_addr global [6 x %struct.anon], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@__FUNCTION__.test_ghash = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @test_ghash() local_unnamed_addr #0 {
  %1 = alloca [16 x i8], align 16
  %2 = alloca [32 x i8], align 16
  %3 = alloca [64 x i8], align 16
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  br label %10

10:                                               ; preds = %0, %49
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next.pre-phi, %49 ]
  %11 = getelementptr inbounds [6 x %struct.anon], ptr @ghash_tests, i64 0, i64 %indvars.iv
  %12 = load ptr, ptr %11, align 16, !tbaa !5
  %13 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #7
  %14 = call i32 @hex_to_bytes(ptr noundef %12, i64 noundef %13, ptr noundef nonnull %1, ptr noundef nonnull %6) #6
  %15 = getelementptr inbounds i8, ptr %11, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !10
  %17 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %16) #7
  %18 = call i32 @hex_to_bytes(ptr noundef %16, i64 noundef %17, ptr noundef nonnull %2, ptr noundef nonnull %7) #6
  %19 = getelementptr inbounds i8, ptr %11, i64 16
  %20 = load ptr, ptr %19, align 16, !tbaa !11
  %21 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %20) #7
  %22 = call i32 @hex_to_bytes(ptr noundef %20, i64 noundef %21, ptr noundef nonnull %3, ptr noundef nonnull %8) #6
  %23 = getelementptr inbounds i8, ptr %11, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  %25 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %24) #7
  %26 = call i32 @hex_to_bytes(ptr noundef %24, i64 noundef %25, ptr noundef nonnull %4, ptr noundef nonnull %9) #6
  %27 = load i64, ptr %7, align 8, !tbaa !13
  %28 = load i64, ptr %8, align 8, !tbaa !13
  call void @ghash(ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef %27, ptr noundef nonnull %3, i64 noundef %28, ptr noundef nonnull %5) #6
  %29 = load i64, ptr %9, align 8, !tbaa !13
  %bcmp = call i32 @bcmp(ptr nonnull %5, ptr nonnull %4, i64 %29)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %._crit_edge, label %30

._crit_edge:                                      ; preds = %10
  %.pre = add nuw nsw i64 %indvars.iv, 1
  br label %49

30:                                               ; preds = %10
  %31 = load ptr, ptr @stderr, align 8, !tbaa !15
  %32 = add nuw nsw i64 %indvars.iv, 1
  %33 = trunc nuw nsw i64 %32 to i32
  %34 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %31, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @.str.15, i32 noundef %33) #6
  %35 = load ptr, ptr @stderr, align 8, !tbaa !15
  %36 = load ptr, ptr %11, align 16, !tbaa !5
  %37 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %35, i32 noundef 0, i32 noundef 2, ptr noundef nonnull @.str.16, ptr noundef %36) #6
  %38 = load ptr, ptr @stderr, align 8, !tbaa !15
  %39 = load ptr, ptr %15, align 8, !tbaa !10
  %40 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %38, i32 noundef 0, i32 noundef 2, ptr noundef nonnull @.str.17, ptr noundef %39) #6
  %41 = load ptr, ptr @stderr, align 8, !tbaa !15
  %42 = load ptr, ptr %19, align 16, !tbaa !11
  %43 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %41, i32 noundef 0, i32 noundef 2, ptr noundef nonnull @.str.18, ptr noundef %42) #6
  %44 = load ptr, ptr @stderr, align 8, !tbaa !15
  %45 = call i32 @format_bytes(ptr noundef %44, i32 noundef 0, i32 noundef 2, ptr noundef nonnull @.str.19, ptr noundef nonnull %5, i64 noundef 16) #6
  %46 = load ptr, ptr @stderr, align 8, !tbaa !15
  %47 = load ptr, ptr %23, align 8, !tbaa !12
  %48 = call i32 (ptr, i32, i32, ptr, ...) @format_print(ptr noundef %46, i32 noundef 0, i32 noundef 2, ptr noundef nonnull @.str.20, ptr noundef %47) #6
  br label %49

49:                                               ; preds = %._crit_edge, %30
  %indvars.iv.next.pre-phi = phi i64 [ %.pre, %._crit_edge ], [ %32, %30 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next.pre-phi, 6
  br i1 %exitcond.not, label %50, label %10, !llvm.loop !16

50:                                               ; preds = %49
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, ptr noundef nonnull @__FUNCTION__.test_ghash)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  ret i32 1
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

declare i32 @format_print(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: 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 = { 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 #5 = { nofree nounwind willreturn memory(argmem: read) }
attributes #6 = { nounwind }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 24}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass