#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 main(void) {
  int i, x, y;
  for (i = 1; i <= 999; i++) {
    scanf("%d%d", &x, &y);
    if (x == y) {
      break;
    } else if (y > x) {
      printf("Crescente\n");
    } else {
      printf("Decrescente\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x3e7,-0x8(%rbp)
jg     11a9 <main+0x89>
lea    0xeb6(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1168 <main+0x48>
jmp    11a9 <main+0x89>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1185 <main+0x65>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
jmp    1191 <main+0x71>
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
jmp    1196 <main+0x76>
jmp    119b <main+0x7b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x3e7,%ebp
lea    0xec9(%rip),%r14
lea    0x4(%rsp),%r15
mov    %rsp,%rbx
lea    0xecb(%rip),%r12
lea    0xeb8(%rip),%r13
jmp    115a <main+0x3a>
nop
call   1030 <puts@plt>
add    $0xffffffff,%ebp
je     117d <main+0x5d>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ecx
cmp    %ecx,%eax
je     117d <main+0x5d>
mov    %r12,%rdi
jl     1150 <main+0x30>
mov    %r13,%rdi
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [11 x i8] c"Crescente\0A\00"
@.str.2 = [13 x i8] c"Decrescente\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %5
5: ; preds = %24, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 999
br i1 %7, label %8, label %27
8: ; preds = %5
%9 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %8
br label %27
14: ; preds = %8
%15 = load i32, i32* %4
%16 = load i32, i32* %3
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %14
%21 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22
br label %24
24: ; preds = %23
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %5
27: ; preds = %13, %5
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@str = [12 x i8] c"Decrescente\00"
@str.3 = [10 x i8] c"Crescente\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
br label %5
5: ; preds = %0, %11
%6 = phi i32 [ 1, %0 ], [ %15, %11 ]
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp eq i32 %8, %9
br i1 %10, label %17, label %11
11: ; preds = %5
%12 = icmp sgt i32 %9, %8
%13 = select i1 %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0)
%14 = call i32 @puts(i8* dereferenceable(1) %13)
%15 = add nuw nsw i32 %6, 1
%16 = icmp eq i32 %15, 1000
br i1 %16, label %17, label %5
17: ; preds = %5, %11
ret i32 0
}