#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 *, int, float);
main() {
  int cels;
  float fahr;
  int lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  cels = lower;
  while (cels <= upper) {
    fahr = ((9.0 / 5.0) * cels) + 32;
    printf("%3d\t%3.1f\n", cels, fahr);
    cels = cels + step;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x12c,-0x14(%rbp)
movl   $0x14,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     118e <main+0x7e>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xead(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xea9(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    113a <main+0x2a>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf28(%rip),%rbx
movss  0xee0(%rip),%xmm0
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
movss  0xed2(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
movss  0xec1(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x28,%esi
call   1030 <printf@plt>
movss  0xeb0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3c,%esi
call   1030 <printf@plt>
movss  0xe9f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x50,%esi
call   1030 <printf@plt>
movss  0xe8e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x64,%esi
call   1030 <printf@plt>
movss  0xe7d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x78,%esi
call   1030 <printf@plt>
movss  0xe6c(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x8c,%esi
call   1030 <printf@plt>
movss  0xe5b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xa0,%esi
call   1030 <printf@plt>
movss  0xe4a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xb4,%esi
call   1030 <printf@plt>
movss  0xe39(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xc8,%esi
call   1030 <printf@plt>
movss  0xe28(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xdc,%esi
call   1030 <printf@plt>
movss  0xe17(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xf0,%esi
call   1030 <printf@plt>
movss  0xe06(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x104,%esi
call   1030 <printf@plt>
movss  0xdf5(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x118,%esi
call   1030 <printf@plt>
movss  0xde4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x12c,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%3d\09%3.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 300, i32* %5
store i32 20, i32* %6
%7 = load i32, i32* %4
store i32 %7, i32* %2
br label %8
8: ; preds = %12, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %5
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load i32, i32* %2
%14 = sitofp i32 %13 to double
%15 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %14, double 3.200000e+01)
%16 = fptrunc double %15 to float
store float %16, float* %3
%17 = load i32, i32* %2
%18 = load float, float* %3
%19 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %17, float %18)
%20 = load i32, i32* %2
%21 = load i32, i32* %6
%22 = add nsw i32 %20, %21
store i32 %22, i32* %2
br label %8
23: ; preds = %8
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
@.str = [11 x i8] c"%3d\09%3.1f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, float 3.200000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 20, float 6.800000e+01)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 40, float 1.040000e+02)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 60, float 1.400000e+02)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 80, float 1.760000e+02)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 100, float 2.120000e+02)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 120, float 2.480000e+02)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 140, float 2.840000e+02)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 160, float 3.200000e+02)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 180, float 3.560000e+02)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 200, float 3.920000e+02)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 220, float 4.280000e+02)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 240, float 4.640000e+02)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 260, float 5.000000e+02)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 280, float 5.360000e+02)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 300, float 5.720000e+02)
ret i32 0
}