#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 *, ...);
int main() {
  int celsius;
  float fahr;
  printf("Celsius - Fahrenheit Table\n"
         "==========================\n"
         "Celsius\tFahrenheit\n");
  for (celsius = 0; celsius <= 300; celsius += 20) {
    fahr = (5.0 / 9.0) * celsius + 32.0;
    printf("%7d\t%10.1f\n", celsius, fahr);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x12c,-0x8(%rbp)
jg     118f <main+0x7f>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xeb2(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeae(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xee0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x8(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4c(%rip),%rbx
movsd  0xec4(%rip),%xmm0
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xeb8(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x14,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xea9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x28,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe9a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3c,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe8b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe7c(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x64,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe6d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x78,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe5e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x8c,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe4f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xa0,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe40(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xb4,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe31(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe22(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xdc,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe13(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xf0,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xe04(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x104,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xdf5(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x118,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xde6(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x12c,%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [74 x i8] c"Celsius - Fahrenheit Table\0A==========================\0ACelsius\09Fahrenheit\0A\00"
@.str.1 = [12 x i8] c"%7d\09%10.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %5
5: ; preds = %17, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 300
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, i32* %2
%10 = sitofp i32 %9 to double
%11 = call double @llvm.fmuladd.f64(double 0x3FE1C71C71C71C72, double %10, double 3.200000e+01)
%12 = fptrunc double %11 to float
store float %12, float* %3
%13 = load i32, i32* %2
%14 = load float, float* %3
%15 = fpext float %14 to double
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %13, double %15)
br label %17
17: ; preds = %8
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 20
store i32 %19, i32* %2
br label %5
20: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"%7d\09%10.1f\0A\00"
@str = [73 x i8] c"Celsius - Fahrenheit Table\0A==========================\0ACelsius\09Fahrenheit\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 0, double 3.200000e+01)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 20, double 0x40458E38E0000000)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 40, double 0x404B1C71C0000000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 60, double 0x4050555560000000)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 80, double 0x40531C71C0000000)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 100, double 0x4055E38E40000000)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 120, double 0x4058AAAAA0000000)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 140, double 0x405B71C720000000)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 160, double 0x405E38E380000000)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 180, double 1.320000e+02)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 200, double 0x4061E38E40000000)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 220, double 0x4063471C80000000)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 240, double 0x4064AAAAA0000000)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 260, double 0x40660E38E0000000)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 280, double 0x406771C720000000)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 300, double 0x4068D55560000000)
ret i32 0
}