#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[]) {
  float a = 2.2L;
  float b = 2.2L;
  long double c = a + b;
  cov_spec_log(c, 0, argv[1]);
  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)
movl   $0x400ccccd,-0x14(%rbp)
movl   $0x400ccccd,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x34(%rbp)
flds   -0x34(%rbp)
fstpt  -0x30(%rbp)
fldt   -0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    %rsp,%rax
fstpt  (%rax)
xor    %edi,%edi
call   1040 <cov_spec_log@plt>
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
flds   -0x14(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe69(%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    0x8(%rsi),%rsi
flds   0xed1(%rip)
fld    %st(0)
fstpt  0x14(%rsp)
fstpt  (%rsp)
xor    %edi,%edi
call   1040 <cov_spec_log@plt>
fldt   0x14(%rsp)
fstpt  (%rsp)
lea    0xebb(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
flds   0xea9(%rip)
fstpt  (%rsp)
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%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 float
%7 = alloca float
%8 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 0x40019999A0000000, float* %6
store float 0x40019999A0000000, float* %7
%9 = load float, float* %6
%10 = load float, float* %7
%11 = fadd float %9, %10
%12 = fpext float %11 to x86_fp80
store x86_fp80 %12, x86_fp80* %8
%13 = load x86_fp80, x86_fp80* %8
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @cov_spec_log(x86_fp80 %13, i32 0, i8* %16)
%18 = load x86_fp80, x86_fp80* %8
%19 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %18)
%20 = load float, float* %6
%21 = fpext float %20 to x86_fp80
%22 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %21)
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 0xK40018CCCCD0000000000, 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 0xK40018CCCCD0000000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK40008CCCCD0000000000)
ret i32 0
}