#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*/ LC_ALL;
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
main() {
  setlocale(LC_ALL, "Portuguese");
  int vetorA[100] = {10, 20, 30, 40, 50};
  int vetorB[100] = {10, 100, 200, 300, 400, 500, 600, 700, 800};
  int b;
  int a;
  int cont = 0;
  for (b = 0; b <= 8; b++)
    for (a = 0; a <= 5; a++)
      if (vetorA[a] == vetorB[b]) {
        printf("%d \n", vetorA[a]);
        cont++;
      }
  if (cont == 0) {
    printf("Não tem números iguais nos vetores");
  }
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
lea    0xe8e(%rip),%rsi
call   1060 <setlocale@plt>
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
movl   $0xa,-0x1a0(%rbp)
movl   $0x14,-0x19c(%rbp)
movl   $0x1e,-0x198(%rbp)
movl   $0x28,-0x194(%rbp)
movl   $0x32,-0x190(%rbp)
lea    -0x330(%rbp),%rdi
lea    0xe76(%rip),%rsi
mov    $0x190,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x33c(%rbp)
movl   $0x0,-0x334(%rbp)
cmpl   $0x8,-0x334(%rbp)
jg     128b <main+0x13b>
movl   $0x0,-0x338(%rbp)
cmpl   $0x5,-0x338(%rbp)
jg     1272 <main+0x122>
movslq -0x338(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
movslq -0x334(%rbp),%rcx
cmp    -0x330(%rbp,%rcx,4),%eax
jne    1259 <main+0x109>
movslq -0x338(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%esi
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    125e <main+0x10e>
mov    -0x338(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x338(%rbp)
jmp    11ff <main+0xaf>
jmp    1277 <main+0x127>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    11e8 <main+0x98>
cmpl   $0x0,-0x33c(%rbp)
jne    12a6 <main+0x156>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <getch@plt>
mov    -0x4(%rbp),%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
lea    0xebf(%rip),%rsi
call   1040 <setlocale@plt>
lea    0xebe(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1050 <getch@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@__const.main.vetorB = <{ [9 x i32], [91 x i32] }> <{ [9 x i32] [i32 10, i32 100, i32 200, i32 300, i32 400, i32 500, i32 600, i32 700, i32 800], [91 x i32] zeroinitializer }>
@.str.1 = [5 x i8] c"%d \0A\00"
@.str.2 = [37 x i8] c"N\C3\A3o tem n\C3\BAmeros iguais nos vetores\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca [100 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = load i32, i32* @LC_ALL
%8 = call i32 @setlocale(i32 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%9 = bitcast [100 x i32]* %2 to i8*
%10 = bitcast i8* %9 to <{ i32, i32, i32, i32, i32, [95 x i32] }>*
%11 = getelementptr inbounds <{ i32, i32, i32, i32, i32, [95 x i32] }>, <{ i32, i32, i32, i32, i32, [95 x i32] }>* %10, i32 0, i32 0
store i32 10, i32* %11
%12 = getelementptr inbounds <{ i32, i32, i32, i32, i32, [95 x i32] }>, <{ i32, i32, i32, i32, i32, [95 x i32] }>* %10, i32 0, i32 1
store i32 20, i32* %12
%13 = getelementptr inbounds <{ i32, i32, i32, i32, i32, [95 x i32] }>, <{ i32, i32, i32, i32, i32, [95 x i32] }>* %10, i32 0, i32 2
store i32 30, i32* %13
%14 = getelementptr inbounds <{ i32, i32, i32, i32, i32, [95 x i32] }>, <{ i32, i32, i32, i32, i32, [95 x i32] }>* %10, i32 0, i32 3
store i32 40, i32* %14
%15 = getelementptr inbounds <{ i32, i32, i32, i32, i32, [95 x i32] }>, <{ i32, i32, i32, i32, i32, [95 x i32] }>* %10, i32 0, i32 4
store i32 50, i32* %15
%16 = bitcast [100 x i32]* %3 to i8*
store i32 0, i32* %6
store i32 0, i32* %4
br label %17
17: ; preds = %47, %0
%18 = load i32, i32* %4
%19 = icmp sle i32 %18, 8
br i1 %19, label %20, label %50
20: ; preds = %17
store i32 0, i32* %5
br label %21
21: ; preds = %43, %20
%22 = load i32, i32* %5
%23 = icmp sle i32 %22, 5
br i1 %23, label %24, label %46
24: ; preds = %21
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = icmp eq i32 %28, %32
br i1 %33, label %34, label %42
34: ; preds = %24
%35 = load i32, i32* %5
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %42
42: ; preds = %34, %24
br label %43
43: ; preds = %42
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
br label %21
46: ; preds = %21
br label %47
47: ; preds = %46
%48 = load i32, i32* %4
%49 = add nsw i32 %48, 1
store i32 %49, i32* %4
br label %17
50: ; preds = %17
%51 = load i32, i32* %6
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %55
55: ; preds = %53, %50
%56 = call i32 (...) @getch()
%57 = load i32, i32* %1
ret i32 %57
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [5 x i8] c"%d \0A\00"
define i32 @main() {
%1 = load i32, i32* @LC_ALL
%2 = tail call i32 @setlocale(i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 10)
%4 = tail call i32 (...) @getch()
ret i32 0
}