#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*/ DTLSv1_client_method();
int /*<<< orphan*/ DTLSv1_method();
int /*<<< orphan*/ DTLSv1_server_method();
int /*<<< orphan*/ SSLv23_client_method();
int /*<<< orphan*/ SSLv23_method();
int /*<<< orphan*/ SSLv23_server_method();
int /*<<< orphan*/ TLSv1_1_client_method();
int /*<<< orphan*/ TLSv1_1_method();
int /*<<< orphan*/ TLSv1_1_server_method();
int /*<<< orphan*/ TLSv1_2_client_method();
int /*<<< orphan*/ TLSv1_2_method();
int /*<<< orphan*/ TLSv1_2_server_method();
int /*<<< orphan*/ TLSv1_client_method();
int /*<<< orphan*/ TLSv1_method();
int /*<<< orphan*/ TLSv1_server_method();
int get_put_test(char *, int /*<<< orphan*/);
int cipher_get_put_tests(void) {
  int failed = 0;
  failed |= get_put_test("SSLv23", SSLv23_method());
  failed |= get_put_test("SSLv23_client", SSLv23_client_method());
  failed |= get_put_test("SSLv23_server", SSLv23_server_method());
  failed |= get_put_test("TLSv1", TLSv1_method());
  failed |= get_put_test("TLSv1_client", TLSv1_client_method());
  failed |= get_put_test("TLSv1_server", TLSv1_server_method());
  failed |= get_put_test("TLSv1_1", TLSv1_1_method());
  failed |= get_put_test("TLSv1_1_client", TLSv1_1_client_method());
  failed |= get_put_test("TLSv1_1_server", TLSv1_1_server_method());
  failed |= get_put_test("TLSv1_2", TLSv1_2_method());
  failed |= get_put_test("TLSv1_2_client", TLSv1_2_client_method());
  failed |= get_put_test("TLSv1_2_server", TLSv1_2_server_method());
  failed |= get_put_test("DTLSv1", DTLSv1_method());
  failed |= get_put_test("DTLSv1_client", DTLSv1_client_method());
  failed |= get_put_test("DTLSv1_server", DTLSv1_server_method());
  return failed;
}


x86 assembly (clang, -O0):
<cipher_get_put_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <SSLv23_method@plt>
mov    %eax,%esi
lea    0xde1(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <SSLv23_client_method@plt>
mov    %eax,%esi
lea    0xdcd(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <SSLv23_server_method@plt>
mov    %eax,%esi
lea    0xdc0(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1090 <TLSv1_method@plt>
mov    %eax,%esi
lea    0xe00(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10b0 <TLSv1_client_method@plt>
mov    %eax,%esi
lea    0xdec(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1100 <TLSv1_server_method@plt>
mov    %eax,%esi
lea    0xddf(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1120 <TLSv1_1_method@plt>
mov    %eax,%esi
lea    0xd62(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <TLSv1_1_client_method@plt>
mov    %eax,%esi
lea    0xd4f(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10e0 <TLSv1_1_server_method@plt>
mov    %eax,%esi
lea    0xd43(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10f0 <TLSv1_2_method@plt>
mov    %eax,%esi
lea    0xd37(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1110 <TLSv1_2_client_method@plt>
mov    %eax,%esi
lea    0xd24(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10c0 <TLSv1_2_server_method@plt>
mov    %eax,%esi
lea    0xd18(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <DTLSv1_method@plt>
mov    %eax,%esi
lea    0xd0c(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <DTLSv1_client_method@plt>
mov    %eax,%esi
lea    0xcf8(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <DTLSv1_server_method@plt>
mov    %eax,%esi
lea    0xceb(%rip),%rdi
call   10d0 <get_put_test@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cipher_get_put_tests>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <SSLv23_method@plt>
lea    0xdeb(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <SSLv23_client_method@plt>
lea    0xddb(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1050 <SSLv23_server_method@plt>
lea    0xdd0(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1090 <TLSv1_method@plt>
lea    0xe13(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebp
or     %r14d,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10b0 <TLSv1_client_method@plt>
lea    0xdfe(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1100 <TLSv1_server_method@plt>
lea    0xdf4(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   1120 <TLSv1_1_method@plt>
lea    0xd78(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%r14d
or     %ebx,%r14d
or     %ebp,%r14d
xor    %eax,%eax
call   1060 <TLSv1_1_client_method@plt>
lea    0xd62(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10e0 <TLSv1_1_server_method@plt>
lea    0xd5a(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10f0 <TLSv1_2_method@plt>
lea    0xd50(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1110 <TLSv1_2_client_method@plt>
lea    0xd3f(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%r15d
or     %ebx,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   10c0 <TLSv1_2_server_method@plt>
lea    0xd30(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10a0 <DTLSv1_method@plt>
lea    0xd27(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   1070 <DTLSv1_client_method@plt>
lea    0xd14(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1080 <DTLSv1_server_method@plt>
lea    0xd09(%rip),%rdi
mov    %eax,%esi
call   10d0 <get_put_test@plt>
or     %ebp,%eax
or     %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"SSLv23\00"
@.str.1 = [14 x i8] c"SSLv23_client\00"
@.str.2 = [14 x i8] c"SSLv23_server\00"
@.str.3 = [6 x i8] c"TLSv1\00"
@.str.4 = [13 x i8] c"TLSv1_client\00"
@.str.5 = [13 x i8] c"TLSv1_server\00"
@.str.6 = [8 x i8] c"TLSv1_1\00"
@.str.7 = [15 x i8] c"TLSv1_1_client\00"
@.str.8 = [15 x i8] c"TLSv1_1_server\00"
@.str.9 = [8 x i8] c"TLSv1_2\00"
@.str.10 = [15 x i8] c"TLSv1_2_client\00"
@.str.11 = [15 x i8] c"TLSv1_2_server\00"
@.str.12 = [7 x i8] c"DTLSv1\00"
@.str.13 = [14 x i8] c"DTLSv1_client\00"
@.str.14 = [14 x i8] c"DTLSv1_server\00"
define i32 @cipher_get_put_tests() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @SSLv23_method()
%3 = call i32 @get_put_test(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* %1
%5 = or i32 %4, %3
store i32 %5, i32* %1
%6 = call i32 (...) @SSLv23_client_method()
%7 = call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %1
%9 = or i32 %8, %7
store i32 %9, i32* %1
%10 = call i32 (...) @SSLv23_server_method()
%11 = call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %1
%13 = or i32 %12, %11
store i32 %13, i32* %1
%14 = call i32 (...) @TLSv1_method()
%15 = call i32 @get_put_test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %1
%17 = or i32 %16, %15
store i32 %17, i32* %1
%18 = call i32 (...) @TLSv1_client_method()
%19 = call i32 @get_put_test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %1
%21 = or i32 %20, %19
store i32 %21, i32* %1
%22 = call i32 (...) @TLSv1_server_method()
%23 = call i32 @get_put_test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %1
%25 = or i32 %24, %23
store i32 %25, i32* %1
%26 = call i32 (...) @TLSv1_1_method()
%27 = call i32 @get_put_test(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %1
%29 = or i32 %28, %27
store i32 %29, i32* %1
%30 = call i32 (...) @TLSv1_1_client_method()
%31 = call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %1
%33 = or i32 %32, %31
store i32 %33, i32* %1
%34 = call i32 (...) @TLSv1_1_server_method()
%35 = call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %34)
%36 = load i32, i32* %1
%37 = or i32 %36, %35
store i32 %37, i32* %1
%38 = call i32 (...) @TLSv1_2_method()
%39 = call i32 @get_put_test(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %1
%41 = or i32 %40, %39
store i32 %41, i32* %1
%42 = call i32 (...) @TLSv1_2_client_method()
%43 = call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %1
%45 = or i32 %44, %43
store i32 %45, i32* %1
%46 = call i32 (...) @TLSv1_2_server_method()
%47 = call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %1
%49 = or i32 %48, %47
store i32 %49, i32* %1
%50 = call i32 (...) @DTLSv1_method()
%51 = call i32 @get_put_test(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %1
%53 = or i32 %52, %51
store i32 %53, i32* %1
%54 = call i32 (...) @DTLSv1_client_method()
%55 = call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %54)
%56 = load i32, i32* %1
%57 = or i32 %56, %55
store i32 %57, i32* %1
%58 = call i32 (...) @DTLSv1_server_method()
%59 = call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %1
%61 = or i32 %60, %59
store i32 %61, i32* %1
%62 = load i32, i32* %1
ret i32 %62
}

LLVM IR (-O2):
@.str = [7 x i8] c"SSLv23\00"
@.str.1 = [14 x i8] c"SSLv23_client\00"
@.str.2 = [14 x i8] c"SSLv23_server\00"
@.str.3 = [6 x i8] c"TLSv1\00"
@.str.4 = [13 x i8] c"TLSv1_client\00"
@.str.5 = [13 x i8] c"TLSv1_server\00"
@.str.6 = [8 x i8] c"TLSv1_1\00"
@.str.7 = [15 x i8] c"TLSv1_1_client\00"
@.str.8 = [15 x i8] c"TLSv1_1_server\00"
@.str.9 = [8 x i8] c"TLSv1_2\00"
@.str.10 = [15 x i8] c"TLSv1_2_client\00"
@.str.11 = [15 x i8] c"TLSv1_2_server\00"
@.str.12 = [7 x i8] c"DTLSv1\00"
@.str.13 = [14 x i8] c"DTLSv1_client\00"
@.str.14 = [14 x i8] c"DTLSv1_server\00"
define i32 @cipher_get_put_tests() {
%1 = tail call i32 (...) @SSLv23_method()
%2 = tail call i32 @get_put_test(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @SSLv23_client_method()
%4 = tail call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = or i32 %4, %2
%6 = tail call i32 (...) @SSLv23_server_method()
%7 = tail call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = or i32 %5, %7
%9 = tail call i32 (...) @TLSv1_method()
%10 = tail call i32 @get_put_test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = or i32 %8, %10
%12 = tail call i32 (...) @TLSv1_client_method()
%13 = tail call i32 @get_put_test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = or i32 %11, %13
%15 = tail call i32 (...) @TLSv1_server_method()
%16 = tail call i32 @get_put_test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = or i32 %14, %16
%18 = tail call i32 (...) @TLSv1_1_method()
%19 = tail call i32 @get_put_test(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %18)
%20 = or i32 %17, %19
%21 = tail call i32 (...) @TLSv1_1_client_method()
%22 = tail call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %21)
%23 = or i32 %20, %22
%24 = tail call i32 (...) @TLSv1_1_server_method()
%25 = tail call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %24)
%26 = or i32 %23, %25
%27 = tail call i32 (...) @TLSv1_2_method()
%28 = tail call i32 @get_put_test(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %27)
%29 = or i32 %26, %28
%30 = tail call i32 (...) @TLSv1_2_client_method()
%31 = tail call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %30)
%32 = or i32 %29, %31
%33 = tail call i32 (...) @TLSv1_2_server_method()
%34 = tail call i32 @get_put_test(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 %33)
%35 = or i32 %32, %34
%36 = tail call i32 (...) @DTLSv1_method()
%37 = tail call i32 @get_put_test(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 %36)
%38 = or i32 %35, %37
%39 = tail call i32 (...) @DTLSv1_client_method()
%40 = tail call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %39)
%41 = or i32 %38, %40
%42 = tail call i32 (...) @DTLSv1_server_method()
%43 = tail call i32 @get_put_test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 %42)
%44 = or i32 %41, %43
ret i32 %44
}