#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, float, double);
int /*<<< orphan*/ puts(char *);
int main(void) {
  puts("F\tC\n=============");
  for (float i = 300; i >= 0; i -= 20) {
    printf("%3.0f\t%5.1f\n", i, (5.0 / 9.0) * (i - 32.0));
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
movss  0xebd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11a6 <main+0x86>
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xea1(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xe8d(%rip),%xmm1
mulsd  %xmm2,%xmm1
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm0
movss  0xe6c(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1148 <main+0x28>
mov    0x2e33(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9e(%rip),%rbx
movss  0xec4(%rip),%xmm0
movsd  0xefc(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xeb0(%rip),%xmm0
movsd  0xeec(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe9c(%rip),%xmm0
movsd  0xedc(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe88(%rip),%xmm0
movsd  0xecc(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe74(%rip),%xmm0
movsd  0xebc(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe60(%rip),%xmm0
movsd  0xeac(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe4c(%rip),%xmm0
movsd  0xe9c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe38(%rip),%xmm0
movsd  0xe8c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe24(%rip),%xmm0
movsd  0xe7c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xe10(%rip),%xmm0
movsd  0xe6c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xdfc(%rip),%xmm0
movsd  0xe5c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xde8(%rip),%xmm0
movsd  0xe4c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xdd4(%rip),%xmm0
movsd  0xe3c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xdc0(%rip),%xmm0
movsd  0xe2c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xdac(%rip),%xmm0
movsd  0xe1c(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
movsd  0xe14(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    0x2d2a(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [18 x i8] c"F\09C\0A=============\00"
@.str.1 = [13 x i8] c"%3.0f\09%5.1f\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 3.000000e+02, double 0x40629C71C71C71C7)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.800000e+02, double 0x406138E38E38E38E)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.600000e+02, double 0x405FAAAAAAAAAAAB)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.400000e+02, double 0x405CE38E38E38E39)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.200000e+02, double 0x405A1C71C71C71C7)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.000000e+02, double 0x4057555555555556)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.800000e+02, double 0x40548E38E38E38E4)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.600000e+02, double 0x4051C71C71C71C72)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.400000e+02, double 6.000000e+01)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.200000e+02, double 0x404871C71C71C71D)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+02, double 0x4042E38E38E38E39)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 8.000000e+01, double 0x403AAAAAAAAAAAAB)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 6.000000e+01, double 0x402F1C71C71C71C8)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 4.000000e+01, double 0x4011C71C71C71C72)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.000000e+01, double 0xC01AAAAAAAAAAAAB)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 0.000000e+00, double 0xC031C71C71C71C72)
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}