#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 */
double cos(double const);
double exp(double const);
double sin(double const);
int Integrand(const int *ndim, const double xx[], const int *ncomp, double ff[],
              void *userdata) {
  ff[0] = sin(xx[0]) * cos(xx[1]) * exp(xx[2]);
  return 0;
}


x86 assembly (clang, -O0):
<Integrand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Integrand>:
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rsi,%rbx
movsd  (%rsi),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,(%rsp)
movsd  0x8(%rbx),%xmm0
call   1050 <cos@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rbx),%xmm0
call   1040 <exp@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%r14)
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @Integrand(i32* %0, double* %1, i32* %2, double* %3, i8* %4) {
%6 = alloca i32*
%7 = alloca double*
%8 = alloca i32*
%9 = alloca double*
%10 = alloca i8*
store i32* %0, i32** %6
store double* %1, double** %7
store i32* %2, i32** %8
store double* %3, double** %9
store i8* %4, i8** %10
%11 = load double*, double** %7
%12 = getelementptr inbounds double, double* %11, i64 0
%13 = load double, double* %12
%14 = call double @sin(double %13)
%15 = load double*, double** %7
%16 = getelementptr inbounds double, double* %15, i64 1
%17 = load double, double* %16
%18 = call double @cos(double %17)
%19 = fmul double %14, %18
%20 = load double*, double** %7
%21 = getelementptr inbounds double, double* %20, i64 2
%22 = load double, double* %21
%23 = call double @exp(double %22)
%24 = fmul double %19, %23
%25 = load double*, double** %9
%26 = getelementptr inbounds double, double* %25, i64 0
store double %24, double* %26
ret i32 0
}

LLVM IR (-O2):
define i32 @Integrand(i32* nocapture readnone %0, double* nocapture %1, i32* nocapture readnone %2, double* nocapture writeonly %3, i8* nocapture readnone %4) {
%6 = load double, double* %1
%7 = tail call double @sin(double %6)
%8 = getelementptr inbounds double, double* %1, i64 1
%9 = load double, double* %8
%10 = tail call double @cos(double %9)
%11 = fmul double %7, %10
%12 = getelementptr inbounds double, double* %1, i64 2
%13 = load double, double* %12
%14 = tail call double @exp(double %13)
%15 = fmul double %11, %14
store double %15, double* %3
ret i32 0
}