#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*/ float_to_money(float);
long money_div(int /*<<< orphan*/, int /*<<< orphan*/);
long money_mul(int /*<<< orphan*/, int /*<<< orphan*/);
double money_to_float(long);
int /*<<< orphan*/ printf(char *, double, double);
void main(void) {
  long v1;
  long v2;
  v1 = money_mul(float_to_money(3.14f), float_to_money(4.0f));
  v2 = money_div(float_to_money(3.0f), float_to_money(2.0f));
  printf("%.2f, %.2f\n", money_to_float(v1), money_to_float(v2));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  0xeac(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    %eax,-0x20(%rbp)
movss  0xe98(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    -0x20(%rbp),%edi
mov    %eax,%esi
call   1060 <money_mul@plt>
mov    %rax,-0x8(%rbp)
movss  0xe79(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    %eax,-0x1c(%rbp)
movss  0xe65(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1050 <money_div@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <money_to_float@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <money_to_float@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
lea    0xe3c(%rip),%rdi
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
movss  0xea5(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    %eax,%ebx
movss  0xe9a(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1060 <money_mul@plt>
mov    %rax,%rbx
movss  0xe85(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    %eax,%ebp
movss  0xe7a(%rip),%xmm0
call   1070 <float_to_money@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1050 <money_div@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1030 <money_to_float@plt>
movsd  %xmm0,(%rsp)
mov    %rbp,%rdi
call   1030 <money_to_float@plt>
movaps %xmm0,%xmm1
lea    0xe4e(%rip),%rdi
movsd  (%rsp),%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"%.2f, %.2f\0A\00"
define void @main() {
%1 = alloca i64
%2 = alloca i64
%3 = call i32 @float_to_money(float 0x40091EB860000000)
%4 = call i32 @float_to_money(float 4.000000e+00)
%5 = call i64 @money_mul(i32 %3, i32 %4)
store i64 %5, i64* %1
%6 = call i32 @float_to_money(float 3.000000e+00)
%7 = call i32 @float_to_money(float 2.000000e+00)
%8 = call i64 @money_div(i32 %6, i32 %7)
store i64 %8, i64* %2
%9 = load i64, i64* %1
%10 = call double @money_to_float(i64 %9)
%11 = load i64, i64* %2
%12 = call double @money_to_float(i64 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double %10, double %12)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"%.2f, %.2f\0A\00"
define void @main() {
%1 = tail call i32 @float_to_money(float 0x40091EB860000000)
%2 = tail call i32 @float_to_money(float 4.000000e+00)
%3 = tail call i64 @money_mul(i32 %1, i32 %2)
%4 = tail call i32 @float_to_money(float 3.000000e+00)
%5 = tail call i32 @float_to_money(float 2.000000e+00)
%6 = tail call i64 @money_div(i32 %4, i32 %5)
%7 = tail call double @money_to_float(i64 %3)
%8 = tail call double @money_to_float(i64 %6)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double %7, double %8)
ret void
}