#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 exp(double const);
int sin(double const);
double global_get_value(const double *x_, const double *par_) {
  return (-100 * (exp(-((x_[0] * x_[0] - 4)) / 7200) +
                  exp(-((x_[1] * x_[1] + 4)) / 7200) - sin(x_[0] / 20) -
                  sin(x_[1] / 20)));
}


x86 assembly (clang, -O0):
<global_get_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xecc(%rip),%xmm1
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe99(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <exp@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe77(%rip),%xmm1
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe4c(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <exp@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xe21(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xdfd(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
imul   $0xffffff9c,%eax,%eax
cvtsi2sd %eax,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<global_get_value>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
mulsd  %xmm0,%xmm0
addsd  0xec6(%rip),%xmm0
divsd  0xec6(%rip),%xmm0
call   1040 <exp@plt>
mov    %eax,%r14d
movsd  0x8(%rbx),%xmm0
mulsd  %xmm0,%xmm0
addsd  0xeb5(%rip),%xmm0
divsd  0xea5(%rip),%xmm0
call   1040 <exp@plt>
mov    %eax,%ebp
movsd  (%rbx),%xmm0
divsd  0xea2(%rip),%xmm0
call   1030 <sin@plt>
mov    %eax,%r15d
movsd  0x8(%rbx),%xmm0
divsd  0xe8d(%rip),%xmm0
call   1030 <sin@plt>
add    %r14d,%ebp
add    %r15d,%eax
sub    %eax,%ebp
imul   $0xffffff9c,%ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @global_get_value(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 0
%7 = load double, double* %6
%8 = load double*, double** %3
%9 = getelementptr inbounds double, double* %8, i64 0
%10 = load double, double* %9
%11 = call double @llvm.fmuladd.f64(double %7, double %10, double -4.000000e+00)
%12 = fneg double %11
%13 = fdiv double %12, 7.200000e+03
%14 = call i32 @exp(double %13)
%15 = load double*, double** %3
%16 = getelementptr inbounds double, double* %15, i64 1
%17 = load double, double* %16
%18 = load double*, double** %3
%19 = getelementptr inbounds double, double* %18, i64 1
%20 = load double, double* %19
%21 = call double @llvm.fmuladd.f64(double %17, double %20, double 4.000000e+00)
%22 = fneg double %21
%23 = fdiv double %22, 7.200000e+03
%24 = call i32 @exp(double %23)
%25 = add nsw i32 %14, %24
%26 = load double*, double** %3
%27 = getelementptr inbounds double, double* %26, i64 0
%28 = load double, double* %27
%29 = fdiv double %28, 2.000000e+01
%30 = call i32 @sin(double %29)
%31 = sub nsw i32 %25, %30
%32 = load double*, double** %3
%33 = getelementptr inbounds double, double* %32, i64 1
%34 = load double, double* %33
%35 = fdiv double %34, 2.000000e+01
%36 = call i32 @sin(double %35)
%37 = sub nsw i32 %31, %36
%38 = mul nsw i32 -100, %37
%39 = sitofp i32 %38 to double
ret double %39
}

LLVM IR (-O2):
define double @global_get_value(double* nocapture %0, double* nocapture readnone %1) {
%3 = load double, double* %0
%4 = tail call double @llvm.fmuladd.f64(double %3, double %3, double -4.000000e+00)
%5 = fdiv double %4, -7.200000e+03
%6 = tail call i32 @exp(double %5)
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = load double, double* %7
%9 = tail call double @llvm.fmuladd.f64(double %8, double %8, double 4.000000e+00)
%10 = fdiv double %9, -7.200000e+03
%11 = tail call i32 @exp(double %10)
%12 = load double, double* %0
%13 = fdiv double %12, 2.000000e+01
%14 = tail call i32 @sin(double %13)
%15 = load double, double* %7
%16 = fdiv double %15, 2.000000e+01
%17 = tail call i32 @sin(double %16)
%18 = add i32 %11, %6
%19 = add i32 %14, %17
%20 = sub i32 %18, %19
%21 = mul nsw i32 %20, -100
%22 = sitofp i32 %21 to double
ret double %22
}