#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 *, int *);
int main() {
  int idade;
  scanf("%d", &idade);
  if (idade < 16) {
    printf("NAO ELEITOR\n");
  }
  if (idade >= 18 && idade < 65) {
    printf("OBRIGATORIO\n");
  }
  if ((idade >= 16 && idade < 18) || (idade >= 65)) {
    printf("FACULTATIVO\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x10,-0x8(%rbp)
jge    1155 <main+0x35>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x12,-0x8(%rbp)
jl     1175 <main+0x55>
cmpl   $0x41,-0x8(%rbp)
jge    1175 <main+0x55>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x10,-0x8(%rbp)
jl     1189 <main+0x69>
cmpl   $0x12,-0x8(%rbp)
jl     1193 <main+0x73>
cmpl   $0x41,-0x8(%rbp)
jl     119f <main+0x7f>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0xf,%eax
jg     114b <main+0x2b>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x12(%rax),%ecx
cmp    $0x2e,%ecx
ja     1163 <main+0x43>
lea    0xeb5(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x40,%eax
jg     1170 <main+0x50>
and    $0xfffffffe,%eax
cmp    $0x10,%eax
jne    117c <main+0x5c>
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [13 x i8] c"NAO ELEITOR\0A\00"
@.str.2 = [13 x i8] c"OBRIGATORIO\0A\00"
@.str.3 = [13 x i8] c"FACULTATIVO\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 16
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 18
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp slt i32 %12, 65
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %11, %8
%17 = load i32, i32* %2
%18 = icmp sge i32 %17, 16
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, i32* %2
%21 = icmp slt i32 %20, 18
br i1 %21, label %25, label %22
22: ; preds = %19, %16
%23 = load i32, i32* %2
%24 = icmp sge i32 %23, 65
br i1 %24, label %25, label %27
25: ; preds = %22, %19
%26 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %22
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [12 x i8] c"FACULTATIVO\00"
@str.4 = [12 x i8] c"OBRIGATORIO\00"
@str.5 = [12 x i8] c"NAO ELEITOR\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 16
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%8 = load i32, i32* %1
br label %9
9: ; preds = %6, %0
%10 = phi i32 [ %8, %6 ], [ %4, %0 ]
%11 = add i32 %10, -18
%12 = icmp ult i32 %11, 47
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.4, i64 0, i64 0))
%15 = load i32, i32* %1
br label %16
16: ; preds = %13, %9
%17 = phi i32 [ %15, %13 ], [ %10, %9 ]
%18 = and i32 %17, -2
%19 = icmp eq i32 %18, 16
%20 = icmp sgt i32 %17, 64
%21 = or i1 %20, %19
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
br label %24
24: ; preds = %16, %22
ret i32 0
}