; LLVM IR from openanolis/openssl :: test (endecoder_legacy_test)

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

@.str.14 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@keys = external hidden global [5 x %struct.key_st], align 16
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @setup_tests() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %4 = call i32 @test_skip_common_options()
  %5 = icmp ne i32 %4, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %0
  call void (ptr, i32, ptr, ...) @test_error(ptr noundef @.str.14, i32 noundef 686, ptr noundef @.str.15)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %74

7:                                                ; preds = %0
  %8 = call i64 @test_get_argument_count()
  %9 = icmp ne i64 %8, 2
  br i1 %9, label %10, label %11

10:                                               ; preds = %7
  call void (ptr, i32, ptr, ...) @test_error(ptr noundef @.str.14, i32 noundef 690, ptr noundef @.str.16, ptr noundef @.str.17)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %74

11:                                               ; preds = %7
  call void (ptr, i32, ptr, ...) @test_info(ptr noundef @.str.14, i32 noundef 694, ptr noundef @.str.18)
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %70, %11
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = icmp ult i64 %13, 5
  br i1 %14, label %15, label %73

15:                                               ; preds = %12
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %16
  %18 = getelementptr inbounds %struct.key_st, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 16, !tbaa !9
  %20 = call i32 @strcmp(ptr noundef %19, ptr noundef @.str.19) #5
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %32

22:                                               ; preds = %15
  %23 = call ptr @test_get_argument(i64 noundef 1)
  %24 = call ptr @load_pkey_pem(ptr noundef %23, ptr noundef null)
  %25 = load i64, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %25
  %27 = getelementptr inbounds %struct.key_st, ptr %26, i32 0, i32 3
  store ptr %24, ptr %27, align 8, !tbaa !13
  %28 = call i32 @test_ptr(ptr noundef @.str.14, i32 noundef 700, ptr noundef @.str.20, ptr noundef %24)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %22
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %74

31:                                               ; preds = %22
  br label %70

32:                                               ; preds = %15
  %33 = load i64, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %33
  %35 = getelementptr inbounds %struct.key_st, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 16, !tbaa !9
  %37 = call i32 @strcmp(ptr noundef %36, ptr noundef @.str.21) #5
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %49

39:                                               ; preds = %32
  %40 = call ptr @test_get_argument(i64 noundef 0)
  %41 = call ptr @load_pkey_pem(ptr noundef %40, ptr noundef null)
  %42 = load i64, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %42
  %44 = getelementptr inbounds %struct.key_st, ptr %43, i32 0, i32 3
  store ptr %41, ptr %44, align 8, !tbaa !13
  %45 = call i32 @test_ptr(ptr noundef @.str.14, i32 noundef 708, ptr noundef @.str.22, ptr noundef %41)
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %39
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %74

48:                                               ; preds = %39
  br label %70

49:                                               ; preds = %32
  %50 = load i64, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.key_st, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 16, !tbaa !9
  call void (ptr, i32, ptr, ...) @test_info(ptr noundef @.str.14, i32 noundef 713, ptr noundef @.str.23, ptr noundef %53)
  %54 = load i64, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.key_st, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 16, !tbaa !9
  %58 = load i64, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.key_st, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 16, !tbaa !14
  %62 = call ptr @make_key(ptr noundef %57, ptr noundef %61)
  %63 = load i64, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds [5 x %struct.key_st], ptr @keys, i64 0, i64 %63
  %65 = getelementptr inbounds %struct.key_st, ptr %64, i32 0, i32 3
  store ptr %62, ptr %65, align 8, !tbaa !13
  %66 = call i32 @test_ptr(ptr noundef @.str.14, i32 noundef 715, ptr noundef @.str.24, ptr noundef %62)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %69, label %68

68:                                               ; preds = %49
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %74

69:                                               ; preds = %49
  br label %70

70:                                               ; preds = %69, %48, %31
  %71 = load i64, ptr %2, align 8, !tbaa !5
  %72 = add i64 %71, 1
  store i64 %72, ptr %2, align 8, !tbaa !5
  br label %12, !llvm.loop !15

73:                                               ; preds = %12
  call void (ptr, i32, ptr, ...) @test_info(ptr noundef @.str.14, i32 noundef 719, ptr noundef @.str.25)
  call void @add_all_tests(ptr noundef @.str.26, ptr noundef @test_key, i32 noundef 5, i32 noundef 1)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %74

74:                                               ; preds = %73, %68, %47, %30, %10, %6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %75 = load i32, ptr %1, align 4
  ret i32 %75
}

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

declare i32 @test_skip_common_options() #2

declare void @test_error(ptr noundef, i32 noundef, ptr noundef, ...) #2

declare i64 @test_get_argument_count() #2

declare void @test_info(ptr noundef, i32 noundef, ptr noundef, ...) #2

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

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

declare ptr @load_pkey_pem(ptr noundef, ptr noundef) #2

declare ptr @test_get_argument(i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @make_key(ptr noundef, ptr noundef) #0

declare void @add_all_tests(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @test_key(i32 noundef) #0

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

@.str.14 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@keys = external hidden local_unnamed_addr global [5 x %struct.key_st], align 16
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @setup_tests() local_unnamed_addr #0 {
  %1 = tail call i32 @test_skip_common_options() #3
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %2, label %3

2:                                                ; preds = %0
  tail call void (ptr, i32, ptr, ...) @test_error(ptr noundef nonnull @.str.14, i32 noundef 686, ptr noundef nonnull @.str.15) #3
  br label %.loopexit

3:                                                ; preds = %0
  %4 = tail call i64 @test_get_argument_count() #3
  %.not12 = icmp eq i64 %4, 2
  br i1 %.not12, label %6, label %5

5:                                                ; preds = %3
  tail call void (ptr, i32, ptr, ...) @test_error(ptr noundef nonnull @.str.14, i32 noundef 690, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #3
  br label %.loopexit

6:                                                ; preds = %3
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 694, ptr noundef nonnull @.str.18) #3
  %7 = load ptr, ptr @keys, align 16, !tbaa !5
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.19) #4
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %14

10:                                               ; preds = %6
  %11 = tail call ptr @test_get_argument(i64 noundef 1) #3
  %12 = tail call ptr @load_pkey_pem(ptr noundef %11, ptr noundef null) #3
  store ptr %12, ptr getelementptr inbounds (i8, ptr @keys, i64 24), align 8, !tbaa !11
  %13 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 700, ptr noundef nonnull @.str.20, ptr noundef %12) #3
  %.not15 = icmp eq i32 %13, 0
  br i1 %.not15, label %.loopexit, label %26

14:                                               ; preds = %6
  %15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.21) #4
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %21

17:                                               ; preds = %14
  %18 = tail call ptr @test_get_argument(i64 noundef 0) #3
  %19 = tail call ptr @load_pkey_pem(ptr noundef %18, ptr noundef null) #3
  store ptr %19, ptr getelementptr inbounds (i8, ptr @keys, i64 24), align 8, !tbaa !11
  %20 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 708, ptr noundef nonnull @.str.22, ptr noundef %19) #3
  %.not14 = icmp eq i32 %20, 0
  br i1 %.not14, label %.loopexit, label %26

21:                                               ; preds = %14
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 713, ptr noundef nonnull @.str.23, ptr noundef %7) #3
  %22 = load ptr, ptr @keys, align 16, !tbaa !5
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 16), align 16, !tbaa !12
  %24 = tail call ptr @make_key(ptr noundef %22, ptr noundef %23)
  store ptr %24, ptr getelementptr inbounds (i8, ptr @keys, i64 24), align 8, !tbaa !11
  %25 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 715, ptr noundef nonnull @.str.24, ptr noundef %24) #3
  %.not13 = icmp eq i32 %25, 0
  br i1 %.not13, label %.loopexit, label %26

26:                                               ; preds = %21, %17, %10
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 32), align 16, !tbaa !5
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.19) #4
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %42, label %30

30:                                               ; preds = %26
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.21) #4
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %38, label %33

33:                                               ; preds = %30
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 713, ptr noundef nonnull @.str.23, ptr noundef %27) #3
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 32), align 16, !tbaa !5
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 48), align 16, !tbaa !12
  %36 = tail call ptr @make_key(ptr noundef %34, ptr noundef %35)
  store ptr %36, ptr getelementptr inbounds (i8, ptr @keys, i64 56), align 8, !tbaa !11
  %37 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 715, ptr noundef nonnull @.str.24, ptr noundef %36) #3
  %.not13.1 = icmp eq i32 %37, 0
  br i1 %.not13.1, label %.loopexit, label %46

38:                                               ; preds = %30
  %39 = tail call ptr @test_get_argument(i64 noundef 0) #3
  %40 = tail call ptr @load_pkey_pem(ptr noundef %39, ptr noundef null) #3
  store ptr %40, ptr getelementptr inbounds (i8, ptr @keys, i64 56), align 8, !tbaa !11
  %41 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 708, ptr noundef nonnull @.str.22, ptr noundef %40) #3
  %.not14.1 = icmp eq i32 %41, 0
  br i1 %.not14.1, label %.loopexit, label %46

42:                                               ; preds = %26
  %43 = tail call ptr @test_get_argument(i64 noundef 1) #3
  %44 = tail call ptr @load_pkey_pem(ptr noundef %43, ptr noundef null) #3
  store ptr %44, ptr getelementptr inbounds (i8, ptr @keys, i64 56), align 8, !tbaa !11
  %45 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 700, ptr noundef nonnull @.str.20, ptr noundef %44) #3
  %.not15.1 = icmp eq i32 %45, 0
  br i1 %.not15.1, label %.loopexit, label %46

46:                                               ; preds = %42, %38, %33
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 64), align 16, !tbaa !5
  %48 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %47, ptr noundef nonnull dereferenceable(1) @.str.19) #4
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %62, label %50

50:                                               ; preds = %46
  %51 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %47, ptr noundef nonnull dereferenceable(1) @.str.21) #4
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %58, label %53

53:                                               ; preds = %50
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 713, ptr noundef nonnull @.str.23, ptr noundef %47) #3
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 64), align 16, !tbaa !5
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 80), align 16, !tbaa !12
  %56 = tail call ptr @make_key(ptr noundef %54, ptr noundef %55)
  store ptr %56, ptr getelementptr inbounds (i8, ptr @keys, i64 88), align 8, !tbaa !11
  %57 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 715, ptr noundef nonnull @.str.24, ptr noundef %56) #3
  %.not13.2 = icmp eq i32 %57, 0
  br i1 %.not13.2, label %.loopexit, label %66

58:                                               ; preds = %50
  %59 = tail call ptr @test_get_argument(i64 noundef 0) #3
  %60 = tail call ptr @load_pkey_pem(ptr noundef %59, ptr noundef null) #3
  store ptr %60, ptr getelementptr inbounds (i8, ptr @keys, i64 88), align 8, !tbaa !11
  %61 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 708, ptr noundef nonnull @.str.22, ptr noundef %60) #3
  %.not14.2 = icmp eq i32 %61, 0
  br i1 %.not14.2, label %.loopexit, label %66

62:                                               ; preds = %46
  %63 = tail call ptr @test_get_argument(i64 noundef 1) #3
  %64 = tail call ptr @load_pkey_pem(ptr noundef %63, ptr noundef null) #3
  store ptr %64, ptr getelementptr inbounds (i8, ptr @keys, i64 88), align 8, !tbaa !11
  %65 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 700, ptr noundef nonnull @.str.20, ptr noundef %64) #3
  %.not15.2 = icmp eq i32 %65, 0
  br i1 %.not15.2, label %.loopexit, label %66

66:                                               ; preds = %62, %58, %53
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 96), align 16, !tbaa !5
  %68 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %67, ptr noundef nonnull dereferenceable(1) @.str.19) #4
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %82, label %70

70:                                               ; preds = %66
  %71 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %67, ptr noundef nonnull dereferenceable(1) @.str.21) #4
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %78, label %73

73:                                               ; preds = %70
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 713, ptr noundef nonnull @.str.23, ptr noundef %67) #3
  %74 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 96), align 16, !tbaa !5
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 112), align 16, !tbaa !12
  %76 = tail call ptr @make_key(ptr noundef %74, ptr noundef %75)
  store ptr %76, ptr getelementptr inbounds (i8, ptr @keys, i64 120), align 8, !tbaa !11
  %77 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 715, ptr noundef nonnull @.str.24, ptr noundef %76) #3
  %.not13.3 = icmp eq i32 %77, 0
  br i1 %.not13.3, label %.loopexit, label %86

78:                                               ; preds = %70
  %79 = tail call ptr @test_get_argument(i64 noundef 0) #3
  %80 = tail call ptr @load_pkey_pem(ptr noundef %79, ptr noundef null) #3
  store ptr %80, ptr getelementptr inbounds (i8, ptr @keys, i64 120), align 8, !tbaa !11
  %81 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 708, ptr noundef nonnull @.str.22, ptr noundef %80) #3
  %.not14.3 = icmp eq i32 %81, 0
  br i1 %.not14.3, label %.loopexit, label %86

82:                                               ; preds = %66
  %83 = tail call ptr @test_get_argument(i64 noundef 1) #3
  %84 = tail call ptr @load_pkey_pem(ptr noundef %83, ptr noundef null) #3
  store ptr %84, ptr getelementptr inbounds (i8, ptr @keys, i64 120), align 8, !tbaa !11
  %85 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 700, ptr noundef nonnull @.str.20, ptr noundef %84) #3
  %.not15.3 = icmp eq i32 %85, 0
  br i1 %.not15.3, label %.loopexit, label %86

86:                                               ; preds = %82, %78, %73
  %87 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 128), align 16, !tbaa !5
  %88 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) @.str.19) #4
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %102, label %90

90:                                               ; preds = %86
  %91 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) @.str.21) #4
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %98, label %93

93:                                               ; preds = %90
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 713, ptr noundef nonnull @.str.23, ptr noundef %87) #3
  %94 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 128), align 16, !tbaa !5
  %95 = load ptr, ptr getelementptr inbounds (i8, ptr @keys, i64 144), align 16, !tbaa !12
  %96 = tail call ptr @make_key(ptr noundef %94, ptr noundef %95)
  store ptr %96, ptr getelementptr inbounds (i8, ptr @keys, i64 152), align 8, !tbaa !11
  %97 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 715, ptr noundef nonnull @.str.24, ptr noundef %96) #3
  %.not13.4 = icmp eq i32 %97, 0
  br i1 %.not13.4, label %.loopexit, label %106

98:                                               ; preds = %90
  %99 = tail call ptr @test_get_argument(i64 noundef 0) #3
  %100 = tail call ptr @load_pkey_pem(ptr noundef %99, ptr noundef null) #3
  store ptr %100, ptr getelementptr inbounds (i8, ptr @keys, i64 152), align 8, !tbaa !11
  %101 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 708, ptr noundef nonnull @.str.22, ptr noundef %100) #3
  %.not14.4 = icmp eq i32 %101, 0
  br i1 %.not14.4, label %.loopexit, label %106

102:                                              ; preds = %86
  %103 = tail call ptr @test_get_argument(i64 noundef 1) #3
  %104 = tail call ptr @load_pkey_pem(ptr noundef %103, ptr noundef null) #3
  store ptr %104, ptr getelementptr inbounds (i8, ptr @keys, i64 152), align 8, !tbaa !11
  %105 = tail call i32 @test_ptr(ptr noundef nonnull @.str.14, i32 noundef 700, ptr noundef nonnull @.str.20, ptr noundef %104) #3
  %.not15.4 = icmp eq i32 %105, 0
  br i1 %.not15.4, label %.loopexit, label %106

106:                                              ; preds = %102, %98, %93
  tail call void (ptr, i32, ptr, ...) @test_info(ptr noundef nonnull @.str.14, i32 noundef 719, ptr noundef nonnull @.str.25) #3
  tail call void @add_all_tests(ptr noundef nonnull @.str.26, ptr noundef nonnull @test_key, i32 noundef 5, i32 noundef 1) #3
  br label %.loopexit

.loopexit:                                        ; preds = %21, %17, %10, %33, %38, %42, %53, %58, %62, %73, %78, %82, %93, %98, %102, %106, %5, %2
  %.011 = phi i32 [ 0, %5 ], [ 1, %106 ], [ 0, %2 ], [ 0, %102 ], [ 0, %98 ], [ 0, %93 ], [ 0, %82 ], [ 0, %78 ], [ 0, %73 ], [ 0, %62 ], [ 0, %58 ], [ 0, %53 ], [ 0, %42 ], [ 0, %38 ], [ 0, %33 ], [ 0, %10 ], [ 0, %17 ], [ 0, %21 ]
  ret i32 %.011
}

declare i32 @test_skip_common_options() local_unnamed_addr #1

declare void @test_error(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare i64 @test_get_argument_count() local_unnamed_addr #1

declare void @test_info(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

declare i32 @test_ptr(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @load_pkey_pem(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @test_get_argument(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @make_key(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @add_all_tests(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @test_key(i32 noundef) #0

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 = { "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 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 #3 = { nounwind }
attributes #4 = { 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 = !{!"key_st", !7, i64 0, !10, 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 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 24}
!12 = !{!6, !7, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass