#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);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, x[7], c = 0, i;
  for (i = 7; i != 0; i--) {
    scanf("%d", &a);
    if (a % 2 == 0)
      x[c] = a - 1;
    else
      x[c] = a + 1;
    c++;
  }
  for (i = 0, c = 0; i <= 7; i++) {
    printf("%d\n", x[c]);
    c++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x7,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
je     11a3 <main+0x83>
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117e <main+0x5e>
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    118c <main+0x6c>
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    113d <main+0x1d>
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x7,-0x38(%rbp)
jg     11e6 <main+0xc6>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe39(%rip),%rdi
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11b1 <main+0x91>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xecb(%rip),%r12
lea    0xc(%rsp),%r13
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %ecx,%ecx
or     $0x1,%ecx
add    %eax,%ecx
mov    %ecx,0x14(%rsp)
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %ecx,%ecx
or     $0x1,%ecx
add    %eax,%ecx
mov    %ecx,0x10(%rsp)
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %ebx,%ebx
or     $0x1,%ebx
add    %eax,%ebx
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %ebp,%ebp
or     $0x1,%ebp
add    %eax,%ebp
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %r14d,%r14d
or     $0x1,%r14d
add    %eax,%r14d
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %r15d,%r15d
or     $0x1,%r15d
add    %eax,%r15d
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
cmp    $0x1,%ecx
sbb    %r12d,%r12d
or     $0x1,%r12d
add    %eax,%r12d
lea    0xddf(%rip),%r13
mov    %r13,%rdi
mov    0x14(%rsp),%esi
call   1030 <printf@plt>
mov    %r13,%rdi
mov    0x10(%rsp),%esi
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r14d,%esi
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r15d,%esi
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r12d,%esi
call   1030 <printf@plt>
mov    %r13,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [7 x i32]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 7, i32* %5
br label %6
6: ; preds = %29, %0
%7 = load i32, i32* %5
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %32
9: ; preds = %6
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = srem i32 %11, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %9
%15 = load i32, i32* %2
%16 = sub nsw i32 %15, 1
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 %18
store i32 %16, i32* %19
br label %26
20: ; preds = %9
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
%23 = load i32, i32* %4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 %24
store i32 %22, i32* %25
br label %26
26: ; preds = %20, %14
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %29
29: ; preds = %26
%30 = load i32, i32* %5
%31 = add nsw i32 %30, -1
store i32 %31, i32* %5
br label %6
32: ; preds = %6
store i32 0, i32* %5
store i32 0, i32* %4
br label %33
33: ; preds = %44, %32
%34 = load i32, i32* %5
%35 = icmp sle i32 %34, 7
br i1 %35, label %36, label %47
36: ; preds = %33
%37 = load i32, i32* %4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 %38
%40 = load i32, i32* %39
%41 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 1
store i32 %43, i32* %4
br label %44
44: ; preds = %36
%45 = load i32, i32* %5
%46 = add nsw i32 %45, 1
store i32 %46, i32* %5
br label %33
47: ; preds = %33
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = and i32 %4, 1
%6 = icmp eq i32 %5, 0
%7 = select i1 %6, i32 -1, i32 1
%8 = add nsw i32 %4, %7
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = and i32 %10, 1
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i32 -1, i32 1
%14 = add nsw i32 %10, %13
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%16 = load i32, i32* %1
%17 = and i32 %16, 1
%18 = icmp eq i32 %17, 0
%19 = select i1 %18, i32 -1, i32 1
%20 = add nsw i32 %16, %19
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%22 = load i32, i32* %1
%23 = and i32 %22, 1
%24 = icmp eq i32 %23, 0
%25 = select i1 %24, i32 -1, i32 1
%26 = add nsw i32 %22, %25
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%28 = load i32, i32* %1
%29 = and i32 %28, 1
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i32 -1, i32 1
%32 = add nsw i32 %28, %31
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%34 = load i32, i32* %1
%35 = and i32 %34, 1
%36 = icmp eq i32 %35, 0
%37 = select i1 %36, i32 -1, i32 1
%38 = add nsw i32 %34, %37
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%40 = load i32, i32* %1
%41 = and i32 %40, 1
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i32 -1, i32 1
%44 = add nsw i32 %40, %43
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%46 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%47 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%48 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%49 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%50 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %38)
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %44)
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 poison)
ret i32 0
}