#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ out;
typedef int /*<<< orphan*/ expected;
typedef int /*<<< orphan*/ EVP_PKEY_CTX;

/* Variables and functions */
scalar_t__ EVP_PKEY_CTX_add1_hkdf_info(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ EVP_PKEY_CTX_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *EVP_PKEY_CTX_new_id(int /*<<< orphan*/,
                                        int /*<<< orphan*/ *);
scalar_t__ EVP_PKEY_CTX_set1_hkdf_key(int /*<<< orphan*/ *, char *, int);
scalar_t__ EVP_PKEY_CTX_set1_hkdf_salt(int /*<<< orphan*/ *, char *, int);
scalar_t__ EVP_PKEY_CTX_set_hkdf_md(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ EVP_PKEY_HKDF;
scalar_t__ EVP_PKEY_derive(int /*<<< orphan*/ *, unsigned char *, size_t *);
scalar_t__ EVP_PKEY_derive_init(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_sha256();
int /*<<< orphan*/ test_error(char *, int, char *);
int /*<<< orphan*/ test_mem_eq(char *, int, char *, char *, unsigned char *,
                               int, unsigned char const *, int);
int test_kdf_hkdf(void) {
  EVP_PKEY_CTX *pctx;
  unsigned char out[10];
  size_t outlen = sizeof(out);
  pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, NULL);
  if (EVP_PKEY_derive_init(pctx) <= 0) {
    test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/"
               "heads/master/humble-video-captive/src/main/gnu/openssl/csrc/"
               "test/pkey_meth_kdf_test.c",
               68, "EVP_PKEY_derive_init");
    return 0;
  }
  if (EVP_PKEY_CTX_set_hkdf_md(pctx, EVP_sha256()) <= 0) {
    test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/"
               "heads/master/humble-video-captive/src/main/gnu/openssl/csrc/"
               "test/pkey_meth_kdf_test.c",
               72, "EVP_PKEY_CTX_set_hkdf_md");
    return 0;
  }
  if (EVP_PKEY_CTX_set1_hkdf_salt(pctx, "salt", 4) <= 0) {
    test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/"
               "heads/master/humble-video-captive/src/main/gnu/openssl/csrc/"
               "test/pkey_meth_kdf_test.c",
               76, "EVP_PKEY_CTX_set1_hkdf_salt");
    return 0;
  }
  if (EVP_PKEY_CTX_set1_hkdf_key(pctx, "secret", 6) <= 0) {
    test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/"
               "heads/master/humble-video-captive/src/main/gnu/openssl/csrc/"
               "test/pkey_meth_kdf_test.c",
               80, "EVP_PKEY_CTX_set1_hkdf_key");
    return 0;
  }
  if (EVP_PKEY_CTX_add1_hkdf_info(pctx, "label", 5) <= 0) {
    test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/"
               "heads/master/humble-video-captive/src/main/gnu/openssl/csrc/"
               "test/pkey_meth_kdf_test.c",
               84, "EVP_PKEY_CTX_set1_hkdf_info");
    return 0;
  }
  if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) {
    test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/"
               "heads/master/humble-video-captive/src/main/gnu/openssl/csrc/"
               "test/pkey_meth_kdf_test.c",
               88, "EVP_PKEY_derive");
    return 0;
  }
  {
    const unsigned char expected[sizeof(out)] = {0x2a, 0xc4, 0x36, 0x9f, 0x52,
                                                 0x59, 0x96, 0xf8, 0xde, 0x13};
    if (!test_mem_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/"
                     "refs/heads/master/humble-video-captive/src/main/gnu/"
                     "openssl/csrc/test/pkey_meth_kdf_test.c",
                     96, "out", "expected", out, sizeof(out), expected,
                     sizeof(expected))) {
      return 0;
    }
  }
  EVP_PKEY_CTX_free(pctx);
  return 1;
}


x86 assembly (clang, -O0):
<test_kdf_hkdf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movq   $0xa,-0x28(%rbp)
mov    0x2e19(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1080 <EVP_PKEY_CTX_new_id@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <EVP_PKEY_derive_init@plt>
cmp    $0x0,%rax
jg     120d <test_kdf_hkdf+0x5d>
lea    0xe10(%rip),%rdi
mov    $0x44,%esi
lea    0xed0(%rip),%rdx
call   10c0 <test_error@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x0,%al
call   10b0 <EVP_sha256@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%esi
call   1070 <EVP_PKEY_CTX_set_hkdf_md@plt>
cmp    $0x0,%rax
jg     1255 <test_kdf_hkdf+0xa5>
lea    0xdc8(%rip),%rdi
mov    $0x48,%esi
lea    0xe9d(%rip),%rdx
call   10c0 <test_error@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    -0x10(%rbp),%rdi
lea    0xeb1(%rip),%rsi
mov    $0x4,%edx
call   1050 <EVP_PKEY_CTX_set1_hkdf_salt@plt>
cmp    $0x0,%rax
jg     1298 <test_kdf_hkdf+0xe8>
lea    0xd85(%rip),%rdi
mov    $0x4c,%esi
lea    0xe73(%rip),%rdx
call   10c0 <test_error@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    -0x10(%rbp),%rdi
lea    0xe73(%rip),%rsi
mov    $0x6,%edx
call   1040 <EVP_PKEY_CTX_set1_hkdf_key@plt>
cmp    $0x0,%rax
jg     12db <test_kdf_hkdf+0x12b>
lea    0xd42(%rip),%rdi
mov    $0x50,%esi
lea    0xe53(%rip),%rdx
call   10c0 <test_error@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    -0x10(%rbp),%rdi
lea    0xe52(%rip),%rsi
mov    $0x5,%edx
call   1030 <EVP_PKEY_CTX_add1_hkdf_info@plt>
cmp    $0x0,%rax
jg     131e <test_kdf_hkdf+0x16e>
lea    0xcff(%rip),%rdi
mov    $0x54,%esi
lea    0xe31(%rip),%rdx
call   10c0 <test_error@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    -0x10(%rbp),%rdi
lea    -0x1a(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   1090 <EVP_PKEY_derive@plt>
cmp    $0x0,%rax
jg     135d <test_kdf_hkdf+0x1ad>
lea    0xcc0(%rip),%rdi
mov    $0x58,%esi
lea    0xe0e(%rip),%rdx
call   10c0 <test_error@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    0xe13(%rip),%rax
mov    %rax,-0x32(%rbp)
mov    0xe10(%rip),%ax
mov    %ax,-0x2a(%rbp)
lea    -0x1a(%rbp),%r8
lea    -0x32(%rbp),%rax
lea    0xc7e(%rip),%rdi
mov    $0x60,%esi
lea    0xddc(%rip),%rdx
lea    0xdd9(%rip),%rcx
mov    $0xa,%r9d
mov    %rax,(%rsp)
movl   $0xa,0x8(%rsp)
call   10a0 <test_mem_eq@plt>
cmp    $0x0,%eax
jne    13c1 <test_kdf_hkdf+0x211>
movl   $0x0,-0x4(%rbp)
jmp    13d1 <test_kdf_hkdf+0x221>
mov    -0x10(%rbp),%rdi
call   10d0 <EVP_PKEY_CTX_free@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_kdf_hkdf>:
push   %r14
push   %rbx
sub    $0x28,%rsp
movq   $0xa,0x10(%rsp)
mov    0x2e19(%rip),%rax
mov    (%rax),%edi
xor    %ebx,%ebx
xor    %esi,%esi
call   1080 <EVP_PKEY_CTX_new_id@plt>
mov    %rax,%r14
mov    %rax,%rdi
call   1060 <EVP_PKEY_derive_init@plt>
test   %rax,%rax
jle    12d7 <test_kdf_hkdf+0x127>
xor    %ebx,%ebx
xor    %eax,%eax
call   10b0 <EVP_sha256@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1070 <EVP_PKEY_CTX_set_hkdf_md@plt>
test   %rax,%rax
jle    12f1 <test_kdf_hkdf+0x141>
lea    0xf08(%rip),%rsi
mov    %r14,%rdi
mov    $0x4,%edx
call   1050 <EVP_PKEY_CTX_set1_hkdf_salt@plt>
test   %rax,%rax
jle    130b <test_kdf_hkdf+0x15b>
lea    0xef0(%rip),%rsi
mov    %r14,%rdi
mov    $0x6,%edx
call   1040 <EVP_PKEY_CTX_set1_hkdf_key@plt>
test   %rax,%rax
jle    1320 <test_kdf_hkdf+0x170>
lea    0xef5(%rip),%rsi
mov    %r14,%rdi
mov    $0x5,%edx
call   1030 <EVP_PKEY_CTX_add1_hkdf_info@plt>
test   %rax,%rax
jle    1335 <test_kdf_hkdf+0x185>
lea    0x1e(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %r14,%rdi
call   1090 <EVP_PKEY_derive@plt>
test   %rax,%rax
jle    134a <test_kdf_hkdf+0x19a>
movabs $0xf89659529f36c42a,%rax
59 96 f8
mov    %rax,(%rsp)
movw   $0x13de,0x8(%rsp)
mov    %rsp,%rax
lea    0xd6d(%rip),%rdi
lea    0xed0(%rip),%rdx
lea    0xecd(%rip),%rcx
lea    0x1e(%rsp),%r8
mov    $0x60,%esi
mov    $0xa,%r9d
push   $0xa
push   %rax
call   10a0 <test_mem_eq@plt>
add    $0x10,%rsp
test   %eax,%eax
je     1362 <test_kdf_hkdf+0x1b2>
mov    %r14,%rdi
call   10d0 <EVP_PKEY_CTX_free@plt>
mov    $0x1,%ebx
jmp    1364 <test_kdf_hkdf+0x1b4>
lea    0xd22(%rip),%rdi
lea    0xde7(%rip),%rdx
mov    $0x44,%esi
call   10c0 <test_error@plt>
jmp    1364 <test_kdf_hkdf+0x1b4>
lea    0xd08(%rip),%rdi
lea    0xde2(%rip),%rdx
mov    $0x48,%esi
call   10c0 <test_error@plt>
jmp    1364 <test_kdf_hkdf+0x1b4>
lea    0xcee(%rip),%rdi
lea    0xde1(%rip),%rdx
mov    $0x4c,%esi
jmp    135d <test_kdf_hkdf+0x1ad>
lea    0xcd9(%rip),%rdi
lea    0xdef(%rip),%rdx
mov    $0x50,%esi
jmp    135d <test_kdf_hkdf+0x1ad>
lea    0xcc4(%rip),%rdi
lea    0xdfb(%rip),%rdx
mov    $0x54,%esi
jmp    135d <test_kdf_hkdf+0x1ad>
lea    0xcaf(%rip),%rdi
lea    0xe02(%rip),%rdx
mov    $0x58,%esi
call   10c0 <test_error@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@EVP_PKEY_HKDF = global i32 0
@.str = [204 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/pkey_meth_kdf_test.c\00"
@.str.1 = [21 x i8] c"EVP_PKEY_derive_init\00"
@.str.2 = [25 x i8] c"EVP_PKEY_CTX_set_hkdf_md\00"
@.str.3 = [5 x i8] c"salt\00"
@.str.4 = [28 x i8] c"EVP_PKEY_CTX_set1_hkdf_salt\00"
@.str.5 = [7 x i8] c"secret\00"
@.str.6 = [27 x i8] c"EVP_PKEY_CTX_set1_hkdf_key\00"
@.str.7 = [6 x i8] c"label\00"
@.str.8 = [28 x i8] c"EVP_PKEY_CTX_set1_hkdf_info\00"
@.str.9 = [16 x i8] c"EVP_PKEY_derive\00"
@__const.test_kdf_hkdf.expected = [10 x i8] c"*\C46\9FRY\96\F8\DE\13"
@.str.10 = [4 x i8] c"out\00"
@.str.11 = [9 x i8] c"expected\00"
define i32 @test_kdf_hkdf() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [10 x i8]
%4 = alloca i64
%5 = alloca [10 x i8]
store i64 10, i64* %4
%6 = load i32, i32* @EVP_PKEY_HKDF
%7 = call i32* @EVP_PKEY_CTX_new_id(i32 %6, i32* null)
store i32* %7, i32** %2
%8 = load i32*, i32** %2
%9 = call i64 @EVP_PKEY_derive_init(i32* %8)
%10 = icmp sle i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 68, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %55
13: ; preds = %0
%14 = load i32*, i32** %2
%15 = call i32 (...) @EVP_sha256()
%16 = call i64 @EVP_PKEY_CTX_set_hkdf_md(i32* %14, i32 %15)
%17 = icmp sle i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %55
20: ; preds = %13
%21 = load i32*, i32** %2
%22 = call i64 @EVP_PKEY_CTX_set1_hkdf_salt(i32* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%23 = icmp sle i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 76, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %55
26: ; preds = %20
%27 = load i32*, i32** %2
%28 = call i64 @EVP_PKEY_CTX_set1_hkdf_key(i32* %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%29 = icmp sle i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 80, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %1
br label %55
32: ; preds = %26
%33 = load i32*, i32** %2
%34 = call i64 @EVP_PKEY_CTX_add1_hkdf_info(i32* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%35 = icmp sle i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 84, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %1
br label %55
38: ; preds = %32
%39 = load i32*, i32** %2
%40 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%41 = call i64 @EVP_PKEY_derive(i32* %39, i8* %40, i64* %4)
%42 = icmp sle i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 88, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %1
br label %55
45: ; preds = %38
%46 = bitcast [10 x i8]* %5 to i8*
%47 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%48 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%49 = call i32 @test_mem_eq(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* %47, i32 10, i8* %48, i32 10)
%50 = icmp ne i32 %49, 0
br i1 %50, label %52, label %51
51: ; preds = %45
store i32 0, i32* %1
br label %55
52: ; preds = %45
%53 = load i32*, i32** %2
%54 = call i32 @EVP_PKEY_CTX_free(i32* %53)
store i32 1, i32* %1
br label %55
55: ; preds = %52, %51, %43, %36, %30, %24, %18, %11
%56 = load i32, i32* %1
ret i32 %56
}

LLVM IR (-O2):
@EVP_PKEY_HKDF = global i32 0
@.str = [204 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/pkey_meth_kdf_test.c\00"
@.str.1 = [21 x i8] c"EVP_PKEY_derive_init\00"
@.str.2 = [25 x i8] c"EVP_PKEY_CTX_set_hkdf_md\00"
@.str.3 = [5 x i8] c"salt\00"
@.str.4 = [28 x i8] c"EVP_PKEY_CTX_set1_hkdf_salt\00"
@.str.5 = [7 x i8] c"secret\00"
@.str.6 = [27 x i8] c"EVP_PKEY_CTX_set1_hkdf_key\00"
@.str.7 = [6 x i8] c"label\00"
@.str.8 = [28 x i8] c"EVP_PKEY_CTX_set1_hkdf_info\00"
@.str.9 = [16 x i8] c"EVP_PKEY_derive\00"
@__const.test_kdf_hkdf.expected = [10 x i8] c"*\C46\9FRY\96\F8\DE\13"
@.str.10 = [4 x i8] c"out\00"
@.str.11 = [9 x i8] c"expected\00"
define i32 @test_kdf_hkdf() {
%1 = alloca [10 x i8]
%2 = alloca i64
%3 = alloca [10 x i8]
%4 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%5 = bitcast i64* %2 to i8*
store i64 10, i64* %2
%6 = load i32, i32* @EVP_PKEY_HKDF
%7 = tail call i32* @EVP_PKEY_CTX_new_id(i32 %6, i32* null)
%8 = tail call i64 @EVP_PKEY_derive_init(i32* %7)
%9 = icmp slt i64 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = tail call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 68, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %44
12: ; preds = %0
%13 = tail call i32 (...) @EVP_sha256()
%14 = tail call i64 @EVP_PKEY_CTX_set_hkdf_md(i32* %7, i32 %13)
%15 = icmp slt i64 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = tail call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %44
18: ; preds = %12
%19 = tail call i64 @EVP_PKEY_CTX_set1_hkdf_salt(i32* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%20 = icmp slt i64 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 76, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
br label %44
23: ; preds = %18
%24 = tail call i64 @EVP_PKEY_CTX_set1_hkdf_key(i32* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%25 = icmp slt i64 %24, 1
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = tail call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 80, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %44
28: ; preds = %23
%29 = tail call i64 @EVP_PKEY_CTX_add1_hkdf_info(i32* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%30 = icmp slt i64 %29, 1
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = tail call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 84, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
br label %44
33: ; preds = %28
%34 = call i64 @EVP_PKEY_derive(i32* %7, i8* %4, i64* %2)
%35 = icmp slt i64 %34, 1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @test_error(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 88, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
br label %44
38: ; preds = %33
%39 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%40 = call i32 @test_mem_eq(i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* %4, i32 10, i8* %39, i32 10)
%41 = icmp eq i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %38
%43 = call i32 @EVP_PKEY_CTX_free(i32* %7)
br label %44
44: ; preds = %38, %42, %36, %31, %26, %21, %16, %10
%45 = phi i32 [ 0, %10 ], [ 0, %16 ], [ 0, %21 ], [ 0, %26 ], [ 0, %31 ], [ 0, %36 ], [ 1, %42 ], [ 0, %38 ]
ret i32 %45
}