#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 *);
void ex3() {
  int a[10], b[20], c[20] = {0};
  for (int k = 0; k < 10; k++) {
    printf("Vetor A:");
    scanf("%d", &a[k]);
  }
  for (int k = 0; k < 20; k++) {
    printf("Vetor B:");
    scanf("%d", &b[k]);
  }
  for (int k = 0; k < 10; k++) {
    for (int j = 0; j < 20; j++) {
      if (a[k] == b[j])
        c[j] = a[k];
    }
  }
  for (int k = 0; k < 20; k++) {
    for (int j = k + 1; j < 20; j++) {
      if (c[k] == c[j]) {
        c[j] = 0;
      }
    }
  }
  for (int k = 0; k < 20; k++) {
    if (c[k] != 0)
      printf("%d\n", c[k]);
  }
}


x86 assembly (clang, -O0):
<ex3>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
movl   $0x0,-0xd4(%rbp)
cmpl   $0xa,-0xd4(%rbp)
jge    11a5 <ex3+0x75>
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xd4(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe7d(%rip),%rdi
call   1050 <scanf@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1158 <ex3+0x28>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x14,-0xd8(%rbp)
jge    11fc <ex3+0xcc>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xd8(%rbp),%rax
lea    -0x80(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe26(%rip),%rdi
call   1050 <scanf@plt>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    11af <ex3+0x7f>
movl   $0x0,-0xdc(%rbp)
cmpl   $0xa,-0xdc(%rbp)
jge    1291 <ex3+0x161>
movl   $0x0,-0xe0(%rbp)
cmpl   $0x14,-0xe0(%rbp)
jge    1278 <ex3+0x148>
movslq -0xdc(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0xe0(%rbp),%rcx
cmp    -0x80(%rbp,%rcx,4),%eax
jne    125f <ex3+0x12f>
movslq -0xdc(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0xe0(%rbp),%rax
mov    %ecx,-0xd0(%rbp,%rax,4)
jmp    1264 <ex3+0x134>
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
jmp    121d <ex3+0xed>
jmp    127d <ex3+0x14d>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    1206 <ex3+0xd6>
movl   $0x0,-0xe4(%rbp)
cmpl   $0x14,-0xe4(%rbp)
jge    132a <ex3+0x1fa>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
cmpl   $0x14,-0xe8(%rbp)
jge    1311 <ex3+0x1e1>
movslq -0xe4(%rbp),%rax
mov    -0xd0(%rbp,%rax,4),%eax
movslq -0xe8(%rbp),%rcx
cmp    -0xd0(%rbp,%rcx,4),%eax
jne    12f8 <ex3+0x1c8>
movslq -0xe8(%rbp),%rax
movl   $0x0,-0xd0(%rbp,%rax,4)
jmp    12fd <ex3+0x1cd>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    12b7 <ex3+0x187>
jmp    1316 <ex3+0x1e6>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
jmp    129b <ex3+0x16b>
movl   $0x0,-0xec(%rbp)
cmpl   $0x14,-0xec(%rbp)
jge    138b <ex3+0x25b>
movslq -0xec(%rbp),%rax
cmpl   $0x0,-0xd0(%rbp,%rax,4)
je     1372 <ex3+0x242>
movslq -0xec(%rbp),%rax
mov    -0xd0(%rbp,%rax,4),%esi
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1377 <ex3+0x247>
mov    -0xec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xec(%rbp)
jmp    1334 <ex3+0x204>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ex3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0xead(%rip),%r15
xor    %ebx,%ebx
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea3(%rip),%r14
lea    0xc0(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc4(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc8(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xcc(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd0(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd4(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd8(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdc(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe0(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe4(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0xda5(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x50(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x54(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x58(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x5c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x60(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x64(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x68(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x6c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x70(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x74(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x78(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x7c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x80(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x84(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x88(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x90(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x94(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x98(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x9c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    0x50(%rsp),%eax
mov    0x54(%rsp),%ecx
mov    %ecx,0xbc(%rsp)
mov    0x58(%rsp),%ecx
mov    %ecx,0xb8(%rsp)
mov    0x5c(%rsp),%ecx
mov    %ecx,0xb4(%rsp)
mov    0x60(%rsp),%ecx
mov    %ecx,0xb0(%rsp)
mov    0x64(%rsp),%ecx
mov    %ecx,0xac(%rsp)
mov    0x68(%rsp),%ecx
mov    %ecx,0xa8(%rsp)
mov    0x6c(%rsp),%ecx
mov    %ecx,0xa4(%rsp)
mov    0x70(%rsp),%r13d
mov    0x74(%rsp),%ebp
mov    0x78(%rsp),%ecx
mov    0x7c(%rsp),%edx
mov    0x80(%rsp),%esi
mov    0x84(%rsp),%edi
mov    0x88(%rsp),%r8d
mov    0x8c(%rsp),%r9d
mov    0x90(%rsp),%r10d
mov    0x94(%rsp),%r11d
mov    0x98(%rsp),%r14d
mov    0x9c(%rsp),%r15d
jmp    14fe <ex3+0x3de>
nopl   (%rax)
add    $0x1,%rbx
cmp    $0xa,%rbx
je     1725 <ex3+0x605>
mov    0xc0(%rsp,%rbx,4),%r12d
cmp    %eax,%r12d
je     15f0 <ex3+0x4d0>
cmp    0xbc(%rsp),%r12d
je     1601 <ex3+0x4e1>
cmp    0xb8(%rsp),%r12d
je     1614 <ex3+0x4f4>
cmp    0xb4(%rsp),%r12d
je     1627 <ex3+0x507>
cmp    0xb0(%rsp),%r12d
je     163a <ex3+0x51a>
cmp    0xac(%rsp),%r12d
je     164d <ex3+0x52d>
cmp    0xa8(%rsp),%r12d
je     1660 <ex3+0x540>
cmp    0xa4(%rsp),%r12d
je     1673 <ex3+0x553>
cmp    %r13d,%r12d
je     1681 <ex3+0x561>
cmp    %ebp,%r12d
je     168f <ex3+0x56f>
cmp    %ecx,%r12d
je     169d <ex3+0x57d>
cmp    %edx,%r12d
je     16ab <ex3+0x58b>
cmp    %esi,%r12d
je     16b9 <ex3+0x599>
cmp    %edi,%r12d
je     16c7 <ex3+0x5a7>
cmp    %r8d,%r12d
je     16d5 <ex3+0x5b5>
cmp    %r9d,%r12d
je     16e3 <ex3+0x5c3>
cmp    %r10d,%r12d
je     16f1 <ex3+0x5d1>
cmp    %r11d,%r12d
je     16ff <ex3+0x5df>
cmp    %r14d,%r12d
je     170d <ex3+0x5ed>
cmp    %r15d,%r12d
jne    14f0 <ex3+0x3d0>
jmp    171b <ex3+0x5fb>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %eax,(%rsp)
cmp    0xbc(%rsp),%r12d
jne    151d <ex3+0x3fd>
mov    %r12d,0x4(%rsp)
cmp    0xb8(%rsp),%r12d
jne    152b <ex3+0x40b>
mov    %r12d,0x8(%rsp)
cmp    0xb4(%rsp),%r12d
jne    1539 <ex3+0x419>
mov    %r12d,0xc(%rsp)
cmp    0xb0(%rsp),%r12d
jne    1547 <ex3+0x427>
mov    %r12d,0x10(%rsp)
cmp    0xac(%rsp),%r12d
jne    1555 <ex3+0x435>
mov    %r12d,0x14(%rsp)
cmp    0xa8(%rsp),%r12d
jne    1563 <ex3+0x443>
mov    %r12d,0x18(%rsp)
cmp    0xa4(%rsp),%r12d
jne    1571 <ex3+0x451>
mov    %r12d,0x1c(%rsp)
cmp    %r13d,%r12d
jne    157a <ex3+0x45a>
mov    %r12d,0x20(%rsp)
cmp    %ebp,%r12d
jne    1583 <ex3+0x463>
mov    %r12d,0x24(%rsp)
cmp    %ecx,%r12d
jne    158c <ex3+0x46c>
mov    %r12d,0x28(%rsp)
cmp    %edx,%r12d
jne    1595 <ex3+0x475>
mov    %r12d,0x2c(%rsp)
cmp    %esi,%r12d
jne    159e <ex3+0x47e>
mov    %r12d,0x30(%rsp)
cmp    %edi,%r12d
jne    15a7 <ex3+0x487>
mov    %r12d,0x34(%rsp)
cmp    %r8d,%r12d
jne    15b0 <ex3+0x490>
mov    %r12d,0x38(%rsp)
cmp    %r9d,%r12d
jne    15b9 <ex3+0x499>
mov    %r12d,0x3c(%rsp)
cmp    %r10d,%r12d
jne    15c2 <ex3+0x4a2>
mov    %r12d,0x40(%rsp)
cmp    %r11d,%r12d
jne    15cb <ex3+0x4ab>
mov    %r12d,0x44(%rsp)
cmp    %r14d,%r12d
jne    15d4 <ex3+0x4b4>
mov    %r12d,0x48(%rsp)
cmp    %r15d,%r12d
jne    14f0 <ex3+0x3d0>
mov    %r12d,0x4c(%rsp)
jmp    14f0 <ex3+0x3d0>
mov    $0x1,%eax
xor    %ecx,%ecx
xor    %edx,%edx
jmp    173a <ex3+0x61a>
add    $0x1,%rax
cmp    $0x14,%rdx
je     1768 <ex3+0x648>
mov    %rdx,%rsi
add    $0x1,%rdx
cmp    $0x12,%rsi
ja     1730 <ex3+0x610>
mov    %rax,%rdi
nopw   0x0(%rax,%rax,1)
mov    (%rsp,%rdi,4),%ebp
cmp    %ebp,(%rsp,%rsi,4)
cmove  %ecx,%ebp
mov    %ebp,(%rsp,%rdi,4)
add    $0x1,%rdi
cmp    $0x14,%rdi
jne    1750 <ex3+0x630>
jmp    1730 <ex3+0x610>
mov    (%rsp),%esi
test   %esi,%esi
je     177d <ex3+0x65d>
lea    0x89f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
test   %esi,%esi
je     1793 <ex3+0x673>
lea    0x889(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
test   %esi,%esi
je     17a9 <ex3+0x689>
lea    0x873(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
test   %esi,%esi
je     17bf <ex3+0x69f>
lea    0x85d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%esi
test   %esi,%esi
je     17d5 <ex3+0x6b5>
lea    0x847(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
test   %esi,%esi
je     17eb <ex3+0x6cb>
lea    0x831(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%esi
test   %esi,%esi
je     1801 <ex3+0x6e1>
lea    0x81b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%esi
test   %esi,%esi
je     1817 <ex3+0x6f7>
lea    0x805(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rsp),%esi
test   %esi,%esi
je     182d <ex3+0x70d>
lea    0x7ef(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x24(%rsp),%esi
test   %esi,%esi
je     1843 <ex3+0x723>
lea    0x7d9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x28(%rsp),%esi
test   %esi,%esi
je     1859 <ex3+0x739>
lea    0x7c3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2c(%rsp),%esi
test   %esi,%esi
je     186f <ex3+0x74f>
lea    0x7ad(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x30(%rsp),%esi
test   %esi,%esi
je     1885 <ex3+0x765>
lea    0x797(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x34(%rsp),%esi
test   %esi,%esi
je     189b <ex3+0x77b>
lea    0x781(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x38(%rsp),%esi
test   %esi,%esi
je     18b1 <ex3+0x791>
lea    0x76b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x3c(%rsp),%esi
test   %esi,%esi
je     18c7 <ex3+0x7a7>
lea    0x755(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x40(%rsp),%esi
test   %esi,%esi
je     18dd <ex3+0x7bd>
lea    0x73f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x44(%rsp),%esi
test   %esi,%esi
je     18f3 <ex3+0x7d3>
lea    0x729(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x48(%rsp),%esi
test   %esi,%esi
je     1909 <ex3+0x7e9>
lea    0x713(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4c(%rsp),%esi
test   %esi,%esi
je     191f <ex3+0x7ff>
lea    0x6fd(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Vetor A:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [9 x i8] c"Vetor B:\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define void @ex3() {
%1 = alloca [10 x i32]
%2 = alloca [20 x i32]
%3 = alloca [20 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = bitcast [20 x i32]* %3 to i8*
store i32 0, i32* %4
br label %12
12: ; preds = %21, %0
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 10
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %18
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
br label %21
21: ; preds = %15
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %12
24: ; preds = %12
store i32 0, i32* %5
br label %25
25: ; preds = %34, %24
%26 = load i32, i32* %5
%27 = icmp slt i32 %26, 20
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%30 = load i32, i32* %5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 %31
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %32)
br label %34
34: ; preds = %28
%35 = load i32, i32* %5
%36 = add nsw i32 %35, 1
store i32 %36, i32* %5
br label %25
37: ; preds = %25
store i32 0, i32* %6
br label %38
38: ; preds = %68, %37
%39 = load i32, i32* %6
%40 = icmp slt i32 %39, 10
br i1 %40, label %41, label %71
41: ; preds = %38
store i32 0, i32* %7
br label %42
42: ; preds = %64, %41
%43 = load i32, i32* %7
%44 = icmp slt i32 %43, 20
br i1 %44, label %45, label %67
45: ; preds = %42
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = load i32, i32* %7
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = icmp eq i32 %49, %53
br i1 %54, label %55, label %63
55: ; preds = %45
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %7
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %61
store i32 %59, i32* %62
br label %63
63: ; preds = %55, %45
br label %64
64: ; preds = %63
%65 = load i32, i32* %7
%66 = add nsw i32 %65, 1
store i32 %66, i32* %7
br label %42
67: ; preds = %42
br label %68
68: ; preds = %67
%69 = load i32, i32* %6
%70 = add nsw i32 %69, 1
store i32 %70, i32* %6
br label %38
71: ; preds = %38
store i32 0, i32* %8
br label %72
72: ; preds = %100, %71
%73 = load i32, i32* %8
%74 = icmp slt i32 %73, 20
br i1 %74, label %75, label %103
75: ; preds = %72
%76 = load i32, i32* %8
%77 = add nsw i32 %76, 1
store i32 %77, i32* %9
br label %78
78: ; preds = %96, %75
%79 = load i32, i32* %9
%80 = icmp slt i32 %79, 20
br i1 %80, label %81, label %99
81: ; preds = %78
%82 = load i32, i32* %8
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = load i32, i32* %9
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = icmp eq i32 %85, %89
br i1 %90, label %91, label %95
91: ; preds = %81
%92 = load i32, i32* %9
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %93
store i32 0, i32* %94
br label %95
95: ; preds = %91, %81
br label %96
96: ; preds = %95
%97 = load i32, i32* %9
%98 = add nsw i32 %97, 1
store i32 %98, i32* %9
br label %78
99: ; preds = %78
br label %100
100: ; preds = %99
%101 = load i32, i32* %8
%102 = add nsw i32 %101, 1
store i32 %102, i32* %8
br label %72
103: ; preds = %72
store i32 0, i32* %10
br label %104
104: ; preds = %120, %103
%105 = load i32, i32* %10
%106 = icmp slt i32 %105, 20
br i1 %106, label %107, label %123
107: ; preds = %104
%108 = load i32, i32* %10
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %119
113: ; preds = %107
%114 = load i32, i32* %10
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %115
%117 = load i32, i32* %116
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %117)
br label %119
119: ; preds = %113, %107
br label %120
120: ; preds = %119
%121 = load i32, i32* %10
%122 = add nsw i32 %121, 1
store i32 %122, i32* %10
br label %104
123: ; preds = %104
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"Vetor A:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [9 x i8] c"Vetor B:\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define void @ex3() {
%1 = alloca [10 x i32]
%2 = alloca [20 x i32]
%3 = alloca [20 x i32]
%4 = bitcast [10 x i32]* %1 to i8*
%5 = bitcast [20 x i32]* %2 to i8*
%6 = bitcast [20 x i32]* %3 to i8*
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %29)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %32)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %35)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%38 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %38)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%41 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 1
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %41)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%44 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 2
%45 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %44)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%47 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 3
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %47)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%50 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 4
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %50)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%53 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 5
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %53)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%56 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 6
%57 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %56)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%59 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 7
%60 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %59)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%62 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 8
%63 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %62)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%65 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 9
%66 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %65)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%68 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 10
%69 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %68)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%71 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 11
%72 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %71)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%74 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 12
%75 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %74)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%77 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 13
%78 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %77)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%80 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 14
%81 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %80)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%83 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 15
%84 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %83)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%86 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 16
%87 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %86)
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%89 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 17
%90 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %89)
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%92 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 18
%93 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %92)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%95 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 19
%96 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %95)
%97 = load i32, i32* %38
%98 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 0
%99 = load i32, i32* %41
%100 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 1
%101 = load i32, i32* %44
%102 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 2
%103 = load i32, i32* %47
%104 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 3
%105 = load i32, i32* %50
%106 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 4
%107 = load i32, i32* %53
%108 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 5
%109 = load i32, i32* %56
%110 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 6
%111 = load i32, i32* %59
%112 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 7
%113 = load i32, i32* %62
%114 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 8
%115 = load i32, i32* %65
%116 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 9
%117 = load i32, i32* %68
%118 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 10
%119 = load i32, i32* %71
%120 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 11
%121 = load i32, i32* %74
%122 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 12
%123 = load i32, i32* %77
%124 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 13
%125 = load i32, i32* %80
%126 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 14
%127 = load i32, i32* %83
%128 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 15
%129 = load i32, i32* %86
%130 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 16
%131 = load i32, i32* %89
%132 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 17
%133 = load i32, i32* %92
%134 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 18
%135 = load i32, i32* %95
%136 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 19
br label %137
137: ; preds = %0, %200
%138 = phi i64 [ 0, %0 ], [ %201, %200 ]
%139 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %138
%140 = load i32, i32* %139
%141 = icmp eq i32 %140, %97
br i1 %141, label %142, label %143
142: ; preds = %137
store i32 %97, i32* %98
br label %143
143: ; preds = %137, %142
%144 = icmp eq i32 %140, %99
br i1 %144, label %145, label %146
145: ; preds = %143
store i32 %140, i32* %100
br label %146
146: ; preds = %145, %143
%147 = icmp eq i32 %140, %101
br i1 %147, label %148, label %149
148: ; preds = %146
store i32 %140, i32* %102
br label %149
149: ; preds = %148, %146
%150 = icmp eq i32 %140, %103
br i1 %150, label %151, label %152
151: ; preds = %149
store i32 %140, i32* %104
br label %152
152: ; preds = %151, %149
%153 = icmp eq i32 %140, %105
br i1 %153, label %154, label %155
154: ; preds = %152
store i32 %140, i32* %106
br label %155
155: ; preds = %154, %152
%156 = icmp eq i32 %140, %107
br i1 %156, label %157, label %158
157: ; preds = %155
store i32 %140, i32* %108
br label %158
158: ; preds = %157, %155
%159 = icmp eq i32 %140, %109
br i1 %159, label %160, label %161
160: ; preds = %158
store i32 %140, i32* %110
br label %161
161: ; preds = %160, %158
%162 = icmp eq i32 %140, %111
br i1 %162, label %163, label %164
163: ; preds = %161
store i32 %140, i32* %112
br label %164
164: ; preds = %163, %161
%165 = icmp eq i32 %140, %113
br i1 %165, label %166, label %167
166: ; preds = %164
store i32 %140, i32* %114
br label %167
167: ; preds = %166, %164
%168 = icmp eq i32 %140, %115
br i1 %168, label %169, label %170
169: ; preds = %167
store i32 %140, i32* %116
br label %170
170: ; preds = %169, %167
%171 = icmp eq i32 %140, %117
br i1 %171, label %172, label %173
172: ; preds = %170
store i32 %140, i32* %118
br label %173
173: ; preds = %172, %170
%174 = icmp eq i32 %140, %119
br i1 %174, label %175, label %176
175: ; preds = %173
store i32 %140, i32* %120
br label %176
176: ; preds = %175, %173
%177 = icmp eq i32 %140, %121
br i1 %177, label %178, label %179
178: ; preds = %176
store i32 %140, i32* %122
br label %179
179: ; preds = %178, %176
%180 = icmp eq i32 %140, %123
br i1 %180, label %181, label %182
181: ; preds = %179
store i32 %140, i32* %124
br label %182
182: ; preds = %181, %179
%183 = icmp eq i32 %140, %125
br i1 %183, label %184, label %185
184: ; preds = %182
store i32 %140, i32* %126
br label %185
185: ; preds = %184, %182
%186 = icmp eq i32 %140, %127
br i1 %186, label %187, label %188
187: ; preds = %185
store i32 %140, i32* %128
br label %188
188: ; preds = %187, %185
%189 = icmp eq i32 %140, %129
br i1 %189, label %190, label %191
190: ; preds = %188
store i32 %140, i32* %130
br label %191
191: ; preds = %190, %188
%192 = icmp eq i32 %140, %131
br i1 %192, label %193, label %194
193: ; preds = %191
store i32 %140, i32* %132
br label %194
194: ; preds = %193, %191
%195 = icmp eq i32 %140, %133
br i1 %195, label %196, label %197
196: ; preds = %194
store i32 %140, i32* %134
br label %197
197: ; preds = %196, %194
%198 = icmp eq i32 %140, %135
br i1 %198, label %199, label %200
199: ; preds = %197
store i32 %140, i32* %136
br label %200
200: ; preds = %199, %197
%201 = add nuw nsw i64 %138, 1
%202 = icmp eq i64 %201, 10
br i1 %202, label %210, label %137
203: ; preds = %217, %210
%204 = add nuw nsw i64 %212, 1
%205 = icmp eq i64 %213, 20
br i1 %205, label %206, label %210
206: ; preds = %203
%207 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 0
%208 = load i32, i32* %207
%209 = icmp eq i32 %208, 0
br i1 %209, label %228, label %226
210: ; preds = %200, %203
%211 = phi i64 [ %213, %203 ], [ 0, %200 ]
%212 = phi i64 [ %204, %203 ], [ 1, %200 ]
%213 = add nuw nsw i64 %211, 1
%214 = icmp ult i64 %211, 19
br i1 %214, label %215, label %203
215: ; preds = %210
%216 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %211
br label %217
217: ; preds = %215, %217
%218 = phi i64 [ %212, %215 ], [ %224, %217 ]
%219 = load i32, i32* %216
%220 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %218
%221 = load i32, i32* %220
%222 = icmp eq i32 %219, %221
%223 = select i1 %222, i32 0, i32 %221
store i32 %223, i32* %220
%224 = add nuw nsw i64 %218, 1
%225 = icmp eq i64 %224, 20
br i1 %225, label %203, label %217
226: ; preds = %206
%227 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %208)
br label %228
228: ; preds = %206, %226
%229 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 1
%230 = load i32, i32* %229
%231 = icmp eq i32 %230, 0
br i1 %231, label %234, label %232
232: ; preds = %228
%233 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %230)
br label %234
234: ; preds = %232, %228
%235 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 2
%236 = load i32, i32* %235
%237 = icmp eq i32 %236, 0
br i1 %237, label %240, label %238
238: ; preds = %234
%239 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %236)
br label %240
240: ; preds = %238, %234
%241 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 3
%242 = load i32, i32* %241
%243 = icmp eq i32 %242, 0
br i1 %243, label %246, label %244
244: ; preds = %240
%245 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %242)
br label %246
246: ; preds = %244, %240
%247 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 4
%248 = load i32, i32* %247
%249 = icmp eq i32 %248, 0
br i1 %249, label %252, label %250
250: ; preds = %246
%251 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %248)
br label %252
252: ; preds = %250, %246
%253 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 5
%254 = load i32, i32* %253
%255 = icmp eq i32 %254, 0
br i1 %255, label %258, label %256
256: ; preds = %252
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %254)
br label %258
258: ; preds = %256, %252
%259 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 6
%260 = load i32, i32* %259
%261 = icmp eq i32 %260, 0
br i1 %261, label %264, label %262
262: ; preds = %258
%263 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %260)
br label %264
264: ; preds = %262, %258
%265 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 7
%266 = load i32, i32* %265
%267 = icmp eq i32 %266, 0
br i1 %267, label %270, label %268
268: ; preds = %264
%269 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %266)
br label %270
270: ; preds = %268, %264
%271 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 8
%272 = load i32, i32* %271
%273 = icmp eq i32 %272, 0
br i1 %273, label %276, label %274
274: ; preds = %270
%275 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %272)
br label %276
276: ; preds = %274, %270
%277 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 9
%278 = load i32, i32* %277
%279 = icmp eq i32 %278, 0
br i1 %279, label %282, label %280
280: ; preds = %276
%281 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %278)
br label %282
282: ; preds = %280, %276
%283 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 10
%284 = load i32, i32* %283
%285 = icmp eq i32 %284, 0
br i1 %285, label %288, label %286
286: ; preds = %282
%287 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %284)
br label %288
288: ; preds = %286, %282
%289 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 11
%290 = load i32, i32* %289
%291 = icmp eq i32 %290, 0
br i1 %291, label %294, label %292
292: ; preds = %288
%293 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %290)
br label %294
294: ; preds = %292, %288
%295 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 12
%296 = load i32, i32* %295
%297 = icmp eq i32 %296, 0
br i1 %297, label %300, label %298
298: ; preds = %294
%299 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %296)
br label %300
300: ; preds = %298, %294
%301 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 13
%302 = load i32, i32* %301
%303 = icmp eq i32 %302, 0
br i1 %303, label %306, label %304
304: ; preds = %300
%305 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %302)
br label %306
306: ; preds = %304, %300
%307 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 14
%308 = load i32, i32* %307
%309 = icmp eq i32 %308, 0
br i1 %309, label %312, label %310
310: ; preds = %306
%311 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %308)
br label %312
312: ; preds = %310, %306
%313 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 15
%314 = load i32, i32* %313
%315 = icmp eq i32 %314, 0
br i1 %315, label %318, label %316
316: ; preds = %312
%317 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %314)
br label %318
318: ; preds = %316, %312
%319 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 16
%320 = load i32, i32* %319
%321 = icmp eq i32 %320, 0
br i1 %321, label %324, label %322
322: ; preds = %318
%323 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %320)
br label %324
324: ; preds = %322, %318
%325 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 17
%326 = load i32, i32* %325
%327 = icmp eq i32 %326, 0
br i1 %327, label %330, label %328
328: ; preds = %324
%329 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %326)
br label %330
330: ; preds = %328, %324
%331 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 18
%332 = load i32, i32* %331
%333 = icmp eq i32 %332, 0
br i1 %333, label %336, label %334
334: ; preds = %330
%335 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %332)
br label %336
336: ; preds = %334, %330
%337 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 19
%338 = load i32, i32* %337
%339 = icmp eq i32 %338, 0
br i1 %339, label %342, label %340
340: ; preds = %336
%341 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %338)
br label %342
342: ; preds = %340, %336
ret void
}