#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, float);
int main(int argc, char const *argv[]) {
  float celsius;
  int fahr;
  for (fahr = 0; fahr <= 300; fahr = fahr + 20) {
    celsius = 5.0 / 9.0 * (fahr - 32.0);
    printf("%3d %6.1f\n", fahr, celsius);
  }
  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)
movl   $0x0,-0x18(%rbp)
cmpl   $0x12c,-0x18(%rbp)
jg     1182 <main+0x72>
cvtsi2sdl -0x18(%rbp),%xmm1
movsd  0xec1(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xead(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x18(%rbp),%esi
movss  -0x14(%rbp),%xmm0
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x18(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf28(%rip),%rbx
movss  0xee0(%rip),%xmm0
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
movss  0xed2(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x14,%esi
call   1030 <printf@plt>
movss  0xec1(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x28,%esi
call   1030 <printf@plt>
movss  0xeb0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3c,%esi
call   1030 <printf@plt>
movss  0xe9f(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x50,%esi
call   1030 <printf@plt>
movss  0xe8e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x64,%esi
call   1030 <printf@plt>
movss  0xe7d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x78,%esi
call   1030 <printf@plt>
movss  0xe6c(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x8c,%esi
call   1030 <printf@plt>
movss  0xe5b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xa0,%esi
call   1030 <printf@plt>
movss  0xe4a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xb4,%esi
call   1030 <printf@plt>
movss  0xe39(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xc8,%esi
call   1030 <printf@plt>
movss  0xe28(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xdc,%esi
call   1030 <printf@plt>
movss  0xe17(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xf0,%esi
call   1030 <printf@plt>
movss  0xe06(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x104,%esi
call   1030 <printf@plt>
movss  0xdf5(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x118,%esi
call   1030 <printf@plt>
movss  0xde4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x12c,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%3d %6.1f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, float 0xC031C71C80000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 20, float 0xC01AAAAAA0000000)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 40, float 0x4011C71C80000000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 60, float 0x402F1C71C0000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 80, float 0x403AAAAAA0000000)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 100, float 0x4042E38E40000000)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 120, float 0x404871C720000000)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 140, float 6.000000e+01)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 160, float 0x4051C71C80000000)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 180, float 0x40548E38E0000000)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 200, float 0x4057555560000000)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 220, float 0x405A1C71C0000000)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 240, float 0x405CE38E40000000)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 260, float 0x405FAAAAA0000000)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 280, float 0x406138E380000000)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 300, float 0x40629C71C0000000)
ret i32 0
}