#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(void) {
  double v;
  scanf("%lf", &v);
  if (v < 0) {
    printf("Fora de intervalo\n");
  } else if (v <= 25) {
    printf("Intervalo [0,25]\n");
  } else if (v <= 50) {
    printf("Intervalo (25,50]\n");
  } else if (v <= 75) {
    printf("Intervalo (50,75]\n");
  } else if (v <= 100) {
    printf("Intervalo (75,100]\n");
  } else {
    printf("Fora de intervalo\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
jbe    115e <main+0x3e>
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
jmp    120e <main+0xee>
movsd  0xe9a(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1182 <main+0x62>
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
jmp    1209 <main+0xe9>
movsd  0xe7e(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11a6 <main+0x86>
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
jmp    1204 <main+0xe4>
movsd  0xe62(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11ca <main+0xaa>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
jmp    11ff <main+0xdf>
movsd  0xe46(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11ee <main+0xce>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <main+0xda>
lea    0xe2f(%rip),%rdi
call   1030 <printf@plt>
jmp    11ff <main+0xdf>
jmp    1204 <main+0xe4>
jmp    1209 <main+0xe9>
jmp    120e <main+0xee>
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
jbe    1148 <main+0x28>
lea    0xf26(%rip),%rdi
jmp    11ab <main+0x8b>
movsd  0xeb0(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    1192 <main+0x72>
movsd  0xeaa(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    119b <main+0x7b>
movsd  0xea4(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    11a4 <main+0x84>
movsd  0xe9e(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xee7(%rip),%rax
lea    0xe98(%rip),%rdi
cmovb  %rax,%rdi
jmp    11ab <main+0x8b>
lea    0xec2(%rip),%rdi
jmp    11ab <main+0x8b>
lea    0xea7(%rip),%rdi
jmp    11ab <main+0x8b>
lea    0xe8c(%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 %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %34
8: ; preds = %0
%9 = load double, double* %2
%10 = fcmp ole double %9, 2.500000e+01
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %33
13: ; preds = %8
%14 = load double, double* %2
%15 = fcmp ole double %14, 5.000000e+01
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %32
18: ; preds = %13
%19 = load double, double* %2
%20 = fcmp ole double %19, 7.500000e+01
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %31
23: ; preds = %18
%24 = load double, double* %2
%25 = fcmp ole double %24, 1.000000e+02
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %30
28: ; preds = %23
%29 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %31
31: ; preds = %30, %21
br label %32
32: ; preds = %31, %16
br label %33
33: ; preds = %32, %11
br label %34
34: ; preds = %33, %6
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@str.6 = [19 x i8] c"Intervalo (75,100]\00"
@str.7 = [18 x i8] c"Intervalo (50,75]\00"
@str.8 = [18 x i8] c"Intervalo (25,50]\00"
@str.9 = [17 x i8] c"Intervalo [0,25]\00"
@str.10 = [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
br i1 %5, label %15, label %6
6: ; preds = %0
%7 = fcmp ugt double %4, 2.500000e+01
br i1 %7, label %8, label %15
8: ; preds = %6
%9 = fcmp ugt double %4, 5.000000e+01
br i1 %9, label %10, label %15
10: ; preds = %8
%11 = fcmp ugt double %4, 7.500000e+01
br i1 %11, label %12, label %15
12: ; preds = %10
%13 = fcmp ugt double %4, 1.000000e+02
%14 = select i1 %13, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @str.6, i64 0, i64 0)
br label %15
15: ; preds = %12, %10, %8, %6, %0
%16 = phi i8* [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.10, i64 0, i64 0), %0 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.9, i64 0, i64 0), %6 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.8, i64 0, i64 0), %8 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.7, i64 0, i64 0), %10 ], [ %14, %12 ]
%17 = call i32 @puts(i8* dereferenceable(1) %16)
ret i32 0
}