#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_des_cbc();
int /*<<< orphan*/ EVP_des_ede3_cbc();
int /*<<< orphan*/ EVP_dss1();
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 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_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");
  return (1);
}


x86 assembly (clang, -O0):
<SSL_library_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10d0 <EVP_des_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10c0 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10a0 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1080 <EVP_rc4@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10f0 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   10b0 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1050 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1040 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
mov    $0x0,%al
call   1090 <EVP_md2@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    $0x0,%al
call   1030 <EVP_md5@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xd70(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    0x2d24(%rip),%rax
mov    (%rax),%edi
lea    0xd64(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1060 <EVP_sha1@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    0x2cf9(%rip),%rax
mov    (%rax),%edi
lea    0xd4a(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
mov    0x2d0b(%rip),%rax
mov    (%rax),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    $0x0,%al
call   1100 <EVP_dss1@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    0x2cce(%rip),%rax
mov    (%rax),%edi
mov    0x2cf5(%rip),%rax
mov    (%rax),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0xd01(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    0x2ca1(%rip),%rax
mov    (%rax),%edi
lea    0xcf1(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SSL_library_init>:
push   %rbx
xor    %eax,%eax
call   10d0 <EVP_des_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10c0 <EVP_des_ede3_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10a0 <EVP_idea_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1080 <EVP_rc4@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10f0 <EVP_rc2_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   10b0 <EVP_aes_128_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1050 <EVP_aes_192_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1040 <EVP_aes_256_cbc@plt>
mov    %eax,%edi
call   1110 <EVP_add_cipher@plt>
xor    %eax,%eax
call   1090 <EVP_md2@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
xor    %eax,%eax
call   1030 <EVP_md5@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    0x2d3c(%rip),%rbx
mov    (%rbx),%edi
lea    0xd73(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xd6e(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1060 <EVP_sha1@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
lea    0xd54(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    0x2d06(%rip),%rax
mov    (%rax),%edi
mov    0x2d15(%rip),%rax
mov    (%rax),%rsi
call   10e0 <EVP_add_digest_alias@plt>
xor    %eax,%eax
call   1100 <EVP_dss1@plt>
mov    %eax,%edi
call   1070 <EVP_add_digest@plt>
mov    0x2cd8(%rip),%rbx
mov    (%rbx),%edi
mov    0x2cff(%rip),%rax
mov    (%rax),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xd12(%rip),%rsi
call   10e0 <EVP_add_digest_alias@plt>
mov    (%rbx),%edi
lea    0xd09(%rip),%rsi
call   10e0 <EVP_add_digest_alias@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_md2()
%18 = call i32 @EVP_add_digest(i32 %17)
%19 = call i32 (...) @EVP_md5()
%20 = call i32 @EVP_add_digest(i32 %19)
%21 = load i32, i32* @SN_md5
%22 = call i32 @EVP_add_digest_alias(i32 %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%23 = load i32, i32* @SN_md5
%24 = call i32 @EVP_add_digest_alias(i32 %23, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 (...) @EVP_sha1()
%26 = call i32 @EVP_add_digest(i32 %25)
%27 = load i32, i32* @SN_sha1
%28 = call i32 @EVP_add_digest_alias(i32 %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%29 = load i32, i32* @SN_sha1WithRSAEncryption
%30 = load i8*, i8** @SN_sha1WithRSA
%31 = call i32 @EVP_add_digest_alias(i32 %29, i8* %30)
%32 = call i32 (...) @EVP_dss1()
%33 = call i32 @EVP_add_digest(i32 %32)
%34 = load i32, i32* @SN_dsaWithSHA1
%35 = load i8*, i8** @SN_dsaWithSHA1_2
%36 = call i32 @EVP_add_digest_alias(i32 %34, i8* %35)
%37 = load i32, i32* @SN_dsaWithSHA1
%38 = call i32 @EVP_add_digest_alias(i32 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%39 = load i32, i32* @SN_dsaWithSHA1
%40 = call i32 @EVP_add_digest_alias(i32 %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
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_md2()
%18 = tail call i32 @EVP_add_digest(i32 %17)
%19 = tail call i32 (...) @EVP_md5()
%20 = tail call i32 @EVP_add_digest(i32 %19)
%21 = load i32, i32* @SN_md5
%22 = tail call i32 @EVP_add_digest_alias(i32 %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%23 = load i32, i32* @SN_md5
%24 = tail call i32 @EVP_add_digest_alias(i32 %23, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 (...) @EVP_sha1()
%26 = tail call i32 @EVP_add_digest(i32 %25)
%27 = load i32, i32* @SN_sha1
%28 = tail call i32 @EVP_add_digest_alias(i32 %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%29 = load i32, i32* @SN_sha1WithRSAEncryption
%30 = load i8*, i8** @SN_sha1WithRSA
%31 = tail call i32 @EVP_add_digest_alias(i32 %29, i8* %30)
%32 = tail call i32 (...) @EVP_dss1()
%33 = tail call i32 @EVP_add_digest(i32 %32)
%34 = load i32, i32* @SN_dsaWithSHA1
%35 = load i8*, i8** @SN_dsaWithSHA1_2
%36 = tail call i32 @EVP_add_digest_alias(i32 %34, i8* %35)
%37 = load i32, i32* @SN_dsaWithSHA1
%38 = tail call i32 @EVP_add_digest_alias(i32 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%39 = load i32, i32* @SN_dsaWithSHA1
%40 = tail call i32 @EVP_add_digest_alias(i32 %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
ret i32 1
}