#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*/ backprop(double *, double *, double *, double *, double *,
                            double *, double *, double *);
void workload(double weights1[13 * 64], double weights2[64 * 64],
              double weights3[64 * 3], double biases1[64], double biases2[64],
              double biases3[3], double training_data[163 * 13],
              double training_targets[163 * 3]) {
#pragma HLS INTERFACE m_axi port = weights1 offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = weights2 offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = weights3 offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = biases1 offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = biases2 offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = biases3 offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = training_data offset = slave bundle = gmem
#pragma HLS INTERFACE m_axi port = training_targets offset = slave bundle = gmem
#pragma HLS INTERFACE s_axilite port = weights1 bundle = control
#pragma HLS INTERFACE s_axilite port = weights2 bundle = control
#pragma HLS INTERFACE s_axilite port = weights3 bundle = control
#pragma HLS INTERFACE s_axilite port = biases1 bundle = control
#pragma HLS INTERFACE s_axilite port = biases2 bundle = control
#pragma HLS INTERFACE s_axilite port = biases3 bundle = control
#pragma HLS INTERFACE s_axilite port = training_data bundle = control
#pragma HLS INTERFACE s_axilite port = training_targets bundle = control
#pragma HLS INTERFACE s_axilite port = return bundle = control
  backprop(weights1, weights2, weights3, biases1, biases2, biases3,
           training_data, training_targets);
  return;
}


x86 assembly (clang, -O0):
<workload>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <backprop@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<workload>:
jmp    1030 <backprop@plt>

LLVM IR (-O0):
define void @workload(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7) {
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
store double* %0, double** %9
store double* %1, double** %10
store double* %2, double** %11
store double* %3, double** %12
store double* %4, double** %13
store double* %5, double** %14
store double* %6, double** %15
store double* %7, double** %16
%17 = load double*, double** %9
%18 = load double*, double** %10
%19 = load double*, double** %11
%20 = load double*, double** %12
%21 = load double*, double** %13
%22 = load double*, double** %14
%23 = load double*, double** %15
%24 = load double*, double** %16
%25 = call i32 @backprop(double* %17, double* %18, double* %19, double* %20, double* %21, double* %22, double* %23, double* %24)
ret void
}

LLVM IR (-O2):
define void @workload(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7) {
%9 = tail call i32 @backprop(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7)
ret void
}