; LLVM IR from square/subzero :: core/external-crypto/aes (rfc3686)

; 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.test_str = type { i32, i32, [32 x i8], [8 x i8], [8 x i8], [36 x i8], [48 x i8], [48 x i8], [36 x i8] }
%struct.aes_crypt_ctx = type { [60 x i32], %union.aes_inf, [12 x i8] }
%union.aes_inf = type { i32 }

@tests = external dso_local global <{ { i32, i32, <{ [16 x i8], [16 x i8] }>, [8 x i8], [8 x i8], <{ [16 x i8], [20 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [20 x i8] }> }, { i32, i32, <{ [16 x i8], [16 x i8] }>, [8 x i8], [8 x i8], [36 x i8], <{ [32 x i8], [16 x i8] }>, <{ [32 x i8], [16 x i8] }>, [36 x i8] }, { i32, i32, <{ [16 x i8], [16 x i8] }>, [8 x i8], [8 x i8], [36 x i8], [48 x i8], [48 x i8], [36 x i8] }, { i32, i32, <{ [24 x i8], [8 x i8] }>, [8 x i8], [8 x i8], <{ [16 x i8], [20 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [20 x i8] }> }, { i32, i32, <{ [24 x i8], [8 x i8] }>, [8 x i8], [8 x i8], [36 x i8], <{ [32 x i8], [16 x i8] }>, <{ [32 x i8], [16 x i8] }>, [36 x i8] }, { i32, i32, <{ [24 x i8], [8 x i8] }>, [8 x i8], [8 x i8], [36 x i8], [48 x i8], [48 x i8], [36 x i8] }, { i32, i32, [32 x i8], [8 x i8], [8 x i8], <{ [16 x i8], [20 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [20 x i8] }> }, { i32, i32, [32 x i8], [8 x i8], [8 x i8], [36 x i8], <{ [32 x i8], [16 x i8] }>, <{ [32 x i8], [16 x i8] }>, [36 x i8] }, %struct.test_str }>, align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @rfc3686_test() #0 {
  %1 = alloca [1 x %struct.aes_crypt_ctx], align 16
  %2 = alloca [16 x i8], align 16
  %3 = alloca [36 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %67, %0
  %7 = load i32, ptr %4, align 4, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = icmp ult i64 %8, 9
  br i1 %9, label %10, label %70

10:                                               ; preds = %6
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %12
  %14 = getelementptr inbounds %struct.test_str, ptr %13, i32 0, i32 2
  %15 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.test_str, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 16, !tbaa !9
  %21 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %1, i64 0, i64 0
  %22 = call i32 @aes_encrypt_key(ptr noundef %15, i32 noundef %20, ptr noundef %21)
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %24
  %26 = getelementptr inbounds %struct.test_str, ptr %25, i32 0, i32 4
  %27 = getelementptr inbounds [8 x i8], ptr %26, i64 0, i64 0
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %29
  %31 = getelementptr inbounds %struct.test_str, ptr %30, i32 0, i32 3
  %32 = getelementptr inbounds [8 x i8], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
  call void @rfc3686_init(ptr noundef %27, ptr noundef %32, ptr noundef %33)
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.test_str, ptr %36, i32 0, i32 5
  %38 = getelementptr inbounds [36 x i8], ptr %37, i64 0, i64 0
  %39 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %41
  %43 = getelementptr inbounds %struct.test_str, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
  %46 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %1, i64 0, i64 0
  %47 = call i32 @rfc3686_crypt(ptr noundef %38, ptr noundef %39, i32 noundef %44, ptr noundef %45, ptr noundef %46)
  %48 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.test_str, ptr %51, i32 0, i32 8
  %53 = getelementptr inbounds [36 x i8], ptr %52, i64 0, i64 0
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [9 x %struct.test_str], ptr @tests, i64 0, i64 %55
  %57 = getelementptr inbounds %struct.test_str, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = zext i32 %58 to i64
  %60 = call i32 @memcmp(ptr noundef %48, ptr noundef %53, i64 noundef %59) #5
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %66

62:                                               ; preds = %10
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = add i32 %63, 1
  store i32 %64, ptr %5, align 4, !tbaa !5
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %66

66:                                               ; preds = %62, %10
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = add i32 %68, 1
  store i32 %69, ptr %4, align 4, !tbaa !5
  br label %6, !llvm.loop !12

70:                                               ; preds = %6
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %75, label %73

73:                                               ; preds = %70
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %75

75:                                               ; preds = %73, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %1) #4
  ret void
}

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

declare i32 @aes_encrypt_key(ptr noundef, i32 noundef, ptr noundef) #2

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

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, !6, i64 0}
!10 = !{!"", !6, i64 0, !6, i64 4, !7, i64 8, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 92, !7, i64 140, !7, i64 188}
!11 = !{!10, !6, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"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.test_str = type { i32, i32, [32 x i8], [8 x i8], [8 x i8], [36 x i8], [48 x i8], [48 x i8], [36 x i8] }
%struct.aes_crypt_ctx = type { [60 x i32], %union.aes_inf, [12 x i8] }
%union.aes_inf = type { i32 }

@tests = external dso_local global <{ { i32, i32, <{ [16 x i8], [16 x i8] }>, [8 x i8], [8 x i8], <{ [16 x i8], [20 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [20 x i8] }> }, { i32, i32, <{ [16 x i8], [16 x i8] }>, [8 x i8], [8 x i8], [36 x i8], <{ [32 x i8], [16 x i8] }>, <{ [32 x i8], [16 x i8] }>, [36 x i8] }, { i32, i32, <{ [16 x i8], [16 x i8] }>, [8 x i8], [8 x i8], [36 x i8], [48 x i8], [48 x i8], [36 x i8] }, { i32, i32, <{ [24 x i8], [8 x i8] }>, [8 x i8], [8 x i8], <{ [16 x i8], [20 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [20 x i8] }> }, { i32, i32, <{ [24 x i8], [8 x i8] }>, [8 x i8], [8 x i8], [36 x i8], <{ [32 x i8], [16 x i8] }>, <{ [32 x i8], [16 x i8] }>, [36 x i8] }, { i32, i32, <{ [24 x i8], [8 x i8] }>, [8 x i8], [8 x i8], [36 x i8], [48 x i8], [48 x i8], [36 x i8] }, { i32, i32, [32 x i8], [8 x i8], [8 x i8], <{ [16 x i8], [20 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [32 x i8] }>, <{ [16 x i8], [20 x i8] }> }, { i32, i32, [32 x i8], [8 x i8], [8 x i8], [36 x i8], <{ [32 x i8], [16 x i8] }>, <{ [32 x i8], [16 x i8] }>, [36 x i8] }, %struct.test_str }>, align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @rfc3686_test() local_unnamed_addr #0 {
  %1 = alloca [1 x %struct.aes_crypt_ctx], align 16
  %2 = alloca [16 x i8], align 16
  %3 = alloca [36 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #5
  %4 = load i32, ptr @tests, align 16, !tbaa !5
  %5 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 8), i32 noundef %4, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 48), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 40), ptr noundef nonnull %2)
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 4), align 4, !tbaa !10
  %7 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 56), ptr noundef nonnull %3, i32 noundef %6, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 4), align 4, !tbaa !10
  %9 = zext i32 %8 to i64
  %bcmp = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 188), i64 %9)
  %.not14 = icmp eq i32 %bcmp, 0
  br i1 %.not14, label %12, label %10

10:                                               ; preds = %0
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %12

12:                                               ; preds = %0, %10
  %.1 = phi i32 [ 1, %10 ], [ 0, %0 ]
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 224), align 16, !tbaa !5
  %14 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 232), i32 noundef %13, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 272), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 264), ptr noundef nonnull %2)
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 228), align 4, !tbaa !10
  %16 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 280), ptr noundef nonnull %3, i32 noundef %15, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 228), align 4, !tbaa !10
  %18 = zext i32 %17 to i64
  %bcmp.1 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 412), i64 %18)
  %.not14.1 = icmp eq i32 %bcmp.1, 0
  br i1 %.not14.1, label %22, label %19

19:                                               ; preds = %12
  %20 = add nuw nsw i32 %.1, 1
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %22

22:                                               ; preds = %19, %12
  %.1.1 = phi i32 [ %20, %19 ], [ %.1, %12 ]
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 448), align 16, !tbaa !5
  %24 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 456), i32 noundef %23, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 496), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 488), ptr noundef nonnull %2)
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 452), align 4, !tbaa !10
  %26 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 504), ptr noundef nonnull %3, i32 noundef %25, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 452), align 4, !tbaa !10
  %28 = zext i32 %27 to i64
  %bcmp.2 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 636), i64 %28)
  %.not14.2 = icmp eq i32 %bcmp.2, 0
  br i1 %.not14.2, label %32, label %29

29:                                               ; preds = %22
  %30 = add nuw nsw i32 %.1.1, 1
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %32

32:                                               ; preds = %29, %22
  %.1.2 = phi i32 [ %30, %29 ], [ %.1.1, %22 ]
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 672), align 16, !tbaa !5
  %34 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 680), i32 noundef %33, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 720), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 712), ptr noundef nonnull %2)
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 676), align 4, !tbaa !10
  %36 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 728), ptr noundef nonnull %3, i32 noundef %35, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 676), align 4, !tbaa !10
  %38 = zext i32 %37 to i64
  %bcmp.3 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 860), i64 %38)
  %.not14.3 = icmp eq i32 %bcmp.3, 0
  br i1 %.not14.3, label %42, label %39

39:                                               ; preds = %32
  %40 = add nuw nsw i32 %.1.2, 1
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %42

42:                                               ; preds = %39, %32
  %.1.3 = phi i32 [ %40, %39 ], [ %.1.2, %32 ]
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 896), align 16, !tbaa !5
  %44 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 904), i32 noundef %43, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 944), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 936), ptr noundef nonnull %2)
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 900), align 4, !tbaa !10
  %46 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 952), ptr noundef nonnull %3, i32 noundef %45, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 900), align 4, !tbaa !10
  %48 = zext i32 %47 to i64
  %bcmp.4 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 1084), i64 %48)
  %.not14.4 = icmp eq i32 %bcmp.4, 0
  br i1 %.not14.4, label %52, label %49

49:                                               ; preds = %42
  %50 = add nuw nsw i32 %.1.3, 1
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %52

52:                                               ; preds = %49, %42
  %.1.4 = phi i32 [ %50, %49 ], [ %.1.3, %42 ]
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1120), align 16, !tbaa !5
  %54 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1128), i32 noundef %53, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1168), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1160), ptr noundef nonnull %2)
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1124), align 4, !tbaa !10
  %56 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1176), ptr noundef nonnull %3, i32 noundef %55, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1124), align 4, !tbaa !10
  %58 = zext i32 %57 to i64
  %bcmp.5 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 1308), i64 %58)
  %.not14.5 = icmp eq i32 %bcmp.5, 0
  br i1 %.not14.5, label %62, label %59

59:                                               ; preds = %52
  %60 = add nuw nsw i32 %.1.4, 1
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %62

62:                                               ; preds = %59, %52
  %.1.5 = phi i32 [ %60, %59 ], [ %.1.4, %52 ]
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1344), align 16, !tbaa !5
  %64 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1352), i32 noundef %63, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1392), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1384), ptr noundef nonnull %2)
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1348), align 4, !tbaa !10
  %66 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1400), ptr noundef nonnull %3, i32 noundef %65, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1348), align 4, !tbaa !10
  %68 = zext i32 %67 to i64
  %bcmp.6 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 1532), i64 %68)
  %.not14.6 = icmp eq i32 %bcmp.6, 0
  br i1 %.not14.6, label %72, label %69

69:                                               ; preds = %62
  %70 = add nuw nsw i32 %.1.5, 1
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %72

72:                                               ; preds = %69, %62
  %.1.6 = phi i32 [ %70, %69 ], [ %.1.5, %62 ]
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1568), align 16, !tbaa !5
  %74 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1576), i32 noundef %73, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1616), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1608), ptr noundef nonnull %2)
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1572), align 4, !tbaa !10
  %76 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1624), ptr noundef nonnull %3, i32 noundef %75, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1572), align 4, !tbaa !10
  %78 = zext i32 %77 to i64
  %bcmp.7 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 1756), i64 %78)
  %.not14.7 = icmp eq i32 %bcmp.7, 0
  br i1 %.not14.7, label %81, label %79

79:                                               ; preds = %72
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %81

81:                                               ; preds = %79, %72
  %.1.7 = phi i32 [ 1, %79 ], [ %.1.6, %72 ]
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1792), align 16, !tbaa !5
  %83 = call i32 @aes_encrypt_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1800), i32 noundef %82, ptr noundef nonnull %1) #5
  call void @rfc3686_init(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1840), ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1832), ptr noundef nonnull %2)
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1796), align 4, !tbaa !10
  %85 = call i32 @rfc3686_crypt(ptr noundef nonnull getelementptr inbounds (i8, ptr @tests, i64 1848), ptr noundef nonnull %3, i32 noundef %84, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @tests, i64 1796), align 4, !tbaa !10
  %87 = zext i32 %86 to i64
  %bcmp.8 = call i32 @bcmp(ptr nonnull %3, ptr nonnull getelementptr inbounds (i8, ptr @tests, i64 1980), i64 %87)
  %.not14.8 = icmp eq i32 %bcmp.8, 0
  br i1 %.not14.8, label %88, label %.sink.split

88:                                               ; preds = %81
  %.not = icmp eq i32 %.1.7, 0
  br i1 %.not, label %.sink.split, label %90

.sink.split:                                      ; preds = %88, %81
  %.str.sink = phi ptr [ @.str, %81 ], [ @.str.1, %88 ]
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.sink)
  br label %90

90:                                               ; preds = %.sink.split, %88
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #5
  ret void
}

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

declare i32 @aes_encrypt_key(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

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

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 = { 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 #4 = { nofree nounwind willreturn memory(argmem: read) }
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 = !{!"", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 92, !8, i64 140, !8, i64 188}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,SCCPPass,SROAPass,SimplifyCFGPass