#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*/ print_bit(float);
int /*<<< orphan*/ printf(char *, float);
int main() {
  float f = 2.625;
  float ten = 10.0;
  printf("f = %-12f : ", f);
  print_bit(f);
  printf("ten = %-12f : ", ten);
  print_bit(ten);
  printf("10 - f = %-12f\n", ten - f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xecd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xebc(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
call   1040 <print_bit@plt>
movss  -0xc(%rbp),%xmm0
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
call   1040 <print_bit@plt>
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee4(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
movss  0xec3(%rip),%xmm0
call   1040 <print_bit@plt>
lea    0xed0(%rip),%rdi
movss  0xeb3(%rip),%xmm0
call   1030 <printf@plt>
movss  0xea6(%rip),%xmm0
call   1040 <print_bit@plt>
lea    0xebe(%rip),%rdi
movss  0xe96(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"f = %-12f : \00"
@.str.1 = [15 x i8] c"ten = %-12f : \00"
@.str.2 = [16 x i8] c"10 - f = %-12f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
store float 2.625000e+00, float* %2
store float 1.000000e+01, float* %3
%4 = load float, float* %2
%5 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %4)
%6 = load float, float* %2
%7 = call i32 @print_bit(float %6)
%8 = load float, float* %3
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), float %8)
%10 = load float, float* %3
%11 = call i32 @print_bit(float %10)
%12 = load float, float* %3
%13 = load float, float* %2
%14 = fsub float %12, %13
%15 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), float %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"f = %-12f : \00"
@.str.1 = [15 x i8] c"ten = %-12f : \00"
@.str.2 = [16 x i8] c"10 - f = %-12f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.625000e+00)
%2 = tail call i32 @print_bit(float 2.625000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+01)
%4 = tail call i32 @print_bit(float 1.000000e+01)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), float 7.375000e+00)
ret i32 0
}