#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("C\tF\n=============");
  for (float i = 0; i <= 300; i = i + 20) {
    printf("%3.0f\t%5.1f\n", i, ((9.0 * i) / 5) + 32);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xeb5(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     11aa <main+0x8a>
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xead(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xe99(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  0xe85(%rip),%xmm2
addsd  %xmm2,%xmm1
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
movss  0xe69(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1143 <main+0x23>
mov    0x2e2f(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffec,%ebp
lea    0xeef(%rip),%rbx
nopl   0x0(%rax,%rax,1)
add    $0x14,%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xea7(%rip),%xmm1
divsd  0xea7(%rip),%xmm1
addsd  0xea7(%rip),%xmm1
mov    %rbx,%rdi
call   1040 <printf@plt>
cmp    $0x118,%ebp
jbe    1140 <main+0x20>
mov    0x2e60(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"C\09F\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 0.000000e+00, float* %2
br label %4
4: ; preds = %15, %0
%5 = load float, float* %2
%6 = fcmp ole float %5, 3.000000e+02
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = load float, float* %2
%9 = load float, float* %2
%10 = fpext float %9 to double
%11 = fmul double 9.000000e+00, %10
%12 = fdiv double %11, 5.000000e+00
%13 = fadd double %12, 3.200000e+01
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %8, double %13)
br label %15
15: ; preds = %7
%16 = load float, float* %2
%17 = fadd float %16, 2.000000e+01
store float %17, float* %2
br label %4
18: ; preds = %4
%19 = load i32, i32* @EXIT_SUCCESS
ret i32 %19
}

LLVM IR (-O2):
@.str = [18 x i8] c"C\09F\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))
br label %4
2: ; preds = %4
%3 = load i32, i32* @EXIT_SUCCESS
ret i32 %3
4: ; preds = %0, %4
%5 = phi i32 [ 0, %0 ], [ %12, %4 ]
%6 = sitofp i32 %5 to float
%7 = fpext float %6 to double
%8 = fmul double %7, 9.000000e+00
%9 = fdiv double %8, 5.000000e+00
%10 = fadd double %9, 3.200000e+01
%11 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %6, double %10)
%12 = add nuw nsw i32 %5, 20
%13 = icmp ugt i32 %5, 280
br i1 %13, label %2, label %4
}