#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);
main() {
  float fahr, celsiue;
  int lower, upper, step;
  lower = -20.0;
  upper = 40.0;
  step = 5.0;
  celsiue = lower;
  while (celsiue <= upper) {
    fahr = (9.0 / 5.0) * celsiue + 32;
    printf("%.1f\t%.1f\n", celsiue, fahr);
    celsiue += step;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffec,-0x10(%rbp)
movl   $0x28,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm1
cvtsi2ssl -0x14(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11a5 <main+0x95>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe9e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe9a(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x18(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    113e <main+0x2e>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf48(%rip),%rbx
movss  0xee0(%rip),%xmm0
movss  0xedc(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xed0(%rip),%xmm0
movss  0xecc(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xec0(%rip),%xmm0
movss  0xebc(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xeb0(%rip),%xmm0
movss  0xeac(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xea0(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe91(%rip),%xmm1
mov    %rbx,%rdi
movss  0xe6e(%rip),%xmm0
call   1030 <printf@plt>
movss  0xe7d(%rip),%xmm0
movss  0xe79(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe6d(%rip),%xmm0
movss  0xe69(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe5d(%rip),%xmm0
movss  0xe59(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe4d(%rip),%xmm0
movss  0xe49(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe3d(%rip),%xmm0
movss  0xe39(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe2d(%rip),%xmm0
movss  0xe29(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe1d(%rip),%xmm0
movss  0xe19(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%.1f\09%.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), float -2.000000e+01, float -4.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float -1.500000e+01, float 5.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float -1.000000e+01, float 1.400000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float -5.000000e+00, float 2.300000e+01)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 0.000000e+00, float 3.200000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 5.000000e+00, float 4.100000e+01)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 1.000000e+01, float 5.000000e+01)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 1.500000e+01, float 5.900000e+01)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 2.000000e+01, float 6.800000e+01)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 2.500000e+01, float 7.700000e+01)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 3.000000e+01, float 8.600000e+01)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 3.500000e+01, float 9.500000e+01)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), float 4.000000e+01, float 1.040000e+02)
ret i32 0
}