#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, double);
int main() {
  int fahr;
  for (fahr = 300; fahr > 0; fahr -= 20)
    printf("%4d %5.1f\n", fahr, (5.0 / 9.0) * (fahr - 43));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x12c,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1163 <main+0x53>
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%eax
sub    $0x2b,%eax
cvtsi2sd %eax,%xmm1
movsd  0xebb(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    $0x14,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf60(%rip),%rbx
movsd  0xee0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x12c,%esi
call   1030 <printf@plt>
movsd  0xed3(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x118,%esi
call   1030 <printf@plt>
movsd  0xec6(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x104,%esi
call   1030 <printf@plt>
movsd  0xeb9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xf0,%esi
call   1030 <printf@plt>
movsd  0xeac(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xdc,%esi
call   1030 <printf@plt>
movsd  0xe9f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xc8,%esi
call   1030 <printf@plt>
movsd  0xe92(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xb4,%esi
call   1030 <printf@plt>
movsd  0xe85(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xa0,%esi
call   1030 <printf@plt>
movsd  0xe78(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x8c,%esi
call   1030 <printf@plt>
movsd  0xe6b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x78,%esi
call   1030 <printf@plt>
movsd  0xe5e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x64,%esi
call   1030 <printf@plt>
movsd  0xe51(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x50,%esi
call   1030 <printf@plt>
movsd  0xe44(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3c,%esi
call   1030 <printf@plt>
movsd  0xe37(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x28,%esi
call   1030 <printf@plt>
movsd  0xe2a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%4d %5.1f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 300, double 0x4061D8E38E38E38E)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 280, double 0x4060755555555556)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 260, double 0x405E238E38E38E39)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 240, double 0x405B5C71C71C71C7)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 220, double 0x4058955555555556)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 200, double 0x4055CE38E38E38E4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 180, double 0x4053071C71C71C72)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 160, double 6.500000e+01)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 140, double 0x404AF1C71C71C71D)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 120, double 0x4045638E38E38E39)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 100, double 0x403FAAAAAAAAAAAB)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 80, double 0x40348E38E38E38E4)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 60, double 0x4022E38E38E38E39)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 40, double 0xBFFAAAAAAAAAAAAB)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 20, double 0xC0298E38E38E38E4)
ret i32 0
}