#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 /*<<< orphan*/);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ test_addconstant();
int /*<<< orphan*/ test_minimixcolumns();
int /*<<< orphan*/ test_mixcolumns();
int /*<<< orphan*/ test_proest_minipermute();
int /*<<< orphan*/ test_proest_permute();
int /*<<< orphan*/ test_sanity();
int /*<<< orphan*/ test_sboxes();
int /*<<< orphan*/ test_shiftregisters();
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argv, char *argc[]) {
  srand(time(NULL));
  assert(test_sanity());
  assert(test_sboxes());
  assert(test_addconstant());
  assert(test_shiftregisters());
  assert(test_mixcolumns());
  assert(test_minimixcolumns());
  assert(test_proest_permute());
  assert(test_proest_minipermute());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
mov    $0x0,%al
call   1050 <test_sanity@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   1090 <test_sboxes@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10c0 <test_addconstant@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   1070 <test_shiftregisters@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   1040 <test_mixcolumns@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10d0 <test_minimixcolumns@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   1030 <test_proest_permute@plt>
mov    %eax,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   10a0 <test_proest_minipermute@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
xor    %eax,%eax
call   1050 <test_sanity@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   1090 <test_sboxes@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   10c0 <test_addconstant@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   1070 <test_shiftregisters@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   1040 <test_mixcolumns@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   10d0 <test_minimixcolumns@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   1030 <test_proest_permute@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
call   10a0 <test_proest_minipermute@plt>
mov    %eax,%edi
call   1080 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @time(i32* null)
%7 = call i32 @srand(i32 %6)
%8 = call i32 (...) @test_sanity()
%9 = call i32 @assert(i32 %8)
%10 = call i32 (...) @test_sboxes()
%11 = call i32 @assert(i32 %10)
%12 = call i32 (...) @test_addconstant()
%13 = call i32 @assert(i32 %12)
%14 = call i32 (...) @test_shiftregisters()
%15 = call i32 @assert(i32 %14)
%16 = call i32 (...) @test_mixcolumns()
%17 = call i32 @assert(i32 %16)
%18 = call i32 (...) @test_minimixcolumns()
%19 = call i32 @assert(i32 %18)
%20 = call i32 (...) @test_proest_permute()
%21 = call i32 @assert(i32 %20)
%22 = call i32 (...) @test_proest_minipermute()
%23 = call i32 @assert(i32 %22)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = tail call i32 (...) @test_sanity()
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 (...) @test_sboxes()
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 (...) @test_addconstant()
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 (...) @test_shiftregisters()
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 (...) @test_mixcolumns()
%14 = tail call i32 @assert(i32 %13)
%15 = tail call i32 (...) @test_minimixcolumns()
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i32 (...) @test_proest_permute()
%18 = tail call i32 @assert(i32 %17)
%19 = tail call i32 (...) @test_proest_minipermute()
%20 = tail call i32 @assert(i32 %19)
ret i32 0
}