#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*/ assert(int);
int hydro_init();
int /*<<< orphan*/ test_core();
int /*<<< orphan*/ test_hash();
int /*<<< orphan*/ test_kdf();
int /*<<< orphan*/ test_kx_kk();
int /*<<< orphan*/ test_kx_n();
int /*<<< orphan*/ test_kx_nk();
int /*<<< orphan*/ test_kx_xx();
int /*<<< orphan*/ test_pwhash();
int /*<<< orphan*/ test_randombytes();
int /*<<< orphan*/ test_secretbox();
int /*<<< orphan*/ test_sign();
int main(void) {
  int ret;
  ret = hydro_init();
  assert(ret == 0);
  test_core();
  test_hash();
  test_kdf();
  test_kx_n();
  test_kx_kk();
  test_kx_xx();
  test_kx_nk();
  test_pwhash();
  test_randombytes();
  test_secretbox();
  test_sign();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10d0 <hydro_init@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    $0x0,%al
call   10b0 <test_core@plt>
mov    $0x0,%al
call   1060 <test_hash@plt>
mov    $0x0,%al
call   1080 <test_kdf@plt>
mov    $0x0,%al
call   10e0 <test_kx_n@plt>
mov    $0x0,%al
call   10f0 <test_kx_kk@plt>
mov    $0x0,%al
call   10c0 <test_kx_xx@plt>
mov    $0x0,%al
call   1090 <test_kx_nk@plt>
mov    $0x0,%al
call   1050 <test_pwhash@plt>
mov    $0x0,%al
call   1030 <test_randombytes@plt>
mov    $0x0,%al
call   1070 <test_secretbox@plt>
mov    $0x0,%al
call   1040 <test_sign@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10d0 <hydro_init@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
xor    %eax,%eax
call   10b0 <test_core@plt>
xor    %eax,%eax
call   1060 <test_hash@plt>
xor    %eax,%eax
call   1080 <test_kdf@plt>
xor    %eax,%eax
call   10e0 <test_kx_n@plt>
xor    %eax,%eax
call   10f0 <test_kx_kk@plt>
xor    %eax,%eax
call   10c0 <test_kx_xx@plt>
xor    %eax,%eax
call   1090 <test_kx_nk@plt>
xor    %eax,%eax
call   1050 <test_pwhash@plt>
xor    %eax,%eax
call   1030 <test_randombytes@plt>
xor    %eax,%eax
call   1070 <test_secretbox@plt>
xor    %eax,%eax
call   1040 <test_sign@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @hydro_init()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = call i32 (...) @test_core()
%9 = call i32 (...) @test_hash()
%10 = call i32 (...) @test_kdf()
%11 = call i32 (...) @test_kx_n()
%12 = call i32 (...) @test_kx_kk()
%13 = call i32 (...) @test_kx_xx()
%14 = call i32 (...) @test_kx_nk()
%15 = call i32 (...) @test_pwhash()
%16 = call i32 (...) @test_randombytes()
%17 = call i32 (...) @test_secretbox()
%18 = call i32 (...) @test_sign()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @hydro_init()
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 (...) @test_core()
%6 = tail call i32 (...) @test_hash()
%7 = tail call i32 (...) @test_kdf()
%8 = tail call i32 (...) @test_kx_n()
%9 = tail call i32 (...) @test_kx_kk()
%10 = tail call i32 (...) @test_kx_xx()
%11 = tail call i32 (...) @test_kx_nk()
%12 = tail call i32 (...) @test_pwhash()
%13 = tail call i32 (...) @test_randombytes()
%14 = tail call i32 (...) @test_secretbox()
%15 = tail call i32 (...) @test_sign()
ret i32 0
}