#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*/ simple_printf(char *, double, int, double, int, double,
                                 double, double, double, double, double,
                                 double);
int main() {
  volatile double reallybig, reallysmall;
  reallybig = 1e16;
  reallysmall = -1e-20;
  double result = (reallybig + reallysmall) - reallybig;
  simple_printf("%f, %d, %f, %d, %f, %f, %f, %f, %f, %f, %f\n", result,
                0xDEADBEEF, 4.0, 420, 6.0, 42.0, 56.0, 70.0, 8008.0, 3.14,
                2.17);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xf21(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xf0c(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xeef(%rip),%rdi
mov    $0xdeadbeef,%esi
movsd  0xe92(%rip),%xmm1
mov    $0x1a4,%edx
movsd  0xe8d(%rip),%xmm2
movsd  0xe8d(%rip),%xmm3
movsd  0xe8d(%rip),%xmm4
movsd  0xe8d(%rip),%xmm5
movsd  0xe8d(%rip),%xmm6
movsd  0xe8d(%rip),%xmm7
movsd  0xe8c(%rip),%xmm8
movsd  %xmm8,(%rsp)
call   1030 <simple_printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x4341c37937e08000,%rax
c3 41 43
mov    %rax,0x8(%rsp)
movabs $0xbbc79ca10c924223,%rax
9c c7 bb
mov    %rax,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movabs $0x40015c28f5c28f5c,%rax
5c 01 40
mov    %rax,(%rsp)
lea    0xedf(%rip),%rdi
movsd  0xe9f(%rip),%xmm1
movsd  0xe9f(%rip),%xmm2
movsd  0xe9f(%rip),%xmm3
movsd  0xe9f(%rip),%xmm4
movsd  0xe9f(%rip),%xmm5
movsd  0xe9f(%rip),%xmm6
movsd  0xe9f(%rip),%xmm7
mov    $0xdeadbeef,%esi
mov    $0x1a4,%edx
call   1030 <simple_printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [44 x i8] c"%f, %d, %f, %d, %f, %f, %f, %f, %f, %f, %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
store volatile double 1.000000e+16, double* %2
store volatile double 0xBBC79CA10C924223, double* %3
%5 = load volatile double, double* %2
%6 = load volatile double, double* %3
%7 = fadd double %5, %6
%8 = load volatile double, double* %2
%9 = fsub double %7, %8
store double %9, double* %4
%10 = load double, double* %4
%11 = call i32 @simple_printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), double %10, i32 -559038737, double 4.000000e+00, i32 420, double 6.000000e+00, double 4.200000e+01, double 5.600000e+01, double 7.000000e+01, double 8.008000e+03, double 3.140000e+00, double 2.170000e+00)
ret i32 0
}

LLVM IR (-O2):
@.str = [44 x i8] c"%f, %d, %f, %d, %f, %f, %f, %f, %f, %f, %f\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
store volatile double 1.000000e+16, double* %1
store volatile double 0xBBC79CA10C924223, double* %2
%5 = load volatile double, double* %1
%6 = load volatile double, double* %2
%7 = fadd double %5, %6
%8 = load volatile double, double* %1
%9 = fsub double %7, %8
%10 = tail call i32 @simple_printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), double %9, i32 -559038737, double 4.000000e+00, i32 420, double 6.000000e+00, double 4.200000e+01, double 5.600000e+01, double 7.000000e+01, double 8.008000e+03, double 3.140000e+00, double 2.170000e+00)
ret i32 0
}