#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 a = 2.2L;
  long double b = 2.2L;
  long double c = b + b + a;
  cov_log(c, "result", argv[2]);
  cov_check(argv[2], argv[1], argv[3]);
  printf("%1.15Le\n", c);
  printf("%1.15Le\n", (long double)a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
fldt   0xeb4(%rip)
fld    %st(0)
fstpt  -0x20(%rbp)
fstpt  -0x30(%rbp)
fldt   -0x30(%rbp)
fadd   %st,%st(0)
fldt   -0x20(%rbp)
faddp  %st,%st(1)
fstpt  -0x40(%rbp)
fldt   -0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe98(%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   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rbx
mov    0x10(%rsi),%rsi
fldt   0xebe(%rip)
fld    %st(0)
fstpt  0x14(%rsp)
fstpt  (%rsp)
lea    0xece(%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    0xeb1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
fldt   0xe8c(%rip)
fstpt  (%rsp)
mov    %rbx,%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 x86_fp80
%7 = alloca x86_fp80
%8 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store x86_fp80 0xK40008CCCCCCCCCCCCCCD, x86_fp80* %6
store x86_fp80 0xK40008CCCCCCCCCCCCCCD, x86_fp80* %7
%9 = load x86_fp80, x86_fp80* %7
%10 = load x86_fp80, x86_fp80* %7
%11 = fadd x86_fp80 %9, %10
%12 = load x86_fp80, x86_fp80* %6
%13 = fadd x86_fp80 %11, %12
store x86_fp80 %13, x86_fp80* %8
%14 = load x86_fp80, x86_fp80* %8
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 2
%17 = load i8*, i8** %16
%18 = call i32 @cov_log(x86_fp80 %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 2
%21 = load i8*, i8** %20
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 3
%27 = load i8*, i8** %26
%28 = call i32 @cov_check(i8* %21, i8* %24, i8* %27)
%29 = load x86_fp80, x86_fp80* %8
%30 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %29)
%31 = load x86_fp80, x86_fp80* %6
%32 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %31)
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 0xK4001D333333333333334, 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 0xK4001D333333333333334)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), x86_fp80 0xK40008CCCCCCCCCCCCCCD)
ret i32 0
}