void RunANSICBasics01(void) {
  printf("\n%s\n-----------\n", __func__);
  float lowTemp = -17.8;
  float highTemp = 37.0;
  ShowFahrenheitConversion(lowTemp);
  ShowFahrenheitConversion(0.0);
  ShowFahrenheitConversion(12.8);
  ShowFahrenheitConversion(24.2);
  ShowFahrenheitConversion(highTemp);
}


x86 assembly (clang, -O0):
<RunANSICBasics01>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee9(%rip),%rdi
lea    0xef3(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xecf(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xebe(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
movsd  0xe8f(%rip),%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
movsd  0xe78(%rip),%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RunANSICBasics01>:
push   %rax
lea    0xef8(%rip),%rdi
lea    0xf02(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  0xec2(%rip),%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
movsd  0xeb1(%rip),%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
movsd  0xeaa(%rip),%xmm0
mov    $0x1,%al
call   1040 <ShowFahrenheitConversion@plt>
movsd  0xea3(%rip),%xmm0
mov    $0x1,%al
pop    %rcx
jmp    1040 <ShowFahrenheitConversion@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"\0A%s\0A-----------\0A\00"
@__func__.RunANSICBasics01 = [17 x i8] c"RunANSICBasics01\00"
define void @RunANSICBasics01() {
%1 = alloca float
%2 = alloca float
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @__func__.RunANSICBasics01, i64 0, i64 0))
store float 0xC031CCCCC0000000, float* %1
store float 3.700000e+01, float* %2
%4 = load float, float* %1
%5 = fpext float %4 to double
%6 = call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double %5)
%7 = call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 0.000000e+00)
%8 = call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 1.280000e+01)
%9 = call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 2.420000e+01)
%10 = load float, float* %2
%11 = fpext float %10 to double
%12 = call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double %11)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"\0A%s\0A-----------\0A\00"
@__func__.RunANSICBasics01 = [17 x i8] c"RunANSICBasics01\00"
define void @RunANSICBasics01() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @__func__.RunANSICBasics01, i64 0, i64 0))
%2 = tail call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 0xC031CCCCC0000000)
%3 = tail call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 0.000000e+00)
%4 = tail call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 1.280000e+01)
%5 = tail call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 2.420000e+01)
%6 = tail call i32 (double, ...) bitcast (i32 (...)* @ShowFahrenheitConversion to i32 (double, ...)*)(double 3.700000e+01)
ret void
}