#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_check(char *, char *, char *);
int /*<<< orphan*/ cov_log(long double, char *, 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};
  long double y[2];
  int i;
  for (i = 0; i < 2; i++) {
    y[i] = i;
  }
  long double result = x[3] + y[0];
  cov_log(result, "result", argv[2]);
  cov_check(argv[2], argv[1], argv[3]);
  printf("%1.15Le\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%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   0xe9e(%rip)
fstpt  -0x50(%rbp)
fldl   0xe9d(%rip)
fstpt  -0x40(%rbp)
fldl   0xe9c(%rip)
fstpt  -0x30(%rbp)
fldl   0xe9b(%rip)
fstpt  -0x20(%rbp)
movl   $0x0,-0x74(%rbp)
cmpl   $0x2,-0x74(%rbp)
jge    11b9 <main+0x89>
movslq -0x74(%rbp),%rax
mov    %eax,%ecx
mov    %ecx,-0x94(%rbp)
fildl  -0x94(%rbp)
shl    $0x4,%rax
fstpt  -0x70(%rbp,%rax,1)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1187 <main+0x57>
fldt   -0x20(%rbp)
fldt   -0x70(%rbp)
faddp  %st,%st(1)
fstpt  -0x90(%rbp)
fldt   -0x90(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe3f(%rip),%rdi
call   1050 <cov_log@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    0x10(%rax),%rdi
mov    0x18(%rax),%rdx
call   1040 <cov_check@plt>
fldt   -0x90(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rbx
mov    0x10(%rsi),%rsi
fldl   0xebe(%rip)
fld    %st(0)
fstpt  0x14(%rsp)
fstpt  (%rsp)
lea    0xeb6(%rip),%rdi
call   1050 <cov_log@plt>
mov    0x8(%rbx),%rsi
mov    0x10(%rbx),%rdi
mov    0x18(%rbx),%rdx
call   1040 <cov_check@plt>
fldt   0x14(%rsp)
fstpt  (%rsp)
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"result\00"
@.str.1 = [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 x86_fp80]
%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 x86_fp80
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [2 x x86_fp80], [2 x x86_fp80]* %7, i64 0, i64 %23
store x86_fp80 %21, x86_fp80* %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 x86_fp80], [2 x x86_fp80]* %7, i64 0, i64 0
%32 = load x86_fp80, x86_fp80* %31
%33 = fadd x86_fp80 %30, %32
store x86_fp80 %33, x86_fp80* %9
%34 = load x86_fp80, x86_fp80* %9
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 2
%37 = load i8*, i8** %36
%38 = call i32 @cov_log(x86_fp80 %34, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %37)
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 3
%47 = load i8*, i8** %46
%48 = call i32 @cov_check(i8* %41, i8* %44, i8* %47)
%49 = load x86_fp80, x86_fp80* %9
%50 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %49)
ret i32 0
}

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