#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 */

/* Variables and functions */
int /*<<< orphan*/ EVP_add_cipher(int /*<<< orphan*/);
int /*<<< orphan*/ EVP_add_digest(int /*<<< orphan*/);
int /*<<< orphan*/ EVP_add_digest_alias(int /*<<< orphan*/, char *);
int /*<<< orphan*/ EVP_aes_128_cbc();
int /*<<< orphan*/ EVP_aes_192_cbc();
int /*<<< orphan*/ EVP_aes_256_cbc();
int /*<<< orphan*/ EVP_camellia_128_cbc();
int /*<<< orphan*/ EVP_camellia_256_cbc();
int /*<<< orphan*/ EVP_des_cbc();
int /*<<< orphan*/ EVP_des_ede3_cbc();
int /*<<< orphan*/ EVP_dss1();
int /*<<< orphan*/ EVP_ecdsa();
int /*<<< orphan*/ EVP_idea_cbc();
int /*<<< orphan*/ EVP_md5();
int /*<<< orphan*/ EVP_rc2_cbc();
int /*<<< orphan*/ EVP_rc4();
int /*<<< orphan*/ EVP_seed_cbc();
int /*<<< orphan*/ EVP_sha1();
int /*<<< orphan*/ EVP_sha224();
int /*<<< orphan*/ EVP_sha256();
int /*<<< orphan*/ EVP_sha384();
int /*<<< orphan*/ EVP_sha512();
int /*<<< orphan*/ SN_dsaWithSHA1;
char *SN_dsaWithSHA1_2;
int /*<<< orphan*/ SN_md5;
int /*<<< orphan*/ SN_sha1;
char *SN_sha1WithRSA;
int /*<<< orphan*/ SN_sha1WithRSAEncryption;
int /*<<< orphan*/ SSL_COMP_get_compression_methods();
int /*<<< orphan*/ ssl_load_ciphers();
int SSL_library_init(void) {
  EVP_add_cipher(EVP_des_cbc());
  EVP_add_cipher(EVP_des_ede3_cbc());
  EVP_add_cipher(EVP_idea_cbc());
  EVP_add_cipher(EVP_rc4());
  EVP_add_cipher(EVP_rc2_cbc());
  EVP_add_cipher(EVP_aes_128_cbc());
  EVP_add_cipher(EVP_aes_192_cbc());
  EVP_add_cipher(EVP_aes_256_cbc());
  EVP_add_cipher(EVP_camellia_128_cbc());
  EVP_add_cipher(EVP_camellia_256_cbc());
  EVP_add_cipher(EVP_seed_cbc());
  EVP_add_digest(EVP_md5());
  EVP_add_digest_alias(SN_md5, "ssl2-md5");
  EVP_add_digest_alias(SN_md5, "ssl3-md5");
  EVP_add_digest(EVP_sha1());
  EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
  EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
  EVP_add_digest(EVP_sha224());
  EVP_add_digest(EVP_sha256());
  EVP_add_digest(EVP_sha384());
  EVP_add_digest(EVP_sha512());
  EVP_add_digest(EVP_dss1());
  EVP_add_digest_alias(SN_dsaWithSHA1, SN_dsaWithSHA1_2);
  EVP_add_digest_alias(SN_dsaWithSHA1, "DSS1");
  EVP_add_digest_alias(SN_dsaWithSHA1, "dss1");
  EVP_add_digest(EVP_ecdsa());
  (void)SSL_COMP_get_compression_methods();
  ssl_load_ciphers();
  return (1);
}


x86 assembly (clang, -O0):
<SSL_library_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1140 <EVP_des_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1120 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1100 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10d0 <EVP_rc4@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1160 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1110 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1090 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1060 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10a0 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1070 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1170 <EVP_seed_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1040 <EVP_md5@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    0x2c8d(%rip),%rax
mov    (%rax),%edi
lea    0xcc4(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    0x2c78(%rip),%rax
mov    (%rax),%edi
lea    0xcb8(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   10b0 <EVP_sha1@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    0x2c4d(%rip),%rax
mov    (%rax),%edi
lea    0xc9e(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    0x2c50(%rip),%rax
mov    (%rax),%edi
mov    0x2c5f(%rip),%rax
mov    (%rax),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1050 <EVP_sha224@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1180 <EVP_sha256@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1130 <EVP_sha384@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1080 <EVP_sha512@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1190 <EVP_dss1@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    0x2bea(%rip),%rax
mov    (%rax),%edi
mov    0x2c11(%rip),%rax
mov    (%rax),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    0x2bd2(%rip),%rax
mov    (%rax),%edi
lea    0xc1d(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    0x2bbd(%rip),%rax
mov    (%rax),%edi
lea    0xc0d(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   10e0 <EVP_ecdsa@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    $0x0,%al
call   10f0 <SSL_COMP_get_compression_methods@plt>
mov    $0x0,%al
call   1030 <ssl_load_ciphers@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SSL_library_init>:
push   %rbx
xor    %eax,%eax
call   1140 <EVP_des_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1120 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1100 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10d0 <EVP_rc4@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1160 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1110 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1090 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1060 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10a0 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1070 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1170 <EVP_seed_cbc@plt>
mov    %eax,%edi
call   11a0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1040 <EVP_md5@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    0x2c90(%rip),%rbx
mov    (%rbx),%edi
lea    0xcc7(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xcc2(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   10b0 <EVP_sha1@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    0x2c57(%rip),%rax
mov    (%rax),%edi
lea    0xca8(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    0x2c5a(%rip),%rax
mov    (%rax),%edi
mov    0x2c69(%rip),%rax
mov    (%rax),%rsi
call   1150 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1050 <EVP_sha224@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1180 <EVP_sha256@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1130 <EVP_sha384@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1080 <EVP_sha512@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1190 <EVP_dss1@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
mov    0x2bf4(%rip),%rbx
mov    (%rbx),%edi
mov    0x2c1b(%rip),%rax
mov    (%rax),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc2e(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc25(%rip),%rsi
call   1150 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   10e0 <EVP_ecdsa@plt>
mov    %eax,%edi
call   10c0 <EVP_add_digest@plt>
xor    %eax,%eax
call   10f0 <SSL_COMP_get_compression_methods@plt>
xor    %eax,%eax
call   1030 <ssl_load_ciphers@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@SN_md5 = global i32 0
@.str = [9 x i8] c"ssl2-md5\00"
@.str.1 = [9 x i8] c"ssl3-md5\00"
@SN_sha1 = global i32 0
@.str.2 = [10 x i8] c"ssl3-sha1\00"
@SN_sha1WithRSAEncryption = global i32 0
@SN_sha1WithRSA = global i8* null
@SN_dsaWithSHA1 = global i32 0
@SN_dsaWithSHA1_2 = global i8* null
@.str.3 = [5 x i8] c"DSS1\00"
@.str.4 = [5 x i8] c"dss1\00"
define i32 @SSL_library_init() {
%1 = call i32 (...) @EVP_des_cbc()
%2 = call i32 @EVP_add_cipher(i32 %1)
%3 = call i32 (...) @EVP_des_ede3_cbc()
%4 = call i32 @EVP_add_cipher(i32 %3)
%5 = call i32 (...) @EVP_idea_cbc()
%6 = call i32 @EVP_add_cipher(i32 %5)
%7 = call i32 (...) @EVP_rc4()
%8 = call i32 @EVP_add_cipher(i32 %7)
%9 = call i32 (...) @EVP_rc2_cbc()
%10 = call i32 @EVP_add_cipher(i32 %9)
%11 = call i32 (...) @EVP_aes_128_cbc()
%12 = call i32 @EVP_add_cipher(i32 %11)
%13 = call i32 (...) @EVP_aes_192_cbc()
%14 = call i32 @EVP_add_cipher(i32 %13)
%15 = call i32 (...) @EVP_aes_256_cbc()
%16 = call i32 @EVP_add_cipher(i32 %15)
%17 = call i32 (...) @EVP_camellia_128_cbc()
%18 = call i32 @EVP_add_cipher(i32 %17)
%19 = call i32 (...) @EVP_camellia_256_cbc()
%20 = call i32 @EVP_add_cipher(i32 %19)
%21 = call i32 (...) @EVP_seed_cbc()
%22 = call i32 @EVP_add_cipher(i32 %21)
%23 = call i32 (...) @EVP_md5()
%24 = call i32 @EVP_add_digest(i32 %23)
%25 = load i32, i32* @SN_md5
%26 = call i32 @EVP_add_digest_alias(i32 %25, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%27 = load i32, i32* @SN_md5
%28 = call i32 @EVP_add_digest_alias(i32 %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%29 = call i32 (...) @EVP_sha1()
%30 = call i32 @EVP_add_digest(i32 %29)
%31 = load i32, i32* @SN_sha1
%32 = call i32 @EVP_add_digest_alias(i32 %31, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%33 = load i32, i32* @SN_sha1WithRSAEncryption
%34 = load i8*, i8** @SN_sha1WithRSA
%35 = call i32 @EVP_add_digest_alias(i32 %33, i8* %34)
%36 = call i32 (...) @EVP_sha224()
%37 = call i32 @EVP_add_digest(i32 %36)
%38 = call i32 (...) @EVP_sha256()
%39 = call i32 @EVP_add_digest(i32 %38)
%40 = call i32 (...) @EVP_sha384()
%41 = call i32 @EVP_add_digest(i32 %40)
%42 = call i32 (...) @EVP_sha512()
%43 = call i32 @EVP_add_digest(i32 %42)
%44 = call i32 (...) @EVP_dss1()
%45 = call i32 @EVP_add_digest(i32 %44)
%46 = load i32, i32* @SN_dsaWithSHA1
%47 = load i8*, i8** @SN_dsaWithSHA1_2
%48 = call i32 @EVP_add_digest_alias(i32 %46, i8* %47)
%49 = load i32, i32* @SN_dsaWithSHA1
%50 = call i32 @EVP_add_digest_alias(i32 %49, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%51 = load i32, i32* @SN_dsaWithSHA1
%52 = call i32 @EVP_add_digest_alias(i32 %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%53 = call i32 (...) @EVP_ecdsa()
%54 = call i32 @EVP_add_digest(i32 %53)
%55 = call i32 (...) @SSL_COMP_get_compression_methods()
%56 = call i32 (...) @ssl_load_ciphers()
ret i32 1
}

LLVM IR (-O2):
@SN_md5 = global i32 0
@.str = [9 x i8] c"ssl2-md5\00"
@.str.1 = [9 x i8] c"ssl3-md5\00"
@SN_sha1 = global i32 0
@.str.2 = [10 x i8] c"ssl3-sha1\00"
@SN_sha1WithRSAEncryption = global i32 0
@SN_sha1WithRSA = global i8* null
@SN_dsaWithSHA1 = global i32 0
@SN_dsaWithSHA1_2 = global i8* null
@.str.3 = [5 x i8] c"DSS1\00"
@.str.4 = [5 x i8] c"dss1\00"
define i32 @SSL_library_init() {
%1 = tail call i32 (...) @EVP_des_cbc()
%2 = tail call i32 @EVP_add_cipher(i32 %1)
%3 = tail call i32 (...) @EVP_des_ede3_cbc()
%4 = tail call i32 @EVP_add_cipher(i32 %3)
%5 = tail call i32 (...) @EVP_idea_cbc()
%6 = tail call i32 @EVP_add_cipher(i32 %5)
%7 = tail call i32 (...) @EVP_rc4()
%8 = tail call i32 @EVP_add_cipher(i32 %7)
%9 = tail call i32 (...) @EVP_rc2_cbc()
%10 = tail call i32 @EVP_add_cipher(i32 %9)
%11 = tail call i32 (...) @EVP_aes_128_cbc()
%12 = tail call i32 @EVP_add_cipher(i32 %11)
%13 = tail call i32 (...) @EVP_aes_192_cbc()
%14 = tail call i32 @EVP_add_cipher(i32 %13)
%15 = tail call i32 (...) @EVP_aes_256_cbc()
%16 = tail call i32 @EVP_add_cipher(i32 %15)
%17 = tail call i32 (...) @EVP_camellia_128_cbc()
%18 = tail call i32 @EVP_add_cipher(i32 %17)
%19 = tail call i32 (...) @EVP_camellia_256_cbc()
%20 = tail call i32 @EVP_add_cipher(i32 %19)
%21 = tail call i32 (...) @EVP_seed_cbc()
%22 = tail call i32 @EVP_add_cipher(i32 %21)
%23 = tail call i32 (...) @EVP_md5()
%24 = tail call i32 @EVP_add_digest(i32 %23)
%25 = load i32, i32* @SN_md5
%26 = tail call i32 @EVP_add_digest_alias(i32 %25, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%27 = load i32, i32* @SN_md5
%28 = tail call i32 @EVP_add_digest_alias(i32 %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%29 = tail call i32 (...) @EVP_sha1()
%30 = tail call i32 @EVP_add_digest(i32 %29)
%31 = load i32, i32* @SN_sha1
%32 = tail call i32 @EVP_add_digest_alias(i32 %31, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%33 = load i32, i32* @SN_sha1WithRSAEncryption
%34 = load i8*, i8** @SN_sha1WithRSA
%35 = tail call i32 @EVP_add_digest_alias(i32 %33, i8* %34)
%36 = tail call i32 (...) @EVP_sha224()
%37 = tail call i32 @EVP_add_digest(i32 %36)
%38 = tail call i32 (...) @EVP_sha256()
%39 = tail call i32 @EVP_add_digest(i32 %38)
%40 = tail call i32 (...) @EVP_sha384()
%41 = tail call i32 @EVP_add_digest(i32 %40)
%42 = tail call i32 (...) @EVP_sha512()
%43 = tail call i32 @EVP_add_digest(i32 %42)
%44 = tail call i32 (...) @EVP_dss1()
%45 = tail call i32 @EVP_add_digest(i32 %44)
%46 = load i32, i32* @SN_dsaWithSHA1
%47 = load i8*, i8** @SN_dsaWithSHA1_2
%48 = tail call i32 @EVP_add_digest_alias(i32 %46, i8* %47)
%49 = load i32, i32* @SN_dsaWithSHA1
%50 = tail call i32 @EVP_add_digest_alias(i32 %49, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%51 = load i32, i32* @SN_dsaWithSHA1
%52 = tail call i32 @EVP_add_digest_alias(i32 %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%53 = tail call i32 (...) @EVP_ecdsa()
%54 = tail call i32 @EVP_add_digest(i32 %53)
%55 = tail call i32 (...) @SSL_COMP_get_compression_methods()
%56 = tail call i32 (...) @ssl_load_ciphers()
ret i32 1
}