#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_40_cbc();
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_rc2_40_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   1150 <EVP_des_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1130 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1110 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10e0 <EVP_rc4@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1170 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1090 <EVP_rc2_40_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1120 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10a0 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1060 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10b0 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1070 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1180 <EVP_seed_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1040 <EVP_md5@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    0x2c6f(%rip),%rax
mov    (%rax),%edi
lea    0xca6(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    0x2c5a(%rip),%rax
mov    (%rax),%edi
lea    0xc9a(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   10c0 <EVP_sha1@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    0x2c2f(%rip),%rax
mov    (%rax),%edi
lea    0xc80(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    0x2c32(%rip),%rax
mov    (%rax),%edi
mov    0x2c41(%rip),%rax
mov    (%rax),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1050 <EVP_sha224@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1190 <EVP_sha256@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1140 <EVP_sha384@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1080 <EVP_sha512@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    $0x0,%al
call   11a0 <EVP_dss1@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    0x2bcc(%rip),%rax
mov    (%rax),%edi
mov    0x2bf3(%rip),%rax
mov    (%rax),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    0x2bb4(%rip),%rax
mov    (%rax),%edi
lea    0xbff(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    0x2b9f(%rip),%rax
mov    (%rax),%edi
lea    0xbef(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   10f0 <EVP_ecdsa@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1100 <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   1150 <EVP_des_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1130 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1110 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10e0 <EVP_rc4@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1170 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1090 <EVP_rc2_40_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1120 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10a0 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1060 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10b0 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1070 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1180 <EVP_seed_cbc@plt>
mov    %eax,%edi
call   11b0 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1040 <EVP_md5@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    0x2c72(%rip),%rbx
mov    (%rbx),%edi
lea    0xca9(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xca4(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   10c0 <EVP_sha1@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    0x2c39(%rip),%rax
mov    (%rax),%edi
lea    0xc8a(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    0x2c3c(%rip),%rax
mov    (%rax),%edi
mov    0x2c4b(%rip),%rax
mov    (%rax),%rsi
call   1160 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1050 <EVP_sha224@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1190 <EVP_sha256@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1140 <EVP_sha384@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1080 <EVP_sha512@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
xor    %eax,%eax
call   11a0 <EVP_dss1@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
mov    0x2bd6(%rip),%rbx
mov    (%rbx),%edi
mov    0x2bfd(%rip),%rax
mov    (%rax),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc10(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc07(%rip),%rsi
call   1160 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   10f0 <EVP_ecdsa@plt>
mov    %eax,%edi
call   10d0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1100 <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_rc2_40_cbc()
%12 = call i32 @EVP_add_cipher(i32 %11)
%13 = call i32 (...) @EVP_aes_128_cbc()
%14 = call i32 @EVP_add_cipher(i32 %13)
%15 = call i32 (...) @EVP_aes_192_cbc()
%16 = call i32 @EVP_add_cipher(i32 %15)
%17 = call i32 (...) @EVP_aes_256_cbc()
%18 = call i32 @EVP_add_cipher(i32 %17)
%19 = call i32 (...) @EVP_camellia_128_cbc()
%20 = call i32 @EVP_add_cipher(i32 %19)
%21 = call i32 (...) @EVP_camellia_256_cbc()
%22 = call i32 @EVP_add_cipher(i32 %21)
%23 = call i32 (...) @EVP_seed_cbc()
%24 = call i32 @EVP_add_cipher(i32 %23)
%25 = call i32 (...) @EVP_md5()
%26 = call i32 @EVP_add_digest(i32 %25)
%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, i64 0, i64 0))
%29 = load i32, i32* @SN_md5
%30 = call i32 @EVP_add_digest_alias(i32 %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 (...) @EVP_sha1()
%32 = call i32 @EVP_add_digest(i32 %31)
%33 = load i32, i32* @SN_sha1
%34 = call i32 @EVP_add_digest_alias(i32 %33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%35 = load i32, i32* @SN_sha1WithRSAEncryption
%36 = load i8*, i8** @SN_sha1WithRSA
%37 = call i32 @EVP_add_digest_alias(i32 %35, i8* %36)
%38 = call i32 (...) @EVP_sha224()
%39 = call i32 @EVP_add_digest(i32 %38)
%40 = call i32 (...) @EVP_sha256()
%41 = call i32 @EVP_add_digest(i32 %40)
%42 = call i32 (...) @EVP_sha384()
%43 = call i32 @EVP_add_digest(i32 %42)
%44 = call i32 (...) @EVP_sha512()
%45 = call i32 @EVP_add_digest(i32 %44)
%46 = call i32 (...) @EVP_dss1()
%47 = call i32 @EVP_add_digest(i32 %46)
%48 = load i32, i32* @SN_dsaWithSHA1
%49 = load i8*, i8** @SN_dsaWithSHA1_2
%50 = call i32 @EVP_add_digest_alias(i32 %48, i8* %49)
%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.3, i64 0, i64 0))
%53 = load i32, i32* @SN_dsaWithSHA1
%54 = call i32 @EVP_add_digest_alias(i32 %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%55 = call i32 (...) @EVP_ecdsa()
%56 = call i32 @EVP_add_digest(i32 %55)
%57 = call i32 (...) @SSL_COMP_get_compression_methods()
%58 = 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_rc2_40_cbc()
%12 = tail call i32 @EVP_add_cipher(i32 %11)
%13 = tail call i32 (...) @EVP_aes_128_cbc()
%14 = tail call i32 @EVP_add_cipher(i32 %13)
%15 = tail call i32 (...) @EVP_aes_192_cbc()
%16 = tail call i32 @EVP_add_cipher(i32 %15)
%17 = tail call i32 (...) @EVP_aes_256_cbc()
%18 = tail call i32 @EVP_add_cipher(i32 %17)
%19 = tail call i32 (...) @EVP_camellia_128_cbc()
%20 = tail call i32 @EVP_add_cipher(i32 %19)
%21 = tail call i32 (...) @EVP_camellia_256_cbc()
%22 = tail call i32 @EVP_add_cipher(i32 %21)
%23 = tail call i32 (...) @EVP_seed_cbc()
%24 = tail call i32 @EVP_add_cipher(i32 %23)
%25 = tail call i32 (...) @EVP_md5()
%26 = tail call i32 @EVP_add_digest(i32 %25)
%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, i64 0, i64 0))
%29 = load i32, i32* @SN_md5
%30 = tail call i32 @EVP_add_digest_alias(i32 %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%31 = tail call i32 (...) @EVP_sha1()
%32 = tail call i32 @EVP_add_digest(i32 %31)
%33 = load i32, i32* @SN_sha1
%34 = tail call i32 @EVP_add_digest_alias(i32 %33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%35 = load i32, i32* @SN_sha1WithRSAEncryption
%36 = load i8*, i8** @SN_sha1WithRSA
%37 = tail call i32 @EVP_add_digest_alias(i32 %35, i8* %36)
%38 = tail call i32 (...) @EVP_sha224()
%39 = tail call i32 @EVP_add_digest(i32 %38)
%40 = tail call i32 (...) @EVP_sha256()
%41 = tail call i32 @EVP_add_digest(i32 %40)
%42 = tail call i32 (...) @EVP_sha384()
%43 = tail call i32 @EVP_add_digest(i32 %42)
%44 = tail call i32 (...) @EVP_sha512()
%45 = tail call i32 @EVP_add_digest(i32 %44)
%46 = tail call i32 (...) @EVP_dss1()
%47 = tail call i32 @EVP_add_digest(i32 %46)
%48 = load i32, i32* @SN_dsaWithSHA1
%49 = load i8*, i8** @SN_dsaWithSHA1_2
%50 = tail call i32 @EVP_add_digest_alias(i32 %48, i8* %49)
%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.3, i64 0, i64 0))
%53 = load i32, i32* @SN_dsaWithSHA1
%54 = tail call i32 @EVP_add_digest_alias(i32 %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%55 = tail call i32 (...) @EVP_ecdsa()
%56 = tail call i32 @EVP_add_digest(i32 %55)
%57 = tail call i32 (...) @SSL_COMP_get_compression_methods()
%58 = tail call i32 (...) @ssl_load_ciphers()
ret i32 1
}