#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 /*<<< orphan*/ system(char *);
int main() {
  char tris[3][3] = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '};
  int i = 0, j = 0, newY = 0, newX = 0, player = 1, moves = 0, k = 0, g = 0,
      x = 0, xs = 0, o = 0, tx = 0, to = 0;
  bool won1 = false, won2 = false;
  do {
    system("CLS");
    moves++;
    for (i = 0; i < 3; i++) {
      for (j = 0; j < 3; j++) {
        printf("[ %c ]", tris[i][j]);
      }
      printf("\n");
    }
    for (g = 0; g < 3 && (won1 == false || won2 == false); g++) {
      for (k = 0; k < 3; k++) {
        if (tris[g][k] == 'x') {
          xs++;
        }
        if (tris[g][k] == 'o') {
          o++;
        }
        if (xs == 3) {
          won1 = true;
          moves = 10;
          printf("Il Giocatore 1 vince!");
          system("PAUSE");
        }
        if (o == 3) {
          won2 = true;
          moves = 10;
          printf("Il Giocatore 2 vince!");
          system("PAUSE");
        }
      }
      xs = 0;
      o = 0;
      for (k = 0; k < 3; k++) {
        if (tris[k][g] == 'x') {
          xs++;
        }
        if (tris[k][g] == 'o') {
          o++;
        }
        if (xs == 3) {
          won1 = true;
          moves = 10;
          printf("Il Giocatore 1 vince!\n");
          system("PAUSE");
        }
        if (o == 3) {
          won2 = true;
          moves = 10;
          printf("Il Giocatore 2 vince!\n");
          system("PAUSE");
        }
      }
      xs = 0;
      o = 0;
    }
    if ((tris[0][0] == 'x' && tris[1][1] == 'x' && tris[2][2] == 'x') ||
        (tris[0][2] == 'x' && tris[1][1] == 'x' && tris[2][0] == 'x')) {
      won1 = true;
      moves = 10;
      printf("Il Giocatore 1 vince!\n");
      system("PAUSE");
    }
    if ((tris[0][0] == 'o' && tris[1][1] == 'o' && tris[2][2] == 'o') ||
        (tris[0][2] == 'o' && tris[1][1] == 'o' && tris[2][0] == 'o')) {
      won2 = true;
      moves = 10;
      printf("Il Giocatore 2 vince!\n");
      system("PAUSE");
    }
    if (!won1 && !won2) {
      printf("Giocatore %d, inserisci le coordinate (y, x): ", player);
      scanf("%d", &newX);
      scanf("%d", &newY);
      if (tris[newX][newY] == 'x' || tris[newX][newY] == 'o') {
        printf("Posto gia' occupato da un altro segno, reinserisci");
        moves--;
        system("PAUSE");
      } else {
        if (newX > 2 || newY > 2) {
          printf("Numero troppo alto");
          moves--;
          system("PAUSE");
        } else {
          if (player == 1) {
            tris[newX][newY] = 'x';
            player++;
          } else {
            tris[newX][newY] = 'o';
            player--;
          }
        }
      }
    }
  } while (moves < 10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0xd(%rbp)
mov    0xeb8(%rip),%al
mov    %al,-0x5(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
lea    0xe46(%rip),%rdi
call   1030 <system@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    1242 <main+0x112>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jge    1226 <main+0xf6>
movslq -0x14(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11e9 <main+0xb9>
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d8 <main+0xa8>
movl   $0x0,-0x30(%rbp)
xor    %eax,%eax
cmpl   $0x3,-0x30(%rbp)
mov    %al,-0x4d(%rbp)
jge    1277 <main+0x147>
mov    $0x1,%al
cmpl   $0x0,-0x48(%rbp)
mov    %al,-0x4e(%rbp)
je     1271 <main+0x141>
cmpl   $0x0,-0x4c(%rbp)
sete   %al
mov    %al,-0x4e(%rbp)
mov    -0x4e(%rbp),%al
mov    %al,-0x4d(%rbp)
mov    -0x4d(%rbp),%al
test   $0x1,%al
jne    1287 <main+0x157>
jmp    1465 <main+0x335>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jge    1361 <main+0x231>
movslq -0x30(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x78,%eax
jne    12c1 <main+0x191>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
movslq -0x30(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x6f,%eax
jne    12ea <main+0x1ba>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x3,-0x38(%rbp)
jne    131c <main+0x1ec>
movl   $0x1,-0x48(%rbp)
movl   $0xa,-0x28(%rbp)
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd13(%rip),%rdi
call   1030 <system@plt>
cmpl   $0x3,-0x3c(%rbp)
jne    134e <main+0x21e>
movl   $0x1,-0x4c(%rbp)
movl   $0xa,-0x28(%rbp)
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xce1(%rip),%rdi
call   1030 <system@plt>
jmp    1353 <main+0x223>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    128e <main+0x15e>
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jge    1449 <main+0x319>
movslq -0x2c(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x78,%eax
jne    13a9 <main+0x279>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
movslq -0x2c(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x6f,%eax
jne    13d2 <main+0x2a2>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x3,-0x38(%rbp)
jne    1404 <main+0x2d4>
movl   $0x1,-0x48(%rbp)
movl   $0xa,-0x28(%rbp)
lea    0xc55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc2b(%rip),%rdi
call   1030 <system@plt>
cmpl   $0x3,-0x3c(%rbp)
jne    1436 <main+0x306>
movl   $0x1,-0x4c(%rbp)
movl   $0xa,-0x28(%rbp)
lea    0xc3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbf9(%rip),%rdi
call   1030 <system@plt>
jmp    143b <main+0x30b>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1376 <main+0x246>
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1249 <main+0x119>
movsbl -0xd(%rbp),%eax
cmp    $0x78,%eax
jne    148c <main+0x35c>
movsbl -0x9(%rbp),%eax
cmp    $0x78,%eax
jne    148c <main+0x35c>
movsbl -0x5(%rbp),%eax
cmp    $0x78,%eax
je     14b3 <main+0x383>
movsbl -0xb(%rbp),%eax
cmp    $0x78,%eax
jne    14db <main+0x3ab>
movsbl -0x9(%rbp),%eax
cmp    $0x78,%eax
jne    14db <main+0x3ab>
movsbl -0x7(%rbp),%eax
cmp    $0x78,%eax
jne    14db <main+0x3ab>
movl   $0x1,-0x48(%rbp)
movl   $0xa,-0x28(%rbp)
lea    0xb7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb54(%rip),%rdi
call   1030 <system@plt>
movsbl -0xd(%rbp),%eax
cmp    $0x6f,%eax
jne    1502 <main+0x3d2>
movsbl -0x9(%rbp),%eax
cmp    $0x6f,%eax
jne    1502 <main+0x3d2>
movsbl -0x5(%rbp),%eax
cmp    $0x6f,%eax
je     1529 <main+0x3f9>
movsbl -0xb(%rbp),%eax
cmp    $0x6f,%eax
jne    1551 <main+0x421>
movsbl -0x9(%rbp),%eax
cmp    $0x6f,%eax
jne    1551 <main+0x421>
movsbl -0x7(%rbp),%eax
cmp    $0x6f,%eax
jne    1551 <main+0x421>
movl   $0x1,-0x4c(%rbp)
movl   $0xa,-0x28(%rbp)
lea    0xb1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xade(%rip),%rdi
call   1030 <system@plt>
cmpl   $0x0,-0x48(%rbp)
jne    1698 <main+0x568>
cmpl   $0x0,-0x4c(%rbp)
jne    1698 <main+0x568>
mov    -0x24(%rbp),%esi
lea    0xb05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb26(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xb16(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
movslq -0x20(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x78,%eax
je     15d6 <main+0x4a6>
movslq -0x20(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x6f,%eax
jne    15fe <main+0x4ce>
lea    0xac9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
lea    0xa36(%rip),%rdi
call   1030 <system@plt>
jmp    1693 <main+0x563>
cmpl   $0x2,-0x20(%rbp)
jg     1612 <main+0x4e2>
cmpl   $0x2,-0x1c(%rbp)
jle    163a <main+0x50a>
lea    0xac0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
lea    0x9fa(%rip),%rdi
call   1030 <system@plt>
jmp    168e <main+0x55e>
cmpl   $0x1,-0x24(%rbp)
jne    1669 <main+0x539>
movslq -0x20(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movb   $0x78,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1689 <main+0x559>
movslq -0x20(%rbp),%rcx
lea    -0xd(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movb   $0x6f,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    168e <main+0x55e>
jmp    1693 <main+0x563>
jmp    1698 <main+0x568>
jmp    169d <main+0x56d>
cmpl   $0xa,-0x28(%rbp)
jl     11bc <main+0x8c>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movabs $0x2020202020202020,%rax
20 20 20
mov    %rax,0x10(%rsp)
movb   $0x20,0x18(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x1,0x1c(%rsp)
movb   $0x20,0xb(%rsp)
movb   $0x20,0xe(%rsp)
movb   $0x20,0x9(%rsp)
movb   $0x20,0xd(%rsp)
movb   $0x20,0xa(%rsp)
movb   $0x20,0xc(%rsp)
mov    $0x20,%r12b
movb   $0x20,0x8(%rsp)
mov    $0x20,%bl
xor    %r14d,%r14d
xor    %r15d,%r15d
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
lea    0xe39(%rip),%rdi
call   1050 <system@plt>
mov    %bl,0xf(%rsp)
movsbl %bl,%esi
lea    0xe2a(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x8(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12b,0x8(%rsp)
movsbl %r12b,%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl 0xc(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xa(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xd(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl 0x9(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xe(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xb(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
mov    $0x2,%r12d
lea    0x10(%rsp),%rbx
jmp    12a2 <main+0x152>
nop
add    $0x1,%rbx
add    $0x3,%r12
cmp    $0xb,%r12
je     13f0 <main+0x2a0>
test   %r15d,%r15d
je     12b0 <main+0x160>
test   %r13d,%r13d
jne    13f0 <main+0x2a0>
movzbl 0xe(%rsp,%r12,1),%eax
movzbl 0xf(%rsp,%r12,1),%ecx
xor    %edx,%edx
cmp    $0x78,%al
sete   %dl
xor    %esi,%esi
cmp    $0x6f,%al
sete   %sil
xor    %eax,%eax
cmp    $0x78,%cl
sete   %al
add    %edx,%eax
xor    %edx,%edx
cmp    $0x6f,%cl
sete   %dl
add    %esi,%edx
movzbl 0x10(%rsp,%r12,1),%ecx
xor    %esi,%esi
cmp    $0x78,%cl
sete   %sil
add    %eax,%esi
xor    %ebp,%ebp
cmp    $0x6f,%cl
sete   %bpl
add    %edx,%ebp
cmp    $0x3,%esi
jne    1326 <main+0x1d6>
lea    0xd98(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcf6(%rip),%rdi
call   1050 <system@plt>
mov    $0x1,%r15d
mov    $0xa,%r14d
cmp    $0x3,%ebp
jne    1351 <main+0x201>
lea    0xd57(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xccb(%rip),%rdi
call   1050 <system@plt>
mov    $0x1,%r13d
mov    $0xa,%r14d
movzbl (%rbx),%eax
movzbl 0x3(%rbx),%ecx
xor    %edx,%edx
cmp    $0x78,%al
sete   %dl
xor    %esi,%esi
cmp    $0x6f,%al
sete   %sil
xor    %eax,%eax
cmp    $0x78,%cl
sete   %al
add    %edx,%eax
xor    %edx,%edx
cmp    $0x6f,%cl
sete   %dl
add    %esi,%edx
movzbl 0x6(%rbx),%ecx
xor    %esi,%esi
cmp    $0x78,%cl
sete   %sil
add    %eax,%esi
xor    %ebp,%ebp
cmp    $0x6f,%cl
sete   %bpl
add    %edx,%ebp
cmp    $0x3,%esi
jne    13be <main+0x26e>
lea    0xcfe(%rip),%rdi
call   1040 <puts@plt>
lea    0xc5e(%rip),%rdi
call   1050 <system@plt>
mov    $0x1,%r15d
mov    $0xa,%r14d
cmp    $0x3,%ebp
jne    1290 <main+0x140>
lea    0xcbb(%rip),%rdi
call   1040 <puts@plt>
lea    0xc31(%rip),%rdi
call   1050 <system@plt>
mov    $0x1,%r13d
mov    $0xa,%r14d
jmp    1290 <main+0x140>
mov    0xf(%rsp),%cl
cmp    $0x78,%cl
mov    0xb(%rsp),%al
mov    0xa(%rsp),%dl
jne    140e <main+0x2be>
cmp    $0x78,%dl
jne    140e <main+0x2be>
cmp    $0x78,%al
je     1565 <main+0x415>
mov    0x8(%rsp),%bl
cmp    $0x78,%bl
mov    0x9(%rsp),%sil
jne    142b <main+0x2db>
cmp    $0x78,%dl
jne    142b <main+0x2db>
cmp    $0x78,%sil
je     1565 <main+0x415>
cmp    $0x6f,%cl
jne    143d <main+0x2ed>
cmp    $0x6f,%dl
jne    143d <main+0x2ed>
cmp    $0x6f,%al
je     156e <main+0x41e>
cmp    $0x6f,%bl
jne    1451 <main+0x301>
cmp    $0x6f,%dl
jne    1451 <main+0x301>
cmp    $0x6f,%sil
je     156e <main+0x41e>
mov    %r15d,%eax
or     %r13d,%eax
jne    14d2 <main+0x382>
lea    0xbb1(%rip),%rdi
mov    0x1c(%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xbce(%rip),%rbx
mov    %rbx,%rdi
lea    0x20(%rsp),%rsi
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x24(%rsp),%rsi
call   1070 <scanf@plt>
movslq 0x20(%rsp),%rdx
movslq 0x24(%rsp),%rcx
lea    (%rdx,%rdx,2),%rax
add    %rsp,%rax
add    $0x10,%rax
mov    (%rcx,%rax,1),%bl
cmp    $0x78,%bl
je     14ae <main+0x35e>
cmp    $0x6f,%bl
jne    1522 <main+0x3d2>
xor    %r13d,%r13d
lea    0xb8b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0xffffffff,%r14d
lea    0xb41(%rip),%rdi
call   1050 <system@plt>
xor    %r15d,%r15d
cmp    $0x9,%r14d
jg     1586 <main+0x436>
mov    0x10(%rsp),%bl
mov    0x11(%rsp),%al
mov    %al,0x8(%rsp)
mov    0x12(%rsp),%r12b
mov    0x13(%rsp),%al
mov    %al,0xc(%rsp)
mov    0x14(%rsp),%al
mov    %al,0xa(%rsp)
mov    0x15(%rsp),%al
mov    %al,0xd(%rsp)
mov    0x16(%rsp),%al
mov    %al,0x9(%rsp)
mov    0x17(%rsp),%al
mov    %al,0xe(%rsp)
mov    0x18(%rsp),%al
mov    %al,0xb(%rsp)
jmp    11c0 <main+0x70>
cmp    $0x2,%edx
jg     1543 <main+0x3f3>
cmp    $0x3,%ecx
jge    1543 <main+0x3f3>
add    %rcx,%rax
cmpl   $0x1,0x1c(%rsp)
jne    1552 <main+0x402>
movb   $0x78,(%rax)
movl   $0x2,0x1c(%rsp)
jmp    155d <main+0x40d>
xor    %r13d,%r13d
lea    0xb29(%rip),%rdi
jmp    14b8 <main+0x368>
movb   $0x6f,(%rax)
movl   $0x1,0x1c(%rsp)
xor    %r13d,%r13d
jmp    14cf <main+0x37f>
lea    0xb33(%rip),%rdi
jmp    1575 <main+0x425>
lea    0xb14(%rip),%rdi
call   1040 <puts@plt>
lea    0xa8a(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"CLS\00"
@.str.1 = [7 x i8] c"[ %c ]\00"
@.str.4 = [6 x i8] c"PAUSE\00"
@.str.8 = [47 x i8] c"Giocatore %d, inserisci le coordinate (y, x): \00"
@.str.9 = [3 x i8] c"%d\00"
@.str.10 = [51 x i8] c"Posto gia' occupato da un altro segno, reinserisci\00"
@.str.11 = [19 x i8] c"Numero troppo alto\00"
@str.13 = [22 x i8] c"Il Giocatore 2 vince!\00"
@str.14 = [22 x i8] c"Il Giocatore 1 vince!\00"
define i32 @main() {
%1 = alloca [3 x [3 x i8]]
%2 = alloca i32
%3 = alloca i32
%4 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 0, i64 0
%5 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%6 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%7 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 1, i64 1
%8 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 2, i64 2
%9 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 0, i64 2
%10 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 0, i64 1
%11 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 1, i64 0
%12 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 1, i64 2
%13 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 2, i64 0
%14 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 2, i64 1
br label %15
15: ; preds = %196, %0
%16 = phi i8 [ 32, %0 ], [ %205, %196 ]
%17 = phi i8 [ 32, %0 ], [ %204, %196 ]
%18 = phi i8 [ 32, %0 ], [ %203, %196 ]
%19 = phi i8 [ 32, %0 ], [ %202, %196 ]
%20 = phi i8 [ 32, %0 ], [ %201, %196 ]
%21 = phi i8 [ 32, %0 ], [ %200, %196 ]
%22 = phi i8 [ 32, %0 ], [ %199, %196 ]
%23 = phi i8 [ 32, %0 ], [ %198, %196 ]
%24 = phi i8 [ 32, %0 ], [ %197, %196 ]
%25 = phi i32 [ 0, %0 ], [ %193, %196 ]
%26 = phi i32 [ 1, %0 ], [ %194, %196 ]
%27 = phi i32 [ 0, %0 ], [ %192, %196 ]
%28 = phi i32 [ 0, %0 ], [ %191, %196 ]
%29 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%30 = sext i8 %24 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = sext i8 %23 to i32
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = sext i8 %22 to i32
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%36 = call i32 @putchar(i32 10)
%37 = sext i8 %21 to i32
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %37)
%39 = sext i8 %20 to i32
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %39)
%41 = sext i8 %19 to i32
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %41)
%43 = call i32 @putchar(i32 10)
%44 = sext i8 %18 to i32
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %44)
%46 = sext i8 %17 to i32
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %46)
%48 = sext i8 %16 to i32
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = call i32 @putchar(i32 10)
%51 = add nsw i32 %25, 1
br label %52
52: ; preds = %15, %130
%53 = phi i64 [ 0, %15 ], [ %133, %130 ]
%54 = phi i32 [ %28, %15 ], [ %132, %130 ]
%55 = phi i32 [ %27, %15 ], [ %125, %130 ]
%56 = phi i32 [ %51, %15 ], [ %131, %130 ]
%57 = icmp eq i32 %55, 0
%58 = icmp eq i32 %54, 0
%59 = select i1 %57, i1 true, i1 %58
br i1 %59, label %60, label %135
60: ; preds = %52
%61 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 %53, i64 0
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 120
%64 = zext i1 %63 to i32
%65 = icmp eq i8 %62, 111
%66 = zext i1 %65 to i32
%67 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 %53, i64 1
%68 = load i8, i8* %67
%69 = icmp eq i8 %68, 120
%70 = zext i1 %69 to i32
%71 = add nuw nsw i32 %64, %70
%72 = icmp eq i8 %68, 111
%73 = zext i1 %72 to i32
%74 = add nuw nsw i32 %66, %73
%75 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 %53, i64 2
%76 = load i8, i8* %75
%77 = icmp eq i8 %76, 120
%78 = zext i1 %77 to i32
%79 = add nuw nsw i32 %71, %78
%80 = icmp eq i8 %76, 111
%81 = zext i1 %80 to i32
%82 = add nuw nsw i32 %74, %81
%83 = icmp eq i32 %79, 3
br i1 %83, label %84, label %87
84: ; preds = %60
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.14, i64 0, i64 0))
%86 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %87
87: ; preds = %84, %60
%88 = phi i32 [ 10, %84 ], [ %56, %60 ]
%89 = phi i32 [ 1, %84 ], [ %55, %60 ]
%90 = icmp eq i32 %82, 3
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.13, i64 0, i64 0))
%93 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %94
94: ; preds = %91, %87
%95 = phi i32 [ 10, %91 ], [ %88, %87 ]
%96 = phi i32 [ 1, %91 ], [ %54, %87 ]
%97 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 0, i64 %53
%98 = load i8, i8* %97
%99 = icmp eq i8 %98, 120
%100 = zext i1 %99 to i32
%101 = icmp eq i8 %98, 111
%102 = zext i1 %101 to i32
%103 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 1, i64 %53
%104 = load i8, i8* %103
%105 = icmp eq i8 %104, 120
%106 = zext i1 %105 to i32
%107 = add nuw nsw i32 %100, %106
%108 = icmp eq i8 %104, 111
%109 = zext i1 %108 to i32
%110 = add nuw nsw i32 %102, %109
%111 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 2, i64 %53
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 120
%114 = zext i1 %113 to i32
%115 = add nuw nsw i32 %107, %114
%116 = icmp eq i8 %112, 111
%117 = zext i1 %116 to i32
%118 = add nuw nsw i32 %110, %117
%119 = icmp eq i32 %115, 3
br i1 %119, label %120, label %123
120: ; preds = %94
%121 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.14, i64 0, i64 0))
%122 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %123
123: ; preds = %120, %94
%124 = phi i32 [ 10, %120 ], [ %95, %94 ]
%125 = phi i32 [ 1, %120 ], [ %89, %94 ]
%126 = icmp eq i32 %118, 3
br i1 %126, label %127, label %130
127: ; preds = %123
%128 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.13, i64 0, i64 0))
%129 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %130
130: ; preds = %127, %123
%131 = phi i32 [ 10, %127 ], [ %124, %123 ]
%132 = phi i32 [ 1, %127 ], [ %96, %123 ]
%133 = add nuw nsw i64 %53, 1
%134 = icmp eq i64 %133, 3
br i1 %134, label %135, label %52
135: ; preds = %130, %52
%136 = phi i32 [ %131, %130 ], [ %56, %52 ]
%137 = phi i32 [ %125, %130 ], [ %55, %52 ]
%138 = phi i32 [ %132, %130 ], [ %54, %52 ]
%139 = icmp eq i8 %24, 120
%140 = icmp eq i8 %20, 120
%141 = select i1 %139, i1 %140, i1 false
%142 = icmp eq i8 %16, 120
%143 = select i1 %141, i1 %142, i1 false
br i1 %143, label %206, label %144
144: ; preds = %135
%145 = icmp eq i8 %22, 120
%146 = select i1 %145, i1 %140, i1 false
%147 = icmp eq i8 %18, 120
%148 = select i1 %146, i1 %147, i1 false
br i1 %148, label %206, label %149
149: ; preds = %144
%150 = icmp eq i8 %24, 111
%151 = icmp eq i8 %20, 111
%152 = select i1 %150, i1 %151, i1 false
%153 = icmp eq i8 %16, 111
%154 = select i1 %152, i1 %153, i1 false
br i1 %154, label %206, label %155
155: ; preds = %149
%156 = icmp eq i8 %22, 111
%157 = select i1 %156, i1 %151, i1 false
%158 = icmp eq i8 %18, 111
%159 = select i1 %157, i1 %158, i1 false
br i1 %159, label %206, label %160
160: ; preds = %155
%161 = icmp ne i32 %137, 0
%162 = icmp ne i32 %138, 0
%163 = select i1 %161, i1 true, i1 %162
br i1 %163, label %190, label %164
164: ; preds = %160
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i32 %26)
%166 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %3)
%167 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %2)
%168 = load i32, i32* %3
%169 = sext i32 %168 to i64
%170 = load i32, i32* %2
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %1, i64 0, i64 %169, i64 %171
%173 = load i8, i8* %172
switch i8 %173, label %178 [
i8 120, label %174
i8 111, label %174
]
174: ; preds = %164, %164
%175 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%176 = add nsw i32 %136, -1
%177 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %190
178: ; preds = %164
%179 = icmp sgt i32 %168, 2
%180 = icmp sgt i32 %170, 2
%181 = select i1 %179, i1 true, i1 %180
br i1 %181, label %182, label %186
182: ; preds = %178
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%184 = add nsw i32 %136, -1
%185 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %190
186: ; preds = %178
%187 = icmp eq i32 %26, 1
br i1 %187, label %188, label %189
188: ; preds = %186
store i8 120, i8* %172
br label %190
189: ; preds = %186
store i8 111, i8* %172
br label %190
190: ; preds = %160, %182, %189, %188, %174
%191 = phi i32 [ %138, %160 ], [ 0, %174 ], [ 0, %182 ], [ 0, %188 ], [ 0, %189 ]
%192 = phi i32 [ %137, %160 ], [ 0, %174 ], [ 0, %182 ], [ 0, %188 ], [ 0, %189 ]
%193 = phi i32 [ %136, %160 ], [ %176, %174 ], [ %184, %182 ], [ %136, %188 ], [ %136, %189 ]
%194 = phi i32 [ %26, %160 ], [ %26, %174 ], [ %26, %182 ], [ 2, %188 ], [ 1, %189 ]
%195 = icmp slt i32 %193, 10
br i1 %195, label %196, label %210
196: ; preds = %190
%197 = load i8, i8* %4
%198 = load i8, i8* %10
%199 = load i8, i8* %9
%200 = load i8, i8* %11
%201 = load i8, i8* %7
%202 = load i8, i8* %12
%203 = load i8, i8* %13
%204 = load i8, i8* %14
%205 = load i8, i8* %8
br label %15
206: ; preds = %149, %155, %135, %144
%207 = phi i8* [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.14, i64 0, i64 0), %144 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.14, i64 0, i64 0), %135 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.13, i64 0, i64 0), %155 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.13, i64 0, i64 0), %149 ]
%208 = call i32 @puts(i8* dereferenceable(1) %207)
%209 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %210
210: ; preds = %190, %206
ret i32 0
}