#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 main() {
  int high;
  printf("Ingrese un numero entre el 11 y el 200: ");
  scanf("%d", &high);
  if (high < 10 || high > 200) {
    printf("El numero ingresado no entra dentro del rango\n");
    return 1;
  }
  printf("\nNumeros pares entre el %d y el 10:\n", high);
  high = (high % 2 == 0) ? high : high - 1;
  while (high >= 10) {
    if (high > 10)
      printf("%d, ", high);
    else
      printf("%d\n\n", high);
    high -= 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xa,-0x8(%rbp)
jl     1164 <main+0x44>
cmpl   $0xc8,-0x8(%rbp)
jle    117e <main+0x5e>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    120d <main+0xed>
mov    -0x8(%rbp),%esi
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ae <main+0x8e>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    11b7 <main+0x97>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jl     1206 <main+0xe6>
cmpl   $0xa,-0x8(%rbp)
jle    11e7 <main+0xc7>
mov    -0x8(%rbp),%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11f8 <main+0xd8>
mov    -0x8(%rbp),%esi
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11bd <main+0x9d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%esi
lea    -0xc9(%rsi),%eax
cmp    $0xffffff40,%eax
ja     1179 <main+0x49>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
jmp    11db <main+0xab>
lea    0xeac(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
and    $0xfffffffe,%esi
mov    %esi,0x4(%rsp)
cmp    $0xa,%esi
jl     11db <main+0xab>
lea    0xeb8(%rip),%r14
lea    0xeac(%rip),%rbx
jmp    11cf <main+0x9f>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
lea    -0x2(%rax),%esi
mov    %esi,0x4(%rsp)
cmp    $0xb,%eax
jle    11d9 <main+0xa9>
cmp    $0xa,%esi
je     11b0 <main+0x80>
mov    %rbx,%rdi
jmp    11b8 <main+0x88>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [41 x i8] c"Ingrese un numero entre el 11 y el 200: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [47 x i8] c"El numero ingresado no entra dentro del rango\0A\00"
@.str.3 = [37 x i8] c"\0ANumeros pares entre el %d y el 10:\0A\00"
@.str.4 = [5 x i8] c"%d, \00"
@.str.5 = [5 x i8] c"%d\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 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* %2)
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 10
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 200
br i1 %9, label %10, label %12
10: ; preds = %7, %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %41
12: ; preds = %7
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %2
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = load i32, i32* %2
br label %23
20: ; preds = %12
%21 = load i32, i32* %2
%22 = sub nsw i32 %21, 1
br label %23
23: ; preds = %20, %18
%24 = phi i32 [ %19, %18 ], [ %22, %20 ]
store i32 %24, i32* %2
br label %25
25: ; preds = %37, %23
%26 = load i32, i32* %2
%27 = icmp sge i32 %26, 10
br i1 %27, label %28, label %40
28: ; preds = %25
%29 = load i32, i32* %2
%30 = icmp sgt i32 %29, 10
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i32, i32* %2
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %32)
br label %37
34: ; preds = %28
%35 = load i32, i32* %2
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %34, %31
%38 = load i32, i32* %2
%39 = sub nsw i32 %38, 2
store i32 %39, i32* %2
br label %25
40: ; preds = %25
store i32 0, i32* %1
br label %41
41: ; preds = %40, %10
%42 = load i32, i32* %1
ret i32 %42
}

LLVM IR (-O2):
@.str = [41 x i8] c"Ingrese un numero entre el 11 y el 200: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [37 x i8] c"\0ANumeros pares entre el %d y el 10:\0A\00"
@.str.4 = [5 x i8] c"%d, \00"
@.str.5 = [5 x i8] c"%d\0A\0A\00"
@str = [46 x i8] c"El numero ingresado no entra dentro del rango\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 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 = add i32 %5, -201
%7 = icmp ult i32 %6, -191
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
br label %26
10: ; preds = %0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %5)
%12 = load i32, i32* %1
%13 = and i32 %12, -2
store i32 %13, i32* %1
%14 = icmp sgt i32 %13, 9
br i1 %14, label %15, label %26
15: ; preds = %10, %22
%16 = phi i32 [ %24, %22 ], [ %13, %10 ]
%17 = icmp eq i32 %16, 10
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %16)
br label %22
20: ; preds = %15
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 10)
br label %22
22: ; preds = %20, %18
%23 = load i32, i32* %1
%24 = add nsw i32 %23, -2
store i32 %24, i32* %1
%25 = icmp sgt i32 %23, 11
br i1 %25, label %15, label %26
26: ; preds = %22, %10, %8
%27 = phi i32 [ 1, %8 ], [ 0, %10 ], [ 0, %22 ]
ret i32 %27
}