#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*/ printf(char *, double, ...);
double sin(int);
int main() {
  float a = 12.34 + 56.78;
  printf("%f\n", a);
  printf("%f\n", 12.34 + 56.78);
  printf("%f\n", 12.34 - 56.78);
  printf("%f\n", 12.34 * 56.78);
  printf("%f\n", 12.34 / 56.78);
  printf("%d %d %d %d %d %d\n", 12.34 < 56.78, 12.34 <= 56.78, 12.34 == 56.78,
         12.34 >= 56.78, 12.34 > 56.78, 12.34 != 56.78);
  printf("%d %d %d %d %d %d\n", 12.34 < 12.34, 12.34 <= 12.34, 12.34 == 12.34,
         12.34 >= 12.34, 12.34 > 12.34, 12.34 != 12.34);
  printf("%d %d %d %d %d %d\n", 56.78 < 12.34, 56.78 <= 12.34, 56.78 == 12.34,
         56.78 >= 12.34, 56.78 > 12.34, 56.78 != 12.34);
  a = 12.34;
  a += 56.78;
  printf("%f\n", a);
  a = 12.34;
  a -= 56.78;
  printf("%f\n", a);
  a = 12.34;
  a *= 56.78;
  printf("%f\n", a);
  a = 12.34;
  a /= 56.78;
  printf("%f\n", a);
  printf("%f\n", +12.34);
  printf("%f\n", -12.34);
  a = 2;
  printf("%f\n", a);
  printf("%f\n", sin(2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xf04(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
movsd  0xee6(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
movsd  0xec8(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
movsd  0xeaa(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
movsd  0xe8c(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
movsd  0xe6e(%rip),%xmm0
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe7a(%rip),%rdi
xorps  %xmm0,%xmm0
mov    $0x1,%ecx
xor    %r9d,%r9d
mov    %ecx,%esi
mov    %ecx,%edx
mov    %r9d,%r8d
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe5a(%rip),%rdi
xorps  %xmm0,%xmm0
xor    %edx,%edx
mov    $0x1,%r9d
mov    %edx,%esi
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xde8(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdee(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe01(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xda6(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdac(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdbf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xd64(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd6a(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd7d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xd22(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd28(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd3b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xd2d(%rip),%rdi
movsd  0xced(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xd17(%rip),%rdi
movsd  0xccf(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xcb0(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xceb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <sin@plt>
lea    0xcd3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xf35(%rip),%rbx
movsd  0xecd(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xec3(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xeb9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xeaf(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xea5(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%r14
movsd  0xe94(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    $0x1,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
mov    $0x1,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
mov    %r14,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
mov    $0x1,%al
call   1030 <printf@plt>
mov    %rbx,%rdi
movsd  0xe01(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe22(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe18(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe0e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe04(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xdfa(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xdf0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <sin@plt>
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%f\0A\00"
@.str.1 = [19 x i8] c"%d %d %d %d %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
store float 0x405147AE20000000, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %4)
%6 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 6.912000e+01)
%7 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double -4.444000e+01)
%8 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x4085E5525460AA65)
%9 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x3FCBD1788F8E0597)
%10 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+00, i32 1, i32 0, i32 0, i32 0, i32 1)
%11 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, i32 1, i32 1, i32 1, i32 0, i32 0)
%12 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, i32 0, i32 0, i32 1, i32 1, i32 1)
store float 0x4028AE1480000000, float* %2
%13 = load float, float* %2
%14 = fpext float %13 to double
%15 = fadd double %14, 5.678000e+01
%16 = fptrunc double %15 to float
store float %16, float* %2
%17 = load float, float* %2
%18 = fpext float %17 to double
%19 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %18)
store float 0x4028AE1480000000, float* %2
%20 = load float, float* %2
%21 = fpext float %20 to double
%22 = fsub double %21, 5.678000e+01
%23 = fptrunc double %22 to float
store float %23, float* %2
%24 = load float, float* %2
%25 = fpext float %24 to double
%26 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %25)
store float 0x4028AE1480000000, float* %2
%27 = load float, float* %2
%28 = fpext float %27 to double
%29 = fmul double %28, 5.678000e+01
%30 = fptrunc double %29 to float
store float %30, float* %2
%31 = load float, float* %2
%32 = fpext float %31 to double
%33 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %32)
store float 0x4028AE1480000000, float* %2
%34 = load float, float* %2
%35 = fpext float %34 to double
%36 = fdiv double %35, 5.678000e+01
%37 = fptrunc double %36 to float
store float %37, float* %2
%38 = load float, float* %2
%39 = fpext float %38 to double
%40 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %39)
%41 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 1.234000e+01)
%42 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double -1.234000e+01)
store float 2.000000e+00, float* %2
%43 = load float, float* %2
%44 = fpext float %43 to double
%45 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %44)
%46 = call double @sin(i32 2)
%47 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %46)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%f\0A\00"
@.str.1 = [19 x i8] c"%d %d %d %d %d %d\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x405147AE20000000)
%2 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 6.912000e+01)
%3 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double -4.444000e+01)
%4 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x4085E5525460AA65)
%5 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x3FCBD1788F8E0597)
%6 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+00, i32 1, i32 0, i32 0, i32 0, i32 1)
%7 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, i32 1, i32 1, i32 1, i32 0, i32 0)
%8 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, i32 0, i32 0, i32 1, i32 1, i32 1)
%9 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x405147AE20000000)
%10 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0xC0463851E0000000)
%11 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x4085E55260000000)
%12 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 0x3FCBD178A0000000)
%13 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 1.234000e+01)
%14 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double -1.234000e+01)
%15 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 2.000000e+00)
%16 = tail call double @sin(i32 2)
%17 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %16)
ret i32 0
}