#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 *, float *);
int main(int argc, char const *argv[]) {
  float number;
  scanf("%f", &number);
  if (number >= 0 && number <= 25) {
    printf("Intervalo [0,25]\n");
  } else if (number > 25 && number <= 50) {
    printf("Intervalo (25,50]\n");
  } else if (number > 50 && number <= 75) {
    printf("Intervalo (50,75]\n");
  } else if (number > 75 && number <= 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    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     117a <main+0x5a>
movss  0xea1(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     117a <main+0x5a>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
jmp    1240 <main+0x120>
movss  -0x14(%rbp),%xmm0
movss  0xe79(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11b3 <main+0x93>
movss  0xe6c(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     11b3 <main+0x93>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x11b>
movss  -0x14(%rbp),%xmm0
movss  0xe44(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11ec <main+0xcc>
movss  0xe37(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     11ec <main+0xcc>
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
jmp    1236 <main+0x116>
movss  -0x14(%rbp),%xmm0
movss  0xe0f(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1225 <main+0x105>
movss  0xe02(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     1225 <main+0x105>
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
jmp    1231 <main+0x111>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
jmp    1236 <main+0x116>
jmp    123b <main+0x11b>
jmp    1240 <main+0x120>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1156 <main+0x36>
movss  0xeb8(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     1156 <main+0x36>
lea    0xf08(%rip),%rdi
jmp    11bc <main+0x9c>
ucomiss 0xea3(%rip),%xmm0
jbe    1175 <main+0x55>
movss  0xe9d(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     1175 <main+0x55>
lea    0xed7(%rip),%rdi
jmp    11bc <main+0x9c>
ucomiss 0xe88(%rip),%xmm0
jbe    1194 <main+0x74>
movss  0xe82(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     1194 <main+0x74>
lea    0xea6(%rip),%rdi
jmp    11bc <main+0x9c>
movss  0xe70(%rip),%xmm1
ucomiss %xmm0,%xmm1
lea    0xe7f(%rip),%rdi
lea    0xe66(%rip),%rax
cmovb  %rax,%rdi
ucomiss 0xe50(%rip),%xmm0
cmovbe %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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