#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*/ benchmarkEncode();
int /*<<< orphan*/ fec_init();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_003();
int /*<<< orphan*/ test_encoding();
int /*<<< orphan*/ test_galois();
int /*<<< orphan*/ test_inverse();
int /*<<< orphan*/ test_multiply();
int /*<<< orphan*/ test_one_decoding();
int /*<<< orphan*/ test_one_encoding();
int /*<<< orphan*/ test_reconstruct();
int /*<<< orphan*/ test_sub_matrix();
int main(void) {
  fec_init();
  test_galois();
  test_sub_matrix();
  test_multiply();
  test_inverse();
  test_one_encoding();
  test_one_decoding();
  test_encoding();
  test_reconstruct();
  printf("reach here means test all ok\n");
  benchmarkEncode();
  test_003();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10e0 <fec_init@plt>
mov    $0x0,%al
call   1040 <test_galois@plt>
mov    $0x0,%al
call   10a0 <test_sub_matrix@plt>
mov    $0x0,%al
call   1090 <test_multiply@plt>
mov    $0x0,%al
call   10c0 <test_inverse@plt>
mov    $0x0,%al
call   1070 <test_one_encoding@plt>
mov    $0x0,%al
call   10b0 <test_one_decoding@plt>
mov    $0x0,%al
call   1050 <test_encoding@plt>
mov    $0x0,%al
call   10d0 <test_reconstruct@plt>
lea    0xdeb(%rip),%rdi
call   1080 <printf@plt>
mov    $0x0,%al
call   1060 <benchmarkEncode@plt>
mov    $0x0,%al
call   1030 <test_003@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10e0 <fec_init@plt>
xor    %eax,%eax
call   1040 <test_galois@plt>
xor    %eax,%eax
call   10a0 <test_sub_matrix@plt>
xor    %eax,%eax
call   1090 <test_multiply@plt>
xor    %eax,%eax
call   10c0 <test_inverse@plt>
xor    %eax,%eax
call   1080 <test_one_encoding@plt>
xor    %eax,%eax
call   10b0 <test_one_decoding@plt>
xor    %eax,%eax
call   1060 <test_encoding@plt>
xor    %eax,%eax
call   10d0 <test_reconstruct@plt>
lea    0xdf9(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1070 <benchmarkEncode@plt>
xor    %eax,%eax
call   1030 <test_003@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c"reach here means test all ok\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @fec_init()
%3 = call i32 (...) @test_galois()
%4 = call i32 (...) @test_sub_matrix()
%5 = call i32 (...) @test_multiply()
%6 = call i32 (...) @test_inverse()
%7 = call i32 (...) @test_one_encoding()
%8 = call i32 (...) @test_one_decoding()
%9 = call i32 (...) @test_encoding()
%10 = call i32 (...) @test_reconstruct()
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (...) @benchmarkEncode()
%13 = call i32 (...) @test_003()
ret i32 0
}

LLVM IR (-O2):
@str = [29 x i8] c"reach here means test all ok\00"
define i32 @main() {
%1 = tail call i32 (...) @fec_init()
%2 = tail call i32 (...) @test_galois()
%3 = tail call i32 (...) @test_sub_matrix()
%4 = tail call i32 (...) @test_multiply()
%5 = tail call i32 (...) @test_inverse()
%6 = tail call i32 (...) @test_one_encoding()
%7 = tail call i32 (...) @test_one_decoding()
%8 = tail call i32 (...) @test_encoding()
%9 = tail call i32 (...) @test_reconstruct()
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 (...) @benchmarkEncode()
%12 = tail call i32 (...) @test_003()
ret i32 0
}