#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main() {
  int vetor[10];
  int tamanho;
  for (tamanho = 0; tamanho < 10; tamanho++) {
    printf("digite o valor da posição %d\n", tamanho);
    fflush(stdin);
    scanf("%d", &vetor[tamanho]);
  }
  for (tamanho = 0; tamanho < 10; tamanho++) {
    printf("vetor [%d]\n", vetor[tamanho]);
  }
  for (tamanho = 0; tamanho < 9; tamanho++) {
    int i;
    for (i = tamanho; i < 9; i++) {
      if (vetor[tamanho] > vetor[i + 1]) {
        int valorMaior = vetor[tamanho];
        int valorMenor = vetor[i + 1];
        vetor[tamanho] = valorMenor;
        vetor[i + 1] = valorMaior;
      }
    }
  }
  printf("\nvetor ordenado \n");
  for (tamanho = 0; tamanho < 10; tamanho++) {
    printf("vetor [%d]\n", vetor[tamanho]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1198 <main+0x68>
mov    -0x34(%rbp),%esi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe9b(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1146 <main+0x16>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    11cd <main+0x9d>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    119f <main+0x6f>
movl   $0x0,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    1263 <main+0x133>
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x9,-0x38(%rbp)
jge    1250 <main+0x120>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jle    123d <main+0x10d>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    1242 <main+0x112>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11e4 <main+0xb4>
jmp    1255 <main+0x125>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d4 <main+0xa4>
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    12a6 <main+0x176>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1278 <main+0x148>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
lea    0xeb0(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e85(%rip),%r15
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0xeae(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%edi
call   1050 <fflush@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    (%rsp),%esi
lea    0xd58(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%ecx
mov    0x4(%rsp),%eax
cmp    %eax,%ecx
jle    1367 <main+0x227>
mov    %eax,(%rsp)
mov    %ecx,0x4(%rsp)
jmp    1369 <main+0x229>
mov    %ecx,%eax
mov    0x8(%rsp),%ecx
cmp    %ecx,%eax
jle    137a <main+0x23a>
mov    %ecx,(%rsp)
mov    %eax,0x8(%rsp)
jmp    137c <main+0x23c>
mov    %eax,%ecx
mov    0xc(%rsp),%eax
cmp    %eax,%ecx
jle    138d <main+0x24d>
mov    %eax,(%rsp)
mov    %ecx,0xc(%rsp)
jmp    138f <main+0x24f>
mov    %ecx,%eax
mov    0x10(%rsp),%ecx
cmp    %ecx,%eax
jle    13a0 <main+0x260>
mov    %ecx,(%rsp)
mov    %eax,0x10(%rsp)
jmp    13a2 <main+0x262>
mov    %eax,%ecx
mov    0x14(%rsp),%eax
cmp    %eax,%ecx
jle    13b3 <main+0x273>
mov    %eax,(%rsp)
mov    %ecx,0x14(%rsp)
jmp    13b5 <main+0x275>
mov    %ecx,%eax
mov    0x18(%rsp),%ecx
cmp    %ecx,%eax
jle    13c6 <main+0x286>
mov    %ecx,(%rsp)
mov    %eax,0x18(%rsp)
jmp    13c8 <main+0x288>
mov    %eax,%ecx
mov    0x1c(%rsp),%eax
cmp    %eax,%ecx
jle    13d9 <main+0x299>
mov    %eax,(%rsp)
mov    %ecx,0x1c(%rsp)
jmp    13db <main+0x29b>
mov    %ecx,%eax
mov    0x20(%rsp),%ecx
cmp    %ecx,%eax
jle    13ec <main+0x2ac>
mov    %ecx,(%rsp)
mov    %eax,0x20(%rsp)
jmp    13ee <main+0x2ae>
mov    %eax,%ecx
mov    0x24(%rsp),%eax
cmp    %eax,%ecx
jle    13fd <main+0x2bd>
mov    %eax,(%rsp)
mov    %ecx,0x24(%rsp)
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%eax
cmp    %eax,%ecx
jle    1413 <main+0x2d3>
mov    %eax,0x4(%rsp)
mov    %ecx,0x8(%rsp)
jmp    1415 <main+0x2d5>
mov    %ecx,%eax
mov    0xc(%rsp),%ecx
cmp    %ecx,%eax
jle    1427 <main+0x2e7>
mov    %ecx,0x4(%rsp)
mov    %eax,0xc(%rsp)
jmp    1429 <main+0x2e9>
mov    %eax,%ecx
mov    0x10(%rsp),%eax
cmp    %eax,%ecx
jle    143b <main+0x2fb>
mov    %eax,0x4(%rsp)
mov    %ecx,0x10(%rsp)
jmp    143d <main+0x2fd>
mov    %ecx,%eax
mov    0x14(%rsp),%ecx
cmp    %ecx,%eax
jle    144f <main+0x30f>
mov    %ecx,0x4(%rsp)
mov    %eax,0x14(%rsp)
jmp    1451 <main+0x311>
mov    %eax,%ecx
mov    0x18(%rsp),%eax
cmp    %eax,%ecx
jle    1463 <main+0x323>
mov    %eax,0x4(%rsp)
mov    %ecx,0x18(%rsp)
jmp    1465 <main+0x325>
mov    %ecx,%eax
mov    0x1c(%rsp),%ecx
cmp    %ecx,%eax
jle    1477 <main+0x337>
mov    %ecx,0x4(%rsp)
mov    %eax,0x1c(%rsp)
jmp    1479 <main+0x339>
mov    %eax,%ecx
mov    0x20(%rsp),%eax
cmp    %eax,%ecx
jle    148b <main+0x34b>
mov    %eax,0x4(%rsp)
mov    %ecx,0x20(%rsp)
jmp    148d <main+0x34d>
mov    %ecx,%eax
mov    0x24(%rsp),%ecx
cmp    %ecx,%eax
jle    149d <main+0x35d>
mov    %ecx,0x4(%rsp)
mov    %eax,0x24(%rsp)
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%eax
cmp    %eax,%ecx
jle    14b3 <main+0x373>
mov    %eax,0x8(%rsp)
mov    %ecx,0xc(%rsp)
jmp    14b5 <main+0x375>
mov    %ecx,%eax
mov    0x10(%rsp),%ecx
cmp    %ecx,%eax
jle    14c7 <main+0x387>
mov    %ecx,0x8(%rsp)
mov    %eax,0x10(%rsp)
jmp    14c9 <main+0x389>
mov    %eax,%ecx
mov    0x14(%rsp),%eax
cmp    %eax,%ecx
jle    14db <main+0x39b>
mov    %eax,0x8(%rsp)
mov    %ecx,0x14(%rsp)
jmp    14dd <main+0x39d>
mov    %ecx,%eax
mov    0x18(%rsp),%ecx
cmp    %ecx,%eax
jle    14ef <main+0x3af>
mov    %ecx,0x8(%rsp)
mov    %eax,0x18(%rsp)
jmp    14f1 <main+0x3b1>
mov    %eax,%ecx
mov    0x1c(%rsp),%eax
cmp    %eax,%ecx
jle    1503 <main+0x3c3>
mov    %eax,0x8(%rsp)
mov    %ecx,0x1c(%rsp)
jmp    1505 <main+0x3c5>
mov    %ecx,%eax
mov    0x20(%rsp),%ecx
cmp    %ecx,%eax
jle    1517 <main+0x3d7>
mov    %ecx,0x8(%rsp)
mov    %eax,0x20(%rsp)
jmp    1519 <main+0x3d9>
mov    %eax,%ecx
mov    0x24(%rsp),%eax
cmp    %eax,%ecx
jle    1529 <main+0x3e9>
mov    %eax,0x8(%rsp)
mov    %ecx,0x24(%rsp)
mov    0xc(%rsp),%ecx
mov    0x10(%rsp),%eax
cmp    %eax,%ecx
jle    153f <main+0x3ff>
mov    %eax,0xc(%rsp)
mov    %ecx,0x10(%rsp)
jmp    1541 <main+0x401>
mov    %ecx,%eax
mov    0x14(%rsp),%ecx
cmp    %ecx,%eax
jle    1553 <main+0x413>
mov    %ecx,0xc(%rsp)
mov    %eax,0x14(%rsp)
jmp    1555 <main+0x415>
mov    %eax,%ecx
mov    0x18(%rsp),%eax
cmp    %eax,%ecx
jle    1567 <main+0x427>
mov    %eax,0xc(%rsp)
mov    %ecx,0x18(%rsp)
jmp    1569 <main+0x429>
mov    %ecx,%eax
mov    0x1c(%rsp),%ecx
cmp    %ecx,%eax
jle    157b <main+0x43b>
mov    %ecx,0xc(%rsp)
mov    %eax,0x1c(%rsp)
jmp    157d <main+0x43d>
mov    %eax,%ecx
mov    0x20(%rsp),%eax
cmp    %eax,%ecx
jle    158f <main+0x44f>
mov    %eax,0xc(%rsp)
mov    %ecx,0x20(%rsp)
jmp    1591 <main+0x451>
mov    %ecx,%eax
mov    0x24(%rsp),%ecx
cmp    %ecx,%eax
jle    15a1 <main+0x461>
mov    %ecx,0xc(%rsp)
mov    %eax,0x24(%rsp)
mov    0x10(%rsp),%ecx
mov    0x14(%rsp),%eax
cmp    %eax,%ecx
jle    15b7 <main+0x477>
mov    %eax,0x10(%rsp)
mov    %ecx,0x14(%rsp)
jmp    15b9 <main+0x479>
mov    %ecx,%eax
mov    0x18(%rsp),%ecx
cmp    %ecx,%eax
jle    15cb <main+0x48b>
mov    %ecx,0x10(%rsp)
mov    %eax,0x18(%rsp)
jmp    15cd <main+0x48d>
mov    %eax,%ecx
mov    0x1c(%rsp),%eax
cmp    %eax,%ecx
jle    15df <main+0x49f>
mov    %eax,0x10(%rsp)
mov    %ecx,0x1c(%rsp)
jmp    15e1 <main+0x4a1>
mov    %ecx,%eax
mov    0x20(%rsp),%ecx
cmp    %ecx,%eax
jle    15f3 <main+0x4b3>
mov    %ecx,0x10(%rsp)
mov    %eax,0x20(%rsp)
jmp    15f5 <main+0x4b5>
mov    %eax,%ecx
mov    0x24(%rsp),%eax
cmp    %eax,%ecx
jle    1605 <main+0x4c5>
mov    %eax,0x10(%rsp)
mov    %ecx,0x24(%rsp)
mov    0x14(%rsp),%ecx
mov    0x18(%rsp),%eax
cmp    %eax,%ecx
jle    161b <main+0x4db>
mov    %eax,0x14(%rsp)
mov    %ecx,0x18(%rsp)
jmp    161d <main+0x4dd>
mov    %ecx,%eax
mov    0x1c(%rsp),%ecx
cmp    %ecx,%eax
jle    162f <main+0x4ef>
mov    %ecx,0x14(%rsp)
mov    %eax,0x1c(%rsp)
jmp    1631 <main+0x4f1>
mov    %eax,%ecx
mov    0x20(%rsp),%eax
cmp    %eax,%ecx
jle    1643 <main+0x503>
mov    %eax,0x14(%rsp)
mov    %ecx,0x20(%rsp)
jmp    1645 <main+0x505>
mov    %ecx,%eax
mov    0x24(%rsp),%ecx
cmp    %ecx,%eax
jle    1655 <main+0x515>
mov    %ecx,0x14(%rsp)
mov    %eax,0x24(%rsp)
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%eax
cmp    %eax,%ecx
jle    166b <main+0x52b>
mov    %eax,0x18(%rsp)
mov    %ecx,0x1c(%rsp)
jmp    166d <main+0x52d>
mov    %ecx,%eax
mov    0x20(%rsp),%ecx
cmp    %ecx,%eax
jle    167f <main+0x53f>
mov    %ecx,0x18(%rsp)
mov    %eax,0x20(%rsp)
jmp    1681 <main+0x541>
mov    %eax,%ecx
mov    0x24(%rsp),%eax
cmp    %eax,%ecx
jle    1691 <main+0x551>
mov    %eax,0x18(%rsp)
mov    %ecx,0x24(%rsp)
mov    0x1c(%rsp),%ecx
mov    0x20(%rsp),%eax
cmp    %eax,%ecx
jle    16a7 <main+0x567>
mov    %eax,0x1c(%rsp)
mov    %ecx,0x20(%rsp)
jmp    16a9 <main+0x569>
mov    %ecx,%eax
mov    0x24(%rsp),%ecx
cmp    %ecx,%eax
jle    16b9 <main+0x579>
mov    %ecx,0x1c(%rsp)
mov    %eax,0x24(%rsp)
mov    0x20(%rsp),%eax
mov    0x24(%rsp),%ecx
cmp    %ecx,%eax
jle    16cd <main+0x58d>
mov    %ecx,0x20(%rsp)
mov    %eax,0x24(%rsp)
lea    0x95b(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%esi
lea    0x940(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [32 x i8] c"digite o valor da posi\C3\A7\C3\A3o %d\0A\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [12 x i8] c"vetor [%d]\0A\00"
@.str.3 = [18 x i8] c"\0Avetor ordenado \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %7
7: ; preds = %19, %0
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %22
10: ; preds = %7
%11 = load i32, i32* %3
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stdin
%14 = call i32 @fflush(i32 %13)
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
br label %19
19: ; preds = %10
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %7
22: ; preds = %7
store i32 0, i32* %3
br label %23
23: ; preds = %32, %22
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 10
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %30)
br label %32
32: ; preds = %26
%33 = load i32, i32* %3
%34 = add nsw i32 %33, 1
store i32 %34, i32* %3
br label %23
35: ; preds = %23
store i32 0, i32* %3
br label %36
36: ; preds = %79, %35
%37 = load i32, i32* %3
%38 = icmp slt i32 %37, 9
br i1 %38, label %39, label %82
39: ; preds = %36
%40 = load i32, i32* %3
store i32 %40, i32* %4
br label %41
41: ; preds = %75, %39
%42 = load i32, i32* %4
%43 = icmp slt i32 %42, 9
br i1 %43, label %44, label %78
44: ; preds = %41
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = load i32, i32* %4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = icmp sgt i32 %48, %53
br i1 %54, label %55, label %74
55: ; preds = %44
%56 = load i32, i32* %3
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %57
%59 = load i32, i32* %58
store i32 %59, i32* %5
%60 = load i32, i32* %4
%61 = add nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %62
%64 = load i32, i32* %63
store i32 %64, i32* %6
%65 = load i32, i32* %6
%66 = load i32, i32* %3
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %67
store i32 %65, i32* %68
%69 = load i32, i32* %5
%70 = load i32, i32* %4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %72
store i32 %69, i32* %73
br label %74
74: ; preds = %55, %44
br label %75
75: ; preds = %74
%76 = load i32, i32* %4
%77 = add nsw i32 %76, 1
store i32 %77, i32* %4
br label %41
78: ; preds = %41
br label %79
79: ; preds = %78
%80 = load i32, i32* %3
%81 = add nsw i32 %80, 1
store i32 %81, i32* %3
br label %36
82: ; preds = %36
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %84
84: ; preds = %93, %82
%85 = load i32, i32* %3
%86 = icmp slt i32 %85, 10
br i1 %86, label %87, label %96
87: ; preds = %84
%88 = load i32, i32* %3
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %89
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %91)
br label %93
93: ; preds = %87
%94 = load i32, i32* %3
%95 = add nsw i32 %94, 1
store i32 %95, i32* %3
br label %84
96: ; preds = %84
ret i32 0
}

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