#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 *, ...);
main() {
  float fahr;
  printf("%5s  %8s", "deg F", "deg C\n");
  printf("--------------\n");
  for (fahr = 300; fahr >= 0; fahr = fahr - 20) {
    printf("%5.0f %8.1f\n", fahr, (5.0 / 9.0) * (fahr - 32.0));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef2(%rip),%rdi
lea    0xef4(%rip),%rsi
lea    0xef3(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xeaf(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11ba <main+0xaa>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xe8f(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xe7b(%rip),%xmm1
mulsd  %xmm2,%xmm1
lea    0xea6(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
movss  0xe58(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1156 <main+0x46>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xfc8(%rip),%rdi
lea    0xfca(%rip),%rsi
lea    0xfc9(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rbx
movsd  0xea8(%rip),%xmm0
movsd  0xea8(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe9e(%rip),%xmm0
movsd  0xe9e(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe94(%rip),%xmm0
movsd  0xe94(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe8a(%rip),%xmm0
movsd  0xe8a(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe80(%rip),%xmm0
movsd  0xe80(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe76(%rip),%xmm0
movsd  0xe76(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe6c(%rip),%xmm0
movsd  0xe6c(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe62(%rip),%xmm0
movsd  0xe62(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe58(%rip),%xmm0
movsd  0xe58(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe4e(%rip),%xmm0
movsd  0xe4e(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe44(%rip),%xmm0
movsd  0xe44(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe3a(%rip),%xmm0
movsd  0xe3a(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe30(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xded(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe1e(%rip),%xmm0
movsd  0xe1e(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe14(%rip),%xmm0
movsd  0xe14(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe0a(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%5s %8s\00"
@.str.1 = [6 x i8] c"deg F\00"
@.str.2 = [7 x i8] c"deg C\0A\00"
@.str.3 = [16 x i8] c"--------------\0A\00"
@.str.4 = [13 x i8] c"%5.0f %8.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store float 3.000000e+02, float* %2
br label %5
5: ; preds = %16, %0
%6 = load float, float* %2
%7 = fcmp oge float %6, 0.000000e+00
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = load float, float* %2
%10 = fpext float %9 to double
%11 = load float, float* %2
%12 = fpext float %11 to double
%13 = fsub double %12, 3.200000e+01
%14 = fmul double 0x3FE1C71C71C71C72, %13
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double %10, double %14)
br label %16
16: ; preds = %8
%17 = load float, float* %2
%18 = fsub float %17, 2.000000e+01
store float %18, float* %2
br label %5
19: ; preds = %5
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
@.str = [9 x i8] c"%5s %8s\00"
@.str.1 = [6 x i8] c"deg F\00"
@.str.2 = [7 x i8] c"deg C\0A\00"
@.str.4 = [13 x i8] c"%5.0f %8.1f\0A\00"
@str = [15 x i8] c"--------------\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 3.000000e+02, double 0x40629C71C71C71C7)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 2.800000e+02, double 0x406138E38E38E38E)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 2.600000e+02, double 0x405FAAAAAAAAAAAB)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 2.400000e+02, double 0x405CE38E38E38E39)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 2.200000e+02, double 0x405A1C71C71C71C7)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 2.000000e+02, double 0x4057555555555556)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 1.800000e+02, double 0x40548E38E38E38E4)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 1.600000e+02, double 0x4051C71C71C71C72)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 1.400000e+02, double 6.000000e+01)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 1.200000e+02, double 0x404871C71C71C71D)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 1.000000e+02, double 0x4042E38E38E38E39)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 8.000000e+01, double 0x403AAAAAAAAAAAAB)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 6.000000e+01, double 0x402F1C71C71C71C8)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 4.000000e+01, double 0x4011C71C71C71C72)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 2.000000e+01, double 0xC01AAAAAAAAAAAAB)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double 0.000000e+00, double 0xC031C71C71C71C72)
ret i32 0
}