#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 /*<<< orphan*/ system(char *);
int main() {
  int idade;
  printf("Digite sua idade: ");
  scanf("%d", &idade);
  if ((idade >= 16) && (idade < 18)) {
    printf("\n\nVocê pode votar se quiser!!!");
  } else if ((idade >= 18) && (idade < 60)) {
    printf("\n\nVocê deve votar. Senão deve justificar sua ausência nas "
           "eleições!");
  } else {
    printf("\n\nVocê vota se quiser!");
  }
  system("pause");
  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    0xec1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x10,-0x8(%rbp)
jl     1180 <main+0x50>
cmpl   $0x12,-0x8(%rbp)
jge    1180 <main+0x50>
lea    0xea0(%rip),%rdi
call   1040 <printf@plt>
jmp    11b6 <main+0x86>
cmpl   $0x12,-0x8(%rbp)
jl     11a5 <main+0x75>
cmpl   $0x3c,-0x8(%rbp)
jge    11a5 <main+0x75>
lea    0xe9b(%rip),%rdi
call   1040 <printf@plt>
jmp    11b1 <main+0x81>
lea    0xed3(%rip),%rdi
call   1040 <printf@plt>
jmp    11b6 <main+0x86>
lea    0xeda(%rip),%rdi
call   1030 <system@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    0xecf(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
and    $0xfffffffe,%ecx
add    $0xffffffee,%eax
cmp    $0x2a,%eax
lea    0xed2(%rip),%rax
lea    0xf14(%rip),%rdx
cmovb  %rax,%rdx
cmp    $0x10,%ecx
lea    0xe9d(%rip),%rdi
cmovne %rdx,%rdi
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Digite sua idade: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"\0A\0AVoc\C3\AA pode votar se quiser!!!\00"
@.str.3 = [73 x i8] c"\0A\0AVoc\C3\AA deve votar. Sen\C3\A3o deve justificar sua aus\C3\AAncia nas elei\C3\A7\C3\B5es!\00"
@.str.4 = [24 x i8] c"\0A\0AVoc\C3\AA vota se quiser!\00"
@.str.5 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 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 sge i32 %5, 16
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 18
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %23
12: ; preds = %7, %0
%13 = load i32, i32* %2
%14 = icmp sge i32 %13, 18
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i32, i32* %2
%17 = icmp slt i32 %16, 60
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
br label %22
20: ; preds = %15, %12
%21 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22, %10
%24 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"Digite sua idade: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"\0A\0AVoc\C3\AA pode votar se quiser!!!\00"
@.str.3 = [73 x i8] c"\0A\0AVoc\C3\AA deve votar. Sen\C3\A3o deve justificar sua aus\C3\AAncia nas elei\C3\A7\C3\B5es!\00"
@.str.4 = [24 x i8] c"\0A\0AVoc\C3\AA vota se quiser!\00"
@.str.5 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 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 = and i32 %5, -2
%7 = icmp eq i32 %6, 16
%8 = add i32 %5, -18
%9 = icmp ult i32 %8, 42
%10 = select i1 %9, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0)
%11 = select i1 %7, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %10
%12 = call i32 @printf(i8* dereferenceable(1) %11)
%13 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}