#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 i, n, memory[10];
  for (i = 0; i < 5; i++) {
    scanf("%d", &n);
    memory[n - 1] = 1;
  }
  for (i = 0; i < 10; i++)
    if (memory[i] != 1)
      printf("%d ", i + 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    116e <main+0x4e>
lea    0xeb9(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movl   $0x1,-0x40(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11b3 <main+0x93>
movslq -0x8(%rbp),%rax
cmpl   $0x1,-0x40(%rbp,%rax,4)
je     11a0 <main+0x80>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
jmp    11a5 <main+0x85>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1175 <main+0x55>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xed2(%rip),%rbx
lea    0xc(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
movl   $0x1,0xc(%rsp,%rax,4)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
movl   $0x1,0xc(%rsp,%rax,4)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
movl   $0x1,0xc(%rsp,%rax,4)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
movl   $0x1,0xc(%rsp,%rax,4)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
movl   $0x1,0xc(%rsp,%rax,4)
cmpl   $0x1,0x10(%rsp)
jne    122c <main+0x10c>
cmpl   $0x1,0x14(%rsp)
jne    1248 <main+0x128>
cmpl   $0x1,0x18(%rsp)
jne    1264 <main+0x144>
cmpl   $0x1,0x1c(%rsp)
jne    1280 <main+0x160>
cmpl   $0x1,0x20(%rsp)
jne    129c <main+0x17c>
cmpl   $0x1,0x24(%rsp)
jne    12b8 <main+0x198>
cmpl   $0x1,0x28(%rsp)
jne    12d4 <main+0x1b4>
cmpl   $0x1,0x2c(%rsp)
jne    12f0 <main+0x1d0>
cmpl   $0x1,0x30(%rsp)
jne    130c <main+0x1ec>
cmpl   $0x1,0x34(%rsp)
je     1222 <main+0x102>
lea    0xdeb(%rip),%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret
lea    0xdd0(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x14(%rsp)
je     11bd <main+0x9d>
lea    0xdb4(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x18(%rsp)
je     11c8 <main+0xa8>
lea    0xd98(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x1c(%rsp)
je     11d3 <main+0xb3>
lea    0xd7c(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x20(%rsp)
je     11de <main+0xbe>
lea    0xd60(%rip),%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x24(%rsp)
je     11e9 <main+0xc9>
lea    0xd44(%rip),%rdi
mov    $0x6,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x28(%rsp)
je     11f4 <main+0xd4>
lea    0xd28(%rip),%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x2c(%rsp)
je     11ff <main+0xdf>
lea    0xd0c(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x30(%rsp)
je     120a <main+0xea>
lea    0xcf0(%rip),%rdi
mov    $0x9,%esi
call   1030 <printf@plt>
cmpl   $0x1,0x34(%rsp)
jne    1211 <main+0xf1>
jmp    1222 <main+0x102>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [10 x i32]* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = add nsw i32 %6, -1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %8
store i32 1, i32* %9
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%11 = load i32, i32* %1
%12 = add nsw i32 %11, -1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %13
store i32 1, i32* %14
%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 = add nsw i32 %16, -1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %18
store i32 1, i32* %19
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%21 = load i32, i32* %1
%22 = add nsw i32 %21, -1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %23
store i32 1, i32* %24
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%26 = load i32, i32* %1
%27 = add nsw i32 %26, -1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %28
store i32 1, i32* %29
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%31 = load i32, i32* %30
%32 = icmp eq i32 %31, 1
br i1 %32, label %35, label %33
33: ; preds = %0
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %35
35: ; preds = %0, %33
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%37 = load i32, i32* %36
%38 = icmp eq i32 %37, 1
br i1 %38, label %41, label %39
39: ; preds = %35
%40 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %41
41: ; preds = %39, %35
%42 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%43 = load i32, i32* %42
%44 = icmp eq i32 %43, 1
br i1 %44, label %47, label %45
45: ; preds = %41
%46 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
br label %47
47: ; preds = %45, %41
%48 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%49 = load i32, i32* %48
%50 = icmp eq i32 %49, 1
br i1 %50, label %53, label %51
51: ; preds = %47
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 4)
br label %53
53: ; preds = %51, %47
%54 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%55 = load i32, i32* %54
%56 = icmp eq i32 %55, 1
br i1 %56, label %59, label %57
57: ; preds = %53
%58 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 5)
br label %59
59: ; preds = %57, %53
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%61 = load i32, i32* %60
%62 = icmp eq i32 %61, 1
br i1 %62, label %65, label %63
63: ; preds = %59
%64 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 6)
br label %65
65: ; preds = %63, %59
%66 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%67 = load i32, i32* %66
%68 = icmp eq i32 %67, 1
br i1 %68, label %71, label %69
69: ; preds = %65
%70 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 7)
br label %71
71: ; preds = %69, %65
%72 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%73 = load i32, i32* %72
%74 = icmp eq i32 %73, 1
br i1 %74, label %77, label %75
75: ; preds = %71
%76 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 8)
br label %77
77: ; preds = %75, %71
%78 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
%79 = load i32, i32* %78
%80 = icmp eq i32 %79, 1
br i1 %80, label %83, label %81
81: ; preds = %77
%82 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 9)
br label %83
83: ; preds = %81, %77
%84 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
%85 = load i32, i32* %84
%86 = icmp eq i32 %85, 1
br i1 %86, label %89, label %87
87: ; preds = %83
%88 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 10)
br label %89
89: ; preds = %87, %83
ret i32 0
}