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

; 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.AES_KEY = type { [60 x i32], i64 }

@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@stdout = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.test_aes_ctr = external hidden unnamed_addr constant [13 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

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

declare i32 @aes_set_encrypt_key(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 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 i32 @test_aes_ctr() #3 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.AES_KEY, align 8
  %7 = alloca [32 x i8], align 16
  %8 = alloca [16 x i8], align 16
  %9 = alloca [64 x i8], align 16
  %10 = alloca [64 x i8], align 16
  %11 = alloca [64 x i8], align 16
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store ptr @.str.8, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store ptr @.str.9, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store ptr @.str.10, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr @.str.11, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 248, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = call i64 @strlen(ptr noundef %19) #5
  %21 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %22 = call i32 @hex_to_bytes(ptr noundef %18, i64 noundef %20, ptr noundef %21, ptr noundef %12)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call i64 @strlen(ptr noundef %24) #5
  %26 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %27 = call i32 @hex_to_bytes(ptr noundef %23, i64 noundef %25, ptr noundef %26, ptr noundef %13)
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call i64 @strlen(ptr noundef %29) #5
  %31 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %32 = call i32 @hex_to_bytes(ptr noundef %28, i64 noundef %30, ptr noundef %31, ptr noundef %14)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call i64 @strlen(ptr noundef %34) #5
  %36 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %37 = call i32 @hex_to_bytes(ptr noundef %33, i64 noundef %35, ptr noundef %36, ptr noundef %15)
  %38 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %39 = load i64, ptr %12, align 8, !tbaa !9
  %40 = call i32 @aes_set_encrypt_key(ptr noundef %6, ptr noundef %38, i64 noundef %39)
  %41 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %42 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %43 = load i64, ptr %14, align 8, !tbaa !9
  %44 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  call void @aes_ctr_encrypt(ptr noundef %6, ptr noundef %41, ptr noundef %42, i64 noundef %43, ptr noundef %44)
  %45 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %45, ptr %16, align 8, !tbaa !9
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %47 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %48 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %49 = load i64, ptr %15, align 8, !tbaa !9
  %50 = call i32 @memcmp(ptr noundef %47, ptr noundef %48, i64 noundef %49) #5
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %62

52:                                               ; preds = %0
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %56 = load i64, ptr %16, align 8, !tbaa !9
  %57 = call i32 @format_bytes(ptr noundef %54, i32 noundef 0, i32 noundef 0, ptr noundef @.str.13, ptr noundef %55, i64 noundef %56)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %60 = load i64, ptr %15, align 8, !tbaa !9
  %61 = call i32 @format_bytes(ptr noundef %58, i32 noundef 0, i32 noundef 0, ptr noundef @.str.14, ptr noundef %59, i64 noundef %60)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %17, align 4
  br label %94

62:                                               ; preds = %0
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %64

64:                                               ; preds = %62
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = call i64 @strlen(ptr noundef %67) #5
  %69 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %70 = call i32 @hex_to_bytes(ptr noundef %66, i64 noundef %68, ptr noundef %69, ptr noundef %13)
  %71 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %72 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %73 = load i64, ptr %16, align 8, !tbaa !9
  %74 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  call void @aes_ctr_encrypt(ptr noundef %6, ptr noundef %71, ptr noundef %72, i64 noundef %73, ptr noundef %74)
  %75 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %76 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %77 = load i64, ptr %14, align 8, !tbaa !9
  %78 = call i32 @memcmp(ptr noundef %75, ptr noundef %76, i64 noundef %77) #5
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %90

80:                                               ; preds = %64
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %82 = load ptr, ptr @stdout, align 8, !tbaa !5
  %83 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %84 = load i64, ptr %14, align 8, !tbaa !9
  %85 = call i32 @format_bytes(ptr noundef %82, i32 noundef 0, i32 noundef 0, ptr noundef @.str.16, ptr noundef %83, i64 noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !5
  %87 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = call i32 @format_bytes(ptr noundef %86, i32 noundef 0, i32 noundef 0, ptr noundef @.str.17, ptr noundef %87, i64 noundef %88)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %17, align 4
  br label %94

90:                                               ; preds = %64
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %92

92:                                               ; preds = %90
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @__FUNCTION__.test_aes_ctr)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %17, align 4
  br label %94

94:                                               ; preds = %92, %80, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 248, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %95 = load i32, ptr %1, align 4
  ret i32 %95
}

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

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

declare void @aes_ctr_encrypt(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 }
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 = !{!10, !10, i64 0}
!10 = !{!"long", !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.AES_KEY = type { [60 x i32], i64 }

@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.test_aes_ctr = external hidden unnamed_addr constant [13 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 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare i32 @aes_set_encrypt_key(ptr noundef, ptr noundef, i64 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 range(i32 -1, 2) i32 @test_aes_ctr() local_unnamed_addr #3 {
  %1 = alloca %struct.AES_KEY, align 8
  %2 = alloca [32 x i8], align 16
  %3 = alloca [16 x i8], align 16
  %4 = alloca [64 x i8], align 16
  %5 = alloca [64 x i8], align 16
  %6 = alloca [64 x i8], align 16
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %11 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.8) #7
  %12 = call i32 @hex_to_bytes(ptr noundef nonnull @.str.8, i64 noundef %11, ptr noundef nonnull %2, ptr noundef nonnull %7) #6
  %13 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.9) #7
  %14 = call i32 @hex_to_bytes(ptr noundef nonnull @.str.9, i64 noundef %13, ptr noundef nonnull %3, ptr noundef nonnull %8) #6
  %15 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.10) #7
  %16 = call i32 @hex_to_bytes(ptr noundef nonnull @.str.10, i64 noundef %15, ptr noundef nonnull %4, ptr noundef nonnull %9) #6
  %17 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.11) #7
  %18 = call i32 @hex_to_bytes(ptr noundef nonnull @.str.11, i64 noundef %17, ptr noundef nonnull %5, ptr noundef nonnull %10) #6
  %19 = load i64, ptr %7, align 8, !tbaa !5
  %20 = call i32 @aes_set_encrypt_key(ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef %19) #6
  %21 = load i64, ptr %9, align 8, !tbaa !5
  call void @aes_ctr_encrypt(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %21, ptr noundef nonnull %6) #6
  %22 = load i64, ptr %9, align 8, !tbaa !5
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %24 = load i64, ptr %10, align 8, !tbaa !5
  %bcmp = call i32 @bcmp(ptr nonnull %6, ptr nonnull %5, i64 %24)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %32, label %25

25:                                               ; preds = %0
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %27 = load ptr, ptr @stdout, align 8, !tbaa !9
  %28 = call i32 @format_bytes(ptr noundef %27, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @.str.13, ptr noundef nonnull %6, i64 noundef %22) #6
  %29 = load ptr, ptr @stdout, align 8, !tbaa !9
  %30 = load i64, ptr %10, align 8, !tbaa !5
  %31 = call i32 @format_bytes(ptr noundef %29, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @.str.14, ptr noundef nonnull %5, i64 noundef %30) #6
  br label %47

32:                                               ; preds = %0
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %35 = call i32 @hex_to_bytes(ptr noundef nonnull @.str.9, i64 noundef %13, ptr noundef nonnull %3, ptr noundef nonnull %8) #6
  call void @aes_ctr_encrypt(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %6, i64 noundef %22, ptr noundef nonnull %6) #6
  %36 = load i64, ptr %9, align 8, !tbaa !5
  %bcmp13 = call i32 @bcmp(ptr nonnull %6, ptr nonnull %4, i64 %36)
  %.not14 = icmp eq i32 %bcmp13, 0
  br i1 %.not14, label %44, label %37

37:                                               ; preds = %32
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %39 = load ptr, ptr @stdout, align 8, !tbaa !9
  %40 = load i64, ptr %9, align 8, !tbaa !5
  %41 = call i32 @format_bytes(ptr noundef %39, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @.str.16, ptr noundef nonnull %4, i64 noundef %40) #6
  %42 = load ptr, ptr @stdout, align 8, !tbaa !9
  %43 = call i32 @format_bytes(ptr noundef %42, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @.str.17, ptr noundef nonnull %6, i64 noundef %22) #6
  br label %47

44:                                               ; preds = %32
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull @__FUNCTION__.test_aes_ctr)
  br label %47

47:                                               ; preds = %44, %37, %25
  %.0 = phi i32 [ -1, %25 ], [ -1, %37 ], [ 1, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  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 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %1) #6
  ret i32 %.0
}

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

declare void @aes_ctr_encrypt(ptr noundef, ptr noundef, ptr noundef, i64 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 willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #5

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 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 #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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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