#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 stress_funccall_double_1(double const);
double stress_funcdeep_double_2(double const, double const);
double stress_funcdeep_double_3(double const, double const, double const);
double stress_funcdeep_double_4(double const, double const, double const,
                                double const);
double stress_funcdeep_double_5(double const, double const, double const,
                                double const, double const);
double stress_funcdeep_double_6(double const, double const, double const,
                                double const, double const, double const);
double stress_funcdeep_double_7(double const, double const, double const,
                                double const, double const, double const,
                                double const);
double stress_funcdeep_double_8(double const, double const, double const,
                                double const, double const, double const,
                                double const, double const);
double __attribute__((no))
stress_funcdeep_double_9(const double a, const double b, const double c,
                         const double d, const double e, const double f,
                         const double g, const double h, const double i) {
  return stress_funccall_double_1(b) + stress_funcdeep_double_2(c, b) +
         stress_funcdeep_double_3(d, c, b) +
         stress_funcdeep_double_4(e, d, c, b) +
         stress_funcdeep_double_5(f, e, d, c, b) +
         stress_funcdeep_double_6(g, f, e, d, c, b) +
         stress_funcdeep_double_7(h, g, f, e, d, c, b) +
         stress_funcdeep_double_8(i, h, g, f, e, d, c, b) +
         stress_funcdeep_double_8(a, b, c, d, e, f, g, h) +
         stress_funcdeep_double_7(b, c, d, e, f, g, h) +
         stress_funcdeep_double_6(c, d, e, f, g, h) +
         stress_funcdeep_double_5(d, e, f, g, h) +
         stress_funcdeep_double_4(e, f, g, h) +
         stress_funcdeep_double_3(f, g, h) + stress_funcdeep_double_2(g, h) +
         stress_funccall_double_1(h);
}


x86 assembly (clang, -O0):
<stress_funcdeep_double_9>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1060 <stress_funccall_double_1@plt>
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   10a0 <stress_funcdeep_double_2@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
call   1040 <stress_funcdeep_double_3@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
call   1080 <stress_funcdeep_double_4@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm4
call   1050 <stress_funcdeep_double_5@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x18(%rbp),%xmm4
movsd  -0x10(%rbp),%xmm5
call   1090 <stress_funcdeep_double_6@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm4
movsd  -0x18(%rbp),%xmm5
movsd  -0x10(%rbp),%xmm6
call   1030 <stress_funcdeep_double_7@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0x10(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x20(%rbp),%xmm5
movsd  -0x18(%rbp),%xmm6
movsd  -0x10(%rbp),%xmm7
call   1070 <stress_funcdeep_double_8@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
movsd  -0x38(%rbp),%xmm6
movsd  -0x40(%rbp),%xmm7
call   1070 <stress_funcdeep_double_8@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x38(%rbp),%xmm5
movsd  -0x40(%rbp),%xmm6
call   1030 <stress_funcdeep_double_7@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
movsd  -0x40(%rbp),%xmm5
call   1090 <stress_funcdeep_double_6@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
call   1050 <stress_funcdeep_double_5@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
call   1080 <stress_funcdeep_double_4@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
call   1040 <stress_funcdeep_double_3@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   10a0 <stress_funcdeep_double_2@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1060 <stress_funccall_double_1@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
addsd  %xmm1,%xmm0
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funcdeep_double_9>:
sub    $0x48,%rsp
movsd  %xmm7,0x38(%rsp)
movsd  %xmm6,0x28(%rsp)
movsd  %xmm5,0x20(%rsp)
movsd  %xmm4,0x18(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x30(%rsp)
movsd  %xmm0,0x40(%rsp)
movaps %xmm1,%xmm0
call   1060 <stress_funccall_double_1@plt>
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   10a0 <stress_funcdeep_double_2@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
call   1040 <stress_funcdeep_double_3@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
call   1080 <stress_funcdeep_double_4@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
call   1050 <stress_funcdeep_double_5@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
call   1090 <stress_funcdeep_double_6@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x38(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
movsd  0x8(%rsp),%xmm5
movsd  0x30(%rsp),%xmm6
call   1030 <stress_funcdeep_double_7@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x50(%rsp),%xmm0
movsd  0x38(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm5
movsd  0x8(%rsp),%xmm6
movsd  0x30(%rsp),%xmm7
call   1070 <stress_funcdeep_double_8@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x40(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x18(%rsp),%xmm4
movsd  0x20(%rsp),%xmm5
movsd  0x28(%rsp),%xmm6
movsd  0x38(%rsp),%xmm7
call   1070 <stress_funcdeep_double_8@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  0x30(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
movsd  0x28(%rsp),%xmm5
movsd  0x38(%rsp),%xmm6
call   1030 <stress_funcdeep_double_7@plt>
addsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x38(%rsp),%xmm5
call   1090 <stress_funcdeep_double_6@plt>
addsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
movsd  0x38(%rsp),%xmm4
call   1050 <stress_funcdeep_double_5@plt>
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
call   1080 <stress_funcdeep_double_4@plt>
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x38(%rsp),%xmm2
call   1040 <stress_funcdeep_double_3@plt>
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x38(%rsp),%xmm1
call   10a0 <stress_funcdeep_double_2@plt>
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x38(%rsp),%xmm0
call   1060 <stress_funccall_double_1@plt>
addsd  0x28(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @stress_funcdeep_double_9(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double %6, double* %16
store double %7, double* %17
store double %8, double* %18
%19 = load double, double* %11
%20 = call double @stress_funccall_double_1(double %19)
%21 = load double, double* %12
%22 = load double, double* %11
%23 = call double @stress_funcdeep_double_2(double %21, double %22)
%24 = fadd double %20, %23
%25 = load double, double* %13
%26 = load double, double* %12
%27 = load double, double* %11
%28 = call double @stress_funcdeep_double_3(double %25, double %26, double %27)
%29 = fadd double %24, %28
%30 = load double, double* %14
%31 = load double, double* %13
%32 = load double, double* %12
%33 = load double, double* %11
%34 = call double @stress_funcdeep_double_4(double %30, double %31, double %32, double %33)
%35 = fadd double %29, %34
%36 = load double, double* %15
%37 = load double, double* %14
%38 = load double, double* %13
%39 = load double, double* %12
%40 = load double, double* %11
%41 = call double @stress_funcdeep_double_5(double %36, double %37, double %38, double %39, double %40)
%42 = fadd double %35, %41
%43 = load double, double* %16
%44 = load double, double* %15
%45 = load double, double* %14
%46 = load double, double* %13
%47 = load double, double* %12
%48 = load double, double* %11
%49 = call double @stress_funcdeep_double_6(double %43, double %44, double %45, double %46, double %47, double %48)
%50 = fadd double %42, %49
%51 = load double, double* %17
%52 = load double, double* %16
%53 = load double, double* %15
%54 = load double, double* %14
%55 = load double, double* %13
%56 = load double, double* %12
%57 = load double, double* %11
%58 = call double @stress_funcdeep_double_7(double %51, double %52, double %53, double %54, double %55, double %56, double %57)
%59 = fadd double %50, %58
%60 = load double, double* %18
%61 = load double, double* %17
%62 = load double, double* %16
%63 = load double, double* %15
%64 = load double, double* %14
%65 = load double, double* %13
%66 = load double, double* %12
%67 = load double, double* %11
%68 = call double @stress_funcdeep_double_8(double %60, double %61, double %62, double %63, double %64, double %65, double %66, double %67)
%69 = fadd double %59, %68
%70 = load double, double* %10
%71 = load double, double* %11
%72 = load double, double* %12
%73 = load double, double* %13
%74 = load double, double* %14
%75 = load double, double* %15
%76 = load double, double* %16
%77 = load double, double* %17
%78 = call double @stress_funcdeep_double_8(double %70, double %71, double %72, double %73, double %74, double %75, double %76, double %77)
%79 = fadd double %69, %78
%80 = load double, double* %11
%81 = load double, double* %12
%82 = load double, double* %13
%83 = load double, double* %14
%84 = load double, double* %15
%85 = load double, double* %16
%86 = load double, double* %17
%87 = call double @stress_funcdeep_double_7(double %80, double %81, double %82, double %83, double %84, double %85, double %86)
%88 = fadd double %79, %87
%89 = load double, double* %12
%90 = load double, double* %13
%91 = load double, double* %14
%92 = load double, double* %15
%93 = load double, double* %16
%94 = load double, double* %17
%95 = call double @stress_funcdeep_double_6(double %89, double %90, double %91, double %92, double %93, double %94)
%96 = fadd double %88, %95
%97 = load double, double* %13
%98 = load double, double* %14
%99 = load double, double* %15
%100 = load double, double* %16
%101 = load double, double* %17
%102 = call double @stress_funcdeep_double_5(double %97, double %98, double %99, double %100, double %101)
%103 = fadd double %96, %102
%104 = load double, double* %14
%105 = load double, double* %15
%106 = load double, double* %16
%107 = load double, double* %17
%108 = call double @stress_funcdeep_double_4(double %104, double %105, double %106, double %107)
%109 = fadd double %103, %108
%110 = load double, double* %15
%111 = load double, double* %16
%112 = load double, double* %17
%113 = call double @stress_funcdeep_double_3(double %110, double %111, double %112)
%114 = fadd double %109, %113
%115 = load double, double* %16
%116 = load double, double* %17
%117 = call double @stress_funcdeep_double_2(double %115, double %116)
%118 = fadd double %114, %117
%119 = load double, double* %17
%120 = call double @stress_funccall_double_1(double %119)
%121 = fadd double %118, %120
ret double %121
}

LLVM IR (-O2):
define double @stress_funcdeep_double_9(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = tail call double @stress_funccall_double_1(double %1)
%11 = tail call double @stress_funcdeep_double_2(double %2, double %1)
%12 = fadd double %10, %11
%13 = tail call double @stress_funcdeep_double_3(double %3, double %2, double %1)
%14 = fadd double %12, %13
%15 = tail call double @stress_funcdeep_double_4(double %4, double %3, double %2, double %1)
%16 = fadd double %14, %15
%17 = tail call double @stress_funcdeep_double_5(double %5, double %4, double %3, double %2, double %1)
%18 = fadd double %16, %17
%19 = tail call double @stress_funcdeep_double_6(double %6, double %5, double %4, double %3, double %2, double %1)
%20 = fadd double %18, %19
%21 = tail call double @stress_funcdeep_double_7(double %7, double %6, double %5, double %4, double %3, double %2, double %1)
%22 = fadd double %20, %21
%23 = tail call double @stress_funcdeep_double_8(double %8, double %7, double %6, double %5, double %4, double %3, double %2, double %1)
%24 = fadd double %22, %23
%25 = tail call double @stress_funcdeep_double_8(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7)
%26 = fadd double %24, %25
%27 = tail call double @stress_funcdeep_double_7(double %1, double %2, double %3, double %4, double %5, double %6, double %7)
%28 = fadd double %26, %27
%29 = tail call double @stress_funcdeep_double_6(double %2, double %3, double %4, double %5, double %6, double %7)
%30 = fadd double %28, %29
%31 = tail call double @stress_funcdeep_double_5(double %3, double %4, double %5, double %6, double %7)
%32 = fadd double %30, %31
%33 = tail call double @stress_funcdeep_double_4(double %4, double %5, double %6, double %7)
%34 = fadd double %32, %33
%35 = tail call double @stress_funcdeep_double_3(double %5, double %6, double %7)
%36 = fadd double %34, %35
%37 = tail call double @stress_funcdeep_double_2(double %6, double %7)
%38 = fadd double %36, %37
%39 = tail call double @stress_funccall_double_1(double %7)
%40 = fadd double %38, %39
ret double %40
}