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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1185 <main+0x55>
movsd  0xe97(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1185 <main+0x55>
lea    0xea9(%rip),%rdi
call   1040 <printf@plt>
jmp    1251 <main+0x121>
movsd  -0x10(%rbp),%xmm0
movsd  0xe6e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11c0 <main+0x90>
movsd  0xe64(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11c0 <main+0x90>
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
jmp    124c <main+0x11c>
movsd  -0x10(%rbp),%xmm0
movsd  0xe3b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11fb <main+0xcb>
movsd  0xe31(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11fb <main+0xcb>
lea    0xe58(%rip),%rdi
call   1040 <printf@plt>
jmp    1247 <main+0x117>
movsd  -0x10(%rbp),%xmm0
movsd  0xe08(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1236 <main+0x106>
movsd  0xdfe(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1236 <main+0x106>
lea    0xe30(%rip),%rdi
call   1040 <printf@plt>
jmp    1242 <main+0x112>
lea    0xe33(%rip),%rdi
call   1040 <printf@plt>
jmp    1247 <main+0x117>
jmp    124c <main+0x11c>
jmp    1251 <main+0x121>
lea    0xe2b(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
movsd  (%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1166 <main+0x36>
movsd  0xea9(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     1166 <main+0x36>
lea    0xf0f(%rip),%rdi
jmp    11d2 <main+0xa2>
ucomisd 0xe92(%rip),%xmm0
jb     1187 <main+0x57>
movsd  0xe90(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     1187 <main+0x57>
lea    0xedc(%rip),%rdi
jmp    11d2 <main+0xa2>
ucomisd 0xe79(%rip),%xmm0
jb     11a8 <main+0x78>
movsd  0xe77(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     11a8 <main+0x78>
lea    0xea9(%rip),%rdi
jmp    11d2 <main+0xa2>
movsd  0xe68(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xe81(%rip),%rdi
lea    0xe68(%rip),%rax
cmovb  %rax,%rdi
ucomisd 0xe42(%rip),%xmm0
cmovb  %rax,%rdi
call   1030 <puts@plt>
lea    0xe46(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\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"
@.str.6 = [6 x i8] c"pause\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 ole double 0.000000e+00, %4
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = load double, double* %2
%8 = fcmp ole double %7, 2.500000e+01
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %40
11: ; preds = %6, %0
%12 = load double, double* %2
%13 = fcmp ole double 2.500000e+01, %12
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load double, double* %2
%16 = fcmp ole double %15, 5.000000e+01
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %39
19: ; preds = %14, %11
%20 = load double, double* %2
%21 = fcmp ole double 5.000000e+01, %20
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load double, double* %2
%24 = fcmp ole double %23, 7.500000e+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 %38
27: ; preds = %22, %19
%28 = load double, double* %2
%29 = fcmp ole double 7.500000e+01, %28
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load double, double* %2
%32 = fcmp ole double %31, 1.000000e+02
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %37
35: ; preds = %30, %27
%36 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
br label %38
38: ; preds = %37, %25
br label %39
39: ; preds = %38, %17
br label %40
40: ; preds = %39, %9
%41 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

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