#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*/ aprintf(char *, int const, long double *);
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[]) {
  const int n = 4;
  long 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;
  cov_log(result, "result", argv[2]);
  cov_check(argv[2], argv[1], argv[3]);
  printf("%1.15Le\n", result);
  aprintf("C vector:\n", n, c);
  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)
flds   0xe93(%rip)
fstpt  -0x70(%rbp)
flds   0xe8e(%rip)
fstpt  -0x60(%rbp)
flds   0xe89(%rip)
fstpt  -0x50(%rbp)
flds   0xe84(%rip)
fstpt  -0x40(%rbp)
fldt   -0x40(%rbp)
fldt   0xe7c(%rip)
faddp  %st,%st(1)
fstpt  -0x30(%rbp)
fldt   -0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe70(%rip),%rdi
call   1060 <cov_log@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    0x10(%rax),%rdi
mov    0x18(%rax),%rdx
call   1050 <cov_check@plt>
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
lea    0xe4b(%rip),%rdi
mov    $0x4,%esi
lea    -0x70(%rbp),%rdx
call   1040 <aprintf@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    $0x60,%rsp
mov    %rsi,%rbx
flds   0xeb2(%rip)
fstpt  0x20(%rsp)
flds   0xeac(%rip)
fstpt  0x30(%rsp)
flds   0xea6(%rip)
fstpt  0x40(%rsp)
flds   0xea0(%rip)
fstpt  0x50(%rsp)
mov    0x10(%rsi),%rsi
fldt   0xe96(%rip)
fld    %st(0)
fstpt  0x14(%rsp)
fstpt  (%rsp)
lea    0xe96(%rip),%rdi
call   1060 <cov_log@plt>
mov    0x8(%rbx),%rsi
mov    0x10(%rbx),%rdi
mov    0x18(%rbx),%rdx
call   1050 <cov_check@plt>
fldt   0x14(%rsp)
fstpt  (%rsp)
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
lea    0xe76(%rip),%rdi
lea    0x20(%rsp),%rdx
mov    $0x4,%esi
call   1040 <aprintf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"result\00"
@.str.1 = [9 x i8] c"%1.15Le\0A\00"
@.str.2 = [11 x i8] c"C vector:\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 x86_fp80, i64 4
%11 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 0
store x86_fp80 0xK4001A000000000000000, x86_fp80* %11
%12 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 1
store x86_fp80 0xK400A9000000000000000, x86_fp80* %12
%13 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 2
store x86_fp80 0xK400FE6AA800000000000, x86_fp80* %13
%14 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 3
store x86_fp80 0xK4013E068000000000000, x86_fp80* %14
%15 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 3
%16 = load x86_fp80, x86_fp80* %15
%17 = fadd x86_fp80 %16, 0xK40008CCCCCCCCCCCCCCD
store x86_fp80 %17, x86_fp80* %8
%18 = load x86_fp80, x86_fp80* %8
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 2
%21 = load i8*, i8** %20
%22 = call i32 @cov_log(x86_fp80 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 3
%31 = load i8*, i8** %30
%32 = call i32 @cov_check(i8* %25, i8* %28, i8* %31)
%33 = load x86_fp80, x86_fp80* %8
%34 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %33)
%35 = call i32 @aprintf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 4, x86_fp80* %10)
store i32 0, i32* %3
%36 = load i8*, i8** %7
%37 = load i32, i32* %3
ret i32 %37
}

LLVM IR (-O2):
@.str = [7 x i8] c"result\00"
@.str.1 = [9 x i8] c"%1.15Le\0A\00"
@.str.2 = [11 x i8] c"C vector:\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4 x x86_fp80]
%4 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %3, i64 0, i64 0
store x86_fp80 0xK4001A000000000000000, x86_fp80* %4
%5 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %3, i64 0, i64 1
store x86_fp80 0xK400A9000000000000000, x86_fp80* %5
%6 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %3, i64 0, i64 2
store x86_fp80 0xK400FE6AA800000000000, x86_fp80* %6
%7 = getelementptr inbounds [4 x x86_fp80], [4 x x86_fp80]* %3, i64 0, i64 3
store x86_fp80 0xK4013E068000000000000, x86_fp80* %7
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = tail call i32 @cov_log(x86_fp80 0xK4013E06811999999999A, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i8*, i8** %8
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call i32 @cov_check(i8* %11, i8* %13, i8* %15)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), x86_fp80 0xK4013E06811999999999A)
%18 = call i32 @aprintf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 4, x86_fp80* %4)
ret i32 0
}