#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 */
float celsius_to_fahrenheit(float);
int /*<<< orphan*/ printf(char *, float, float);
int main() {
  float celsius;
  float fahrenheit;
  for (celsius = 0; celsius <= 300; celsius += 20) {
    fahrenheit = celsius_to_fahrenheit(celsius);
    printf("%-3.0f - %3.0f\n", celsius, fahrenheit);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xec1(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     1185 <main+0x65>
movss  -0x8(%rbp),%xmm0
call   1030 <celsius_to_fahrenheit@plt>
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
movss  0xe8e(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1137 <main+0x17>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

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