#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 *, int *);
int main() {
  int num;
  printf("Insira um número: ");
  scanf("%d", &num);
  if (num < -10 || (num >= 5 && num < 45) || (num > 120 && num <= 245)) {
    puts("O número encontra-se nos intervalos.");
  } else {
    puts("O número não se encontra nos intervalos.");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0xfffffff6,-0x8(%rbp)
jl     1190 <main+0x60>
cmpl   $0x5,-0x8(%rbp)
jl     1179 <main+0x49>
cmpl   $0x2d,-0x8(%rbp)
jl     1190 <main+0x60>
cmpl   $0x78,-0x8(%rbp)
jle    11a1 <main+0x71>
cmpl   $0xf5,-0x8(%rbp)
jg     11a1 <main+0x71>
lea    0xe80(%rip),%rdi
call   1030 <puts@plt>
jmp    11ad <main+0x7d>
lea    0xe95(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xed0(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
lea    -0x5(%rax),%ecx
cmp    $0x28,%ecx
lea    0xeb8(%rip),%rcx
lea    0xed7(%rip),%rdi
cmovb  %rcx,%rdi
cmp    $0xfffffff6,%eax
cmovl  %rcx,%rdi
add    $0xffffff87,%eax
cmp    $0x7d,%eax
cmovb  %rcx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Insira um n\C3\BAmero: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [38 x i8] c"O n\C3\BAmero encontra-se nos intervalos.\00"
@.str.3 = [43 x i8] c"O n\C3\BAmero n\C3\A3o se encontra nos intervalos.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 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), i32* %2)
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, -10
br i1 %6, label %19, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp sge i32 %8, 5
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 45
br i1 %12, label %19, label %13
13: ; preds = %10, %7
%14 = load i32, i32* %2
%15 = icmp sgt i32 %14, 120
br i1 %15, label %16, label %21
16: ; preds = %13
%17 = load i32, i32* %2
%18 = icmp sle i32 %17, 245
br i1 %18, label %19, label %21
19: ; preds = %16, %10, %0
%20 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
br label %23
21: ; preds = %16, %13
%22 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Insira um n\C3\BAmero: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [38 x i8] c"O n\C3\BAmero encontra-se nos intervalos.\00"
@.str.3 = [43 x i8] c"O n\C3\BAmero n\C3\A3o se encontra nos intervalos.\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 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), i32* %1)
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, -10
%7 = add i32 %5, -5
%8 = icmp ult i32 %7, 40
%9 = or i1 %6, %8
%10 = add i32 %5, -121
%11 = icmp ult i32 %10, 125
%12 = or i1 %11, %9
%13 = select i1 %12, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0)
%14 = call i32 @puts(i8* dereferenceable(1) %13)
ret i32 0
}