#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, float);
int main(int argc, char **argv) {
  float fFahr = 0;
  float fCelsius = 0;
  for (; fFahr <= 300; fFahr += 20) {
    fCelsius = (5.0 / 9.0) * (fFahr - 32);
    printf("%3.0f%6.1f\n", fFahr, fCelsius);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xec2(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     119f <main+0x8f>
movss  -0x14(%rbp),%xmm0
movss  0xeaf(%rip),%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeab(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
movss  0xe78(%rip),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    1136 <main+0x26>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0xffffffec,%ebp
lea    0xef1(%rip),%rbx
nop
add    $0x14,%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movaps %xmm0,%xmm1
addss  0xecb(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0xec7(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
cmp    $0x119,%ebp
jb     1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"%3.0f%6.1f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 0, %2 ], [ %11, %3 ]
%5 = sitofp i32 %4 to float
%6 = fadd float %5, -3.200000e+01
%7 = fpext float %6 to double
%8 = fmul double %7, 0x3FE1C71C71C71C72
%9 = fptrunc double %8 to float
%10 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), float %5, float %9)
%11 = add nuw nsw i32 %4, 20
%12 = icmp ugt i32 %4, 280
br i1 %12, label %13, label %3
13: ; preds = %3
ret i32 0
}