#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 atoi(char *);
int /*<<< orphan*/ free(int *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int *utworz(int);
int /*<<< orphan*/ wypelnij(int *, int);
int /*<<< orphan*/ wyswietl(int *, int);
int /*<<< orphan*/ zmiana_znaku(int *, int);
int main(int argc, char *args[]) {
  int i, j;
  char wybor = 'a';
  int wymiar = 0;
  int *a = NULL, *b = NULL;
  if (argc != 2) {
    printf(
        "Niewlasciwa liczba parametrow. Uzycie: './a.out wymiar_tablicy'.\n");
    return 1;
  } else
    wymiar = atoi(args[1]);
  if (wymiar <= 0) {
    printf("Niepoprawna wartosc parametru. Argument musi byc dodatni.\n");
    return 2;
  }
  while (wybor != '0') {
    printf("----------MENU----------\n");
    printf("1 - Tworzenie tablicy.\n");
    printf("2 - Wypełnianie tablicy.\n");
    printf("3 - Wyświetlanie tablicy.\n");
    printf("4 - Zmiana znaków w tablicy.\n");
    printf("5 - Tworzenie drugiej tablicy.\n");
    printf("6 - Przemnożenie dwóch tablic.\n");
    printf("0 - KONIEC\n");
    scanf("%c", &wybor);
    switch (wybor) {
    case '1':
      a = utworz(wymiar);
      printf("Tablica została utworzona.\n");
      break;
    case '2':
      wypelnij(a, wymiar);
      printf("Tablica została wypełniona.\n");
      break;
    case '3':
      wyswietl(a, wymiar);
      break;
    case '4':
      zmiana_znaku(a, wymiar);
      printf("Znak został zmieniony.\n");
      break;
    case '5':
      b = utworz(wymiar);
      for (i = 0; i < wymiar; i++)
        for (j = 0; j < wymiar; j++)
          b[wymiar * i + j] = i * j;
      break;
    case '6':
      for (i = 0; i < wymiar; i++)
        for (j = 0; j < wymiar; j++)
          a[wymiar * i + j] *= b[wymiar * i + j];
      break;
    case '0':
      if (a != NULL)
        free(a);
      if (b != NULL)
        free(b);
      printf("PAPA!\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x61,-0x19(%rbp)
movl   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11d3 <main+0x53>
lea    0xe5a(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1444 <main+0x2c4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jg     1205 <main+0x85>
lea    0xe6a(%rip),%rdi
call   1040 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    1444 <main+0x2c4>
jmp    120a <main+0x8a>
movsbl -0x19(%rbp),%eax
cmp    $0x30,%eax
je     143d <main+0x2bd>
lea    0xe7b(%rip),%rdi
call   1040 <printf@plt>
lea    0xe89(%rip),%rdi
call   1040 <printf@plt>
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
call   1040 <printf@plt>
lea    0xef1(%rip),%rdi
call   1040 <printf@plt>
lea    0xef1(%rip),%rdi
lea    -0x19(%rbp),%rsi
call   1080 <scanf@plt>
movsbl -0x19(%rbp),%eax
add    $0xffffffd0,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x6,%eax
ja     1438 <main+0x2b8>
mov    -0x38(%rbp),%rax
lea    0xd58(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%edi
call   1050 <utworz@plt>
mov    %rax,-0x28(%rbp)
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
jmp    1438 <main+0x2b8>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   10a0 <wypelnij@plt>
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
jmp    1438 <main+0x2b8>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1060 <wyswietl@plt>
jmp    1438 <main+0x2b8>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1070 <zmiana_znaku@plt>
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
jmp    1438 <main+0x2b8>
mov    -0x20(%rbp),%edi
call   1050 <utworz@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1387 <main+0x207>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1374 <main+0x1f4>
mov    -0x14(%rbp),%edx
imul   -0x18(%rbp),%edx
mov    -0x30(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    133f <main+0x1bf>
jmp    1379 <main+0x1f9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    132c <main+0x1ac>
jmp    1438 <main+0x2b8>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13ff <main+0x27f>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13ec <main+0x26c>
mov    -0x30(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x28(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
imul   (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13a6 <main+0x226>
jmp    13f1 <main+0x271>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1393 <main+0x213>
jmp    1438 <main+0x2b8>
cmpq   $0x0,-0x28(%rbp)
je     1418 <main+0x298>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x30(%rbp)
je     142c <main+0x2ac>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
lea    0xd94(%rip),%rdi
call   1040 <printf@plt>
jmp    120a <main+0x8a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
movb   $0x61,0xf(%rsp)
cmp    $0x2,%edi
jne    17ef <main+0x66f>
mov    0x8(%rsi),%rdi
call   1090 <atoi@plt>
test   %eax,%eax
jle    1801 <main+0x681>
mov    %eax,%r11d
mov    %eax,%r12d
mov    %r12d,%eax
and    $0xfffffff8,%eax
mov    %rax,0x58(%rsp)
add    $0xfffffffffffffff8,%rax
mov    %rax,0x50(%rsp)
mov    %rax,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %r12d,%ebp
and    $0xfffffffc,%ebp
lea    -0x4(%rbp),%r8
mov    %r8,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rcx,%rax
mov    %rcx,0x48(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x38(%rsp)
mov    %r12,%rax
neg    %rax
mov    %rax,0x60(%rsp)
mov    %edx,%r9d
and    $0x3,%r9d
and    $0xfffffffffffffffc,%rdx
mov    %rdx,0x40(%rsp)
lea    0x0(,%r12,4),%r14
mov    %r9,%r15
shl    $0x4,%r15
xor    %eax,%eax
lea    0xe84(%rip),%r13
xor    %ecx,%ecx
mov    %rcx,0x18(%rsp)
mov    %rbp,0x30(%rsp)
mov    %r8,0x28(%rsp)
mov    %r9,0x20(%rsp)
jmp    125d <main+0xdd>
lea    0xe65(%rip),%r13
nopw   0x0(%rax,%rax,1)
mov    0xf(%rsp),%dl
cmp    $0x30,%dl
je     17fd <main+0x67d>
mov    %rax,0x10(%rsp)
mov    %r11d,%ebx
lea    0xe13(%rip),%rdi
call   1040 <puts@plt>
lea    0xe20(%rip),%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
lea    0xe3d(%rip),%rdi
call   1040 <puts@plt>
lea    0xe4c(%rip),%rdi
call   1040 <puts@plt>
lea    0xe5e(%rip),%rdi
call   1040 <puts@plt>
lea    0xe71(%rip),%rdi
call   1040 <puts@plt>
lea    0xe86(%rip),%rdi
call   1040 <puts@plt>
lea    0xdb4(%rip),%rdi
lea    0xf(%rsp),%rsi
call   1080 <scanf@plt>
movsbl 0xf(%rsp),%edx
lea    -0x30(%rdx),%ecx
cmp    $0x6,%ecx
ja     1327 <main+0x1a7>
lea    0xd7a(%rip),%rdx
movslq (%rdx,%rcx,4),%rax
add    %rdx,%rax
jmp    *%rax
mov    0x18(%rsp),%rdi
test   %rdi,%rdi
je     12fe <main+0x17e>
call   1030 <free@plt>
mov    0x10(%rsp),%rbp
test   %rbp,%rbp
je     1310 <main+0x190>
mov    %rbp,%rdi
call   1030 <free@plt>
lea    0xe36(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%r11d
mov    %rbp,%rax
jmp    1250 <main+0xd0>
mov    %ebx,%r11d
mov    0x10(%rsp),%rax
cmp    $0x30,%dl
jne    125d <main+0xdd>
jmp    17fd <main+0x67d>
mov    %ebx,%edi
call   1050 <utworz@plt>
mov    %rax,0x18(%rsp)
lea    0xe39(%rip),%rdi
jmp    1388 <main+0x208>
mov    0x18(%rsp),%rdi
mov    %ebx,%esi
call   10a0 <wypelnij@plt>
lea    0xe06(%rip),%rdi
jmp    1388 <main+0x208>
mov    0x18(%rsp),%rdi
mov    %ebx,%esi
call   1060 <wyswietl@plt>
jmp    138d <main+0x20d>
mov    0x18(%rsp),%rdi
mov    %ebx,%esi
call   1070 <zmiana_znaku@plt>
lea    0xdcb(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%r11d
mov    0x10(%rsp),%rax
jmp    1250 <main+0xd0>
mov    %ebx,%edi
call   1050 <utworz@plt>
mov    %ebx,%r11d
mov    %rax,%rbx
add    $0x30,%rbx
mov    %rax,%rcx
xor    %edx,%edx
mov    0x30(%rsp),%rbp
mov    0x28(%rsp),%r8
mov    0x20(%rsp),%r9
movdqa 0xc38(%rip),%xmm8
movdqa 0xc3f(%rip),%xmm9
movdqa 0xc47(%rip),%xmm7
movdqa 0xc4f(%rip),%xmm5
movdqa 0xc57(%rip),%xmm6
movdqa 0xc5e(%rip),%xmm10
jmp    1413 <main+0x293>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rdx
add    %r14,%rbx
add    %r14,%rcx
cmp    %r12,%rdx
je     1250 <main+0xd0>
cmp    $0x4,%r11d
jae    1420 <main+0x2a0>
xor    %esi,%esi
jmp    1545 <main+0x3c5>
movq   %rdx,%xmm0
pshufd $0x44,%xmm0,%xmm0
cmp    $0xc,%r8
jae    1450 <main+0x2d0>
xor    %esi,%esi
movdqa %xmm9,%xmm1
movdqa %xmm8,%xmm2
jmp    1503 <main+0x383>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x40(%rsp),%rdi
xor    %esi,%esi
movdqa %xmm9,%xmm1
movdqa %xmm8,%xmm2
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqa %xmm1,%xmm3
pmuludq %xmm0,%xmm3
movdqa %xmm2,%xmm4
pmuludq %xmm0,%xmm4
shufps $0x88,%xmm4,%xmm3
movups %xmm3,-0x30(%rbx,%rsi,4)
movdqa %xmm2,%xmm3
paddq  %xmm7,%xmm3
movdqa %xmm1,%xmm4
paddq  %xmm7,%xmm4
pmuludq %xmm0,%xmm4
pmuludq %xmm0,%xmm3
shufps $0x88,%xmm3,%xmm4
movups %xmm4,-0x20(%rbx,%rsi,4)
movdqa %xmm2,%xmm3
paddq  %xmm5,%xmm3
movdqa %xmm1,%xmm4
paddq  %xmm5,%xmm4
pmuludq %xmm0,%xmm4
pmuludq %xmm0,%xmm3
shufps $0x88,%xmm3,%xmm4
movups %xmm4,-0x10(%rbx,%rsi,4)
movdqa %xmm2,%xmm3
paddq  %xmm6,%xmm3
movdqa %xmm1,%xmm4
paddq  %xmm6,%xmm4
pmuludq %xmm0,%xmm4
pmuludq %xmm0,%xmm3
shufps $0x88,%xmm3,%xmm4
movups %xmm4,(%rbx,%rsi,4)
add    $0x10,%rsi
paddq  %xmm10,%xmm1
paddq  %xmm10,%xmm2
add    $0xfffffffffffffffc,%rdi
jne    1470 <main+0x2f0>
test   %r9,%r9
je     1539 <main+0x3b9>
lea    (%rcx,%rsi,4),%rsi
xor    %edi,%edi
xchg   %ax,%ax
movdqa %xmm1,%xmm3
pmuludq %xmm0,%xmm3
movdqa %xmm2,%xmm4
pmuludq %xmm0,%xmm4
shufps $0x88,%xmm4,%xmm3
movups %xmm3,(%rsi,%rdi,1)
paddq  %xmm7,%xmm1
paddq  %xmm7,%xmm2
add    $0x10,%rdi
cmp    %rdi,%r15
jne    1510 <main+0x390>
mov    %rbp,%rsi
cmp    %r12,%rbp
je     1400 <main+0x280>
mov    %esi,%edi
imul   %edx,%edi
nopw   0x0(%rax,%rax,1)
mov    %edi,(%rcx,%rsi,4)
add    $0x1,%rsi
add    %edx,%edi
cmp    %rsi,%r12
jne    1550 <main+0x3d0>
jmp    1400 <main+0x280>
mov    0x18(%rsp),%rsi
lea    0x30(%rsi),%r13
mov    0x10(%rsp),%rax
lea    0x30(%rax),%rcx
lea    0x4(%rax),%rdx
add    $0x4,%rsi
xor    %r8d,%r8d
mov    %ebx,%r11d
jmp    15a9 <main+0x429>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r8
add    %r14,%r13
add    %r14,%rcx
add    %r14,%rdx
add    %r14,%rsi
cmp    %r12,%r8
je     1243 <main+0xc3>
mov    %r8,%r9
imul   %r12,%r9
cmp    $0x8,%r11d
jb     15f5 <main+0x475>
lea    (%r9,%r12,1),%rdi
mov    0x10(%rsp),%rax
lea    (%rax,%rdi,4),%r10
mov    0x18(%rsp),%rbp
lea    0x0(,%r9,4),%rbx
add    %rbp,%rbx
cmp    %r10,%rbx
mov    0x10(%rsp),%rax
jae    1660 <main+0x4e0>
lea    (%rax,%r9,4),%rbx
lea    0x0(,%rdi,4),%rdi
add    %rbp,%rdi
cmp    %rdi,%rbx
jae    1660 <main+0x4e0>
xor    %ebx,%ebx
mov    %rbx,%rdi
test   $0x1,%r12b
je     161e <main+0x49e>
add    %rbx,%r9
mov    0x18(%rsp),%rbp
mov    0x0(%rbp,%r9,4),%edi
imul   (%rax,%r9,4),%edi
mov    %edi,0x0(%rbp,%r9,4)
mov    %rbx,%rdi
or     $0x1,%rdi
not    %rbx
cmp    0x60(%rsp),%rbx
je     1590 <main+0x410>
nopl   0x0(%rax)
mov    -0x4(%rsi,%rdi,4),%ebx
imul   -0x4(%rdx,%rdi,4),%ebx
mov    (%rsi,%rdi,4),%ebp
mov    %ebx,-0x4(%rsi,%rdi,4)
imul   (%rdx,%rdi,4),%ebp
mov    %ebp,(%rsi,%rdi,4)
add    $0x2,%rdi
cmp    %rdi,%r12
jne    1630 <main+0x4b0>
jmp    1590 <main+0x410>
cs nopw 0x0(%rax,%rax,1)
nop
cmpq   $0x0,0x50(%rsp)
je     17e0 <main+0x660>
mov    0x38(%rsp),%rdi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqu -0x30(%rcx,%rbx,4),%xmm1
movdqu -0x20(%rcx,%rbx,4),%xmm2
movdqu -0x30(%r13,%rbx,4),%xmm3
movdqu -0x20(%r13,%rbx,4),%xmm4
movdqu -0x10(%r13,%rbx,4),%xmm5
movdqu 0x0(%r13,%rbx,4),%xmm0
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm6,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm1,%xmm3
pshufd $0xf5,%xmm4,%xmm1
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm1
punpckldq %xmm1,%xmm4
movdqu %xmm3,-0x30(%r13,%rbx,4)
movdqu %xmm4,-0x20(%r13,%rbx,4)
movdqu -0x10(%rcx,%rbx,4),%xmm1
movdqu (%rcx,%rbx,4),%xmm2
pshufd $0xf5,%xmm5,%xmm3
pmuludq %xmm1,%xmm5
pshufd $0xe8,%xmm5,%xmm4
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm3,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm1,%xmm4
pshufd $0xf5,%xmm0,%xmm1
pmuludq %xmm2,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm1
punpckldq %xmm1,%xmm0
movdqu %xmm4,-0x10(%r13,%rbx,4)
movdqu %xmm0,0x0(%r13,%rbx,4)
add    $0x10,%rbx
add    $0xfffffffffffffffe,%rdi
jne    1680 <main+0x500>
testb  $0x1,0x48(%rsp)
je     17ca <main+0x64a>
add    %r9,%rbx
movdqu (%rax,%rbx,4),%xmm0
movdqu 0x10(%rax,%rbx,4),%xmm1
movdqu 0x0(%rbp,%rbx,4),%xmm2
movdqu 0x10(%rbp,%rbx,4),%xmm3
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm4,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
pshufd $0xf5,%xmm3,%xmm0
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm0
punpckldq %xmm0,%xmm3
movdqu %xmm2,0x0(%rbp,%rbx,4)
movdqu %xmm3,0x10(%rbp,%rbx,4)
mov    0x58(%rsp),%rdi
mov    %rdi,%rbx
cmp    %r12,%rdi
je     1590 <main+0x410>
jmp    15f7 <main+0x477>
xor    %ebx,%ebx
testb  $0x1,0x48(%rsp)
jne    1764 <main+0x5e4>
jmp    17ca <main+0x64a>
mov    $0x1,%ebx
lea    0x9e4(%rip),%rdi
jmp    180d <main+0x68d>
xor    %ebx,%ebx
jmp    1812 <main+0x692>
mov    $0x2,%ebx
lea    0x998(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [66 x i8] c"Niewlasciwa liczba parametrow. Uzycie: './a.out wymiar_tablicy'.\0A\00"
@.str.1 = [59 x i8] c"Niepoprawna wartosc parametru. Argument musi byc dodatni.\0A\00"
@.str.2 = [26 x i8] c"----------MENU----------\0A\00"
@.str.3 = [24 x i8] c"1 - Tworzenie tablicy.\0A\00"
@.str.4 = [27 x i8] c"2 - Wype\C5\82nianie tablicy.\0A\00"
@.str.5 = [28 x i8] c"3 - Wy\C5\9Bwietlanie tablicy.\0A\00"
@.str.6 = [31 x i8] c"4 - Zmiana znak\C3\B3w w tablicy.\0A\00"
@.str.7 = [32 x i8] c"5 - Tworzenie drugiej tablicy.\0A\00"
@.str.8 = [34 x i8] c"6 - Przemno\C5\BCenie dw\C3\B3ch tablic.\0A\00"
@.str.9 = [12 x i8] c"0 - KONIEC\0A\00"
@.str.10 = [3 x i8] c"%c\00"
@.str.11 = [29 x i8] c"Tablica zosta\C5\82a utworzona.\0A\00"
@.str.12 = [31 x i8] c"Tablica zosta\C5\82a wype\C5\82niona.\0A\00"
@.str.13 = [25 x i8] c"Znak zosta\C5\82 zmieniony.\0A\00"
@.str.14 = [7 x i8] c"PAPA!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 97, i8* %8
store i32 0, i32* %9
store i32* null, i32** %10
store i32* null, i32** %11
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %147
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @atoi(i8* %19)
store i32 %20, i32* %9
br label %21
21: ; preds = %16
%22 = load i32, i32* %9
%23 = icmp sle i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
store i32 2, i32* %3
br label %147
26: ; preds = %21
br label %27
27: ; preds = %145, %26
%28 = load i8, i8* %8
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 48
br i1 %30, label %31, label %146
31: ; preds = %27
%32 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%36 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%37 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%39 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %8)
%41 = load i8, i8* %8
%42 = sext i8 %41 to i32
switch i32 %42, label %145 [
i32 49, label %43
i32 50, label %47
i32 51, label %52
i32 52, label %56
i32 53, label %61
i32 54, label %93
i32 48, label %131
]
43: ; preds = %31
%44 = load i32, i32* %9
%45 = call i32* @utworz(i32 %44)
store i32* %45, i32** %10
%46 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
br label %145
47: ; preds = %31
%48 = load i32*, i32** %10
%49 = load i32, i32* %9
%50 = call i32 @wypelnij(i32* %48, i32 %49)
%51 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
br label %145
52: ; preds = %31
%53 = load i32*, i32** %10
%54 = load i32, i32* %9
%55 = call i32 @wyswietl(i32* %53, i32 %54)
br label %145
56: ; preds = %31
%57 = load i32*, i32** %10
%58 = load i32, i32* %9
%59 = call i32 @zmiana_znaku(i32* %57, i32 %58)
%60 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
br label %145
61: ; preds = %31
%62 = load i32, i32* %9
%63 = call i32* @utworz(i32 %62)
store i32* %63, i32** %11
store i32 0, i32* %6
br label %64
64: ; preds = %89, %61
%65 = load i32, i32* %6
%66 = load i32, i32* %9
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %92
68: ; preds = %64
store i32 0, i32* %7
br label %69
69: ; preds = %85, %68
%70 = load i32, i32* %7
%71 = load i32, i32* %9
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %88
73: ; preds = %69
%74 = load i32, i32* %6
%75 = load i32, i32* %7
%76 = mul nsw i32 %74, %75
%77 = load i32*, i32** %11
%78 = load i32, i32* %9
%79 = load i32, i32* %6
%80 = mul nsw i32 %78, %79
%81 = load i32, i32* %7
%82 = add nsw i32 %80, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, i32* %77, i64 %83
store i32 %76, i32* %84
br label %85
85: ; preds = %73
%86 = load i32, i32* %7
%87 = add nsw i32 %86, 1
store i32 %87, i32* %7
br label %69
88: ; preds = %69
br label %89
89: ; preds = %88
%90 = load i32, i32* %6
%91 = add nsw i32 %90, 1
store i32 %91, i32* %6
br label %64
92: ; preds = %64
br label %145
93: ; preds = %31
store i32 0, i32* %6
br label %94
94: ; preds = %127, %93
%95 = load i32, i32* %6
%96 = load i32, i32* %9
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %130
98: ; preds = %94
store i32 0, i32* %7
br label %99
99: ; preds = %123, %98
%100 = load i32, i32* %7
%101 = load i32, i32* %9
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %126
103: ; preds = %99
%104 = load i32*, i32** %11
%105 = load i32, i32* %9
%106 = load i32, i32* %6
%107 = mul nsw i32 %105, %106
%108 = load i32, i32* %7
%109 = add nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, i32* %104, i64 %110
%112 = load i32, i32* %111
%113 = load i32*, i32** %10
%114 = load i32, i32* %9
%115 = load i32, i32* %6
%116 = mul nsw i32 %114, %115
%117 = load i32, i32* %7
%118 = add nsw i32 %116, %117
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, i32* %113, i64 %119
%121 = load i32, i32* %120
%122 = mul nsw i32 %121, %112
store i32 %122, i32* %120
br label %123
123: ; preds = %103
%124 = load i32, i32* %7
%125 = add nsw i32 %124, 1
store i32 %125, i32* %7
br label %99
126: ; preds = %99
br label %127
127: ; preds = %126
%128 = load i32, i32* %6
%129 = add nsw i32 %128, 1
store i32 %129, i32* %6
br label %94
130: ; preds = %94
br label %145
131: ; preds = %31
%132 = load i32*, i32** %10
%133 = icmp ne i32* %132, null
br i1 %133, label %134, label %137
134: ; preds = %131
%135 = load i32*, i32** %10
%136 = call i32 @free(i32* %135)
br label %137
137: ; preds = %134, %131
%138 = load i32*, i32** %11
%139 = icmp ne i32* %138, null
br i1 %139, label %140, label %143
140: ; preds = %137
%141 = load i32*, i32** %11
%142 = call i32 @free(i32* %141)
br label %143
143: ; preds = %140, %137
%144 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
br label %145
145: ; preds = %143, %31, %130, %92, %56, %52, %47, %43
br label %27
146: ; preds = %27
store i32 0, i32* %3
br label %147
147: ; preds = %146, %24, %14
%148 = load i32, i32* %3
ret i32 %148
}

LLVM IR (-O2):
@.str.10 = [3 x i8] c"%c\00"
@str = [25 x i8] c"----------MENU----------\00"
@str.15 = [23 x i8] c"1 - Tworzenie tablicy.\00"
@str.16 = [26 x i8] c"2 - Wype\C5\82nianie tablicy.\00"
@str.17 = [27 x i8] c"3 - Wy\C5\9Bwietlanie tablicy.\00"
@str.18 = [30 x i8] c"4 - Zmiana znak\C3\B3w w tablicy.\00"
@str.19 = [31 x i8] c"5 - Tworzenie drugiej tablicy.\00"
@str.20 = [33 x i8] c"6 - Przemno\C5\BCenie dw\C3\B3ch tablic.\00"
@str.21 = [11 x i8] c"0 - KONIEC\00"
@str.22 = [6 x i8] c"PAPA!\00"
@str.23 = [24 x i8] c"Znak zosta\C5\82 zmieniony.\00"
@str.24 = [30 x i8] c"Tablica zosta\C5\82a wype\C5\82niona.\00"
@str.25 = [28 x i8] c"Tablica zosta\C5\82a utworzona.\00"
@str.26 = [58 x i8] c"Niepoprawna wartosc parametru. Argument musi byc dodatni.\00"
@str.27 = [65 x i8] c"Niewlasciwa liczba parametrow. Uzycie: './a.out wymiar_tablicy'.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8
store i8 97, i8* %3
%4 = icmp eq i32 %0, 2
br i1 %4, label %5, label %265
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = tail call i32 @atoi(i8* %7)
%9 = icmp slt i32 %8, 1
br i1 %9, label %265, label %10
10: ; preds = %5
%11 = zext i32 %8 to i64
%12 = zext i32 %8 to i64
%13 = zext i32 %8 to i64
%14 = and i64 %12, 4294967288
%15 = add nsw i64 %14, -8
%16 = lshr exact i64 %15, 3
%17 = add nuw nsw i64 %16, 1
%18 = and i64 %12, 4294967292
%19 = add nsw i64 %18, -4
%20 = lshr exact i64 %19, 2
%21 = add nuw nsw i64 %20, 1
%22 = icmp ult i32 %8, 8
%23 = and i64 %12, 4294967288
%24 = and i64 %17, 1
%25 = icmp eq i64 %15, 0
%26 = and i64 %17, 4611686018427387902
%27 = icmp eq i64 %24, 0
%28 = icmp eq i64 %23, %12
%29 = and i64 %12, 1
%30 = icmp eq i64 %29, 0
%31 = sub nsw i64 0, %12
%32 = icmp ult i32 %8, 4
%33 = and i64 %12, 4294967292
%34 = and i64 %21, 3
%35 = icmp ult i64 %19, 12
%36 = and i64 %21, 9223372036854775804
%37 = icmp eq i64 %34, 0
%38 = icmp eq i64 %33, %12
br label %39
39: ; preds = %10, %260
%40 = phi i32* [ null, %10 ], [ %263, %260 ]
%41 = phi i32* [ null, %10 ], [ %262, %260 ]
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.15, i64 0, i64 0))
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.16, i64 0, i64 0))
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.17, i64 0, i64 0))
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.18, i64 0, i64 0))
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.19, i64 0, i64 0))
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.20, i64 0, i64 0))
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.21, i64 0, i64 0))
%50 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %3)
%51 = load i8, i8* %3
%52 = sext i8 %51 to i32
switch i32 %52, label %260 [
i32 49, label %53
i32 50, label %56
i32 51, label %59
i32 52, label %61
i32 53, label %64
i32 54, label %136
i32 48, label %246
]
53: ; preds = %39
%54 = call i32* @utworz(i32 %8)
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.25, i64 0, i64 0))
br label %256
56: ; preds = %39
%57 = call i32 @wypelnij(i32* %41, i32 %8)
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.24, i64 0, i64 0))
br label %256
59: ; preds = %39
%60 = call i32 @wyswietl(i32* %41, i32 %8)
br label %256
61: ; preds = %39
%62 = call i32 @zmiana_znaku(i32* %41, i32 %8)
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.23, i64 0, i64 0))
br label %256
64: ; preds = %39
%65 = call i32* @utworz(i32 %8)
br label %66
66: ; preds = %133, %64
%67 = phi i64 [ 0, %64 ], [ %134, %133 ]
%68 = mul nsw i64 %67, %11
br i1 %32, label %123, label %69
69: ; preds = %66
%70 = insertelement <4 x i64> poison, i64 %67, i64 0
%71 = shufflevector <4 x i64> %70, <4 x i64> poison, <4 x i32> zeroinitializer
br i1 %35, label %106, label %72
72: ; preds = %69, %72
%73 = phi i64 [ %102, %72 ], [ 0, %69 ]
%74 = phi <4 x i64> [ %103, %72 ], [ <i64 0, i64 1, i64 2, i64 3>, %69 ]
%75 = phi i64 [ %104, %72 ], [ 0, %69 ]
%76 = mul nuw nsw <4 x i64> %74, %71
%77 = add nuw nsw i64 %73, %68
%78 = getelementptr inbounds i32, i32* %65, i64 %77
%79 = trunc <4 x i64> %76 to <4 x i32>
%80 = bitcast i32* %78 to <4 x i32>*
store <4 x i32> %79, <4 x i32>* %80
%81 = or i64 %73, 4
%82 = add <4 x i64> %74, <i64 4, i64 4, i64 4, i64 4>
%83 = mul nuw nsw <4 x i64> %82, %71
%84 = add nuw nsw i64 %81, %68
%85 = getelementptr inbounds i32, i32* %65, i64 %84
%86 = trunc <4 x i64> %83 to <4 x i32>
%87 = bitcast i32* %85 to <4 x i32>*
store <4 x i32> %86, <4 x i32>* %87
%88 = or i64 %73, 8
%89 = add <4 x i64> %74, <i64 8, i64 8, i64 8, i64 8>
%90 = mul nuw nsw <4 x i64> %89, %71
%91 = add nuw nsw i64 %88, %68
%92 = getelementptr inbounds i32, i32* %65, i64 %91
%93 = trunc <4 x i64> %90 to <4 x i32>
%94 = bitcast i32* %92 to <4 x i32>*
store <4 x i32> %93, <4 x i32>* %94
%95 = or i64 %73, 12
%96 = add <4 x i64> %74, <i64 12, i64 12, i64 12, i64 12>
%97 = mul nuw nsw <4 x i64> %96, %71
%98 = add nuw nsw i64 %95, %68
%99 = getelementptr inbounds i32, i32* %65, i64 %98
%100 = trunc <4 x i64> %97 to <4 x i32>
%101 = bitcast i32* %99 to <4 x i32>*
store <4 x i32> %100, <4 x i32>* %101
%102 = add nuw i64 %73, 16
%103 = add <4 x i64> %74, <i64 16, i64 16, i64 16, i64 16>
%104 = add nuw i64 %75, 4
%105 = icmp eq i64 %104, %36
br i1 %105, label %106, label %72
106: ; preds = %72, %69
%107 = phi i64 [ 0, %69 ], [ %102, %72 ]
%108 = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %69 ], [ %103, %72 ]
br i1 %37, label %122, label %109
109: ; preds = %106, %109
%110 = phi i64 [ %118, %109 ], [ %107, %106 ]
%111 = phi <4 x i64> [ %119, %109 ], [ %108, %106 ]
%112 = phi i64 [ %120, %109 ], [ 0, %106 ]
%113 = mul nuw nsw <4 x i64> %111, %71
%114 = add nuw nsw i64 %110, %68
%115 = getelementptr inbounds i32, i32* %65, i64 %114
%116 = trunc <4 x i64> %113 to <4 x i32>
%117 = bitcast i32* %115 to <4 x i32>*
store <4 x i32> %116, <4 x i32>* %117
%118 = add nuw i64 %110, 4
%119 = add <4 x i64> %111, <i64 4, i64 4, i64 4, i64 4>
%120 = add i64 %112, 1
%121 = icmp eq i64 %120, %34
br i1 %121, label %122, label %109
122: ; preds = %109, %106
br i1 %38, label %133, label %123
123: ; preds = %66, %122
%124 = phi i64 [ 0, %66 ], [ %33, %122 ]
br label %125
125: ; preds = %123, %125
%126 = phi i64 [ %131, %125 ], [ %124, %123 ]
%127 = mul nuw nsw i64 %126, %67
%128 = add nuw nsw i64 %126, %68
%129 = getelementptr inbounds i32, i32* %65, i64 %128
%130 = trunc i64 %127 to i32
store i32 %130, i32* %129
%131 = add nuw nsw i64 %126, 1
%132 = icmp eq i64 %131, %13
br i1 %132, label %133, label %125
133: ; preds = %125, %122
%134 = add nuw nsw i64 %67, 1
%135 = icmp eq i64 %134, %13
br i1 %135, label %256, label %66
136: ; preds = %39, %243
%137 = phi i64 [ %244, %243 ], [ 0, %39 ]
%138 = mul i64 %137, %12
%139 = add i64 %138, %12
%140 = mul nsw i64 %137, %11
br i1 %22, label %212, label %141
141: ; preds = %136
%142 = getelementptr i32, i32* %40, i64 %139
%143 = getelementptr i32, i32* %40, i64 %138
%144 = getelementptr i32, i32* %41, i64 %139
%145 = getelementptr i32, i32* %41, i64 %138
%146 = icmp ult i32* %145, %142
%147 = icmp ult i32* %143, %144
%148 = and i1 %146, %147
br i1 %148, label %212, label %149
149: ; preds = %141
br i1 %25, label %191, label %150
150: ; preds = %149, %150
%151 = phi i64 [ %188, %150 ], [ 0, %149 ]
%152 = phi i64 [ %189, %150 ], [ 0, %149 ]
%153 = add nuw nsw i64 %151, %140
%154 = getelementptr inbounds i32, i32* %40, i64 %153
%155 = bitcast i32* %154 to <4 x i32>*
%156 = load <4 x i32>, <4 x i32>* %155
%157 = getelementptr inbounds i32, i32* %154, i64 4
%158 = bitcast i32* %157 to <4 x i32>*
%159 = load <4 x i32>, <4 x i32>* %158
%160 = getelementptr inbounds i32, i32* %41, i64 %153
%161 = bitcast i32* %160 to <4 x i32>*
%162 = load <4 x i32>, <4 x i32>* %161
%163 = getelementptr inbounds i32, i32* %160, i64 4
%164 = bitcast i32* %163 to <4 x i32>*
%165 = load <4 x i32>, <4 x i32>* %164
%166 = mul nsw <4 x i32> %162, %156
%167 = mul nsw <4 x i32> %165, %159
%168 = bitcast i32* %160 to <4 x i32>*
store <4 x i32> %166, <4 x i32>* %168
%169 = bitcast i32* %163 to <4 x i32>*
store <4 x i32> %167, <4 x i32>* %169
%170 = or i64 %151, 8
%171 = add nuw nsw i64 %170, %140
%172 = getelementptr inbounds i32, i32* %40, i64 %171
%173 = bitcast i32* %172 to <4 x i32>*
%174 = load <4 x i32>, <4 x i32>* %173
%175 = getelementptr inbounds i32, i32* %172, i64 4
%176 = bitcast i32* %175 to <4 x i32>*
%177 = load <4 x i32>, <4 x i32>* %176
%178 = getelementptr inbounds i32, i32* %41, i64 %171
%179 = bitcast i32* %178 to <4 x i32>*
%180 = load <4 x i32>, <4 x i32>* %179
%181 = getelementptr inbounds i32, i32* %178, i64 4
%182 = bitcast i32* %181 to <4 x i32>*
%183 = load <4 x i32>, <4 x i32>* %182
%184 = mul nsw <4 x i32> %180, %174
%185 = mul nsw <4 x i32> %183, %177
%186 = bitcast i32* %178 to <4 x i32>*
store <4 x i32> %184, <4 x i32>* %186
%187 = bitcast i32* %181 to <4 x i32>*
store <4 x i32> %185, <4 x i32>* %187
%188 = add nuw i64 %151, 16
%189 = add i64 %152, 2
%190 = icmp eq i64 %189, %26
br i1 %190, label %191, label %150
191: ; preds = %150, %149
%192 = phi i64 [ 0, %149 ], [ %188, %150 ]
br i1 %27, label %211, label %193
193: ; preds = %191
%194 = add nuw nsw i64 %192, %140
%195 = getelementptr inbounds i32, i32* %40, i64 %194
%196 = bitcast i32* %195 to <4 x i32>*
%197 = load <4 x i32>, <4 x i32>* %196
%198 = getelementptr inbounds i32, i32* %195, i64 4
%199 = bitcast i32* %198 to <4 x i32>*
%200 = load <4 x i32>, <4 x i32>* %199
%201 = getelementptr inbounds i32, i32* %41, i64 %194
%202 = bitcast i32* %201 to <4 x i32>*
%203 = load <4 x i32>, <4 x i32>* %202
%204 = getelementptr inbounds i32, i32* %201, i64 4
%205 = bitcast i32* %204 to <4 x i32>*
%206 = load <4 x i32>, <4 x i32>* %205
%207 = mul nsw <4 x i32> %203, %197
%208 = mul nsw <4 x i32> %206, %200
%209 = bitcast i32* %201 to <4 x i32>*
store <4 x i32> %207, <4 x i32>* %209
%210 = bitcast i32* %204 to <4 x i32>*
store <4 x i32> %208, <4 x i32>* %210
br label %211
211: ; preds = %191, %193
br i1 %28, label %243, label %212
212: ; preds = %141, %136, %211
%213 = phi i64 [ 0, %141 ], [ 0, %136 ], [ %23, %211 ]
%214 = xor i64 %213, -1
br i1 %30, label %223, label %215
215: ; preds = %212
%216 = add nuw nsw i64 %213, %140
%217 = getelementptr inbounds i32, i32* %40, i64 %216
%218 = load i32, i32* %217
%219 = getelementptr inbounds i32, i32* %41, i64 %216
%220 = load i32, i32* %219
%221 = mul nsw i32 %220, %218
store i32 %221, i32* %219
%222 = or i64 %213, 1
br label %223
223: ; preds = %215, %212
%224 = phi i64 [ %213, %212 ], [ %222, %215 ]
%225 = icmp eq i64 %214, %31
br i1 %225, label %243, label %226
226: ; preds = %223, %226
%227 = phi i64 [ %241, %226 ], [ %224, %223 ]
%228 = add nuw nsw i64 %227, %140
%229 = getelementptr inbounds i32, i32* %40, i64 %228
%230 = load i32, i32* %229
%231 = getelementptr inbounds i32, i32* %41, i64 %228
%232 = load i32, i32* %231
%233 = mul nsw i32 %232, %230
store i32 %233, i32* %231
%234 = add nuw nsw i64 %227, 1
%235 = add nuw nsw i64 %234, %140
%236 = getelementptr inbounds i32, i32* %40, i64 %235
%237 = load i32, i32* %236
%238 = getelementptr inbounds i32, i32* %41, i64 %235
%239 = load i32, i32* %238
%240 = mul nsw i32 %239, %237
store i32 %240, i32* %238
%241 = add nuw nsw i64 %227, 2
%242 = icmp eq i64 %241, %12
br i1 %242, label %243, label %226
243: ; preds = %223, %226, %211
%244 = add nuw nsw i64 %137, 1
%245 = icmp eq i64 %244, %12
br i1 %245, label %256, label %136
246: ; preds = %39
%247 = icmp eq i32* %41, null
br i1 %247, label %250, label %248
248: ; preds = %246
%249 = call i32 @free(i32* %41)
br label %250
250: ; preds = %248, %246
%251 = icmp eq i32* %40, null
br i1 %251, label %254, label %252
252: ; preds = %250
%253 = call i32 @free(i32* %40)
br label %254
254: ; preds = %252, %250
%255 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.22, i64 0, i64 0))
br label %256
256: ; preds = %243, %133, %53, %56, %59, %61, %254
%257 = phi i32* [ %54, %53 ], [ %41, %56 ], [ %41, %59 ], [ %41, %61 ], [ %41, %254 ], [ %41, %133 ], [ %41, %243 ]
%258 = phi i32* [ %40, %53 ], [ %40, %56 ], [ %40, %59 ], [ %40, %61 ], [ %40, %254 ], [ %65, %133 ], [ %40, %243 ]
%259 = load i8, i8* %3
br label %260
260: ; preds = %256, %39
%261 = phi i8 [ %259, %256 ], [ %51, %39 ]
%262 = phi i32* [ %257, %256 ], [ %41, %39 ]
%263 = phi i32* [ %258, %256 ], [ %40, %39 ]
%264 = icmp eq i8 %261, 48
br i1 %264, label %269, label %39
265: ; preds = %5, %2
%266 = phi i8* [ getelementptr inbounds ([65 x i8], [65 x i8]* @str.27, i64 0, i64 0), %2 ], [ getelementptr inbounds ([58 x i8], [58 x i8]* @str.26, i64 0, i64 0), %5 ]
%267 = phi i32 [ 1, %2 ], [ 2, %5 ]
%268 = tail call i32 @puts(i8* dereferenceable(1) %266)
br label %269
269: ; preds = %260, %265
%270 = phi i32 [ %267, %265 ], [ 0, %260 ]
ret i32 %270
}