#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 *, ...);
void fahrenheit_to_celsius(void) {
  printf("%-10s%10s\n", "Fahrenheit", "Celsius");
  float hesaplanan_sicaklik;
  float fahrenheit;
  for (fahrenheit = 2; fahrenheit <= 212; fahrenheit++) {
    hesaplanan_sicaklik = ((fahrenheit - 32) * 5) / 9;
    printf("%10.1f%10.1f\n", fahrenheit, hesaplanan_sicaklik);
  }
}


x86 assembly (clang, -O0):
<fahrenheit_to_celsius>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xef9(%rip),%rdi
lea    0xefd(%rip),%rsi
lea    0xf01(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xec4(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xebb(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     11b8 <fahrenheit_to_celsius+0xa8>
movss  -0x8(%rbp),%xmm0
movss  0xeb0(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xea0(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe90(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe9c(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe6b(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1141 <fahrenheit_to_celsius+0x31>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fahrenheit_to_celsius>:
push   %rbp
push   %rbx
push   %rax
lea    0xef2(%rip),%rdi
lea    0xef6(%rip),%rsi
lea    0xefa(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x2,%ebp
lea    0xeef(%rip),%rbx
nopl   0x0(%rax,%rax,1)
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
addss  0xeaa(%rip),%xmm1
mulss  0xea6(%rip),%xmm1
divss  0xea2(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
add    $0x1,%ebp
cmp    $0xd5,%ebp
jne    1140 <fahrenheit_to_celsius+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%-10s%10s\0A\00"
@.str.1 = [11 x i8] c"Fahrenheit\00"
@.str.2 = [8 x i8] c"Celsius\00"
@.str.3 = [14 x i8] c"%10.1f%10.1f\0A\00"
define void @fahrenheit_to_celsius() {
%1 = alloca float
%2 = alloca float
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store float 2.000000e+00, float* %2
br label %4
4: ; preds = %17, %0
%5 = load float, float* %2
%6 = fcmp ole float %5, 2.120000e+02
br i1 %6, label %7, label %20
7: ; preds = %4
%8 = load float, float* %2
%9 = fsub float %8, 3.200000e+01
%10 = fmul float %9, 5.000000e+00
%11 = fdiv float %10, 9.000000e+00
store float %11, float* %1
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = load float, float* %1
%15 = fpext float %14 to double
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), double %13, double %15)
br label %17
17: ; preds = %7
%18 = load float, float* %2
%19 = fadd float %18, 1.000000e+00
store float %19, float* %2
br label %4
20: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"%-10s%10s\0A\00"
@.str.1 = [11 x i8] c"Fahrenheit\00"
@.str.2 = [8 x i8] c"Celsius\00"
@.str.3 = [14 x i8] c"%10.1f%10.1f\0A\00"
define void @fahrenheit_to_celsius() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 2, %0 ], [ %11, %2 ]
%4 = sitofp i32 %3 to float
%5 = fadd float %4, -3.200000e+01
%6 = fmul float %5, 5.000000e+00
%7 = fdiv float %6, 9.000000e+00
%8 = fpext float %4 to double
%9 = fpext float %7 to double
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), double %8, double %9)
%11 = add nuw nsw i32 %3, 1
%12 = icmp eq i32 %11, 213
br i1 %12, label %13, label %2
13: ; preds = %2
ret void
}