#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_md2();
int /*<<< orphan*/ EVP_md5();
int /*<<< orphan*/ EVP_rc2_cbc();
int /*<<< orphan*/ EVP_rc4();
int /*<<< orphan*/ EVP_sha1();
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_digest(EVP_md2());
  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_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   1120 <EVP_des_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1110 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10f0 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10b0 <EVP_rc4@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1140 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1100 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1070 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1050 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1080 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1060 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10e0 <EVP_md2@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    $0x0,%al
call   1040 <EVP_md5@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%edi
lea    0xd04(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2cb8(%rip),%rax
mov    (%rax),%edi
lea    0xcf8(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1090 <EVP_sha1@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2c8d(%rip),%rax
mov    (%rax),%edi
lea    0xcde(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c90(%rip),%rax
mov    (%rax),%edi
mov    0x2c9f(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1150 <EVP_dss1@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
mov    0x2c89(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c4a(%rip),%rax
mov    (%rax),%edi
lea    0xc95(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c35(%rip),%rax
mov    (%rax),%edi
lea    0xc85(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   10c0 <EVP_ecdsa@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    $0x0,%al
call   10d0 <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   1120 <EVP_des_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1110 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10f0 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10b0 <EVP_rc4@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1140 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1100 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1070 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1050 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1080 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1060 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   1160 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10e0 <EVP_md2@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
xor    %eax,%eax
call   1040 <EVP_md5@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2cd0(%rip),%rbx
mov    (%rbx),%edi
lea    0xd07(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xd02(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1090 <EVP_sha1@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2c97(%rip),%rax
mov    (%rax),%edi
lea    0xce8(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c9a(%rip),%rax
mov    (%rax),%edi
mov    0x2ca9(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1150 <EVP_dss1@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2c6c(%rip),%rbx
mov    (%rbx),%edi
mov    0x2c93(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xca6(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc9d(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   10c0 <EVP_ecdsa@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
xor    %eax,%eax
call   10d0 <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_md2()
%22 = call i32 @EVP_add_digest(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_dss1()
%37 = call i32 @EVP_add_digest(i32 %36)
%38 = load i32, i32* @SN_dsaWithSHA1
%39 = load i8*, i8** @SN_dsaWithSHA1_2
%40 = call i32 @EVP_add_digest_alias(i32 %38, i8* %39)
%41 = load i32, i32* @SN_dsaWithSHA1
%42 = call i32 @EVP_add_digest_alias(i32 %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* @SN_dsaWithSHA1
%44 = call i32 @EVP_add_digest_alias(i32 %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%45 = call i32 (...) @EVP_ecdsa()
%46 = call i32 @EVP_add_digest(i32 %45)
%47 = call i32 (...) @SSL_COMP_get_compression_methods()
%48 = 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_md2()
%22 = tail call i32 @EVP_add_digest(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_dss1()
%37 = tail call i32 @EVP_add_digest(i32 %36)
%38 = load i32, i32* @SN_dsaWithSHA1
%39 = load i8*, i8** @SN_dsaWithSHA1_2
%40 = tail call i32 @EVP_add_digest_alias(i32 %38, i8* %39)
%41 = load i32, i32* @SN_dsaWithSHA1
%42 = tail call i32 @EVP_add_digest_alias(i32 %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* @SN_dsaWithSHA1
%44 = tail call i32 @EVP_add_digest_alias(i32 %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%45 = tail call i32 (...) @EVP_ecdsa()
%46 = tail call i32 @EVP_add_digest(i32 %45)
%47 = tail call i32 (...) @SSL_COMP_get_compression_methods()
%48 = tail call i32 (...) @ssl_load_ciphers()
ret i32 1
}