#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 */
typedef int /*<<< orphan*/ names;

/* Variables and functions */
double evaluator_evaluate(void *, int, char **, double *);
double evaluator_evaluate_x_y(void *evaluator, double x, double y) {
  char *names[] = {"x", "y"};
  double values[2];
  values[0] = x, values[1] = y;
  return evaluator_evaluate(evaluator, sizeof(names) / sizeof(names[0]), names,
                            values);
}


x86 assembly (clang, -O0):
<evaluator_evaluate_x_y>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    0x2ce3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2ce0(%rip),%rax
mov    %rax,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x30(%rbp),%rdx
lea    -0x40(%rbp),%rcx
mov    $0x2,%esi
call   1030 <evaluator_evaluate@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluator_evaluate_x_y>:
sub    $0x28,%rsp
movaps 0x2cf5(%rip),%xmm2
movaps %xmm2,0x10(%rsp)
movsd  %xmm0,(%rsp)
movsd  %xmm1,0x8(%rsp)
lea    0x10(%rsp),%rdx
mov    %rsp,%rcx
mov    $0x2,%esi
call   1030 <evaluator_evaluate@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"x\00"
@.str.1 = [2 x i8] c"y\00"
@__const.evaluator_evaluate_x_y.names = [2 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0)]
define double @evaluator_evaluate_x_y(i8* %0, double %1, double %2) {
%4 = alloca i8*
%5 = alloca double
%6 = alloca double
%7 = alloca [2 x i8*]
%8 = alloca [2 x double]
store i8* %0, i8** %4
store double %1, double* %5
store double %2, double* %6
%9 = bitcast [2 x i8*]* %7 to i8*
%10 = load double, double* %5
%11 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
store double %10, double* %11
%12 = load double, double* %6
%13 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
store double %12, double* %13
%14 = load i8*, i8** %4
%15 = getelementptr inbounds [2 x i8*], [2 x i8*]* %7, i64 0, i64 0
%16 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%17 = call double @evaluator_evaluate(i8* %14, i32 2, i8** %15, double* %16)
ret double %17
}

LLVM IR (-O2):
@.str = [2 x i8] c"x\00"
@.str.1 = [2 x i8] c"y\00"
@__const.evaluator_evaluate_x_y.names = [2 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0)]
define double @evaluator_evaluate_x_y(i8* %0, double %1, double %2) {
%4 = alloca [2 x i8*]
%5 = alloca [2 x double]
%6 = bitcast [2 x i8*]* %4 to i8*
%7 = bitcast [2 x double]* %5 to i8*
%8 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
store double %1, double* %8
%9 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 1
store double %2, double* %9
%10 = getelementptr inbounds [2 x i8*], [2 x i8*]* %4, i64 0, i64 0
%11 = call double @evaluator_evaluate(i8* %0, i32 2, i8** %10, double* %8)
ret double %11
}