#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 /*<<< orphan*/ NLEffects(double *, double *, double *);
int /*<<< orphan*/ printf(char *, double, double);
main() {
  double q[3] = {0, 0};
  double qdot[3] = {0, 0};
  double NL[3] = {0, 0};
  NLEffects(NL, q, qdot);
  printf("-> %lf %lf \n", NL[0], NL[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0x60(%rbp),%rdi
lea    -0x20(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1050 <NLEffects@plt>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x50(%rsp)
movaps %xmm0,0x20(%rsp)
movq   $0x0,0x30(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0x10(%rsp)
mov    %rsp,%rdi
lea    0x40(%rsp),%rsi
lea    0x20(%rsp),%rdx
call   1040 <NLEffects@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"-> %lf %lf \0A\00"
define i32 @main() {
%1 = alloca [3 x double]
%2 = alloca [3 x double]
%3 = alloca [3 x double]
%4 = bitcast [3 x double]* %1 to i8*
%5 = bitcast [3 x double]* %2 to i8*
%6 = bitcast [3 x double]* %3 to i8*
%7 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%8 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%9 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%10 = call i32 @NLEffects(double* %7, double* %8, double* %9)
%11 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%12 = load double, double* %11
%13 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 1
%14 = load double, double* %13
%15 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double %12, double %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"-> %lf %lf \0A\00"
define i32 @main() {
%1 = alloca [3 x double]
%2 = alloca [3 x double]
%3 = alloca [3 x double]
%4 = bitcast [3 x double]* %1 to i8*
%5 = bitcast [3 x double]* %2 to i8*
%6 = bitcast [3 x double]* %3 to i8*
%7 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%8 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%9 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%10 = call i32 @NLEffects(double* %7, double* %8, double* %9)
%11 = load double, double* %7
%12 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 1
%13 = load double, double* %12
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double %11, double %13)
ret i32 0
}