#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 /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float height;
  printf("Qual a altura da pessoa? ");
  scanf("%f", &height);
  if (height < 1.3f) {
    puts("Essa pessoa é baixíssima.");
  } else if (height < 1.6f) {
    puts("Essa pessoa é baixa.");
  } else if (height < 1.75f) {
    puts("Essa pessoa é mediana.");
  } else if (height < 1.9f) {
    puts("Essa pessoa é alta.");
  } else {
    puts("Essa pessoa é altíssima.");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movss  0xe9d(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    117e <main+0x4e>
lea    0xeb9(%rip),%rdi
call   1030 <puts@plt>
jmp    1202 <main+0xd2>
movss  0xe7e(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11a1 <main+0x71>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
jmp    11fd <main+0xcd>
movss  0xe5f(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11c4 <main+0x94>
lea    0xea5(%rip),%rdi
call   1030 <puts@plt>
jmp    11f8 <main+0xc8>
movss  0xe40(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11e7 <main+0xb7>
lea    0xe9a(%rip),%rdi
call   1030 <puts@plt>
jmp    11f3 <main+0xc3>
lea    0xe9e(%rip),%rdi
call   1030 <puts@plt>
jmp    11f8 <main+0xc8>
jmp    11fd <main+0xcd>
jmp    1202 <main+0xd2>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0xea4(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    116a <main+0x3a>
lea    0xec5(%rip),%rdi
jmp    11b3 <main+0x83>
movss  0xe92(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1180 <main+0x50>
lea    0xecb(%rip),%rdi
jmp    11b3 <main+0x83>
movss  0xe80(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1196 <main+0x66>
lea    0xecb(%rip),%rdi
jmp    11b3 <main+0x83>
movss  0xe6e(%rip),%xmm1
ucomiss %xmm0,%xmm1
lea    0xecf(%rip),%rax
lea    0xedd(%rip),%rdi
cmova  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Qual a altura da pessoa? \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [28 x i8] c"Essa pessoa \C3\A9 baix\C3\ADssima.\00"
@.str.3 = [22 x i8] c"Essa pessoa \C3\A9 baixa.\00"
@.str.4 = [24 x i8] c"Essa pessoa \C3\A9 mediana.\00"
@.str.5 = [21 x i8] c"Essa pessoa \C3\A9 alta.\00"
@.str.6 = [27 x i8] c"Essa pessoa \C3\A9 alt\C3\ADssima.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%5 = load float, float* %2
%6 = fcmp olt float %5, 0x3FF4CCCCC0000000
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
br label %29
9: ; preds = %0
%10 = load float, float* %2
%11 = fcmp olt float %10, 0x3FF99999A0000000
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
br label %28
14: ; preds = %9
%15 = load float, float* %2
%16 = fcmp olt float %15, 1.750000e+00
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %27
19: ; preds = %14
%20 = load float, float* %2
%21 = fcmp olt float %20, 0x3FFE666660000000
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
br label %26
24: ; preds = %19
%25 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
br label %27
27: ; preds = %26, %17
br label %28
28: ; preds = %27, %12
br label %29
29: ; preds = %28, %7
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"Qual a altura da pessoa? \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [28 x i8] c"Essa pessoa \C3\A9 baix\C3\ADssima.\00"
@.str.3 = [22 x i8] c"Essa pessoa \C3\A9 baixa.\00"
@.str.4 = [24 x i8] c"Essa pessoa \C3\A9 mediana.\00"
@.str.5 = [21 x i8] c"Essa pessoa \C3\A9 alta.\00"
@.str.6 = [27 x i8] c"Essa pessoa \C3\A9 alt\C3\ADssima.\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fcmp olt float %5, 0x3FF4CCCCC0000000
br i1 %6, label %14, label %7
7: ; preds = %0
%8 = fcmp olt float %5, 0x3FF99999A0000000
br i1 %8, label %14, label %9
9: ; preds = %7
%10 = fcmp olt float %5, 1.750000e+00
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = fcmp olt float %5, 0x3FFE666660000000
%13 = select i1 %12, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0)
br label %14
14: ; preds = %11, %9, %7, %0
%15 = phi i8* [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), %0 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), %9 ], [ %13, %11 ]
%16 = call i32 @puts(i8* dereferenceable(1) %15)
ret i32 0
}