#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(void) {
  int fahrenheit = 0;
  double celsius;
  printf("Fahrenheit      Celsius\n");
  for (fahrenheit; fahrenheit < 213; fahrenheit++) {
    celsius = (5.0 / 9.0) * (fahrenheit - 32);
    printf("%d                %.1lf\n", fahrenheit, celsius);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0xd5,-0x8(%rbp)
jge    1180 <main+0x70>
mov    -0x8(%rbp),%eax
sub    $0x20,%eax
cvtsi2sd %eax,%xmm1
movsd  0xead(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%esi
movsd  -0x10(%rbp),%xmm0
lea    0xeb6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffe0,%ebx
lea    0xecc(%rip),%r14
nopl   0x0(%rax)
lea    0x20(%rbx),%esi
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0xeae(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%ebx
cmp    $0xb5,%ebx
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Fahrenheit Celsius\0A\00"
@.str.1 = [25 x i8] c"%d %.1lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
store i32 0, i32* %1
store i32 0, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* %2
br label %6
6: ; preds = %17, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 213
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = load i32, i32* %2
%11 = sub nsw i32 %10, 32
%12 = sitofp i32 %11 to double
%13 = fmul double 0x3FE1C71C71C71C72, %12
store double %13, double* %3
%14 = load i32, i32* %2
%15 = load double, double* %3
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %14, double %15)
br label %17
17: ; preds = %9
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %6
20: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"%d %.1lf\0A\00"
@str = [24 x i8] c"Fahrenheit Celsius\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %8, %2 ]
%4 = add nsw i32 %3, -32
%5 = sitofp i32 %4 to double
%6 = fmul double %5, 0x3FE1C71C71C71C72
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %3, double %6)
%8 = add nuw nsw i32 %3, 1
%9 = icmp eq i32 %8, 213
br i1 %9, label %10, label %2
10: ; preds = %2
ret i32 0
}