#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 calculate(int const, double *);
int /*<<< orphan*/ cov_spec_log(long double, int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, long double);
int main(int argc, char *argv[]) {
  const int n = 4;
  double c[n];
  c[0] = 5.0;
  c[1] = 2304.0;
  c[2] = 118101.0;
  c[3] = 1838336.0;
  long double result = c[3] + 2.2L + calculate(n, c);
  cov_spec_log(result, 0, argv[1]);
  printf("%1.15Le\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x4,-0x14(%rbp)
mov    %rsp,%rax
mov    %rax,-0x20(%rbp)
movabs $0x4014000000000000,%rax
mov    %rax,-0x50(%rbp)
movabs $0x40a2000000000000,%rax
mov    %rax,-0x48(%rbp)
movabs $0x40fcd55000000000,%rax
d5 fc 40
mov    %rax,-0x40(%rbp)
movabs $0x413c0d0000000000,%rax
0d 3c 41
mov    %rax,-0x38(%rbp)
fldl   -0x38(%rbp)
fldt   0xe68(%rip)
faddp  %st,%st(1)
fstpt  -0x64(%rbp)
mov    $0x4,%edi
lea    -0x50(%rbp),%rsi
call   1040 <calculate@plt>
fldt   -0x64(%rbp)
movsd  %xmm0,-0x58(%rbp)
fldl   -0x58(%rbp)
faddp  %st,%st(1)
fstpt  -0x30(%rbp)
fldt   -0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    %rsp,%rax
fstpt  (%rax)
xor    %edi,%edi
call   1050 <cov_spec_log@plt>
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe2f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
mov    %rsi,%rbx
movaps 0xec1(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xec5(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
lea    0x30(%rsp),%rsi
mov    $0x4,%edi
call   1040 <calculate@plt>
movsd  %xmm0,0x18(%rsp)
fldt   0xeb5(%rip)
faddl  0x18(%rsp)
fld    %st(0)
fstpt  0x24(%rsp)
mov    0x8(%rbx),%rsi
fstpt  (%rsp)
xor    %edi,%edi
call   1050 <cov_spec_log@plt>
fldt   0x24(%rsp)
fstpt  (%rsp)
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%1.15Le\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 4, i32* %6
%9 = call i8* @llvm.stacksave()
store i8* %9, i8** %7
%10 = alloca double, i64 4
%11 = getelementptr inbounds double, double* %10, i64 0
store double 5.000000e+00, double* %11
%12 = getelementptr inbounds double, double* %10, i64 1
store double 2.304000e+03, double* %12
%13 = getelementptr inbounds double, double* %10, i64 2
store double 1.181010e+05, double* %13
%14 = getelementptr inbounds double, double* %10, i64 3
store double 0x413C0D0000000000, double* %14
%15 = getelementptr inbounds double, double* %10, i64 3
%16 = load double, double* %15
%17 = fpext double %16 to x86_fp80
%18 = fadd x86_fp80 %17, 0xK40008CCCCCCCCCCCCCCD
%19 = call double @calculate(i32 4, double* %10)
%20 = fpext double %19 to x86_fp80
%21 = fadd x86_fp80 %18, %20
store x86_fp80 %21, x86_fp80* %8
%22 = load x86_fp80, x86_fp80* %8
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 @cov_spec_log(x86_fp80 %22, i32 0, i8* %25)
%27 = load x86_fp80, x86_fp80* %8
%28 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %27)
store i32 0, i32* %3
%29 = load i8*, i8** %7
%30 = load i32, i32* %3
ret i32 %30
}

LLVM IR (-O2):
@.str = [9 x i8] c"%1.15Le\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4 x double]
%4 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%5 = bitcast [4 x double]* %3 to <2 x double>*
store <2 x double> <double 5.000000e+00, double 2.304000e+03>, <2 x double>* %5
%6 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 2
%7 = bitcast double* %6 to <2 x double>*
store <2 x double> <double 1.181010e+05, double 0x413C0D0000000000>, <2 x double>* %7
%8 = call double @calculate(i32 4, double* %4)
%9 = fpext double %8 to x86_fp80
%10 = fadd x86_fp80 %9, 0xK4013E06811999999999A
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @cov_spec_log(x86_fp80 %10, i32 0, i8* %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %10)
ret i32 0
}