void modele_frottements(const double q[7], const double qdot[7], double F[7]) {
  F[0] = 1.0 * qdot[0];
  F[1] = 1.0 * qdot[1];
  F[2] = 1.0 * qdot[2];
  F[3] = 1.0 * qdot[3];
  F[4] = 1.0 * qdot[4];
  F[5] = 1.0 * qdot[5];
  F[6] = 1.0 * qdot[6];
}


x86 assembly (clang, -O0):
<modele_frottements>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xee4(%rip),%xmm0
mulsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0xecc(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0xeb2(%rip),%xmm0
mulsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe98(%rip),%xmm0
mulsd  0x18(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe7e(%rip),%xmm0
mulsd  0x20(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe64(%rip),%xmm0
mulsd  0x28(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe4a(%rip),%xmm0
mulsd  0x30(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x30(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<modele_frottements>:
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rdx)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x8(%rdx)
movsd  0x10(%rsi),%xmm0
movsd  %xmm0,0x10(%rdx)
movsd  0x18(%rsi),%xmm0
movsd  %xmm0,0x18(%rdx)
movsd  0x20(%rsi),%xmm0
movsd  %xmm0,0x20(%rdx)
movsd  0x28(%rsi),%xmm0
movsd  %xmm0,0x28(%rdx)
movsd  0x30(%rsi),%xmm0
movsd  %xmm0,0x30(%rdx)
ret

LLVM IR (-O0):
define void @modele_frottements(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%7 = load double*, double** %5
%8 = getelementptr inbounds double, double* %7, i64 0
%9 = load double, double* %8
%10 = fmul double 1.000000e+00, %9
%11 = load double*, double** %6
%12 = getelementptr inbounds double, double* %11, i64 0
store double %10, double* %12
%13 = load double*, double** %5
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
%16 = fmul double 1.000000e+00, %15
%17 = load double*, double** %6
%18 = getelementptr inbounds double, double* %17, i64 1
store double %16, double* %18
%19 = load double*, double** %5
%20 = getelementptr inbounds double, double* %19, i64 2
%21 = load double, double* %20
%22 = fmul double 1.000000e+00, %21
%23 = load double*, double** %6
%24 = getelementptr inbounds double, double* %23, i64 2
store double %22, double* %24
%25 = load double*, double** %5
%26 = getelementptr inbounds double, double* %25, i64 3
%27 = load double, double* %26
%28 = fmul double 1.000000e+00, %27
%29 = load double*, double** %6
%30 = getelementptr inbounds double, double* %29, i64 3
store double %28, double* %30
%31 = load double*, double** %5
%32 = getelementptr inbounds double, double* %31, i64 4
%33 = load double, double* %32
%34 = fmul double 1.000000e+00, %33
%35 = load double*, double** %6
%36 = getelementptr inbounds double, double* %35, i64 4
store double %34, double* %36
%37 = load double*, double** %5
%38 = getelementptr inbounds double, double* %37, i64 5
%39 = load double, double* %38
%40 = fmul double 1.000000e+00, %39
%41 = load double*, double** %6
%42 = getelementptr inbounds double, double* %41, i64 5
store double %40, double* %42
%43 = load double*, double** %5
%44 = getelementptr inbounds double, double* %43, i64 6
%45 = load double, double* %44
%46 = fmul double 1.000000e+00, %45
%47 = load double*, double** %6
%48 = getelementptr inbounds double, double* %47, i64 6
store double %46, double* %48
ret void
}

LLVM IR (-O2):
define void @modele_frottements(double* nocapture readnone %0, double* nocapture %1, double* nocapture writeonly %2) {
%4 = load double, double* %1
store double %4, double* %2
%5 = getelementptr inbounds double, double* %1, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %2, i64 1
store double %6, double* %7
%8 = getelementptr inbounds double, double* %1, i64 2
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %2, i64 2
store double %9, double* %10
%11 = getelementptr inbounds double, double* %1, i64 3
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %2, i64 3
store double %12, double* %13
%14 = getelementptr inbounds double, double* %1, i64 4
%15 = load double, double* %14
%16 = getelementptr inbounds double, double* %2, i64 4
store double %15, double* %16
%17 = getelementptr inbounds double, double* %1, i64 5
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %2, i64 5
store double %18, double* %19
%20 = getelementptr inbounds double, double* %1, i64 6
%21 = load double, double* %20
%22 = getelementptr inbounds double, double* %2, i64 6
store double %21, double* %22
ret void
}