#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 */
struct rnn_parameters {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ rnn_forward_context_map(struct rnn_parameters const *,
                                           double const *, double const *,
                                           double const *, double *, double *,
                                           double *);
int /*<<< orphan*/ rnn_forward_output_map(struct rnn_parameters const *,
                                          double *, double *, double *);
void rnn_forward_map(const struct rnn_parameters *rnn_p, const double *in_state,
                     const double *prev_c_inter_state,
                     const double *prev_c_state, double *c_inputsum,
                     double *c_inter_state, double *c_state,
                     double *o_inter_state, double *out_state) {
  rnn_forward_context_map(rnn_p, in_state, prev_c_inter_state, prev_c_state,
                          c_inputsum, c_inter_state, c_state);
  rnn_forward_output_map(rnn_p, c_state, o_inter_state, out_state);
}


x86 assembly (clang, -O0):
<rnn_forward_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%rax
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),%rax
mov    %rax,(%rsp)
call   1030 <rnn_forward_context_map@plt>
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rsi
mov    0x18(%rbp),%rdx
mov    0x20(%rbp),%rcx
call   1040 <rnn_forward_output_map@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rnn_forward_map>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
mov    0x38(%rsp),%r14
mov    0x40(%rsp),%r15
mov    0x30(%rsp),%rbx
mov    %rbx,(%rsp)
call   1030 <rnn_forward_context_map@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <rnn_forward_output_map@plt>

LLVM IR (-O0):
%struct.rnn_parameters = type { i32 }
define void @rnn_forward_map(%struct.rnn_parameters* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8) {
%10 = alloca %struct.rnn_parameters*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
store %struct.rnn_parameters* %0, %struct.rnn_parameters** %10
store double* %1, double** %11
store double* %2, double** %12
store double* %3, double** %13
store double* %4, double** %14
store double* %5, double** %15
store double* %6, double** %16
store double* %7, double** %17
store double* %8, double** %18
%19 = load %struct.rnn_parameters*, %struct.rnn_parameters** %10
%20 = load double*, double** %11
%21 = load double*, double** %12
%22 = load double*, double** %13
%23 = load double*, double** %14
%24 = load double*, double** %15
%25 = load double*, double** %16
%26 = call i32 @rnn_forward_context_map(%struct.rnn_parameters* %19, double* %20, double* %21, double* %22, double* %23, double* %24, double* %25)
%27 = load %struct.rnn_parameters*, %struct.rnn_parameters** %10
%28 = load double*, double** %16
%29 = load double*, double** %17
%30 = load double*, double** %18
%31 = call i32 @rnn_forward_output_map(%struct.rnn_parameters* %27, double* %28, double* %29, double* %30)
ret void
}

LLVM IR (-O2):
%struct.rnn_parameters = type { i32 }
define void @rnn_forward_map(%struct.rnn_parameters* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8) {
%10 = tail call i32 @rnn_forward_context_map(%struct.rnn_parameters* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6)
%11 = tail call i32 @rnn_forward_output_map(%struct.rnn_parameters* %0, double* %6, double* %7, double* %8)
ret void
}