#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*/ printf(char *, char *, double, double, double, double,
                          double, double);
void showvector6(char *s, double *v) {
  printf("%s\n"
         "%15.12lf %15.12lf %15.12lf\n"
         "%15.12lf %15.12lf %15.12lf\n\n",
         s, v[0], v[1], v[2], v[3], v[4], v[5]);
}


x86 assembly (clang, -O0):
<showvector6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm3
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm4
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm5
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showvector6>:
mov    %rdi,%rax
movsd  (%rsi),%xmm0
movsd  0x8(%rsi),%xmm1
movsd  0x10(%rsi),%xmm2
movsd  0x18(%rsi),%xmm3
movsd  0x20(%rsi),%xmm4
movsd  0x28(%rsi),%xmm5
lea    0xec9(%rip),%rdi
mov    %rax,%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"%s\0A%15.12lf %15.12lf %15.12lf\0A%15.12lf %15.12lf %15.12lf\0A\0A\00"
define void @showvector6(i8* %0, double* %1) {
%3 = alloca i8*
%4 = alloca double*
store i8* %0, i8** %3
store double* %1, double** %4
%5 = load i8*, i8** %3
%6 = load double*, double** %4
%7 = getelementptr inbounds double, double* %6, i64 0
%8 = load double, double* %7
%9 = load double*, double** %4
%10 = getelementptr inbounds double, double* %9, i64 1
%11 = load double, double* %10
%12 = load double*, double** %4
%13 = getelementptr inbounds double, double* %12, i64 2
%14 = load double, double* %13
%15 = load double*, double** %4
%16 = getelementptr inbounds double, double* %15, i64 3
%17 = load double, double* %16
%18 = load double*, double** %4
%19 = getelementptr inbounds double, double* %18, i64 4
%20 = load double, double* %19
%21 = load double*, double** %4
%22 = getelementptr inbounds double, double* %21, i64 5
%23 = load double, double* %22
%24 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %5, double %8, double %11, double %14, double %17, double %20, double %23)
ret void
}

LLVM IR (-O2):
@.str = [59 x i8] c"%s\0A%15.12lf %15.12lf %15.12lf\0A%15.12lf %15.12lf %15.12lf\0A\0A\00"
define void @showvector6(i8* %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = getelementptr inbounds double, double* %1, i64 1
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %1, i64 2
%7 = load double, double* %6
%8 = getelementptr inbounds double, double* %1, i64 3
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %1, i64 4
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %1, i64 5
%13 = load double, double* %12
%14 = tail call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %0, double %3, double %5, double %7, double %9, double %11, double %13)
ret void
}