#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_seed_cbc();
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_cipher(EVP_seed_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   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1110 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10f0 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10b0 <EVP_rc4@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1140 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1100 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1070 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1050 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1080 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1060 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1150 <EVP_seed_cbc@plt>
mov    %eax,%edi
call   1170 <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    0x2caf(%rip),%rax
mov    (%rax),%edi
lea    0xce6(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c9a(%rip),%rax
mov    (%rax),%edi
lea    0xcda(%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    0x2c6f(%rip),%rax
mov    (%rax),%edi
lea    0xcc0(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c72(%rip),%rax
mov    (%rax),%edi
mov    0x2c81(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1160 <EVP_dss1@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2c44(%rip),%rax
mov    (%rax),%edi
mov    0x2c6b(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
lea    0xc77(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c17(%rip),%rax
mov    (%rax),%edi
lea    0xc67(%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   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1110 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10f0 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10b0 <EVP_rc4@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1140 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1100 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1070 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1050 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1080 <EVP_camellia_128_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1060 <EVP_camellia_256_cbc@plt>
mov    %eax,%edi
call   1170 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1150 <EVP_seed_cbc@plt>
mov    %eax,%edi
call   1170 <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    0x2cb2(%rip),%rbx
mov    (%rbx),%edi
lea    0xce9(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xce4(%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    0x2c79(%rip),%rax
mov    (%rax),%edi
lea    0xcca(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    0x2c7c(%rip),%rax
mov    (%rax),%edi
mov    0x2c8b(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1160 <EVP_dss1@plt>
mov    %eax,%edi
call   10a0 <EVP_add_digest@plt>
mov    0x2c4e(%rip),%rbx
mov    (%rbx),%edi
mov    0x2c75(%rip),%rax
mov    (%rax),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc88(%rip),%rsi
call   1130 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xc7f(%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_seed_cbc()
%22 = call i32 @EVP_add_cipher(i32 %21)
%23 = call i32 (...) @EVP_md2()
%24 = call i32 @EVP_add_digest(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_dss1()
%39 = call i32 @EVP_add_digest(i32 %38)
%40 = load i32, i32* @SN_dsaWithSHA1
%41 = load i8*, i8** @SN_dsaWithSHA1_2
%42 = call i32 @EVP_add_digest_alias(i32 %40, i8* %41)
%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.3, i64 0, i64 0))
%45 = load i32, i32* @SN_dsaWithSHA1
%46 = call i32 @EVP_add_digest_alias(i32 %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%47 = call i32 (...) @EVP_ecdsa()
%48 = call i32 @EVP_add_digest(i32 %47)
%49 = call i32 (...) @SSL_COMP_get_compression_methods()
%50 = 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_md2()
%24 = tail call i32 @EVP_add_digest(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_dss1()
%39 = tail call i32 @EVP_add_digest(i32 %38)
%40 = load i32, i32* @SN_dsaWithSHA1
%41 = load i8*, i8** @SN_dsaWithSHA1_2
%42 = tail call i32 @EVP_add_digest_alias(i32 %40, i8* %41)
%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.3, i64 0, i64 0))
%45 = load i32, i32* @SN_dsaWithSHA1
%46 = tail call i32 @EVP_add_digest_alias(i32 %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%47 = tail call i32 (...) @EVP_ecdsa()
%48 = tail call i32 @EVP_add_digest(i32 %47)
%49 = tail call i32 (...) @SSL_COMP_get_compression_methods()
%50 = tail call i32 (...) @ssl_load_ciphers()
ret i32 1
}