#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 argc, char *argv[]) {
  int fahr;
  printf("%10s %10s\n", "Fahrenheit", "Celsius");
  for (fahr = 300; fahr >= 0; fahr -= 20)
    printf("%10d %10.1f\n", fahr, (5.0 / 9.0) * (fahr - 32.0));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xee3(%rip),%rdi
lea    0xee7(%rip),%rsi
lea    0xeeb(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x12c,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     118f <main+0x7f>
mov    -0x14(%rbp),%esi
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xea5(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe91(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xeb4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
sub    $0x14,%eax
mov    %eax,-0x14(%rbp)
jmp    1149 <main+0x39>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf68(%rip),%rdi
lea    0xf6c(%rip),%rsi
lea    0xf70(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf6a(%rip),%rbx
movsd  0xec4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x12c,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xeb5(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x118,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xea6(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x104,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe97(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xf0,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe88(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xdc,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe79(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe6a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xb4,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe5b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xa0,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe4c(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x8c,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe3d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x78,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe2e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x64,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe1f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe10(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3c,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xe01(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x28,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xdf2(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x14,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xde3(%rip),%xmm0
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%10s %10s\0A\00"
@.str.1 = [11 x i8] c"Fahrenheit\00"
@.str.2 = [8 x i8] c"Celsius\00"
@.str.3 = [13 x i8] c"%10d %10.1f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 300, double 0x40629C71C71C71C7)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 280, double 0x406138E38E38E38E)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 260, double 0x405FAAAAAAAAAAAB)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 240, double 0x405CE38E38E38E39)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 220, double 0x405A1C71C71C71C7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 200, double 0x4057555555555556)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 180, double 0x40548E38E38E38E4)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 160, double 0x4051C71C71C71C72)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 140, double 6.000000e+01)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 120, double 0x404871C71C71C71D)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 100, double 0x4042E38E38E38E39)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 80, double 0x403AAAAAAAAAAAAB)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 60, double 0x402F1C71C71C71C8)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 40, double 0x4011C71C71C71C72)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 20, double 0xC01AAAAAAAAAAAAB)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 0, double 0xC031C71C71C71C72)
ret i32 0
}