#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 positivos(o segundo número deve ser "
         "maior que o primeiro): ");
  scanf("%d %d", &x, &y);
  if (x > y) {
    printf("\n\tErro! Você digitou o primeiro número maior que o segundo!\n\n");
    system("pause");
    return (0);
  }
  if ((x % 2) == 0) {
    printf("\n%d\n", x);
    while (x < y) {
      printf("%d\n", (x = x + 2));
    }
  } else {
    x++;
    printf("\n%d\n", x);
    while (x < y) {
      printf("%d\n", (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    0xf07(%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    0xeed(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x4(%rbp)
jmp    123f <main+0x10f>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e5 <main+0xb5>
mov    -0x8(%rbp),%esi
lea    0xef6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11e0 <main+0xb0>
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    %esi,-0x8(%rbp)
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11b8 <main+0x88>
jmp    122c <main+0xfc>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1227 <main+0xf7>
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    %esi,-0x8(%rbp)
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11ff <main+0xcf>
jmp    122c <main+0xfc>
lea    0xe6e(%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    0xf01(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <scanf@plt>
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jle    1184 <main+0x44>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
jmp    121b <main+0xdb>
test   $0x1,%sil
jne    11cd <main+0x8d>
lea    0xed6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jge    121b <main+0xdb>
lea    0xebf(%rip),%rbx
nopl   0x0(%rax)
add    $0x2,%esi
mov    %esi,0x8(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jl     11b0 <main+0x70>
jmp    121b <main+0xdb>
add    $0x1,%esi
mov    %esi,0x8(%rsp)
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jge    121b <main+0xdb>
lea    0xe75(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x2,%esi
mov    %esi,0x8(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jl     1200 <main+0xc0>
lea    0xe3f(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [91 x i8] c"Digite dois n\C3\BAmeros inteiros positivos(o segundo n\C3\BAmero deve ser maior que o primeiro): \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [64 x i8] c"\0A\09Erro! Voc\C3\AA digitou o primeiro n\C3\BAmero maior que o segundo!\0A\0A\00"
@.str.3 = [6 x i8] c"pause\00"
@.str.4 = [5 x i8] c"\0A%d\0A\00"
@.str.5 = [4 x i8] c"%d\0A\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 ([91 x i8], [91 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 ([64 x i8], [64 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 %44
12: ; preds = %0
%13 = load i32, i32* %2
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load i32, i32* %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %17)
br label %19
19: ; preds = %23, %16
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 2
store i32 %25, i32* %2
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %25)
br label %19
27: ; preds = %19
br label %42
28: ; preds = %12
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
%31 = load i32, i32* %2
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %31)
br label %33
33: ; preds = %37, %28
%34 = load i32, i32* %2
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i32, i32* %2
%39 = add nsw i32 %38, 2
store i32 %39, i32* %2
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %39)
br label %33
41: ; preds = %33
br label %42
42: ; preds = %41, %27
%43 = 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 %44
44: ; preds = %42, %9
%45 = load i32, i32* %1
ret i32 %45
}

LLVM IR (-O2):
@.str = [91 x i8] c"Digite dois n\C3\BAmeros inteiros positivos(o segundo n\C3\BAmero 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\0A\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@str = [63 x i8] c"\0A\09Erro! Voc\C3\AA digitou o primeiro n\C3\BAmero maior que o segundo!\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 ([91 x i8], [91 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 ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
br label %40
12: ; preds = %0
%13 = and i32 %7, 1
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%17 = load i32, i32* %1
%18 = load i32, i32* %2
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %40
20: ; preds = %15, %20
%21 = phi i32 [ %24, %20 ], [ %17, %15 ]
%22 = add nsw i32 %21, 2
store i32 %22, i32* %1
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %1
%25 = load i32, i32* %2
%26 = icmp slt i32 %24, %25
br i1 %26, label %20, label %40
27: ; preds = %12
%28 = add nsw i32 %7, 1
store i32 %28, i32* %1
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %1
%31 = load i32, i32* %2
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %40
33: ; preds = %27, %33
%34 = phi i32 [ %37, %33 ], [ %30, %27 ]
%35 = add nsw i32 %34, 2
store i32 %35, i32* %1
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %35)
%37 = load i32, i32* %1
%38 = load i32, i32* %2
%39 = icmp slt i32 %37, %38
br i1 %39, label %33, label %40
40: ; preds = %33, %20, %15, %27, %10
%41 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}