#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(void) {
  float fahr, celsius;
  float lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  fahr = lower;
  while (fahr <= upper) {
    celsius = 5.0 * (fahr - 32) / 9.0;
    printf("F = %3.0f \tC = %6.1f\n", fahr, celsius);
    fahr += step;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xed5(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xec4(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x14(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11be <main+0xae>
movss  -0x8(%rbp),%xmm0
movss  0xe9d(%rip),%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe9d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe89(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    114b <main+0x3b>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0xffffffec,%ebp
lea    0xef9(%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
divsd  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 = [22 x i8] c"F = %3.0f \09C = %6.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %4
store float 3.000000e+02, float* %5
store float 2.000000e+01, float* %6
%7 = load float, float* %4
store float %7, float* %2
br label %8
8: ; preds = %12, %0
%9 = load float, float* %2
%10 = load float, float* %5
%11 = fcmp ole float %9, %10
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load float, float* %2
%14 = fsub float %13, 3.200000e+01
%15 = fpext float %14 to double
%16 = fmul double 5.000000e+00, %15
%17 = fdiv double %16, 9.000000e+00
%18 = fptrunc double %17 to float
store float %18, float* %3
%19 = load float, float* %2
%20 = load float, float* %3
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), float %19, float %20)
%22 = load float, float* %6
%23 = load float, float* %2
%24 = fadd float %23, %22
store float %24, float* %2
br label %8
25: ; preds = %8
ret i32 0
}

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