#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*/ hidden_layer_1_D(int, float, float *, float *,
                                    int /*<<< orphan*/);
int /*<<< orphan*/ input_layer_1_D(float, float *);
int /*<<< orphan*/ output_layer_1_D(int, float *, float *, float *, float *);
void ANN(int N_hidden, float In, float *w_ji, float *w_kj, float *b,
         float *y_pj, float *y_pk) {
  float x_pi;
  input_layer_1_D(In, &x_pi);
  hidden_layer_1_D(N_hidden, x_pi, w_ji, y_pj, 0);
  output_layer_1_D(N_hidden, y_pj, w_kj, b, y_pk);
}


x86 assembly (clang, -O0):
<ANN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movss  -0x8(%rbp),%xmm0
lea    -0x34(%rbp),%rdi
call   1030 <input_layer_1_D@plt>
mov    -0x4(%rbp),%edi
movss  -0x34(%rbp),%xmm0
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
xor    %ecx,%ecx
call   1040 <hidden_layer_1_D@plt>
mov    -0x4(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%r8
call   1050 <output_layer_1_D@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ANN>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%rbx
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %edi,%ebp
lea    0x4(%rsp),%rdi
call   1030 <input_layer_1_D@plt>
movss  0x4(%rsp),%xmm0
mov    %ebp,%edi
mov    %r13,%rsi
mov    %rbx,%rdx
xor    %ecx,%ecx
call   1040 <hidden_layer_1_D@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1050 <output_layer_1_D@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @ANN(i32 %0, float %1, float* %2, float* %3, float* %4, float* %5, float* %6) {
%8 = alloca i32
%9 = alloca float
%10 = alloca float*
%11 = alloca float*
%12 = alloca float*
%13 = alloca float*
%14 = alloca float*
%15 = alloca float
store i32 %0, i32* %8
store float %1, float* %9
store float* %2, float** %10
store float* %3, float** %11
store float* %4, float** %12
store float* %5, float** %13
store float* %6, float** %14
%16 = load float, float* %9
%17 = call i32 @input_layer_1_D(float %16, float* %15)
%18 = load i32, i32* %8
%19 = load float, float* %15
%20 = load float*, float** %10
%21 = load float*, float** %13
%22 = call i32 @hidden_layer_1_D(i32 %18, float %19, float* %20, float* %21, i32 0)
%23 = load i32, i32* %8
%24 = load float*, float** %13
%25 = load float*, float** %11
%26 = load float*, float** %12
%27 = load float*, float** %14
%28 = call i32 @output_layer_1_D(i32 %23, float* %24, float* %25, float* %26, float* %27)
ret void
}

LLVM IR (-O2):
define void @ANN(i32 %0, float %1, float* %2, float* %3, float* %4, float* %5, float* %6) {
%8 = alloca float
%9 = bitcast float* %8 to i8*
%10 = call i32 @input_layer_1_D(float %1, float* %8)
%11 = load float, float* %8
%12 = call i32 @hidden_layer_1_D(i32 %0, float %11, float* %2, float* %5, i32 0)
%13 = call i32 @output_layer_1_D(i32 %0, float* %5, float* %3, float* %4, float* %6)
ret void
}