#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 M_PI;
double cos(double);
double sin(double);
double u_an(double L, double Lt, double a_ut, double a_ux, double a_uy,
            double a_uz, double t, double u_0, double u_t, double u_x,
            double u_y, double u_z, double x, double y, double z) {
  return u_0 + u_t * cos(M_PI * a_ut * t / Lt) +
         u_x * sin(M_PI * a_ux * x / L) + u_y * cos(M_PI * a_uy * y / L) +
         u_z * cos(M_PI * a_uz * z / L);
}


x86 assembly (clang, -O0):
<u_an>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  0x40(%rbp),%xmm8
movsd  0x38(%rbp),%xmm8
movsd  0x30(%rbp),%xmm8
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x2e50(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x80(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2e0d(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  0x30(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x2dca(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  0x38(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x60(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0x28(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x2d87(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<u_an>:
push   %rbx
sub    $0x30,%rsp
movsd  %xmm7,0x8(%rsp)
movsd  %xmm5,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x28(%rsp)
movsd  %xmm0,0x20(%rsp)
mov    0x2e9e(%rip),%rbx
mulsd  (%rbx),%xmm2
mulsd  %xmm6,%xmm2
divsd  %xmm1,%xmm2
movapd %xmm2,%xmm0
call   1040 <cos@plt>
mulsd  0x40(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  (%rbx),%xmm1
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mulsd  0x60(%rsp),%xmm1
divsd  0x20(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1030 <sin@plt>
mulsd  0x48(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  (%rbx),%xmm1
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
mulsd  0x68(%rsp),%xmm1
divsd  0x20(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
mulsd  0x50(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  (%rbx),%xmm1
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
mulsd  0x70(%rsp),%xmm1
divsd  0x20(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
mulsd  0x58(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define double @u_an(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13, double %14) {
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
store double %0, double* %16
store double %1, double* %17
store double %2, double* %18
store double %3, double* %19
store double %4, double* %20
store double %5, double* %21
store double %6, double* %22
store double %7, double* %23
store double %8, double* %24
store double %9, double* %25
store double %10, double* %26
store double %11, double* %27
store double %12, double* %28
store double %13, double* %29
store double %14, double* %30
%31 = load double, double* %23
%32 = load double, double* %24
%33 = load double, double* @M_PI
%34 = load double, double* %18
%35 = fmul double %33, %34
%36 = load double, double* %22
%37 = fmul double %35, %36
%38 = load double, double* %17
%39 = fdiv double %37, %38
%40 = call double @cos(double %39)
%41 = call double @llvm.fmuladd.f64(double %32, double %40, double %31)
%42 = load double, double* %25
%43 = load double, double* @M_PI
%44 = load double, double* %19
%45 = fmul double %43, %44
%46 = load double, double* %28
%47 = fmul double %45, %46
%48 = load double, double* %16
%49 = fdiv double %47, %48
%50 = call double @sin(double %49)
%51 = call double @llvm.fmuladd.f64(double %42, double %50, double %41)
%52 = load double, double* %26
%53 = load double, double* @M_PI
%54 = load double, double* %20
%55 = fmul double %53, %54
%56 = load double, double* %29
%57 = fmul double %55, %56
%58 = load double, double* %16
%59 = fdiv double %57, %58
%60 = call double @cos(double %59)
%61 = call double @llvm.fmuladd.f64(double %52, double %60, double %51)
%62 = load double, double* %27
%63 = load double, double* @M_PI
%64 = load double, double* %21
%65 = fmul double %63, %64
%66 = load double, double* %30
%67 = fmul double %65, %66
%68 = load double, double* %16
%69 = fdiv double %67, %68
%70 = call double @cos(double %69)
%71 = call double @llvm.fmuladd.f64(double %62, double %70, double %61)
ret double %71
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double @u_an(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13, double %14) {
%16 = load double, double* @M_PI
%17 = fmul double %16, %2
%18 = fmul double %17, %6
%19 = fdiv double %18, %1
%20 = tail call double @cos(double %19)
%21 = tail call double @llvm.fmuladd.f64(double %8, double %20, double %7)
%22 = load double, double* @M_PI
%23 = fmul double %22, %3
%24 = fmul double %23, %12
%25 = fdiv double %24, %0
%26 = tail call double @sin(double %25)
%27 = tail call double @llvm.fmuladd.f64(double %9, double %26, double %21)
%28 = load double, double* @M_PI
%29 = fmul double %28, %4
%30 = fmul double %29, %13
%31 = fdiv double %30, %0
%32 = tail call double @cos(double %31)
%33 = tail call double @llvm.fmuladd.f64(double %10, double %32, double %27)
%34 = load double, double* @M_PI
%35 = fmul double %34, %5
%36 = fmul double %35, %14
%37 = fdiv double %36, %0
%38 = tail call double @cos(double %37)
%39 = tail call double @llvm.fmuladd.f64(double %11, double %38, double %33)
ret double %39
}