#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 */
typedef int /*<<< orphan*/ SSL_CTX;

/* Variables and functions */
int /*<<< orphan*/ *SSL_CTX_new(int /*<<< orphan*/);
int /*<<< orphan*/ SSLv23_method();
scalar_t__ VSSLH_status();
int /*<<< orphan*/ abort();
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  SSL_CTX *ctx;
  if (VSSLH_status())
    printf("VSSL status ok\n");
  else {
    printf("VSSL status NOT ok\n");
    abort();
  }
  ctx = SSL_CTX_new(SSLv23_method());
  assert(ctx != NULL);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1080 <VSSLH_status@plt>
cmp    $0x0,%rax
je     1191 <main+0x31>
lea    0xe79(%rip),%rdi
call   1050 <printf@plt>
jmp    11a4 <main+0x44>
lea    0xe78(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   1040 <SSLv23_method@plt>
mov    %eax,%edi
call   1070 <SSL_CTX_new@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1080 <VSSLH_status@plt>
test   %rax,%rax
je     1199 <main+0x39>
lea    0xe9f(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <SSLv23_method@plt>
mov    %eax,%edi
call   1070 <SSL_CTX_new@plt>
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1060 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe60(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"VSSL status ok\0A\00"
@.str.1 = [20 x i8] c"VSSL status NOT ok\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32*
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = call i64 (...) @VSSLH_status()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %13
10: ; preds = %2
%11 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (...) @abort()
unreachable
13: ; preds = %8
%14 = call i32 (...) @SSLv23_method()
%15 = call i32* @SSL_CTX_new(i32 %14)
store i32* %15, i32** %5
%16 = load i32*, i32** %5
%17 = icmp ne i32* %16, null
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
ret i32 0
}

LLVM IR (-O2):
@str = [19 x i8] c"VSSL status NOT ok\00"
@str.2 = [15 x i8] c"VSSL status ok\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 (...) @VSSLH_status()
%4 = icmp eq i64 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.2, i64 0, i64 0))
%7 = tail call i32 (...) @SSLv23_method()
%8 = tail call i32* @SSL_CTX_new(i32 %7)
%9 = icmp ne i32* %8, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
ret i32 0
12: ; preds = %2
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%14 = tail call i32 (...) @abort()
unreachable
}