#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 c, f;
  int max = 300, min = 0, step = 20;
  f = max;
  while (f > min) {
    f = f - step;
    c = (5.0 / 9.0) * (f - 32);
    printf("%3.1f\t%3.1f\n", f, c);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x12c,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x14,-0x18(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtsi2ssl -0x14(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jbe    11a9 <main+0x99>
movss  -0xc(%rbp),%xmm0
cvtsi2ssl -0x18(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movss  0xe97(%rip),%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe7f(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
jmp    113e <main+0x2e>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf58(%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),%xmm0
movss  0xe9c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe90(%rip),%xmm0
movss  0xe8c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe80(%rip),%xmm0
movss  0xe7c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe70(%rip),%xmm0
movss  0xe6c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe60(%rip),%xmm0
movss  0xe5c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe50(%rip),%xmm0
movss  0xe4c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe40(%rip),%xmm0
movss  0xe3c(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe30(%rip),%xmm1
mov    %rbx,%rdi
movss  0xe09(%rip),%xmm0
call   1030 <printf@plt>
movss  0xe1c(%rip),%xmm0
movss  0xe18(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe0c(%rip),%xmm0
movss  0xe08(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xdfc(%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.1f\09%3.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 300, i32* %4
store i32 0, i32* %5
store i32 20, 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 ogt float %10, %12
br i1 %13, label %14, label %27
14: ; preds = %9
%15 = load float, float* %3
%16 = load i32, i32* %6
%17 = sitofp i32 %16 to float
%18 = fsub float %15, %17
store float %18, float* %3
%19 = load float, float* %3
%20 = fsub float %19, 3.200000e+01
%21 = fpext float %20 to double
%22 = fmul double 0x3FE1C71C71C71C72, %21
%23 = fptrunc double %22 to float
store float %23, float* %2
%24 = load float, float* %3
%25 = load float, float* %2
%26 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %24, float %25)
br label %9
27: ; preds = %9
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [13 x i8] c"%3.1f\09%3.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 2.800000e+02, float 0x406138E380000000)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.600000e+02, float 0x405FAAAAA0000000)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.400000e+02, float 0x405CE38E40000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.200000e+02, float 0x405A1C71C0000000)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.000000e+02, float 0x4057555560000000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.800000e+02, float 0x40548E38E0000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.600000e+02, float 0x4051C71C80000000)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.400000e+02, float 6.000000e+01)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.200000e+02, float 0x404871C720000000)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.000000e+02, float 0x4042E38E40000000)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 8.000000e+01, float 0x403AAAAAA0000000)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 6.000000e+01, float 0x402F1C71C0000000)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 4.000000e+01, float 0x4011C71C80000000)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.000000e+01, float 0xC01AAAAAA0000000)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 0.000000e+00, float 0xC031C71C80000000)
ret i32 0
}