; LLVM IR from intel/QAT_Engine :: test (tests_aes_cbc_hmac_sha)

; 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_info_ = type { i32, i32, ptr, ptr, ptr, i32 }
%struct._chained_alg_info = type { i32, ptr, ptr, ptr }
%struct._tls_v = type { i32, ptr }

@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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

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

declare void @EVP_CIPHER_CTX_free(ptr noundef) #3

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @test_multi_op(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [128 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [6 x ptr], align 16
  %12 = alloca [6 x ptr], align 16
  %13 = alloca [6 x i32], align 16
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._test_info_, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !11
  store i32 %17, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 24, i1 false)
  %18 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._test_info_, ptr %19, i32 0, i32 3
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = getelementptr inbounds %struct._chained_alg_info, ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._test_info_, ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds %struct._tls_v, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %18, i64 noundef 128, ptr noundef @.str.2, ptr noundef %23, ptr noundef %28) #5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call ptr @setup_ctx(ptr noundef %30, i32 noundef 1, i32 noundef 0, ptr noundef %5, i32 noundef 0)
  store ptr %31, ptr %10, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %1
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %14, align 4
  br label %108

35:                                               ; preds = %1
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._test_info_, ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds %struct._tls_v, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !19
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = call i32 @compute_buff_size(i32 noundef %36, ptr noundef %6, i32 noundef %37, i32 noundef %42, ptr noundef %43)
  store i32 %44, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %89, %35
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = icmp slt i32 %46, 6
  br i1 %47, label %48, label %92

48:                                               ; preds = %45
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 %51
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [6 x ptr], ptr %12, i64 0, i64 %54
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [6 x i32], ptr %13, i64 0, i64 %58
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._test_info_, ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = getelementptr inbounds %struct._tls_v, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !19
  %65 = call i32 @perform_op(ptr noundef %49, ptr noundef %52, ptr noundef %55, i32 noundef %56, ptr noundef %59, i32 noundef %64)
  store i32 %65, ptr %4, align 4, !tbaa !9
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %48
  br label %93

69:                                               ; preds = %48
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %88

72:                                               ; preds = %69
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [6 x i32], ptr %13, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = icmp ne i32 %76, %77
  br i1 %78, label %79, label %88

79:                                               ; preds = %72
  %80 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [6 x i32], ptr %13, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %80, i32 noundef %81, i32 noundef %85, i32 noundef %86)
  br label %88

88:                                               ; preds = %79, %72, %69
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %9, align 4, !tbaa !9
  br label %45, !llvm.loop !20

92:                                               ; preds = %45
  br label %93

93:                                               ; preds = %92, %68
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  call void @EVP_CIPHER_CTX_free(ptr noundef %94)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %103, %93
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = icmp slt i32 %96, 6
  br i1 %97, label %98, label %106

98:                                               ; preds = %95
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  call void @CRYPTO_free(ptr noundef %102, ptr noundef @.str.1, i32 noundef 672)
  br label %103

103:                                              ; preds = %98
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %9, align 4, !tbaa !9
  br label %95, !llvm.loop !22

106:                                              ; preds = %95
  %107 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %107, ptr %2, align 4
  store i32 1, ptr %14, align 4
  br label %108

108:                                              ; preds = %106, %34
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %109 = load i32, ptr %2, align 4
  ret i32 %109
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_test_info_", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!13 = !{!12, !6, i64 16}
!14 = !{!15, !6, i64 24}
!15 = !{!"_chained_alg_info", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!12, !6, i64 24}
!17 = !{!18, !6, i64 8}
!18 = !{!"_tls_v", !10, i64 0, !6, i64 8}
!19 = !{!18, !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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"

@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

; 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
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

declare void @EVP_CIPHER_CTX_free(ptr noundef) local_unnamed_addr #3

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i32 @test_multi_op(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [128 x i8], align 16
  %5 = alloca [6 x ptr], align 16
  %6 = alloca [6 x ptr], align 16
  %7 = alloca [6 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %8 = load i32, ptr %0, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %5, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %6, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %10, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %17 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 128, ptr noundef nonnull @.str.2, ptr noundef %12, ptr noundef %16) #5
  %18 = call ptr @setup_ctx(ptr noundef nonnull %0, i32 noundef 1, i32 noundef 0, ptr noundef nonnull %2, i32 noundef 0)
  %19 = icmp eq ptr %18, null
  br i1 %19, label %.loopexit, label %20

20:                                               ; preds = %1
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = load ptr, ptr %13, align 8, !tbaa !15
  %23 = load i32, ptr %22, align 8, !tbaa !18
  %24 = call i32 @compute_buff_size(i32 noundef %8, ptr noundef nonnull %3, i32 noundef %21, i32 noundef %23, ptr noundef nonnull %18)
  %25 = load ptr, ptr %13, align 8, !tbaa !15
  %26 = load i32, ptr %25, align 8, !tbaa !18
  %27 = call i32 @perform_op(ptr noundef nonnull %18, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %24, ptr noundef nonnull %7, i32 noundef %26)
  %.not = icmp eq i32 %27, 1
  br i1 %.not, label %28, label %.loopexit.loopexit

28:                                               ; preds = %20
  %29 = load i32, ptr %7, align 16, !tbaa !5
  %.not36 = icmp eq i32 %29, %24
  br i1 %.not36, label %32, label %30

30:                                               ; preds = %28
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %4, i32 noundef 0, i32 noundef %29, i32 noundef %24)
  br label %32

32:                                               ; preds = %28, %30
  %33 = getelementptr inbounds i8, ptr %5, i64 8
  %34 = getelementptr inbounds i8, ptr %6, i64 8
  %35 = getelementptr inbounds i8, ptr %7, i64 4
  %36 = load ptr, ptr %13, align 8, !tbaa !15
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %38 = call i32 @perform_op(ptr noundef nonnull %18, ptr noundef nonnull %33, ptr noundef nonnull %34, i32 noundef %24, ptr noundef nonnull %35, i32 noundef %37)
  %.not.1 = icmp eq i32 %38, 1
  br i1 %.not.1, label %39, label %.loopexit.loopexit

39:                                               ; preds = %32
  %40 = load i32, ptr %35, align 4, !tbaa !5
  %.not36.1 = icmp eq i32 %40, %24
  br i1 %.not36.1, label %43, label %41

41:                                               ; preds = %39
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %4, i32 noundef 1, i32 noundef %40, i32 noundef %24)
  br label %43

43:                                               ; preds = %41, %39
  %44 = getelementptr inbounds i8, ptr %5, i64 16
  %45 = getelementptr inbounds i8, ptr %6, i64 16
  %46 = getelementptr inbounds i8, ptr %7, i64 8
  %47 = load ptr, ptr %13, align 8, !tbaa !15
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = call i32 @perform_op(ptr noundef nonnull %18, ptr noundef nonnull %44, ptr noundef nonnull %45, i32 noundef %24, ptr noundef nonnull %46, i32 noundef %48)
  %.not.2 = icmp eq i32 %49, 1
  br i1 %.not.2, label %50, label %.loopexit.loopexit

50:                                               ; preds = %43
  %51 = load i32, ptr %46, align 8, !tbaa !5
  %.not36.2 = icmp eq i32 %51, %24
  br i1 %.not36.2, label %54, label %52

52:                                               ; preds = %50
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %4, i32 noundef 2, i32 noundef %51, i32 noundef %24)
  br label %54

54:                                               ; preds = %52, %50
  %55 = getelementptr inbounds i8, ptr %5, i64 24
  %56 = getelementptr inbounds i8, ptr %6, i64 24
  %57 = getelementptr inbounds i8, ptr %7, i64 12
  %58 = load ptr, ptr %13, align 8, !tbaa !15
  %59 = load i32, ptr %58, align 8, !tbaa !18
  %60 = call i32 @perform_op(ptr noundef nonnull %18, ptr noundef nonnull %55, ptr noundef nonnull %56, i32 noundef %24, ptr noundef nonnull %57, i32 noundef %59)
  %.not.3 = icmp eq i32 %60, 1
  br i1 %.not.3, label %61, label %.loopexit.loopexit

61:                                               ; preds = %54
  %62 = load i32, ptr %57, align 4, !tbaa !5
  %.not36.3 = icmp eq i32 %62, %24
  br i1 %.not36.3, label %65, label %63

63:                                               ; preds = %61
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %4, i32 noundef 3, i32 noundef %62, i32 noundef %24)
  br label %65

65:                                               ; preds = %63, %61
  %66 = getelementptr inbounds i8, ptr %5, i64 32
  %67 = getelementptr inbounds i8, ptr %6, i64 32
  %68 = getelementptr inbounds i8, ptr %7, i64 16
  %69 = load ptr, ptr %13, align 8, !tbaa !15
  %70 = load i32, ptr %69, align 8, !tbaa !18
  %71 = call i32 @perform_op(ptr noundef nonnull %18, ptr noundef nonnull %66, ptr noundef nonnull %67, i32 noundef %24, ptr noundef nonnull %68, i32 noundef %70)
  %.not.4 = icmp eq i32 %71, 1
  br i1 %.not.4, label %72, label %.loopexit.loopexit

72:                                               ; preds = %65
  %73 = load i32, ptr %68, align 16, !tbaa !5
  %.not36.4 = icmp eq i32 %73, %24
  br i1 %.not36.4, label %76, label %74

74:                                               ; preds = %72
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %4, i32 noundef 4, i32 noundef %73, i32 noundef %24)
  br label %76

76:                                               ; preds = %74, %72
  %77 = getelementptr inbounds i8, ptr %5, i64 40
  %78 = getelementptr inbounds i8, ptr %6, i64 40
  %79 = getelementptr inbounds i8, ptr %7, i64 20
  %80 = load ptr, ptr %13, align 8, !tbaa !15
  %81 = load i32, ptr %80, align 8, !tbaa !18
  %82 = call i32 @perform_op(ptr noundef nonnull %18, ptr noundef nonnull %77, ptr noundef nonnull %78, i32 noundef %24, ptr noundef nonnull %79, i32 noundef %81)
  %.not.5 = icmp eq i32 %82, 1
  br i1 %.not.5, label %83, label %.loopexit.loopexit

83:                                               ; preds = %76
  %84 = load i32, ptr %79, align 4, !tbaa !5
  %.not36.5 = icmp eq i32 %84, %24
  br i1 %.not36.5, label %.loopexit.loopexit, label %85

85:                                               ; preds = %83
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %4, i32 noundef 5, i32 noundef %84, i32 noundef %24)
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %83, %85, %76, %65, %54, %43, %32, %20
  %.129 = phi i32 [ %27, %20 ], [ %38, %32 ], [ %49, %43 ], [ %60, %54 ], [ %71, %65 ], [ %82, %76 ], [ 1, %85 ], [ 1, %83 ]
  call void @EVP_CIPHER_CTX_free(ptr noundef nonnull %18) #5
  %87 = load ptr, ptr %5, align 16, !tbaa !19
  call void @CRYPTO_free(ptr noundef %87, ptr noundef nonnull @.str.1, i32 noundef 672) #5
  %88 = getelementptr inbounds i8, ptr %5, i64 8
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  call void @CRYPTO_free(ptr noundef %89, ptr noundef nonnull @.str.1, i32 noundef 672) #5
  %90 = getelementptr inbounds i8, ptr %5, i64 16
  %91 = load ptr, ptr %90, align 16, !tbaa !19
  call void @CRYPTO_free(ptr noundef %91, ptr noundef nonnull @.str.1, i32 noundef 672) #5
  %92 = getelementptr inbounds i8, ptr %5, i64 24
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  call void @CRYPTO_free(ptr noundef %93, ptr noundef nonnull @.str.1, i32 noundef 672) #5
  %94 = getelementptr inbounds i8, ptr %5, i64 32
  %95 = load ptr, ptr %94, align 16, !tbaa !19
  call void @CRYPTO_free(ptr noundef %95, ptr noundef nonnull @.str.1, i32 noundef 672) #5
  %96 = getelementptr inbounds i8, ptr %5, i64 40
  %97 = load ptr, ptr %96, align 8, !tbaa !19
  call void @CRYPTO_free(ptr noundef %97, ptr noundef nonnull @.str.1, i32 noundef 672) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %1
  %.030 = phi i32 [ -1, %1 ], [ %.129, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret i32 %.030
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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 = { 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 #3 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
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, !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 = !{!"_test_info_", !6, i64 0, !6, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!14, !11, i64 24}
!14 = !{!"_chained_alg_info", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!15 = !{!10, !11, i64 24}
!16 = !{!17, !11, i64 8}
!17 = !{!"_tls_v", !6, i64 0, !11, i64 8}
!18 = !{!17, !6, i64 0}
!19 = !{!11, !11, i64 0}


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