#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 main() {
  for (float F = 50; F <= 150; F++) {
    printf("--------------------------------\n");
    printf("Farenheit = %.0f\nConvertido para centígrados = %.2f\n", F,
           (5.0f / 9.0f) * (F - 32.0f));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xed0(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     119b <main+0x8b>
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm2
movss  0xeaa(%rip),%xmm1
subss  %xmm1,%xmm2
movss  0xe9a(%rip),%xmm1
mulss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xeb9(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe84(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    112c <main+0x1c>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    $0x32,%ebp
lea    0xf0a(%rip),%r14
lea    0xecd(%rip),%rbx
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movss  %xmm0,0xc(%rsp)
mov    %r14,%rdi
call   1030 <puts@plt>
movss  0xc(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
addss  0xe96(%rip),%xmm1
mulss  0xe92(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
add    $0x1,%ebp
cmp    $0x97,%ebp
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [34 x i8] c"--------------------------------\0A\00"
@.str.1 = [54 x i8] c"Farenheit = %.0f\0AConvertido para cent\C3\ADgrados = %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
store float 5.000000e+01, float* %2
br label %3
3: ; preds = %15, %0
%4 = load float, float* %2
%5 = fcmp ole float %4, 1.500000e+02
br i1 %5, label %6, label %18
6: ; preds = %3
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%8 = load float, float* %2
%9 = fpext float %8 to double
%10 = load float, float* %2
%11 = fsub float %10, 3.200000e+01
%12 = fmul float 0x3FE1C71C80000000, %11
%13 = fpext float %12 to double
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0), double %9, double %13)
br label %15
15: ; preds = %6
%16 = load float, float* %2
%17 = fadd float %16, 1.000000e+00
store float %17, float* %2
br label %3
18: ; preds = %3
%19 = load i32, i32* %1
ret i32 %19
}

LLVM IR (-O2):
@.str.1 = [54 x i8] c"Farenheit = %.0f\0AConvertido para cent\C3\ADgrados = %.2f\0A\00"
@str = [33 x i8] c"--------------------------------\00"
define i32 @main() {
br label %2
1: ; preds = %2
ret i32 0
2: ; preds = %0, %2
%3 = phi i32 [ 50, %0 ], [ %11, %2 ]
%4 = sitofp i32 %3 to float
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%6 = fpext float %4 to double
%7 = fadd float %4, -3.200000e+01
%8 = fmul float %7, 0x3FE1C71C80000000
%9 = fpext float %8 to double
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0), double %6, double %9)
%11 = add nuw nsw i32 %3, 1
%12 = icmp eq i32 %11, 151
br i1 %12, label %1, label %2
}