#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*/ scanf(char *, double *);
int main() {
  double n;
  scanf("%lf", &n);
  if (n < 0 || n > 100) {
    printf("Fora de intervalo\n");
  } else if (n >= 0 && n <= 25) {
    printf("Intervalo [0,25]\n");
  } else if (n >= 25 && n <= 50) {
    printf("Intervalo (25,50]\n");
  } else if (n >= 50 && n <= 75) {
    printf("Intervalo (50,75]\n");
  } else if (n >= 75 && n <= 100) {
    printf("Intervalo (75,100]\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeea(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
ja     1164 <main+0x44>
movsd  -0x10(%rbp),%xmm0
movsd  0xea6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1175 <main+0x55>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
jmp    126b <main+0x14b>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     11ab <main+0x8b>
movsd  0xe79(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11ab <main+0x8b>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
jmp    1266 <main+0x146>
movsd  -0x10(%rbp),%xmm0
movsd  0xe50(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11e6 <main+0xc6>
movsd  0xe46(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11e6 <main+0xc6>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
jmp    1261 <main+0x141>
movsd  -0x10(%rbp),%xmm0
movsd  0xe1d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1221 <main+0x101>
movsd  0xe13(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1221 <main+0x101>
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
jmp    125c <main+0x13c>
movsd  -0x10(%rbp),%xmm0
movsd  0xdea(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1257 <main+0x137>
movsd  0xdc0(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1257 <main+0x137>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
jmp    125c <main+0x13c>
jmp    1261 <main+0x141>
jmp    1266 <main+0x146>
jmp    126b <main+0x14b>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
lea    0xf28(%rip),%rdi
ja     11da <main+0xba>
ucomisd 0xeae(%rip),%xmm0
ja     11da <main+0xba>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1179 <main+0x59>
movsd  0xe9e(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     1179 <main+0x59>
lea    0xee4(%rip),%rdi
jmp    11da <main+0xba>
ucomisd 0xe87(%rip),%xmm0
jb     119a <main+0x7a>
movsd  0xe85(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     119a <main+0x7a>
lea    0xeb1(%rip),%rdi
jmp    11da <main+0xba>
ucomisd 0xe6e(%rip),%xmm0
jb     11bb <main+0x9b>
movsd  0xe6c(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     11bb <main+0x9b>
lea    0xe7e(%rip),%rdi
jmp    11da <main+0xba>
ucomisd 0xe55(%rip),%xmm0
jb     11df <main+0xbf>
movsd  0xe33(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     11df <main+0xbf>
lea    0xe4a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [19 x i8] c"Fora de intervalo\0A\00"
@.str.2 = [18 x i8] c"Intervalo [0,25]\0A\00"
@.str.3 = [19 x i8] c"Intervalo (25,50]\0A\00"
@.str.4 = [19 x i8] c"Intervalo (50,75]\0A\00"
@.str.5 = [20 x i8] c"Intervalo (75,100]\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %2)
%4 = load double, double* %2
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = load double, double* %2
%8 = fcmp ogt double %7, 1.000000e+02
br i1 %8, label %9, label %11
9: ; preds = %6, %0
%10 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %47
11: ; preds = %6
%12 = load double, double* %2
%13 = fcmp oge double %12, 0.000000e+00
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load double, double* %2
%16 = fcmp ole double %15, 2.500000e+01
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %46
19: ; preds = %14, %11
%20 = load double, double* %2
%21 = fcmp oge double %20, 2.500000e+01
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load double, double* %2
%24 = fcmp ole double %23, 5.000000e+01
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %45
27: ; preds = %22, %19
%28 = load double, double* %2
%29 = fcmp oge double %28, 5.000000e+01
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load double, double* %2
%32 = fcmp ole double %31, 7.500000e+01
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %44
35: ; preds = %30, %27
%36 = load double, double* %2
%37 = fcmp oge double %36, 7.500000e+01
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = load double, double* %2
%40 = fcmp ole double %39, 1.000000e+02
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %43
43: ; preds = %41, %38, %35
br label %44
44: ; preds = %43, %33
br label %45
45: ; preds = %44, %25
br label %46
46: ; preds = %45, %17
br label %47
47: ; preds = %46, %9
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@str = [19 x i8] c"Intervalo (75,100]\00"
@str.6 = [18 x i8] c"Intervalo (50,75]\00"
@str.7 = [18 x i8] c"Intervalo (25,50]\00"
@str.8 = [17 x i8] c"Intervalo [0,25]\00"
@str.9 = [18 x i8] c"Fora de intervalo\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%4 = load double, double* %1
%5 = fcmp olt double %4, 0.000000e+00
%6 = fcmp ogt double %4, 1.000000e+02
%7 = or i1 %5, %6
br i1 %7, label %24, label %8
8: ; preds = %0
%9 = fcmp oge double %4, 0.000000e+00
%10 = fcmp ole double %4, 2.500000e+01
%11 = and i1 %9, %10
br i1 %11, label %24, label %12
12: ; preds = %8
%13 = fcmp oge double %4, 2.500000e+01
%14 = fcmp ole double %4, 5.000000e+01
%15 = and i1 %13, %14
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = fcmp oge double %4, 5.000000e+01
%18 = fcmp ole double %4, 7.500000e+01
%19 = and i1 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = fcmp oge double %4, 7.500000e+01
%22 = fcmp ole double %4, 1.000000e+02
%23 = and i1 %21, %22
br i1 %23, label %24, label %27
24: ; preds = %20, %16, %12, %8, %0
%25 = phi i8* [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.9, i64 0, i64 0), %0 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.8, i64 0, i64 0), %8 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.7, i64 0, i64 0), %12 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.6, i64 0, i64 0), %16 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0), %20 ]
%26 = call i32 @puts(i8* dereferenceable(1) %25)
br label %27
27: ; preds = %24, %20
ret i32 0
}