void SpringForce(S, q) double S[6];
double q[6];
{
  double t1;
  double t10;
  double t2;
  double t3;
  double t5;
  double t8;
  {
    S[0] = 0.0;
    t1 = q[1];
    t2 = sin(t1);
    t3 = t2 * t2;
    t5 = cos(t1);
    t8 = pow(0.45 - 0.6E-1 * t5, 2.0);
    t10 = sqrt(0.36E-2 * t3 + t8);
    S[1] = -0.27E-1 * (20295.0 * t10 - 0.625775E4) * t2 / t10;
    S[2] = 0.0;
    S[3] = 0.0;
    S[4] = 0.0;
    S[5] = 0.0;
    return;
  }
}


x86 assembly (clang, -O0):
<SpringForce>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xe85(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe81(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe65(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xe41(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  0xe12(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe0e(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xdf2(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x28(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SpringForce>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
movq   $0x0,(%rdi)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1030 <sin@plt>
movsd  %xmm0,0x18(%rsp)
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0xe8e(%rip),%xmm0
addsd  0xe8e(%rip),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xe84(%rip),%xmm1
addsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
jb     11a4 <SpringForce+0x74>
sqrtsd %xmm0,%xmm0
jmp    11a9 <SpringForce+0x79>
call   1050 <sqrt@plt>
movsd  0xe67(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xe63(%rip),%xmm1
mulsd  0xe63(%rip),%xmm1
movsd  0x18(%rsp),%xmm2
mulsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%rbx)
xorpd  %xmm0,%xmm0
movupd %xmm0,0x10(%rbx)
movupd %xmm0,0x20(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @SpringForce(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double* %0, double** %3
store double* %1, double** %4
%11 = load double*, double** %3
%12 = getelementptr inbounds double, double* %11, i64 0
store double 0.000000e+00, double* %12
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
store double %15, double* %5
%16 = load double, double* %5
%17 = call double @sin(double %16)
store double %17, double* %7
%18 = load double, double* %7
%19 = load double, double* %7
%20 = fmul double %18, %19
store double %20, double* %8
%21 = load double, double* %5
%22 = call double @cos(double %21)
store double %22, double* %9
%23 = load double, double* %9
%24 = call double @llvm.fmuladd.f64(double -6.000000e-02, double %23, double 4.500000e-01)
%25 = call double @pow(double %24, double 2.000000e+00)
store double %25, double* %10
%26 = load double, double* %8
%27 = load double, double* %10
%28 = call double @llvm.fmuladd.f64(double 3.600000e-03, double %26, double %27)
%29 = call double @sqrt(double %28)
store double %29, double* %6
%30 = load double, double* %6
%31 = call double @llvm.fmuladd.f64(double 2.029500e+04, double %30, double -6.257750e+03)
%32 = fmul double -2.700000e-02, %31
%33 = load double, double* %7
%34 = fmul double %32, %33
%35 = load double, double* %6
%36 = fdiv double %34, %35
%37 = load double*, double** %3
%38 = getelementptr inbounds double, double* %37, i64 1
store double %36, double* %38
%39 = load double*, double** %3
%40 = getelementptr inbounds double, double* %39, i64 2
store double 0.000000e+00, double* %40
%41 = load double*, double** %3
%42 = getelementptr inbounds double, double* %41, i64 3
store double 0.000000e+00, double* %42
%43 = load double*, double** %3
%44 = getelementptr inbounds double, double* %43, i64 4
store double 0.000000e+00, double* %44
%45 = load double*, double** %3
%46 = getelementptr inbounds double, double* %45, i64 5
store double 0.000000e+00, double* %46
ret void
}

LLVM IR (-O2):
define void @SpringForce(double* nocapture writeonly %0, double* nocapture %1) {
store double 0.000000e+00, double* %0
%3 = getelementptr inbounds double, double* %1, i64 1
%4 = load double, double* %3
%5 = tail call double @sin(double %4)
%6 = fmul double %5, %5
%7 = tail call double @cos(double %4)
%8 = tail call double @llvm.fmuladd.f64(double %7, double -6.000000e-02, double 4.500000e-01)
%9 = fmul double %8, %8
%10 = tail call double @llvm.fmuladd.f64(double %6, double 3.600000e-03, double %9)
%11 = tail call double @sqrt(double %10)
%12 = tail call double @llvm.fmuladd.f64(double %11, double 2.029500e+04, double -6.257750e+03)
%13 = fmul double %12, -2.700000e-02
%14 = fmul double %5, %13
%15 = fdiv double %14, %11
%16 = getelementptr inbounds double, double* %0, i64 1
store double %15, double* %16
%17 = getelementptr inbounds double, double* %0, i64 2
%18 = bitcast double* %17 to i8*
ret void
}