#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 *);
void main() {
  int num;
  printf("Informe um numero inteiro qualquer: ");
  scanf("%d", &num);
  if (((num % 2 == 0) && (num > 10)) || ((num % 2 != 0) && (num < 50))) {
    printf("Sim.\n");
  } else {
    printf("Nao.");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1162 <main+0x42>
cmpl   $0xa,-0x4(%rbp)
jg     1180 <main+0x60>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1191 <main+0x71>
cmpl   $0x32,-0x4(%rbp)
jge    1191 <main+0x71>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
jmp    119d <main+0x7d>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xee1(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
and    $0xfffffffe,%edx
mov    %eax,%ecx
sub    %edx,%ecx
cmp    $0xb,%eax
jl     1169 <main+0x39>
test   %ecx,%ecx
je     1172 <main+0x42>
cmp    $0x31,%eax
jg     1180 <main+0x50>
test   %ecx,%ecx
je     1180 <main+0x50>
lea    0xeb4(%rip),%rdi
call   1030 <puts@plt>
pop    %rax
ret
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Informe um numero inteiro qualquer: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [6 x i8] c"Sim.\0A\00"
@.str.3 = [5 x i8] c"Nao.\00"
define void @main() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = srem i32 %4, 2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, i32* %1
%9 = icmp sgt i32 %8, 10
br i1 %9, label %17, label %10
10: ; preds = %7, %0
%11 = load i32, i32* %1
%12 = srem i32 %11, 2
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load i32, i32* %1
%16 = icmp slt i32 %15, 50
br i1 %16, label %17, label %19
17: ; preds = %14, %7
%18 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %21
19: ; preds = %14, %10
%20 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %21
21: ; preds = %19, %17
ret void
}

LLVM IR (-O2):
@.str = [37 x i8] c"Informe um numero inteiro qualquer: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [5 x i8] c"Nao.\00"
@str = [5 x i8] c"Sim.\00"
define void @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 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 = srem i32 %5, 2
%7 = icmp eq i32 %6, 0
%8 = icmp sgt i32 %5, 10
%9 = and i1 %8, %7
br i1 %9, label %14, label %10
10: ; preds = %0
%11 = icmp ne i32 %6, 0
%12 = icmp slt i32 %5, 50
%13 = and i1 %12, %11
br i1 %13, label %14, label %16
14: ; preds = %10, %0
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %18
16: ; preds = %10
%17 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
ret void
}