#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 *);
int /*<<< orphan*/ system(char *);
int main() {
  int x, y;
  printf("Digite dois números inteiros, onde o segundo numero deve ser maior "
         "que o primeiro: ");
  scanf("%d %d", &x, &y);
  if (x > y) {
    printf("\n\nErro: o segundo numero deve ser maior que o primeiro!!!\n\n");
    system("pause");
    return (0);
  }
  if ((x % 2) != 0) {
    while (x <= y) {
      printf("\n%d.", x);
      x = x + 2;
    }
  } else {
    x++;
    while (x <= y) {
      printf("\n%d.", x);
      x = x + 2;
    }
  }
  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
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf01(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1193 <main+0x63>
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x4(%rbp)
jmp    1228 <main+0xf8>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11dc <main+0xac>
jmp    11ac <main+0x7c>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11d7 <main+0xa7>
mov    -0x8(%rbp),%esi
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11ac <main+0x7c>
jmp    1215 <main+0xe5>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1210 <main+0xe0>
mov    -0x8(%rbp),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11e5 <main+0xb5>
jmp    1215 <main+0xe5>
lea    0xe7b(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xefb(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <scanf@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%ecx
cmp    %ecx,%esi
jle    1183 <main+0x43>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
jmp    11eb <main+0xab>
test   $0x1,%sil
jne    11bf <main+0x7f>
lea    0x1(%rsi),%eax
mov    %eax,0x8(%rsp)
cmp    %ecx,%esi
jge    11eb <main+0xab>
lea    0xec6(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%eax
add    $0x2,%eax
mov    %eax,0x8(%rsp)
cmp    0xc(%rsp),%eax
jle    11a0 <main+0x60>
jmp    11eb <main+0xab>
lea    0xe9b(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
add    $0x2,%esi
mov    %esi,0x8(%rsp)
cmp    0xc(%rsp),%esi
jle    11d0 <main+0x90>
lea    0xe69(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [85 x i8] c"Digite dois n\C3\BAmeros inteiros, onde o segundo numero deve ser maior que o primeiro: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [60 x i8] c"\0A\0AErro: o segundo numero deve ser maior que o primeiro!!!\0A\0A\00"
@.str.3 = [6 x i8] c"pause\00"
@.str.4 = [5 x i8] c"\0A%d.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %42
12: ; preds = %0
%13 = load i32, i32* %2
%14 = srem i32 %13, 2
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %27
16: ; preds = %12
br label %17
17: ; preds = %21, %16
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = load i32, i32* %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 2
store i32 %25, i32* %2
br label %17
26: ; preds = %17
br label %40
27: ; preds = %12
%28 = load i32, i32* %2
%29 = add nsw i32 %28, 1
store i32 %29, i32* %2
br label %30
30: ; preds = %34, %27
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, i32* %2
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %35)
%37 = load i32, i32* %2
%38 = add nsw i32 %37, 2
store i32 %38, i32* %2
br label %30
39: ; preds = %30
br label %40
40: ; preds = %39, %26
%41 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %42
42: ; preds = %40, %9
%43 = load i32, i32* %1
ret i32 %43
}

LLVM IR (-O2):
@.str = [85 x i8] c"Digite dois n\C3\BAmeros inteiros, onde o segundo numero deve ser maior que o primeiro: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.3 = [6 x i8] c"pause\00"
@.str.4 = [5 x i8] c"\0A%d.\00"
@str = [59 x i8] c"\0A\0AErro: o segundo numero deve ser maior que o primeiro!!!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str, i64 0, i64 0))
br label %32
12: ; preds = %0
%13 = and i32 %7, 1
%14 = icmp eq i32 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %12, %15
%16 = phi i32 [ %19, %15 ], [ %7, %12 ]
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 2
store i32 %19, i32* %1
%20 = load i32, i32* %2
%21 = icmp sgt i32 %19, %20
br i1 %21, label %32, label %15
22: ; preds = %12
%23 = add nuw nsw i32 %7, 1
store i32 %23, i32* %1
%24 = icmp slt i32 %7, %8
br i1 %24, label %25, label %32
25: ; preds = %22, %25
%26 = phi i32 [ %29, %25 ], [ %23, %22 ]
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %1
%29 = add nsw i32 %28, 2
store i32 %29, i32* %1
%30 = load i32, i32* %2
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %25
32: ; preds = %15, %25, %22, %10
%33 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}