#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 *);
int main() {
  int i, j, odabir, br_par, br_prij, temp;
  int poljeA[10] = {}, poljeB[10] = {}, poljeC[10] = {};
  for (i = 0; i < 10; i++) {
    scanf(" %d", &poljeA[i]);
  }
  scanf(" %d", &odabir);
  switch (odabir) {
  case 1:
    br_par = 0;
    for (i = 0; i < 10; i++) {
      if (poljeA[i] % 2 == 0)
        br_par++;
    }
    printf("U polju poljeA parnih brojeva ima: %d.", br_par);
    break;
  case 2:
    printf("PoljeA (nesortirano):");
    for (i = 0; i < 10; i++) {
      poljeB[i] = poljeA[i];
      printf(" %d", poljeA[i]);
    }
    printf("\nPoljeB (sortirano):");
    for (i = 0; i < 10; i++) {
      for (j = i + 1; j < 10; j++) {
        if (poljeB[i] < poljeB[j]) {
          temp = poljeB[i];
          poljeB[i] = poljeB[j];
          poljeB[j] = temp;
        }
      }
    }
    for (i = 0; i < 10; i++) {
      printf(" %d", poljeB[i]);
    }
    break;
  case 3:
    br_prij = 0;
    for (i = 0; i < 10; i++) {
      if (poljeA[i] % 3 == 1) {
        poljeC[br_prij] = poljeA[i];
        br_prij++;
      }
    }
    printf("PoljeA:");
    for (i = 0; i < 10; i++) {
      printf(" %d", poljeA[i]);
    }
    printf("\nPoljeC:");
    for (i = 0; i < 10; i++) {
      if (poljeC[i] != 0)
        printf(" %d", poljeC[i]);
      else
        continue;
    }
    break;
  default:
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11af <main+0x7f>
movslq -0x8(%rbp),%rax
lea    -0x50(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe64(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    117c <main+0x4c>
lea    0xe4a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0xb4(%rbp)
sub    $0x1,%eax
je     11fe <main+0xce>
jmp    11d6 <main+0xa6>
mov    -0xb4(%rbp),%eax
sub    $0x2,%eax
je     1261 <main+0x131>
jmp    11ea <main+0xba>
mov    -0xb4(%rbp),%eax
sub    $0x3,%eax
je     1382 <main+0x252>
jmp    1491 <main+0x361>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    124b <main+0x11b>
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1238 <main+0x108>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    123d <main+0x10d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    120c <main+0xdc>
mov    -0x14(%rbp),%esi
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1496 <main+0x366>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    12b4 <main+0x184>
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x80(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1276 <main+0x146>
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1348 <main+0x218>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    1335 <main+0x205>
movslq -0x8(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x80(%rbp,%rcx,4),%eax
jge    1322 <main+0x1f2>
movslq -0x8(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%eax
mov    %eax,-0x1c(%rbp)
movslq -0xc(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x80(%rbp,%rax,4)
mov    -0x1c(%rbp),%ecx
movslq -0xc(%rbp),%rax
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1327 <main+0x1f7>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12dc <main+0x1ac>
jmp    133a <main+0x20a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12c9 <main+0x199>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    137d <main+0x24d>
movslq -0x8(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%esi
lea    0xc98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    134f <main+0x21f>
jmp    1496 <main+0x366>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    13e2 <main+0x2b2>
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    13cf <main+0x29f>
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%ecx
movslq -0x18(%rbp),%rax
mov    %ecx,-0xb0(%rbp,%rax,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13d4 <main+0x2a4>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1390 <main+0x260>
lea    0xc6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1425 <main+0x2f5>
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%esi
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13f7 <main+0x2c7>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    148c <main+0x35c>
movslq -0x8(%rbp),%rax
cmpl   $0x0,-0xb0(%rbp,%rax,4)
je     1474 <main+0x344>
movslq -0x8(%rbp),%rax
mov    -0xb0(%rbp,%rax,4),%esi
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1479 <main+0x349>
jmp    147e <main+0x34e>
jmp    147e <main+0x34e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    143a <main+0x30a>
jmp    1496 <main+0x366>
jmp    1496 <main+0x366>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x90,%rsp
pxor   %xmm0,%xmm0
movdqa %xmm0,0x10(%rsp)
movdqa %xmm0,(%rsp)
movq   $0x0,0x20(%rsp)
lea    0x20(%rsp),%r14
lea    0x10(%rsp),%r15
movdqa %xmm0,0x40(%rsp)
movdqa %xmm0,0x30(%rsp)
movq   $0x0,0x50(%rsp)
lea    0xea3(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x5c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x5c(%rsp),%eax
cmp    $0x1,%eax
je     156b <main+0x44b>
cmp    $0x2,%eax
je     15c2 <main+0x4a2>
cmp    $0x3,%eax
jne    17c9 <main+0x6a9>
movslq (%rsp),%rcx
imul   $0x55555556,%rcx,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rax
add    %edx,%eax
lea    (%rax,%rax,2),%eax
mov    %ecx,%edx
sub    %eax,%edx
xor    %eax,%eax
cmp    $0x1,%edx
jne    1244 <main+0x124>
mov    %ecx,0x30(%rsp)
mov    $0x1,%eax
movslq 0x4(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    1272 <main+0x152>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x8(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    12a0 <main+0x180>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0xc(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    12ce <main+0x1ae>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x10(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    12fc <main+0x1dc>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x14(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    132a <main+0x20a>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x18(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    1358 <main+0x238>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x1c(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    1386 <main+0x266>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x20(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    13b4 <main+0x294>
mov    %eax,%edx
mov    %ecx,0x30(%rsp,%rdx,4)
add    $0x1,%eax
movslq 0x24(%rsp),%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,2),%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    $0x1,%esi
jne    13df <main+0x2bf>
mov    %eax,%eax
mov    %ecx,0x30(%rsp,%rax,4)
lea    0xc80(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rsp),%esi
lea    0xc19(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xbe8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x30(%rsp),%esi
test   %esi,%esi
je     14a3 <main+0x383>
lea    0xb74(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x34(%rsp),%esi
test   %esi,%esi
je     14b9 <main+0x399>
lea    0xb5e(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x38(%rsp),%esi
test   %esi,%esi
je     14cf <main+0x3af>
lea    0xb48(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x3c(%rsp),%esi
test   %esi,%esi
je     14e5 <main+0x3c5>
lea    0xb32(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x40(%rsp),%esi
test   %esi,%esi
je     14fb <main+0x3db>
lea    0xb1c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x44(%rsp),%esi
test   %esi,%esi
je     1511 <main+0x3f1>
lea    0xb06(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x48(%rsp),%esi
test   %esi,%esi
je     1527 <main+0x407>
lea    0xaf0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4c(%rsp),%esi
test   %esi,%esi
je     153d <main+0x41d>
lea    0xada(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x50(%rsp),%esi
test   %esi,%esi
je     1553 <main+0x433>
lea    0xac4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x54(%rsp),%esi
test   %esi,%esi
je     17c9 <main+0x6a9>
lea    0xaaa(%rip),%rdi
jmp    17c2 <main+0x6a2>
mov    (%rsp),%eax
mov    0x4(%rsp),%ecx
not    %eax
and    $0x1,%eax
not    %ecx
and    $0x1,%ecx
movdqu 0x8(%rsp),%xmm0
movdqu 0x18(%rsp),%xmm1
movdqa 0xa70(%rip),%xmm2
pandn  %xmm2,%xmm1
pandn  %xmm2,%xmm0
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    %ecx,%esi
add    %eax,%esi
lea    0xa57(%rip),%rdi
jmp    17c2 <main+0x6a2>
lea    0xa72(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rsp),%r15d
lea    0xa33(%rip),%r14
mov    %r14,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%r12d
mov    %r14,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%ebp
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
movd   %r15d,%xmm0
movd   %r12d,%xmm1
punpckldq %xmm1,%xmm0
movd   %ebp,%xmm1
movd   %esi,%xmm2
punpckldq %xmm2,%xmm1
punpcklqdq %xmm1,%xmm0
movdqa %xmm0,0x60(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%r15d
mov    %r14,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%r12d
mov    %r14,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%ebp
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%esi
movd   %r15d,%xmm0
movd   %r12d,%xmm1
punpckldq %xmm1,%xmm0
movd   %ebp,%xmm1
movd   %esi,%xmm2
punpckldq %xmm2,%xmm1
punpcklqdq %xmm1,%xmm0
movdqa %xmm0,0x70(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rsp),%esi
mov    %esi,0x80(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x24(%rsp),%esi
mov    %esi,0x84(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x97c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%eax
jmp    16fa <main+0x5da>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rax
cmp    $0xa,%rbx
je     1730 <main+0x610>
mov    %rbx,%rcx
add    $0x1,%rbx
cmp    $0x8,%rcx
ja     16f0 <main+0x5d0>
mov    %rax,%rdx
jmp    171a <main+0x5fa>
nopl   0x0(%rax)
add    $0x1,%rdx
cmp    $0xa,%rdx
je     16f0 <main+0x5d0>
mov    0x60(%rsp,%rcx,4),%esi
mov    0x60(%rsp,%rdx,4),%edi
cmp    %edi,%esi
jge    1710 <main+0x5f0>
mov    %edi,0x60(%rsp,%rcx,4)
mov    %esi,0x60(%rsp,%rdx,4)
jmp    1710 <main+0x5f0>
mov    0x60(%rsp),%esi
lea    0x8d5(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x64(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x68(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x6c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x70(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x74(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x78(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x7c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x80(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x84(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c" %d\00"
@.str.1 = [39 x i8] c"U polju poljeA parnih brojeva ima: %d.\00"
@.str.2 = [22 x i8] c"PoljeA (nesortirano):\00"
@.str.3 = [21 x i8] c"\0APoljeB (sortirano):\00"
@.str.4 = [8 x i8] c"PoljeA:\00"
@.str.5 = [9 x i8] c"\0APoljeC:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [10 x i32]
%9 = alloca [10 x i32]
%10 = alloca [10 x i32]
store i32 0, i32* %1
%11 = bitcast [10 x i32]* %8 to i8*
%12 = bitcast [10 x i32]* %9 to i8*
%13 = bitcast [10 x i32]* %10 to i8*
store i32 0, i32* %2
br label %14
14: ; preds = %22, %0
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 10
br i1 %16, label %17, label %25
17: ; preds = %14
%18 = load i32, i32* %2
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %19
%21 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %20)
br label %22
22: ; preds = %17
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
store i32 %24, i32* %2
br label %14
25: ; preds = %14
%26 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %4)
%27 = load i32, i32* %4
switch i32 %27, label %191 [
i32 1, label %28
i32 2, label %49
i32 3, label %129
]
28: ; preds = %25
store i32 0, i32* %5
store i32 0, i32* %2
br label %29
29: ; preds = %43, %28
%30 = load i32, i32* %2
%31 = icmp slt i32 %30, 10
br i1 %31, label %32, label %46
32: ; preds = %29
%33 = load i32, i32* %2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = srem i32 %36, 2
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %32
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
br label %42
42: ; preds = %39, %32
br label %43
43: ; preds = %42
%44 = load i32, i32* %2
%45 = add nsw i32 %44, 1
store i32 %45, i32* %2
br label %29
46: ; preds = %29
%47 = load i32, i32* %5
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %47)
br label %192
49: ; preds = %25
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
br label %51
51: ; preds = %67, %49
%52 = load i32, i32* %2
%53 = icmp slt i32 %52, 10
br i1 %53, label %54, label %70
54: ; preds = %51
%55 = load i32, i32* %2
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = load i32, i32* %2
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %60
store i32 %58, i32* %61
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %65)
br label %67
67: ; preds = %54
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
br label %51
70: ; preds = %51
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %72
72: ; preds = %112, %70
%73 = load i32, i32* %2
%74 = icmp slt i32 %73, 10
br i1 %74, label %75, label %115
75: ; preds = %72
%76 = load i32, i32* %2
%77 = add nsw i32 %76, 1
store i32 %77, i32* %3
br label %78
78: ; preds = %108, %75
%79 = load i32, i32* %3
%80 = icmp slt i32 %79, 10
br i1 %80, label %81, label %111
81: ; preds = %78
%82 = load i32, i32* %2
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = load i32, i32* %3
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = icmp slt i32 %85, %89
br i1 %90, label %91, label %107
91: ; preds = %81
%92 = load i32, i32* %2
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %93
%95 = load i32, i32* %94
store i32 %95, i32* %7
%96 = load i32, i32* %3
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %97
%99 = load i32, i32* %98
%100 = load i32, i32* %2
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %101
store i32 %99, i32* %102
%103 = load i32, i32* %7
%104 = load i32, i32* %3
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %105
store i32 %103, i32* %106
br label %107
107: ; preds = %91, %81
br label %108
108: ; preds = %107
%109 = load i32, i32* %3
%110 = add nsw i32 %109, 1
store i32 %110, i32* %3
br label %78
111: ; preds = %78
br label %112
112: ; preds = %111
%113 = load i32, i32* %2
%114 = add nsw i32 %113, 1
store i32 %114, i32* %2
br label %72
115: ; preds = %72
store i32 0, i32* %2
br label %116
116: ; preds = %125, %115
%117 = load i32, i32* %2
%118 = icmp slt i32 %117, 10
br i1 %118, label %119, label %128
119: ; preds = %116
%120 = load i32, i32* %2
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %121
%123 = load i32, i32* %122
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %123)
br label %125
125: ; preds = %119
%126 = load i32, i32* %2
%127 = add nsw i32 %126, 1
store i32 %127, i32* %2
br label %116
128: ; preds = %116
br label %192
129: ; preds = %25
store i32 0, i32* %6
store i32 0, i32* %2
br label %130
130: ; preds = %151, %129
%131 = load i32, i32* %2
%132 = icmp slt i32 %131, 10
br i1 %132, label %133, label %154
133: ; preds = %130
%134 = load i32, i32* %2
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %135
%137 = load i32, i32* %136
%138 = srem i32 %137, 3
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %150
140: ; preds = %133
%141 = load i32, i32* %2
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %142
%144 = load i32, i32* %143
%145 = load i32, i32* %6
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [10 x i32], [10 x i32]* %10, i64 0, i64 %146
store i32 %144, i32* %147
%148 = load i32, i32* %6
%149 = add nsw i32 %148, 1
store i32 %149, i32* %6
br label %150
150: ; preds = %140, %133
br label %151
151: ; preds = %150
%152 = load i32, i32* %2
%153 = add nsw i32 %152, 1
store i32 %153, i32* %2
br label %130
154: ; preds = %130
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %156
156: ; preds = %165, %154
%157 = load i32, i32* %2
%158 = icmp slt i32 %157, 10
br i1 %158, label %159, label %168
159: ; preds = %156
%160 = load i32, i32* %2
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %161
%163 = load i32, i32* %162
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %163)
br label %165
165: ; preds = %159
%166 = load i32, i32* %2
%167 = add nsw i32 %166, 1
store i32 %167, i32* %2
br label %156
168: ; preds = %156
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %170
170: ; preds = %187, %168
%171 = load i32, i32* %2
%172 = icmp slt i32 %171, 10
br i1 %172, label %173, label %190
173: ; preds = %170
%174 = load i32, i32* %2
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [10 x i32], [10 x i32]* %10, i64 0, i64 %175
%177 = load i32, i32* %176
%178 = icmp ne i32 %177, 0
br i1 %178, label %179, label %185
179: ; preds = %173
%180 = load i32, i32* %2
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [10 x i32], [10 x i32]* %10, i64 0, i64 %181
%183 = load i32, i32* %182
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %183)
br label %186
185: ; preds = %173
br label %187
186: ; preds = %179
br label %187
187: ; preds = %186, %185
%188 = load i32, i32* %2
%189 = add nsw i32 %188, 1
store i32 %189, i32* %2
br label %170
190: ; preds = %170
br label %192
191: ; preds = %25
br label %192
192: ; preds = %191, %190, %128, %46
ret i32 0
}

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