; LLVM IR from gost-engine/engine :: test_ciphers (main)

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

@testcases = external hidden global [11 x %struct.testcase], align 16
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @warn_all_untested() #2

declare void @ERR_print_errors_fp(ptr noundef) #1

; Function Attrs: noreturn
declare void @OPENSSL_die(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %11 = call i32 @OPENSSL_init_crypto(i64 noundef 76, ptr noundef null)
  store ptr @testcases, ptr %7, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %120, %2
  %13 = load ptr, ptr %7, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.testcase, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %123

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %18 = load ptr, ptr %7, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.testcase, ptr %18, i32 0, i32 9
  %20 = load i32, ptr %19, align 8, !tbaa !14
  %21 = icmp ne i32 %20, 0
  %22 = zext i1 %21 to i64
  %23 = select i1 %21, ptr @.str.8, ptr @.str.9
  store ptr %23, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %24 = call i32 @ERR_set_mark()
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.testcase, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr @EVP_get_cipherbyname(ptr noundef %27)
  store ptr %28, ptr %10, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %38, label %30

30:                                               ; preds = %17
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.testcase, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = call ptr @EVP_CIPHER_fetch(ptr noundef null, ptr noundef %33, ptr noundef null)
  store ptr %34, ptr %10, align 8, !tbaa !9
  %35 = icmp ne ptr %34, null
  br i1 %35, label %38, label %36

36:                                               ; preds = %30
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @ERR_print_errors_fp(ptr noundef %37)
  call void @OPENSSL_die(ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 585) #5
  unreachable

38:                                               ; preds = %30, %17
  %39 = call i32 @ERR_pop_to_mark()
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.testcase, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = load ptr, ptr %9, align 8, !tbaa !9
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %42, ptr noundef %43)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %81, %38
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = icmp sle i32 %46, 1
  br i1 %47, label %48, label %84

48:                                               ; preds = %45
  %49 = load ptr, ptr %10, align 8, !tbaa !9
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.testcase, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.testcase, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !15
  %56 = load ptr, ptr %7, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.testcase, ptr %56, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.testcase, ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  %62 = load ptr, ptr %7, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.testcase, ptr %62, i32 0, i32 5
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = load ptr, ptr %7, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.testcase, ptr %65, i32 0, i32 6
  %67 = load i64, ptr %66, align 8, !tbaa !19
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.testcase, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.testcase, ptr %71, i32 0, i32 8
  %73 = load i64, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %7, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.testcase, ptr %74, i32 0, i32 9
  %76 = load i32, ptr %75, align 8, !tbaa !14
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = call i32 @test_block(ptr noundef %49, ptr noundef %52, i32 noundef %55, ptr noundef %58, ptr noundef %61, ptr noundef %64, i64 noundef %67, ptr noundef %70, i64 noundef %73, i32 noundef %76, i32 noundef %77)
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = or i32 %79, %78
  store i32 %80, ptr %6, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %48
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %8, align 4, !tbaa !5
  br label %45, !llvm.loop !22

84:                                               ; preds = %45
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.testcase, ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 4, !tbaa !24
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %118

89:                                               ; preds = %84
  %90 = load ptr, ptr %10, align 8, !tbaa !9
  %91 = load ptr, ptr %7, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.testcase, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = load ptr, ptr %7, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.testcase, ptr %94, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.testcase, ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = load ptr, ptr %7, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.testcase, ptr %100, i32 0, i32 5
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = load ptr, ptr %7, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.testcase, ptr %103, i32 0, i32 6
  %105 = load i64, ptr %104, align 8, !tbaa !19
  %106 = load ptr, ptr %7, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.testcase, ptr %106, i32 0, i32 7
  %108 = load ptr, ptr %107, align 8, !tbaa !20
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.testcase, ptr %109, i32 0, i32 8
  %111 = load i64, ptr %110, align 8, !tbaa !21
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.testcase, ptr %112, i32 0, i32 9
  %114 = load i32, ptr %113, align 8, !tbaa !14
  %115 = call i32 @test_stream(ptr noundef %90, ptr noundef %93, ptr noundef %96, ptr noundef %99, ptr noundef %102, i64 noundef %105, ptr noundef %108, i64 noundef %111, i32 noundef %114)
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = or i32 %116, %115
  store i32 %117, ptr %6, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %89, %84
  %119 = load ptr, ptr %10, align 8, !tbaa !9
  call void @EVP_CIPHER_free(ptr noundef %119)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %120

120:                                              ; preds = %118
  %121 = load ptr, ptr %7, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.testcase, ptr %121, i32 1
  store ptr %122, ptr %7, align 8, !tbaa !9
  br label %12, !llvm.loop !25

123:                                              ; preds = %12
  call void @warn_all_untested()
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %123
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %130

128:                                              ; preds = %123
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %130

130:                                              ; preds = %128, %126
  %131 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  ret i32 %131
}

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

declare i32 @ERR_set_mark() #1

declare ptr @EVP_get_cipherbyname(ptr noundef) #1

declare ptr @EVP_CIPHER_fetch(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @ERR_pop_to_mark() #1

; Function Attrs: nounwind uwtable
declare hidden i32 @test_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @test_stream(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) #2

declare void @EVP_CIPHER_free(ptr 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 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 #3 = { noreturn "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 = { noreturn }

!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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"testcase", !10, i64 0, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !10, i64 48, !13, i64 56, !6, i64 64}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 64}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !10, i64 16}
!17 = !{!12, !10, i64 24}
!18 = !{!12, !10, i64 32}
!19 = !{!12, !13, i64 40}
!20 = !{!12, !10, i64 48}
!21 = !{!12, !13, i64 56}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !6, i64 12}
!25 = distinct !{!25, !23}


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

@testcases = external hidden local_unnamed_addr global [11 x %struct.testcase], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @warn_all_untested() local_unnamed_addr #1

declare void @ERR_print_errors_fp(ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn
declare void @OPENSSL_die(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
  %3 = tail call i32 @OPENSSL_init_crypto(i64 noundef 76, ptr noundef null) #4
  %4 = load ptr, ptr @testcases, align 16, !tbaa !5
  %.not47 = icmp eq ptr %4, null
  br i1 %.not47, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %2
  tail call void @warn_all_untested()
  br label %65

.lr.ph:                                           ; preds = %2, %62
  %.03449 = phi i32 [ %.2, %62 ], [ 0, %2 ]
  %.03648 = phi ptr [ %63, %62 ], [ @testcases, %2 ]
  %5 = getelementptr inbounds i8, ptr %.03648, i64 64
  %6 = load i32, ptr %5, align 8, !tbaa !12
  %.not40 = icmp eq i32 %6, 0
  %7 = select i1 %.not40, ptr @.str.9, ptr @.str.8
  %8 = tail call i32 @ERR_set_mark() #4
  %9 = load ptr, ptr %.03648, align 8, !tbaa !5
  %10 = tail call ptr @EVP_get_cipherbyname(ptr noundef %9) #4
  %.not41 = icmp eq ptr %10, null
  br i1 %.not41, label %11, label %16

11:                                               ; preds = %.lr.ph
  %12 = load ptr, ptr %.03648, align 8, !tbaa !5
  %13 = tail call ptr @EVP_CIPHER_fetch(ptr noundef null, ptr noundef %12, ptr noundef null) #4
  %.not42 = icmp eq ptr %13, null
  br i1 %.not42, label %14, label %16

14:                                               ; preds = %11
  %15 = load ptr, ptr @stderr, align 8, !tbaa !13
  tail call void @ERR_print_errors_fp(ptr noundef %15) #4
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 585) #5
  unreachable

16:                                               ; preds = %11, %.lr.ph
  %.0 = phi ptr [ %10, %.lr.ph ], [ %13, %11 ]
  %17 = tail call i32 @ERR_pop_to_mark() #4
  %18 = load ptr, ptr %.03648, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %18, ptr noundef nonnull %7)
  %20 = getelementptr inbounds i8, ptr %.03648, i64 8
  %21 = getelementptr inbounds i8, ptr %.03648, i64 16
  %22 = getelementptr inbounds i8, ptr %.03648, i64 24
  %23 = getelementptr inbounds i8, ptr %.03648, i64 32
  %24 = getelementptr inbounds i8, ptr %.03648, i64 40
  %25 = getelementptr inbounds i8, ptr %.03648, i64 48
  %26 = getelementptr inbounds i8, ptr %.03648, i64 56
  %27 = load ptr, ptr %.03648, align 8, !tbaa !5
  %28 = load i32, ptr %20, align 8, !tbaa !14
  %29 = load ptr, ptr %21, align 8, !tbaa !15
  %30 = load ptr, ptr %22, align 8, !tbaa !16
  %31 = load ptr, ptr %23, align 8, !tbaa !17
  %32 = load i64, ptr %24, align 8, !tbaa !18
  %33 = load ptr, ptr %25, align 8, !tbaa !19
  %34 = load i64, ptr %26, align 8, !tbaa !20
  %35 = load i32, ptr %5, align 8, !tbaa !12
  %36 = tail call i32 @test_block(ptr noundef nonnull %.0, ptr noundef %27, i32 noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, i64 noundef %32, ptr noundef %33, i64 noundef %34, i32 noundef %35, i32 noundef 0)
  %37 = or i32 %36, %.03449
  %38 = load ptr, ptr %.03648, align 8, !tbaa !5
  %39 = load i32, ptr %20, align 8, !tbaa !14
  %40 = load ptr, ptr %21, align 8, !tbaa !15
  %41 = load ptr, ptr %22, align 8, !tbaa !16
  %42 = load ptr, ptr %23, align 8, !tbaa !17
  %43 = load i64, ptr %24, align 8, !tbaa !18
  %44 = load ptr, ptr %25, align 8, !tbaa !19
  %45 = load i64, ptr %26, align 8, !tbaa !20
  %46 = load i32, ptr %5, align 8, !tbaa !12
  %47 = tail call i32 @test_block(ptr noundef nonnull %.0, ptr noundef %38, i32 noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, i64 noundef %43, ptr noundef %44, i64 noundef %45, i32 noundef %46, i32 noundef 1)
  %48 = or i32 %47, %37
  %49 = getelementptr inbounds i8, ptr %.03648, i64 12
  %50 = load i32, ptr %49, align 4, !tbaa !21
  %.not43 = icmp eq i32 %50, 0
  br i1 %.not43, label %62, label %51

51:                                               ; preds = %16
  %52 = load ptr, ptr %.03648, align 8, !tbaa !5
  %53 = load ptr, ptr %21, align 8, !tbaa !15
  %54 = load ptr, ptr %22, align 8, !tbaa !16
  %55 = load ptr, ptr %23, align 8, !tbaa !17
  %56 = load i64, ptr %24, align 8, !tbaa !18
  %57 = load ptr, ptr %25, align 8, !tbaa !19
  %58 = load i64, ptr %26, align 8, !tbaa !20
  %59 = load i32, ptr %5, align 8, !tbaa !12
  %60 = tail call i32 @test_stream(ptr noundef nonnull %.0, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, i64 noundef %56, ptr noundef %57, i64 noundef %58, i32 noundef %59)
  %61 = or i32 %60, %48
  br label %62

62:                                               ; preds = %51, %16
  %.2 = phi i32 [ %61, %51 ], [ %48, %16 ]
  tail call void @EVP_CIPHER_free(ptr noundef nonnull %.0) #4
  %63 = getelementptr inbounds i8, ptr %.03648, i64 72
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %.not = icmp eq ptr %64, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %62
  tail call void @warn_all_untested()
  %.not39 = icmp eq i32 %.2, 0
  br i1 %.not39, label %65, label %66

65:                                               ; preds = %._crit_edge.thread, %._crit_edge
  br label %66

66:                                               ; preds = %._crit_edge, %65
  %.str.13.sink = phi ptr [ @.str.13, %65 ], [ @.str.12, %._crit_edge ]
  %.034.lcssa52 = phi i32 [ 0, %65 ], [ %.2, %._crit_edge ]
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13.sink)
  ret i32 %.034.lcssa52
}

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

declare i32 @ERR_set_mark() local_unnamed_addr #2

declare ptr @EVP_get_cipherbyname(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_CIPHER_fetch(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ERR_pop_to_mark() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @test_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @test_stream(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare void @EVP_CIPHER_free(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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 #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 = { noreturn "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 = { noreturn 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 = !{!"testcase", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !11, i64 40, !7, i64 48, !11, i64 56, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !10, i64 64}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !7, i64 24}
!17 = !{!6, !7, i64 32}
!18 = !{!6, !11, i64 40}
!19 = !{!6, !7, i64 48}
!20 = !{!6, !11, i64 56}
!21 = !{!6, !10, i64 12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass