; LLVM IR from openanolis/openssl :: test/helpers (handshake_srp)

; 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.SSL_TEST_EXTRA_CONF = type { %struct.SSL_TEST_CLIENT_CONF, %struct.SSL_TEST_SERVER_CONF, %struct.SSL_TEST_SERVER_CONF }
%struct.SSL_TEST_CLIENT_CONF = type { i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, i32 }
%struct.SSL_TEST_SERVER_CONF = type { i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr }
%struct.ctx_data_st = type { ptr, i64, ptr, i64, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [81 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @configure_handshake_ctx_for_srp(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %16 = load ptr, ptr %12, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %16, i32 0, i32 1
  %18 = getelementptr inbounds %struct.SSL_TEST_SERVER_CONF, ptr %17, i32 0, i32 5
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %62

21:                                               ; preds = %7
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = call i32 @SSL_CTX_set_srp_username_callback(ptr noundef %22, ptr noundef @server_srp_cb)
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %struct.SSL_TEST_SERVER_CONF, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = call ptr @CRYPTO_strdup(ptr noundef %27, ptr noundef @.str, i32 noundef 50)
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ctx_data_st, ptr %29, i32 0, i32 4
  store ptr %28, ptr %30, align 8, !tbaa !14
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds %struct.SSL_TEST_SERVER_CONF, ptr %32, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = call ptr @CRYPTO_strdup(ptr noundef %34, ptr noundef @.str, i32 noundef 51)
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ctx_data_st, ptr %36, i32 0, i32 5
  store ptr %35, ptr %37, align 8, !tbaa !18
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ctx_data_st, ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = icmp eq ptr %40, null
  br i1 %41, label %47, label %42

42:                                               ; preds = %21
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ctx_data_st, ptr %43, i32 0, i32 5
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %58

47:                                               ; preds = %42, %21
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ctx_data_st, ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  call void @CRYPTO_free(ptr noundef %50, ptr noundef @.str, i32 noundef 53)
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ctx_data_st, ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  call void @CRYPTO_free(ptr noundef %53, ptr noundef @.str, i32 noundef 54)
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ctx_data_st, ptr %54, i32 0, i32 4
  store ptr null, ptr %55, align 8, !tbaa !14
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ctx_data_st, ptr %56, i32 0, i32 5
  store ptr null, ptr %57, align 8, !tbaa !18
  store i32 0, ptr %8, align 4
  br label %152

58:                                               ; preds = %42
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = call i32 @SSL_CTX_set_srp_cb_arg(ptr noundef %59, ptr noundef %60)
  br label %62

62:                                               ; preds = %58, %7
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %63, i32 0, i32 2
  %65 = getelementptr inbounds %struct.SSL_TEST_SERVER_CONF, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !19
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %114

68:                                               ; preds = %62
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call i32 @test_ptr(ptr noundef @.str, i32 noundef 62, ptr noundef @.str.1, ptr noundef %69)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 0, ptr %8, align 4
  br label %152

73:                                               ; preds = %68
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call i32 @SSL_CTX_set_srp_username_callback(ptr noundef %74, ptr noundef @server_srp_cb)
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds %struct.SSL_TEST_SERVER_CONF, ptr %77, i32 0, i32 5
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = call ptr @CRYPTO_strdup(ptr noundef %79, ptr noundef @.str, i32 noundef 65)
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ctx_data_st, ptr %81, i32 0, i32 4
  store ptr %80, ptr %82, align 8, !tbaa !14
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %83, i32 0, i32 2
  %85 = getelementptr inbounds %struct.SSL_TEST_SERVER_CONF, ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = call ptr @CRYPTO_strdup(ptr noundef %86, ptr noundef @.str, i32 noundef 66)
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ctx_data_st, ptr %88, i32 0, i32 5
  store ptr %87, ptr %89, align 8, !tbaa !18
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ctx_data_st, ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !14
  %93 = icmp eq ptr %92, null
  br i1 %93, label %99, label %94

94:                                               ; preds = %73
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ctx_data_st, ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = icmp eq ptr %97, null
  br i1 %98, label %99, label %110

99:                                               ; preds = %94, %73
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ctx_data_st, ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !14
  call void @CRYPTO_free(ptr noundef %102, ptr noundef @.str, i32 noundef 68)
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ctx_data_st, ptr %103, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  call void @CRYPTO_free(ptr noundef %105, ptr noundef @.str, i32 noundef 69)
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ctx_data_st, ptr %106, i32 0, i32 4
  store ptr null, ptr %107, align 8, !tbaa !14
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ctx_data_st, ptr %108, i32 0, i32 5
  store ptr null, ptr %109, align 8, !tbaa !18
  store i32 0, ptr %8, align 4
  br label %152

110:                                              ; preds = %94
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = call i32 @SSL_CTX_set_srp_cb_arg(ptr noundef %111, ptr noundef %112)
  br label %114

114:                                              ; preds = %110, %62
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %struct.SSL_TEST_CLIENT_CONF, ptr %116, i32 0, i32 7
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %151

120:                                              ; preds = %114
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds %struct.SSL_TEST_CLIENT_CONF, ptr %123, i32 0, i32 7
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = call i32 @SSL_CTX_set_srp_username(ptr noundef %121, ptr noundef %125)
  %127 = icmp ne i32 %126, 0
  %128 = zext i1 %127 to i32
  %129 = call i32 @test_true(ptr noundef @.str, i32 noundef 78, ptr noundef @.str.2, i32 noundef %128)
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %132, label %131

131:                                              ; preds = %120
  store i32 0, ptr %8, align 4
  br label %152

132:                                              ; preds = %120
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = call i32 @SSL_CTX_set_srp_client_pwd_callback(ptr noundef %133, ptr noundef @client_srp_cb)
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.SSL_TEST_EXTRA_CONF, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.SSL_TEST_CLIENT_CONF, ptr %136, i32 0, i32 8
  %138 = load ptr, ptr %137, align 8, !tbaa !22
  %139 = call ptr @CRYPTO_strdup(ptr noundef %138, ptr noundef @.str, i32 noundef 81)
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ctx_data_st, ptr %140, i32 0, i32 5
  store ptr %139, ptr %141, align 8, !tbaa !18
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ctx_data_st, ptr %142, i32 0, i32 5
  %144 = load ptr, ptr %143, align 8, !tbaa !18
  %145 = icmp eq ptr %144, null
  br i1 %145, label %146, label %147

146:                                              ; preds = %132
  store i32 0, ptr %8, align 4
  br label %152

147:                                              ; preds = %132
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = call i32 @SSL_CTX_set_srp_cb_arg(ptr noundef %148, ptr noundef %149)
  br label %151

151:                                              ; preds = %147, %114
  store i32 1, ptr %8, align 4
  br label %152

152:                                              ; preds = %151, %146, %131, %99, %72, %47
  %153 = load i32, ptr %8, align 4
  ret i32 %153
}

declare i32 @SSL_CTX_set_srp_username_callback(ptr noundef, ptr noundef) #1

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

declare ptr @CRYPTO_strdup(ptr noundef, ptr noundef, i32 noundef) #1

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

declare i32 @SSL_CTX_set_srp_cb_arg(ptr noundef, ptr noundef) #1

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

declare i32 @test_true(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

declare i32 @SSL_CTX_set_srp_username(ptr noundef, ptr noundef) #1

declare i32 @SSL_CTX_set_srp_client_pwd_callback(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @client_srp_cb(ptr noundef, ptr 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" }

!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, !6, i64 104}
!10 = !{!"", !11, i64 0, !13, i64 72, !13, i64 136}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !12, i64 64, !12, i64 68}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !12, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56}
!14 = !{!15, !6, i64 32}
!15 = !{!"ctx_data_st", !6, i64 0, !16, i64 8, !6, i64 16, !16, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!10, !6, i64 112}
!18 = !{!15, !6, i64 40}
!19 = !{!10, !6, i64 168}
!20 = !{!10, !6, i64 176}
!21 = !{!10, !6, i64 48}
!22 = !{!10, !6, i64 56}


; 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 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @configure_handshake_ctx_for_srp(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = getelementptr inbounds i8, ptr %3, i64 104
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %26, label %10

10:                                               ; preds = %7
  %11 = tail call i32 @SSL_CTX_set_srp_username_callback(ptr noundef %0, ptr noundef nonnull @server_srp_cb) #3
  %12 = load ptr, ptr %8, align 8, !tbaa !5
  %13 = tail call ptr @CRYPTO_strdup(ptr noundef %12, ptr noundef nonnull @.str, i32 noundef 50) #3
  %14 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %13, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %3, i64 112
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %17 = tail call ptr @CRYPTO_strdup(ptr noundef %16, ptr noundef nonnull @.str, i32 noundef 51) #3
  %18 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %17, ptr %18, align 8, !tbaa !17
  %19 = load ptr, ptr %14, align 8, !tbaa !13
  %20 = icmp eq ptr %19, null
  %21 = icmp eq ptr %17, null
  %or.cond = select i1 %20, i1 true, i1 %21
  br i1 %or.cond, label %22, label %24

22:                                               ; preds = %10
  tail call void @CRYPTO_free(ptr noundef %19, ptr noundef nonnull @.str, i32 noundef 53) #3
  %23 = load ptr, ptr %18, align 8, !tbaa !17
  tail call void @CRYPTO_free(ptr noundef %23, ptr noundef nonnull @.str, i32 noundef 54) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  br label %64

24:                                               ; preds = %10
  %25 = tail call i32 @SSL_CTX_set_srp_cb_arg(ptr noundef %0, ptr noundef nonnull %4) #3
  br label %26

26:                                               ; preds = %24, %7
  %27 = getelementptr inbounds i8, ptr %3, i64 168
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %.not39 = icmp eq ptr %28, null
  br i1 %.not39, label %47, label %29

29:                                               ; preds = %26
  %30 = tail call i32 @test_ptr(ptr noundef nonnull @.str, i32 noundef 62, ptr noundef nonnull @.str.1, ptr noundef %1) #3
  %.not40 = icmp eq i32 %30, 0
  br i1 %.not40, label %64, label %31

31:                                               ; preds = %29
  %32 = tail call i32 @SSL_CTX_set_srp_username_callback(ptr noundef %1, ptr noundef nonnull @server_srp_cb) #3
  %33 = load ptr, ptr %27, align 8, !tbaa !18
  %34 = tail call ptr @CRYPTO_strdup(ptr noundef %33, ptr noundef nonnull @.str, i32 noundef 65) #3
  %35 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %34, ptr %35, align 8, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %3, i64 176
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = tail call ptr @CRYPTO_strdup(ptr noundef %37, ptr noundef nonnull @.str, i32 noundef 66) #3
  %39 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %38, ptr %39, align 8, !tbaa !17
  %40 = load ptr, ptr %35, align 8, !tbaa !13
  %41 = icmp eq ptr %40, null
  %42 = icmp eq ptr %38, null
  %or.cond43 = select i1 %41, i1 true, i1 %42
  br i1 %or.cond43, label %43, label %45

43:                                               ; preds = %31
  tail call void @CRYPTO_free(ptr noundef %40, ptr noundef nonnull @.str, i32 noundef 68) #3
  %44 = load ptr, ptr %39, align 8, !tbaa !17
  tail call void @CRYPTO_free(ptr noundef %44, ptr noundef nonnull @.str, i32 noundef 69) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, i8 0, i64 16, i1 false)
  br label %64

45:                                               ; preds = %31
  %46 = tail call i32 @SSL_CTX_set_srp_cb_arg(ptr noundef %1, ptr noundef nonnull %5) #3
  br label %47

47:                                               ; preds = %45, %26
  %48 = getelementptr inbounds i8, ptr %3, i64 48
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  %.not41 = icmp eq ptr %49, null
  br i1 %.not41, label %64, label %50

50:                                               ; preds = %47
  %51 = tail call i32 @SSL_CTX_set_srp_username(ptr noundef %2, ptr noundef nonnull %49) #3
  %52 = icmp ne i32 %51, 0
  %53 = zext i1 %52 to i32
  %54 = tail call i32 @test_true(ptr noundef nonnull @.str, i32 noundef 78, ptr noundef nonnull @.str.2, i32 noundef %53) #3
  %.not42 = icmp eq i32 %54, 0
  br i1 %.not42, label %64, label %55

55:                                               ; preds = %50
  %56 = tail call i32 @SSL_CTX_set_srp_client_pwd_callback(ptr noundef %2, ptr noundef nonnull @client_srp_cb) #3
  %57 = getelementptr inbounds i8, ptr %3, i64 56
  %58 = load ptr, ptr %57, align 8, !tbaa !21
  %59 = tail call ptr @CRYPTO_strdup(ptr noundef %58, ptr noundef nonnull @.str, i32 noundef 81) #3
  %60 = getelementptr inbounds i8, ptr %6, i64 40
  store ptr %59, ptr %60, align 8, !tbaa !17
  %61 = icmp eq ptr %59, null
  br i1 %61, label %64, label %62

62:                                               ; preds = %55
  %63 = tail call i32 @SSL_CTX_set_srp_cb_arg(ptr noundef %2, ptr noundef nonnull %6) #3
  br label %64

64:                                               ; preds = %47, %62, %55, %50, %29, %43, %22
  %.0 = phi i32 [ 0, %22 ], [ 0, %43 ], [ 0, %29 ], [ 0, %50 ], [ 0, %55 ], [ 1, %62 ], [ 1, %47 ]
  ret i32 %.0
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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, !11, i64 104}
!6 = !{!"", !7, i64 0, !12, i64 72, !12, i64 136}
!7 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !8, i64 64, !8, i64 68}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 28, !11, i64 32, !11, i64 40, !8, i64 48, !11, i64 56}
!13 = !{!14, !11, i64 32}
!14 = !{!"ctx_data_st", !11, i64 0, !15, i64 8, !11, i64 16, !15, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!15 = !{!"long", !9, i64 0}
!16 = !{!6, !11, i64 112}
!17 = !{!14, !11, i64 40}
!18 = !{!6, !11, i64 168}
!19 = !{!6, !11, i64 176}
!20 = !{!6, !11, i64 48}
!21 = !{!6, !11, i64 56}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass