#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[]) {
  double a = 2.2L;
  float b = 2.2L;
  long double c = b + b + a;
  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)
movabs $0x400199999999999a,%rax
99 01 40
mov    %rax,-0x18(%rbp)
movl   $0x400ccccd,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
addss  %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
fldl   -0x38(%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    0xe6e(%rip),%rdi
call   1030 <printf@plt>
fldl   -0x18(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe5a(%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
fldl   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    0xec3(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
fldl   0xead(%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 double
%7 = alloca float
%8 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 2.200000e+00, double* %6
store float 0x40019999A0000000, float* %7
%9 = load float, float* %7
%10 = load float, float* %7
%11 = fadd float %9, %10
%12 = fpext float %11 to double
%13 = load double, double* %6
%14 = fadd double %12, %13
%15 = fpext double %14 to x86_fp80
store x86_fp80 %15, x86_fp80* %8
%16 = load x86_fp80, x86_fp80* %8
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @cov_spec_log(x86_fp80 %16, i32 0, i8* %19)
%21 = load x86_fp80, x86_fp80* %8
%22 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %21)
%23 = load double, double* %6
%24 = fpext double %23 to x86_fp80
%25 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 %24)
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 0xK4001D333336666666800, 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 0xK4001D333336666666800)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK40008CCCCCCCCCCCD000)
ret i32 0
}