#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 EXIT_SUCCESS;
double fahr2cels(float);
int /*<<< orphan*/ printf(char *, float, double);
int main(int argc, char **argv) {
  float fahr;
  for (fahr = 0; fahr <= 300; fahr += 20)
    printf("%3.0f %6.1f\n", fahr, fahr2cels(fahr));
  return EXIT_SUCCESS;
}


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)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xeba(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     118f <main+0x6f>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
movss  -0x18(%rbp),%xmm0
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
movss  0xe84(%rip),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    113e <main+0x1e>
mov    0x2e4a(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xorps  %xmm0,%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
lea    0xf09(%rip),%rbx
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
call   1040 <printf@plt>
movss  0xeba(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xea7(%rip),%xmm0
call   1040 <printf@plt>
movss  0xe9e(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xe8b(%rip),%xmm0
call   1040 <printf@plt>
movss  0xe82(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xe6f(%rip),%xmm0
call   1040 <printf@plt>
movss  0xe66(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xe53(%rip),%xmm0
call   1040 <printf@plt>
movss  0xe4a(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xe37(%rip),%xmm0
call   1040 <printf@plt>
movss  0xe2e(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xe1b(%rip),%xmm0
call   1040 <printf@plt>
movss  0xe12(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xdff(%rip),%xmm0
call   1040 <printf@plt>
movss  0xdf6(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xde3(%rip),%xmm0
call   1040 <printf@plt>
movss  0xdda(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xdc7(%rip),%xmm0
call   1040 <printf@plt>
movss  0xdbe(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xdab(%rip),%xmm0
call   1040 <printf@plt>
movss  0xda2(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xd8f(%rip),%xmm0
call   1040 <printf@plt>
movss  0xd86(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xd73(%rip),%xmm0
call   1040 <printf@plt>
movss  0xd6a(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xd57(%rip),%xmm0
call   1040 <printf@plt>
movss  0xd4e(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xd3b(%rip),%xmm0
call   1040 <printf@plt>
movss  0xd32(%rip),%xmm0
call   1030 <fahr2cels@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movss  0xd1f(%rip),%xmm0
call   1040 <printf@plt>
mov    0x2cbb(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%3.0f %6.1f\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 0.000000e+00, float* %6
br label %7
7: ; preds = %15, %2
%8 = load float, float* %6
%9 = fcmp ole float %8, 3.000000e+02
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load float, float* %6
%12 = load float, float* %6
%13 = call double @fahr2cels(float %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %11, double %13)
br label %15
15: ; preds = %10
%16 = load float, float* %6
%17 = fadd float %16, 2.000000e+01
store float %17, float* %6
br label %7
18: ; preds = %7
%19 = load i32, i32* @EXIT_SUCCESS
ret i32 %19
}

LLVM IR (-O2):
@.str = [13 x i8] c"%3.0f %6.1f\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call double @fahr2cels(float 0.000000e+00)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 0.000000e+00, double %3)
%5 = tail call double @fahr2cels(float 2.000000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.000000e+01, double %5)
%7 = tail call double @fahr2cels(float 4.000000e+01)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 4.000000e+01, double %7)
%9 = tail call double @fahr2cels(float 6.000000e+01)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 6.000000e+01, double %9)
%11 = tail call double @fahr2cels(float 8.000000e+01)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 8.000000e+01, double %11)
%13 = tail call double @fahr2cels(float 1.000000e+02)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.000000e+02, double %13)
%15 = tail call double @fahr2cels(float 1.200000e+02)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.200000e+02, double %15)
%17 = tail call double @fahr2cels(float 1.400000e+02)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.400000e+02, double %17)
%19 = tail call double @fahr2cels(float 1.600000e+02)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.600000e+02, double %19)
%21 = tail call double @fahr2cels(float 1.800000e+02)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 1.800000e+02, double %21)
%23 = tail call double @fahr2cels(float 2.000000e+02)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.000000e+02, double %23)
%25 = tail call double @fahr2cels(float 2.200000e+02)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.200000e+02, double %25)
%27 = tail call double @fahr2cels(float 2.400000e+02)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.400000e+02, double %27)
%29 = tail call double @fahr2cels(float 2.600000e+02)
%30 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.600000e+02, double %29)
%31 = tail call double @fahr2cels(float 2.800000e+02)
%32 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 2.800000e+02, double %31)
%33 = tail call double @fahr2cels(float 3.000000e+02)
%34 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 3.000000e+02, double %33)
%35 = load i32, i32* @EXIT_SUCCESS
ret i32 %35
}