#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 *, float, double);
int main(void) {
  float fahr;
  for (fahr = 300; fahr >= 0; fahr -= 20)
    printf("%3.0f %6.1f\n", fahr, (5.0 / 9.0) * (fahr - 32.0));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     118a <main+0x7a>
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xebd(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xea9(%rip),%xmm1
mulsd  %xmm2,%xmm1
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
movss  0xe88(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    112c <main+0x1c>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xfa8(%rip),%rbx
movss  0xee0(%rip),%xmm0
movsd  0xf18(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xecc(%rip),%xmm0
movsd  0xf08(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xeb8(%rip),%xmm0
movsd  0xef8(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xea4(%rip),%xmm0
movsd  0xee8(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe90(%rip),%xmm0
movsd  0xed8(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe7c(%rip),%xmm0
movsd  0xec8(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe68(%rip),%xmm0
movsd  0xeb8(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe54(%rip),%xmm0
movsd  0xea8(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe40(%rip),%xmm0
movsd  0xe98(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe2c(%rip),%xmm0
movsd  0xe88(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe18(%rip),%xmm0
movsd  0xe78(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe04(%rip),%xmm0
movsd  0xe68(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xdf0(%rip),%xmm0
movsd  0xe58(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xddc(%rip),%xmm0
movsd  0xe48(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xdc8(%rip),%xmm0
movsd  0xe38(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movsd  0xe30(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%3.0f %6.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
store float 3.000000e+02, float* %2
br label %3
3: ; preds = %13, %0
%4 = load float, float* %2
%5 = fcmp oge float %4, 0.000000e+00
br i1 %5, label %6, label %16
6: ; preds = %3
%7 = load float, float* %2
%8 = load float, float* %2
%9 = fpext float %8 to double
%10 = fsub double %9, 3.200000e+01
%11 = fmul double 0x3FE1C71C71C71C72, %10
%12 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %7, double %11)
br label %13
13: ; preds = %6
%14 = load float, float* %2
%15 = fsub float %14, 2.000000e+01
store float %15, float* %2
br label %3
16: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%3.0f %6.1f\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 3.000000e+02, double 0x40629C71C71C71C7)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.800000e+02, double 0x406138E38E38E38E)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.600000e+02, double 0x405FAAAAAAAAAAAB)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.400000e+02, double 0x405CE38E38E38E39)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.200000e+02, double 0x405A1C71C71C71C7)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.000000e+02, double 0x4057555555555556)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.800000e+02, double 0x40548E38E38E38E4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.600000e+02, double 0x4051C71C71C71C72)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.400000e+02, double 6.000000e+01)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.200000e+02, double 0x404871C71C71C71D)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.000000e+02, double 0x4042E38E38E38E39)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 8.000000e+01, double 0x403AAAAAAAAAAAAB)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 6.000000e+01, double 0x402F1C71C71C71C8)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 4.000000e+01, double 0x4011C71C71C71C72)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.000000e+01, double 0xC01AAAAAAAAAAAAB)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 0.000000e+00, double 0xC031C71C71C71C72)
ret i32 0
}