#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*/ cov_spec_log(long double, int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, long double);
int main(int argc, char *argv[]) {
  long double x[4] = {2.1, 2.2, 2.3, 2.4};
  double y[2];
  int i;
  for (i = 0; i < 2; i++) {
    y[i] = i;
  }
  long double result = x[3] + y[0];
  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    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movaps %xmm0,-0x20(%rbp)
movaps %xmm0,-0x30(%rbp)
movaps %xmm0,-0x40(%rbp)
movaps %xmm0,-0x50(%rbp)
fldl   0xeae(%rip)
fstpt  -0x50(%rbp)
fldl   0xead(%rip)
fstpt  -0x40(%rbp)
fldl   0xeac(%rip)
fstpt  -0x30(%rbp)
fldl   0xeab(%rip)
fstpt  -0x20(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x2,-0x64(%rbp)
jge    119e <main+0x7e>
cvtsi2sdl -0x64(%rbp),%xmm0
movslq -0x64(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1177 <main+0x57>
fldt   -0x20(%rbp)
fldl   -0x60(%rbp)
faddp  %st,%st(1)
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    %rsp,%rax
fstpt  (%rax)
xor    %edi,%edi
call   1040 <cov_spec_log@plt>
fldt   -0x80(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
mov    0x8(%rsi),%rsi
fldl   0xed2(%rip)
fld    %st(0)
fstpt  0x1c(%rsp)
fstpt  (%rsp)
xor    %edi,%edi
call   1040 <cov_spec_log@plt>
fldt   0x1c(%rsp)
fstpt  (%rsp)
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
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 [4 x x86_fp80]
%7 = alloca [2 x double]
%8 = alloca i32
%9 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [4 x x86_fp80]* %6 to i8*
%11 = bitcast i8* %10 to [4 x x86_fp80]*
%12 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %11, i32 0, i32 0
store x86_fp80 0xK40008666666666666800, x86_fp80* %12
%13 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %11, i32 0, i32 1
store x86_fp80 0xK40008CCCCCCCCCCCD000, x86_fp80* %13
%14 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %11, i32 0, i32 2
store x86_fp80 0xK40009333333333333000, x86_fp80* %14
%15 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %11, i32 0, i32 3
store x86_fp80 0xK40009999999999999800, x86_fp80* %15
store i32 0, i32* %8
br label %16
16: ; preds = %25, %2
%17 = load i32, i32* %8
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %28
19: ; preds = %16
%20 = load i32, i32* %8
%21 = sitofp i32 %20 to double
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 %23
store double %21, double* %24
br label %25
25: ; preds = %19
%26 = load i32, i32* %8
%27 = add nsw i32 %26, 1
store i32 %27, i32* %8
br label %16
28: ; preds = %16
%29 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %6, i64 0, i64 3
%30 = load x86_fp80, x86_fp80* %29
%31 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%32 = load double, double* %31
%33 = fpext double %32 to x86_fp80
%34 = fadd x86_fp80 %30, %33
store x86_fp80 %34, x86_fp80* %9
%35 = load x86_fp80, x86_fp80* %9
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @cov_spec_log(x86_fp80 %35, i32 0, i8* %38)
%40 = load x86_fp80, x86_fp80* %9
%41 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %40)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%1.15Le\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @cov_spec_log(x86_fp80 0xK40009999999999999800, i32 0, i8* %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK40009999999999999800)
ret i32 0
}