#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 *, ...);
void printoftooc() {
  float oc, of = 1.0;
  printf("OF TO OC:\n");
  oc = 5 * (of - 32) / 9;
  printf("%.2f\t%.2f\n", of, oc);
  for (of = 20.0; of <= 300.0; of += 20.0) {
    oc = 5 * (of - 32) / 9;
    printf("%.2f\t%.2f\n", of, oc);
  }
}


x86 assembly (clang, -O0):
<printoftooc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  0xef0(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm1
movss  0xecc(%rip),%xmm0
subss  %xmm0,%xmm1
movss  0xebc(%rip),%xmm0
mulss  %xmm1,%xmm0
movss  0xeac(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xeb9(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe77(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe79(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     121a <printoftooc+0x10a>
movss  -0x8(%rbp),%xmm1
movss  0xe56(%rip),%xmm0
subss  %xmm0,%xmm1
movss  0xe46(%rip),%xmm0
mulss  %xmm1,%xmm0
movss  0xe36(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe43(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe18(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    118e <printoftooc+0x7e>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printoftooc>:
push   %rbp
push   %rbx
push   %rax
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rbx
movsd  0xec2(%rip),%xmm0
movsd  0xec2(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x14,%ebp
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
addss  0xe97(%rip),%xmm1
mulss  0xe93(%rip),%xmm1
divss  0xe8f(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
cmp    $0x119,%ebp
jb     1160 <printoftooc+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"OF TO OC:\0A\00"
@.str.1 = [11 x i8] c"%.2f\09%.2f\0A\00"
define void @printoftooc() {
%1 = alloca float
%2 = alloca float
store float 1.000000e+00, float* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = load float, float* %2
%5 = fsub float %4, 3.200000e+01
%6 = fmul float 5.000000e+00, %5
%7 = fdiv float %6, 9.000000e+00
store float %7, float* %1
%8 = load float, float* %2
%9 = fpext float %8 to double
%10 = load float, float* %1
%11 = fpext float %10 to double
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double %9, double %11)
store float 2.000000e+01, float* %2
br label %13
13: ; preds = %27, %0
%14 = load float, float* %2
%15 = fpext float %14 to double
%16 = fcmp ole double %15, 3.000000e+02
br i1 %16, label %17, label %32
17: ; preds = %13
%18 = load float, float* %2
%19 = fsub float %18, 3.200000e+01
%20 = fmul float 5.000000e+00, %19
%21 = fdiv float %20, 9.000000e+00
store float %21, float* %1
%22 = load float, float* %2
%23 = fpext float %22 to double
%24 = load float, float* %1
%25 = fpext float %24 to double
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double %23, double %25)
br label %27
27: ; preds = %17
%28 = load float, float* %2
%29 = fpext float %28 to double
%30 = fadd double %29, 2.000000e+01
%31 = fptrunc double %30 to float
store float %31, float* %2
br label %13
32: ; preds = %13
ret void
}

LLVM IR (-O2):
@.str.1 = [11 x i8] c"%.2f\09%.2f\0A\00"
@str = [10 x i8] c"OF TO OC:\00"
define void @printoftooc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+00, double 0xC03138E380000000)
br label %3
3: ; preds = %0, %3
%4 = phi i32 [ 20, %0 ], [ %12, %3 ]
%5 = sitofp i32 %4 to float
%6 = fpext float %5 to double
%7 = fadd float %5, -3.200000e+01
%8 = fmul float %7, 5.000000e+00
%9 = fdiv float %8, 9.000000e+00
%10 = fpext float %9 to double
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double %6, double %10)
%12 = add nuw nsw i32 %4, 20
%13 = icmp ugt i32 %4, 280
br i1 %13, label %14, label %3
14: ; preds = %3
ret void
}