#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 rpc {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ eval_rpc(double *, struct rpc *, double, double, double);
int /*<<< orphan*/ eval_rpci(double *, struct rpc *, double, double, double);
void eval_rpc_pair(double xprime[2], struct rpc *pa, struct rpc *pb, double x,
                   double y, double z) {
  double tmp[2];
  eval_rpc(tmp, pa, x, y, z);
  eval_rpci(xprime, pb, tmp[0], tmp[1], z);
}


x86 assembly (clang, -O0):
<eval_rpc_pair>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movsd  %xmm2,-0x30(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
call   1040 <eval_rpc@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
call   1030 <eval_rpci@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eval_rpc_pair>:
push   %r14
push   %rbx
sub    $0x28,%rsp
movsd  %xmm2,0x8(%rsp)
mov    %rdx,%r14
mov    %rdi,%rbx
lea    0x10(%rsp),%rdi
call   1040 <eval_rpc@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mov    %rbx,%rdi
mov    %r14,%rsi
movsd  0x8(%rsp),%xmm2
call   1030 <eval_rpci@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.rpc = type { i32 }
define void @eval_rpc_pair(double* %0, %struct.rpc* %1, %struct.rpc* %2, double %3, double %4, double %5) {
%7 = alloca double*
%8 = alloca %struct.rpc*
%9 = alloca %struct.rpc*
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca [2 x double]
store double* %0, double** %7
store %struct.rpc* %1, %struct.rpc** %8
store %struct.rpc* %2, %struct.rpc** %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%14 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%15 = load %struct.rpc*, %struct.rpc** %8
%16 = load double, double* %10
%17 = load double, double* %11
%18 = load double, double* %12
%19 = call i32 @eval_rpc(double* %14, %struct.rpc* %15, double %16, double %17, double %18)
%20 = load double*, double** %7
%21 = load %struct.rpc*, %struct.rpc** %9
%22 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%23 = load double, double* %22
%24 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 1
%25 = load double, double* %24
%26 = load double, double* %12
%27 = call i32 @eval_rpci(double* %20, %struct.rpc* %21, double %23, double %25, double %26)
ret void
}

LLVM IR (-O2):
%struct.rpc = type { i32 }
define void @eval_rpc_pair(double* %0, %struct.rpc* %1, %struct.rpc* %2, double %3, double %4, double %5) {
%7 = alloca [2 x double]
%8 = bitcast [2 x double]* %7 to i8*
%9 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%10 = call i32 @eval_rpc(double* %9, %struct.rpc* %1, double %3, double %4, double %5)
%11 = load double, double* %9
%12 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 1
%13 = load double, double* %12
%14 = call i32 @eval_rpci(double* %0, %struct.rpc* %2, double %11, double %13, double %5)
ret void
}