#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 /*<<< orphan*/ system(char *);
main() {
  system("title 20c_Cascallar_Autrán_Manuel");
  system("color 88");
  system("cls");
  printf("NUMEROS PARES EN COLUMNAS ATA UN NUMERO INTRODUCIDO POLO TECLADO\n");
  printf("================================================================\n");
  int a, b, x;
  printf("Introduce o n\243mero no que empeza o bucle:\n");
  scanf("%d", &x);
  printf("Introduce o n\243mero no que rematar\240 o bucle:\n");
  scanf("%d", &a);
  if (x % 2 == 0) {
    if (a >= 2) {
      for (b = x; b <= a; b = b + 2) {
        printf("%-13d", b);
        if (b % 12 == 0) {
          printf("\n");
        }
      }
    } else
      printf("Os n\243meros introducidos non son validos\n");
  } else
    printf("Os n\243meros introducidos non son validos\n");
  printf("\n");
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <system@plt>
lea    0xed1(%rip),%rdi
call   1030 <system@plt>
lea    0xece(%rip),%rdi
call   1030 <system@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf4b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xf3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2d(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1249 <main+0x119>
cmpl   $0x2,-0x8(%rbp)
jl     1236 <main+0x106>
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1231 <main+0x101>
mov    -0xc(%rbp),%esi
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    121e <main+0xee>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1223 <main+0xf3>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    11df <main+0xaf>
jmp    1244 <main+0x114>
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1257 <main+0x127>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xea5(%rip),%rdi
call   1050 <system@plt>
lea    0xebc(%rip),%rdi
call   1050 <system@plt>
lea    0xeb9(%rip),%rdi
call   1050 <system@plt>
lea    0xec0(%rip),%rdi
call   1040 <puts@plt>
lea    0xef5(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1040 <puts@plt>
lea    0xe8d(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xf34(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    0x4(%rsp),%ebx
test   $0x1,%bl
jne    1225 <main+0xd5>
mov    (%rsp),%eax
cmp    $0x2,%eax
jl     1225 <main+0xd5>
cmp    %eax,%ebx
jg     1231 <main+0xe1>
lea    0xe50(%rip),%r14
jmp    11f8 <main+0xa8>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x2,%ebx
cmp    (%rsp),%ebx
jg     1231 <main+0xe1>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
imul   $0xaaaaaaab,%ebx,%eax
add    $0x2aaaaaa8,%eax
ror    $0x2,%eax
cmp    $0x15555554,%eax
ja     11f0 <main+0xa0>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    11f0 <main+0xa0>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdf7(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [35 x i8] c"title 20c_Cascallar_Autr\C3\A1n_Manuel\00"
@.str.1 = [9 x i8] c"color 88\00"
@.str.2 = [4 x i8] c"cls\00"
@.str.3 = [66 x i8] c"NUMEROS PARES EN COLUMNAS ATA UN NUMERO INTRODUCIDO POLO TECLADO\0A\00"
@.str.4 = [66 x i8] c"================================================================\0A\00"
@.str.5 = [43 x i8] c"Introduce o n\A3mero no que empeza o bucle:\0A\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [45 x i8] c"Introduce o n\A3mero no que rematar\A0 o bucle:\0A\00"
@.str.8 = [6 x i8] c"%-13d\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [41 x i8] c"Os n\A3meros introducidos non son validos\0A\00"
@.str.11 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @system(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%14 = load i32, i32* %4
%15 = srem i32 %14, 2
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %42
17: ; preds = %0
%18 = load i32, i32* %2
%19 = icmp sge i32 %18, 2
br i1 %19, label %20, label %39
20: ; preds = %17
%21 = load i32, i32* %4
store i32 %21, i32* %3
br label %22
22: ; preds = %35, %20
%23 = load i32, i32* %3
%24 = load i32, i32* %2
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %38
26: ; preds = %22
%27 = load i32, i32* %3
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %27)
%29 = load i32, i32* %3
%30 = srem i32 %29, 12
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %34
34: ; preds = %32, %26
br label %35
35: ; preds = %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 2
store i32 %37, i32* %3
br label %22
38: ; preds = %22
br label %41
39: ; preds = %17
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %41
41: ; preds = %39, %38
br label %44
42: ; preds = %0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %44
44: ; preds = %42, %41
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%46 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%47 = load i32, i32* %1
ret i32 %47
}

LLVM IR (-O2):
@.str = [35 x i8] c"title 20c_Cascallar_Autr\C3\A1n_Manuel\00"
@.str.1 = [9 x i8] c"color 88\00"
@.str.2 = [4 x i8] c"cls\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.8 = [6 x i8] c"%-13d\00"
@.str.11 = [6 x i8] c"pause\00"
@str = [65 x i8] c"NUMEROS PARES EN COLUMNAS ATA UN NUMERO INTRODUCIDO POLO TECLADO\00"
@str.12 = [65 x i8] c"================================================================\00"
@str.13 = [42 x i8] c"Introduce o n\A3mero no que empeza o bucle:\00"
@str.14 = [44 x i8] c"Introduce o n\A3mero no que rematar\A0 o bucle:\00"
@str.16 = [40 x i8] c"Os n\A3meros introducidos non son validos\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = tail call i32 @system(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.12, i64 0, i64 0))
%8 = bitcast i32* %1 to i8*
%9 = bitcast i32* %2 to i8*
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.13, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%14 = load i32, i32* %2
%15 = and i32 %14, 1
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %33
17: ; preds = %0
%18 = load i32, i32* %1
%19 = icmp sgt i32 %18, 1
br i1 %19, label %20, label %33
20: ; preds = %17
%21 = icmp sgt i32 %14, %18
br i1 %21, label %36, label %22
22: ; preds = %20, %29
%23 = phi i32 [ %30, %29 ], [ %14, %20 ]
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %23)
%25 = srem i32 %23, 12
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 @putchar(i32 10)
br label %29
29: ; preds = %22, %27
%30 = add nsw i32 %23, 2
%31 = load i32, i32* %1
%32 = icmp sgt i32 %30, %31
br i1 %32, label %36, label %22
33: ; preds = %0, %17
%34 = phi i8* [ getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0), %0 ]
%35 = call i32 @puts(i8* dereferenceable(1) %34)
br label %36
36: ; preds = %29, %33, %20
%37 = call i32 @putchar(i32 10)
%38 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}