#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 */
double dd_two_sum(double, double, double *);
int /*<<< orphan*/ pd_renorm5(double, double, double, double, double, double,
                              double *, double *, double *, double *, double *,
                              double *);
void pd_renorm_add1(double x0, double x1, double x2, double x3, double x4,
                    double y, double *r0, double *r1, double *r2, double *r3,
                    double *r4) {
  double f0, f1, f2, f3, f4, f5, pr;
  pr = dd_two_sum(x4, y, &f5);
  pr = dd_two_sum(x3, pr, &f4);
  pr = dd_two_sum(x2, pr, &f3);
  pr = dd_two_sum(x1, pr, &f2);
  f0 = dd_two_sum(x0, pr, &f1);
  pd_renorm5(f0, f1, f2, f3, f4, f5, &pr, r0, r1, r2, r3, r4);
}


x86 assembly (clang, -O0):
<pd_renorm_add1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
mov    %rdi,-0x38(%rbp)
mov    %rsi,-0x40(%rbp)
mov    %rdx,-0x48(%rbp)
mov    %rcx,-0x50(%rbp)
mov    %r8,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
lea    -0x88(%rbp),%rdi
call   1030 <dd_two_sum@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
lea    -0x80(%rbp),%rdi
call   1030 <dd_two_sum@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
lea    -0x78(%rbp),%rdi
call   1030 <dd_two_sum@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
lea    -0x70(%rbp),%rdi
call   1030 <dd_two_sum@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
lea    -0x68(%rbp),%rdi
call   1030 <dd_two_sum@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm3
movsd  -0x80(%rbp),%xmm4
movsd  -0x88(%rbp),%xmm5
ff
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x58(%rbp),%r9
lea    -0x90(%rbp),%rdi
call   1040 <pd_renorm5@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pd_renorm_add1>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x50,%rsp
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
movsd  %xmm3,(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x18(%rsp)
lea    0x28(%rsp),%rdi
movaps %xmm4,%xmm0
movaps %xmm5,%xmm1
call   1030 <dd_two_sum@plt>
movaps %xmm0,%xmm1
lea    0x30(%rsp),%rdi
movsd  (%rsp),%xmm0
call   1030 <dd_two_sum@plt>
movaps %xmm0,%xmm1
lea    0x38(%rsp),%rdi
movsd  0x8(%rsp),%xmm0
call   1030 <dd_two_sum@plt>
movaps %xmm0,%xmm1
lea    0x40(%rsp),%rdi
movsd  0x10(%rsp),%xmm0
call   1030 <dd_two_sum@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x20(%rsp)
lea    0x48(%rsp),%rdi
movsd  0x18(%rsp),%xmm0
call   1030 <dd_two_sum@plt>
movsd  0x48(%rsp),%xmm1
movsd  0x40(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
movsd  0x28(%rsp),%xmm5
lea    0x20(%rsp),%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
call   1040 <pd_renorm5@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @pd_renorm_add1(double %0, double %1, double %2, double %3, double %4, double %5, double* %6, double* %7, double* %8, double* %9, double* %10) {
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca double*
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
store double %0, double* %12
store double %1, double* %13
store double %2, double* %14
store double %3, double* %15
store double %4, double* %16
store double %5, double* %17
store double* %6, double** %18
store double* %7, double** %19
store double* %8, double** %20
store double* %9, double** %21
store double* %10, double** %22
%30 = load double, double* %16
%31 = load double, double* %17
%32 = call double @dd_two_sum(double %30, double %31, double* %28)
store double %32, double* %29
%33 = load double, double* %15
%34 = load double, double* %29
%35 = call double @dd_two_sum(double %33, double %34, double* %27)
store double %35, double* %29
%36 = load double, double* %14
%37 = load double, double* %29
%38 = call double @dd_two_sum(double %36, double %37, double* %26)
store double %38, double* %29
%39 = load double, double* %13
%40 = load double, double* %29
%41 = call double @dd_two_sum(double %39, double %40, double* %25)
store double %41, double* %29
%42 = load double, double* %12
%43 = load double, double* %29
%44 = call double @dd_two_sum(double %42, double %43, double* %24)
store double %44, double* %23
%45 = load double, double* %23
%46 = load double, double* %24
%47 = load double, double* %25
%48 = load double, double* %26
%49 = load double, double* %27
%50 = load double, double* %28
%51 = load double*, double** %18
%52 = load double*, double** %19
%53 = load double*, double** %20
%54 = load double*, double** %21
%55 = load double*, double** %22
%56 = call i32 @pd_renorm5(double %45, double %46, double %47, double %48, double %49, double %50, double* %29, double* %51, double* %52, double* %53, double* %54, double* %55)
ret void
}

LLVM IR (-O2):
define void @pd_renorm_add1(double %0, double %1, double %2, double %3, double %4, double %5, double* %6, double* %7, double* %8, double* %9, double* %10) {
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = bitcast double* %12 to i8*
%19 = bitcast double* %13 to i8*
%20 = bitcast double* %14 to i8*
%21 = bitcast double* %15 to i8*
%22 = bitcast double* %16 to i8*
%23 = bitcast double* %17 to i8*
%24 = call double @dd_two_sum(double %4, double %5, double* %16)
%25 = call double @dd_two_sum(double %3, double %24, double* %15)
%26 = call double @dd_two_sum(double %2, double %25, double* %14)
%27 = call double @dd_two_sum(double %1, double %26, double* %13)
store double %27, double* %17
%28 = call double @dd_two_sum(double %0, double %27, double* %12)
%29 = load double, double* %12
%30 = load double, double* %13
%31 = load double, double* %14
%32 = load double, double* %15
%33 = load double, double* %16
%34 = call i32 @pd_renorm5(double %28, double %29, double %30, double %31, double %32, double %33, double* %17, double* %6, double* %7, double* %8, double* %9, double* %10)
ret void
}