void NLEffects(N, q, qdot) double N[2];
double q[2];
double qdot[2];
{
  double t1;
  double t10;
  double t11;
  double t12;
  double t14;
  double t2;
  double t20;
  double t23;
  double t4;
  double t5;
  double t6;
  double t8;
  double t9;
  {
    t1 = q[0];
    t2 = cos(t1);
    t4 = q[1];
    t5 = sin(t4);
    t6 = sin(t1);
    t8 = qdot[0];
    t9 = t8 * t8;
    t10 = 0.981E1 * t6 - t9;
    t11 = t5 * t10;
    t12 = cos(t4);
    t14 = 0.981E1 * t2 * t12;
    t20 = pow(t8 + qdot[1], 2.0);
    t23 = -t11 + t14;
    N[0] = 0.981E1 * t2 - t11 + t14 +
           t5 * (t12 * t10 + 0.981E1 * t2 * t5 - t20) + t12 * t23;
    N[1] = t23;
    return;
  }
}


x86 assembly (clang, -O0):
<NLEffects>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe2c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xdf9(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x18(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  0xddc(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd7b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm4
movsd  0xd57(%rip),%xmm3
mulsd  -0x48(%rbp),%xmm3
mulsd  -0x68(%rbp),%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
subsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NLEffects>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r14
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rsp)
call   1040 <cos@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1030 <sin@plt>
movaps %xmm0,0x20(%rsp)
movsd  (%rsp),%xmm0
call   1030 <sin@plt>
movsd  (%r15),%xmm1
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm1,%xmm1
mulsd  0xe84(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <cos@plt>
movsd  0x18(%rsp),%xmm2
mulsd  0xe62(%rip),%xmm2
movapd %xmm2,%xmm1
movapd %xmm2,%xmm4
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm2
addsd  0x8(%r15),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm2,%xmm6
movapd 0xe4a(%rip),%xmm2
movapd 0x20(%rsp),%xmm5
xorpd  %xmm5,%xmm2
movsd  (%rsp),%xmm7
mulsd  %xmm7,%xmm2
movapd %xmm1,%xmm3
addsd  %xmm2,%xmm3
addsd  %xmm4,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm5,%xmm4
movapd %xmm7,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm4,%xmm1
subsd  %xmm6,%xmm1
mulsd  %xmm5,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r14)
movsd  %xmm3,0x8(%r14)
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @NLEffects(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%20 = load double*, double** %5
%21 = getelementptr inbounds double, double* %20, i64 0
%22 = load double, double* %21
store double %22, double* %7
%23 = load double, double* %7
%24 = call double @cos(double %23)
store double %24, double* %12
%25 = load double*, double** %5
%26 = getelementptr inbounds double, double* %25, i64 1
%27 = load double, double* %26
store double %27, double* %15
%28 = load double, double* %15
%29 = call double @sin(double %28)
store double %29, double* %16
%30 = load double, double* %7
%31 = call double @sin(double %30)
store double %31, double* %17
%32 = load double*, double** %6
%33 = getelementptr inbounds double, double* %32, i64 0
%34 = load double, double* %33
store double %34, double* %18
%35 = load double, double* %18
%36 = load double, double* %18
%37 = fmul double %35, %36
store double %37, double* %19
%38 = load double, double* %17
%39 = load double, double* %19
%40 = fneg double %39
%41 = call double @llvm.fmuladd.f64(double 9.810000e+00, double %38, double %40)
store double %41, double* %8
%42 = load double, double* %16
%43 = load double, double* %8
%44 = fmul double %42, %43
store double %44, double* %9
%45 = load double, double* %15
%46 = call double @cos(double %45)
store double %46, double* %10
%47 = load double, double* %12
%48 = fmul double 9.810000e+00, %47
%49 = load double, double* %10
%50 = fmul double %48, %49
store double %50, double* %11
%51 = load double, double* %18
%52 = load double*, double** %6
%53 = getelementptr inbounds double, double* %52, i64 1
%54 = load double, double* %53
%55 = fadd double %51, %54
%56 = call double @pow(double %55, double 2.000000e+00)
store double %56, double* %13
%57 = load double, double* %9
%58 = fneg double %57
%59 = load double, double* %11
%60 = fadd double %58, %59
store double %60, double* %14
%61 = load double, double* %12
%62 = load double, double* %9
%63 = fneg double %62
%64 = call double @llvm.fmuladd.f64(double 9.810000e+00, double %61, double %63)
%65 = load double, double* %11
%66 = fadd double %64, %65
%67 = load double, double* %16
%68 = load double, double* %10
%69 = load double, double* %8
%70 = load double, double* %12
%71 = fmul double 9.810000e+00, %70
%72 = load double, double* %16
%73 = fmul double %71, %72
%74 = call double @llvm.fmuladd.f64(double %68, double %69, double %73)
%75 = load double, double* %13
%76 = fsub double %74, %75
%77 = call double @llvm.fmuladd.f64(double %67, double %76, double %66)
%78 = load double, double* %10
%79 = load double, double* %14
%80 = call double @llvm.fmuladd.f64(double %78, double %79, double %77)
%81 = load double*, double** %4
%82 = getelementptr inbounds double, double* %81, i64 0
store double %80, double* %82
%83 = load double, double* %14
%84 = load double*, double** %4
%85 = getelementptr inbounds double, double* %84, i64 1
store double %83, double* %85
ret void
}

LLVM IR (-O2):
define void @NLEffects(double* nocapture writeonly %0, double* nocapture %1, double* nocapture %2) {
%4 = load double, double* %1
%5 = tail call double @cos(double %4)
%6 = getelementptr inbounds double, double* %1, i64 1
%7 = load double, double* %6
%8 = tail call double @sin(double %7)
%9 = tail call double @sin(double %4)
%10 = load double, double* %2
%11 = fneg double %10
%12 = fmul double %10, %11
%13 = tail call double @llvm.fmuladd.f64(double %9, double 9.810000e+00, double %12)
%14 = tail call double @cos(double %7)
%15 = fmul double %5, 9.810000e+00
%16 = fmul double %15, %14
%17 = getelementptr inbounds double, double* %2, i64 1
%18 = load double, double* %17
%19 = fadd double %10, %18
%20 = fmul double %19, %19
%21 = fneg double %8
%22 = fmul double %13, %21
%23 = fadd double %16, %22
%24 = tail call double @llvm.fmuladd.f64(double %5, double 9.810000e+00, double %22)
%25 = fadd double %16, %24
%26 = fmul double %15, %8
%27 = tail call double @llvm.fmuladd.f64(double %14, double %13, double %26)
%28 = fsub double %27, %20
%29 = tail call double @llvm.fmuladd.f64(double %8, double %28, double %25)
%30 = tail call double @llvm.fmuladd.f64(double %14, double %23, double %29)
store double %30, double* %0
%31 = getelementptr inbounds double, double* %0, i64 1
store double %23, double* %31
ret void
}