#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*/ od_renorm_add1(double const, double const, double const,
                                  double const, double const, double const,
                                  double const, double const, double, double *,
                                  double *, double *, double *, double *,
                                  double *, double *, double *);
void od_add_od_d(const double *a, double b, double *c) {
  od_renorm_add1(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], b, &c[0],
                 &c[1], &c[2], &c[3], &c[4], &c[5], &c[6], &c[7]);
}


x86 assembly (clang, -O0):
<od_add_od_d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm3
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm4
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm5
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm6
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm7
movsd  -0x10(%rbp),%xmm8
mov    -0x18(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x8,%rsi
mov    -0x18(%rbp),%rdx
add    $0x10,%rdx
mov    -0x18(%rbp),%rcx
add    $0x18,%rcx
mov    -0x18(%rbp),%r8
add    $0x20,%r8
mov    -0x18(%rbp),%r9
add    $0x28,%r9
mov    -0x18(%rbp),%r10
add    $0x30,%r10
mov    -0x18(%rbp),%rax
add    $0x38,%rax
movsd  %xmm8,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <od_renorm_add1@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<od_add_od_d>:
sub    $0x18,%rsp
mov    %rsi,%rax
movsd  (%rdi),%xmm8
movsd  0x8(%rdi),%xmm1
movsd  0x10(%rdi),%xmm2
movsd  0x18(%rdi),%xmm3
movsd  0x20(%rdi),%xmm4
movsd  0x28(%rdi),%xmm5
movsd  0x30(%rdi),%xmm6
movsd  0x38(%rdi),%xmm7
lea    0x8(%rsi),%rsi
lea    0x10(%rax),%rdx
lea    0x18(%rax),%rcx
lea    0x20(%rax),%r8
lea    0x28(%rax),%r9
lea    0x30(%rax),%r10
lea    0x38(%rax),%rdi
mov    %rdi,0x10(%rsp)
mov    %r10,0x8(%rsp)
movsd  %xmm0,(%rsp)
movaps %xmm8,%xmm0
mov    %rax,%rdi
call   1030 <od_renorm_add1@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @od_add_od_d(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** %4
%8 = getelementptr inbounds double, double* %7, i64 0
%9 = load double, double* %8
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 2
%15 = load double, double* %14
%16 = load double*, double** %4
%17 = getelementptr inbounds double, double* %16, i64 3
%18 = load double, double* %17
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 4
%21 = load double, double* %20
%22 = load double*, double** %4
%23 = getelementptr inbounds double, double* %22, i64 5
%24 = load double, double* %23
%25 = load double*, double** %4
%26 = getelementptr inbounds double, double* %25, i64 6
%27 = load double, double* %26
%28 = load double*, double** %4
%29 = getelementptr inbounds double, double* %28, i64 7
%30 = load double, double* %29
%31 = load double, double* %5
%32 = load double*, double** %6
%33 = getelementptr inbounds double, double* %32, i64 0
%34 = load double*, double** %6
%35 = getelementptr inbounds double, double* %34, i64 1
%36 = load double*, double** %6
%37 = getelementptr inbounds double, double* %36, i64 2
%38 = load double*, double** %6
%39 = getelementptr inbounds double, double* %38, i64 3
%40 = load double*, double** %6
%41 = getelementptr inbounds double, double* %40, i64 4
%42 = load double*, double** %6
%43 = getelementptr inbounds double, double* %42, i64 5
%44 = load double*, double** %6
%45 = getelementptr inbounds double, double* %44, i64 6
%46 = load double*, double** %6
%47 = getelementptr inbounds double, double* %46, i64 7
%48 = call i32 @od_renorm_add1(double %9, double %12, double %15, double %18, double %21, double %24, double %27, double %30, double %31, double* %33, double* %35, double* %37, double* %39, double* %41, double* %43, double* %45, double* %47)
ret void
}

LLVM IR (-O2):
define void @od_add_od_d(double* nocapture %0, double %1, double* %2) {
%4 = load double, double* %0
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 3
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %0, i64 4
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %0, i64 5
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %0, i64 6
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %0, i64 7
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %2, i64 1
%20 = getelementptr inbounds double, double* %2, i64 2
%21 = getelementptr inbounds double, double* %2, i64 3
%22 = getelementptr inbounds double, double* %2, i64 4
%23 = getelementptr inbounds double, double* %2, i64 5
%24 = getelementptr inbounds double, double* %2, i64 6
%25 = getelementptr inbounds double, double* %2, i64 7
%26 = tail call i32 @od_renorm_add1(double %4, double %6, double %8, double %10, double %12, double %14, double %16, double %18, double %1, double* %2, double* %19, double* %20, double* %21, double* %22, double* %23, double* %24, double* %25)
ret void
}