#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*/ LC_ALL;
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int main() {
  setlocale(LC_ALL, "");
  char nome[30], sexo;
  int idade;
  printf("Insira nome: ");
  gets(nome);
  printf("Insira sexo 'F' para Feminino e 'M' para Masculino: ");
  scanf("%c", &sexo);
  printf("Insira idade: ");
  scanf("%d", &idade);
  if ((sexo == 'F' || sexo == 'f') && (idade < 25)) {
    printf("ACEITA");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
lea    0xef5(%rip),%rsi
call   1050 <setlocale@plt>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1040 <gets@plt>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movsbl -0x31(%rbp),%eax
cmp    $0x46,%eax
je     11cf <main+0x8f>
movsbl -0x31(%rbp),%eax
cmp    $0x66,%eax
jne    11e5 <main+0xa5>
cmpl   $0x19,-0x38(%rbp)
jge    11e5 <main+0xa5>
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
lea    0xf00(%rip),%rsi
call   1050 <setlocale@plt>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
lea    0x10(%rsp),%rdi
call   1040 <gets@plt>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    0xb(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xb(%rsp),%al
and    $0xdf,%al
cmp    $0x46,%al
jne    11ca <main+0x8a>
cmpl   $0x18,0xc(%rsp)
jg     11ca <main+0x8a>
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [14 x i8] c"Insira nome: \00"
@.str.2 = [53 x i8] c"Insira sexo 'F' para Feminino e 'M' para Masculino: \00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [15 x i8] c"Insira idade: \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [7 x i8] c"ACEITA\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [30 x i8]
%3 = alloca i8
%4 = alloca i32
store i32 0, i32* %1
%5 = load i32, i32* @LC_ALL
%6 = call i32 @setlocale(i32 %5, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%9 = call i32 @gets(i8* %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %3)
%12 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%14 = load i8, i8* %3
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 70
br i1 %16, label %21, label %17
17: ; preds = %0
%18 = load i8, i8* %3
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 102
br i1 %20, label %21, label %26
21: ; preds = %17, %0
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 25
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %26
26: ; preds = %24, %21, %17
ret i32 0
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [14 x i8] c"Insira nome: \00"
@.str.2 = [53 x i8] c"Insira sexo 'F' para Feminino e 'M' para Masculino: \00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [15 x i8] c"Insira idade: \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [7 x i8] c"ACEITA\00"
define i32 @main() {
%1 = alloca [30 x i8]
%2 = alloca i8
%3 = alloca i32
%4 = load i32, i32* @LC_ALL
%5 = tail call i32 @setlocale(i32 %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%7 = bitcast i32* %3 to i8*
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @gets(i8* %6)
%10 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %2)
%12 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %3)
%14 = load i8, i8* %2
%15 = and i8 %14, -33
%16 = icmp eq i8 %15, 70
%17 = load i32, i32* %3
%18 = icmp slt i32 %17, 25
%19 = select i1 %16, i1 %18, i1 false
br i1 %19, label %20, label %22
20: ; preds = %0
%21 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %22
22: ; preds = %0, %20
ret i32 0
}