#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 */
typedef int /*<<< orphan*/ array;

/* Variables and functions */
int /*<<< orphan*/ print1DArray(int, int *);
int /*<<< orphan*/ print2DArray(int, int, int **);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *, ...);
void fig06_23() {
  int arraySize;
  int row1, col1, row2, col2;
  printf("%s", "Enter size of a one-dimensional array: \n");
  scanf("%d", &arraySize);
  printf("%s", "\nEnter number of rows and columns in a 2-D array: \n");
  scanf("%d %d", &row1, &col1);
  printf("%s", "\nEnter number of rows and columns in another 2-D array: \n");
  scanf("%d %d", &row2, &col2);
  int array[arraySize];
  int array2D1[row1][col1];
  int array2D2[row2][col2];
  printf("\nsizeof(array) yields array size of %d bytes\n", sizeof(array));
  for (int i = 0; i < arraySize; ++i) {
    array[i] = i * i;
  }
  for (int i = 0; i < row1; ++i) {
    for (int j = 0; j < col1; ++j) {
      array2D1[i][j] = i + j;
    }
  }
  for (int i = 0; i < row2; ++i) {
    for (int j = 0; j < col2; ++j) {
      array2D2[i][j] = i + j;
    }
  }
  puts("\nOne-dimensional array:");
  print1DArray(arraySize, array);
  puts("\nFirst two-dimensional array:");
  print2DArray(row1, col1, array2D1);
  puts("\nSecond two-dimensional array:");
  print2DArray(row2, col2, array2D2);
}


x86 assembly (clang, -O0):
<fig06_23>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
lea    0xe9e(%rip),%rdi
mov    %rdi,-0xa0(%rbp)
lea    0xe93(%rip),%rsi
xor    %eax,%eax
mov    %al,-0x89(%rbp)
call   1050 <printf@plt>
mov    -0x89(%rbp),%al
lea    0xed9(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1070 <scanf@plt>
mov    -0xa0(%rbp),%rdi
mov    -0x89(%rbp),%al
lea    0xe85(%rip),%rsi
call   1050 <printf@plt>
mov    -0x89(%rbp),%al
lea    0xea7(%rip),%rdi
mov    %rdi,-0x98(%rbp)
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1070 <scanf@plt>
mov    -0xa0(%rbp),%rdi
mov    -0x89(%rbp),%al
lea    0xe85(%rip),%rsi
call   1050 <printf@plt>
mov    -0x98(%rbp),%rdi
mov    -0x89(%rbp),%al
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
call   1070 <scanf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,%esi
mov    %rsp,%rax
mov    %rax,-0x20(%rbp)
lea    0xf(,%rsi,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rax
sub    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    %rax,%rsp
mov    %rsi,-0x28(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    %rax,-0x80(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0x78(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
mov    %rax,-0x70(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0x68(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x40(%rbp)
mov    %rax,-0x48(%rbp)
shl    $0x2,%rsi
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12dc <fig06_23+0x18c>
mov    -0x88(%rbp),%rax
mov    -0x4c(%rbp),%edx
imul   -0x4c(%rbp),%edx
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12ad <fig06_23+0x15d>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1347 <fig06_23+0x1f7>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1334 <fig06_23+0x1e4>
mov    -0x78(%rbp),%rax
mov    -0x80(%rbp),%rsi
mov    -0x50(%rbp),%edx
add    -0x54(%rbp),%edx
movslq -0x50(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x54(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12f6 <fig06_23+0x1a6>
jmp    1339 <fig06_23+0x1e9>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    12e3 <fig06_23+0x193>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13b2 <fig06_23+0x262>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    139f <fig06_23+0x24f>
mov    -0x68(%rbp),%rax
mov    -0x70(%rbp),%rsi
mov    -0x58(%rbp),%edx
add    -0x5c(%rbp),%edx
movslq -0x58(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1361 <fig06_23+0x211>
jmp    13a4 <fig06_23+0x254>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    134e <fig06_23+0x1fe>
lea    0xd15(%rip),%rdi
call   1040 <puts@plt>
mov    -0x88(%rbp),%rsi
mov    -0x4(%rbp),%edi
call   1030 <print1DArray@plt>
lea    0xd12(%rip),%rdi
call   1040 <puts@plt>
mov    -0x78(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <print2DArray@plt>
lea    0xd15(%rip),%rdi
call   1040 <puts@plt>
mov    -0x68(%rbp),%rdx
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1060 <print2DArray@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fig06_23>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movabs $0x3ffffffffffffffe,%rax
ff ff 3f
mov    %rax,-0x68(%rbp)
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
lea    0xf11(%rip),%rdi
lea    -0x3c(%rbp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xfad(%rip),%rdi
call   1040 <puts@plt>
lea    0xef0(%rip),%rbx
lea    -0x38(%rbp),%rsi
lea    -0x34(%rbp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xfbb(%rip),%rdi
call   1040 <puts@plt>
lea    -0x30(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rsp,-0x70(%rbp)
mov    -0x3c(%rbp),%esi
mov    %rsp,%r12
lea    0xf(,%rsi,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    -0x38(%rbp),%eax
mov    -0x34(%rbp),%edx
mov    %rdx,-0x58(%rbp)
imul   %rdx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%edx
mov    %rdx,-0x60(%rbp)
imul   %rdx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
shl    $0x2,%rsi
lea    0xe51(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x3c(%rbp),%eax
test   %eax,%eax
jle    13e2 <fig06_23+0x292>
cmp    $0x8,%eax
jae    1263 <fig06_23+0x113>
xor    %ecx,%ecx
jmp    13d0 <fig06_23+0x280>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1828 <fig06_23+0x6d8>
mov    %rsi,%rdi
movabs $0x3ffffffffffffffe,%rdx
ff ff 3f
and    %rdx,%rdi
movdqa 0xd68(%rip),%xmm0
xor    %edx,%edx
movdqa 0xd6e(%rip),%xmm1
movdqa 0xd76(%rip),%xmm2
movdqa 0xd7e(%rip),%xmm3
movdqa 0xd86(%rip),%xmm4
nopw   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm5
paddd  %xmm1,%xmm5
movdqa %xmm0,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pshufd $0xf5,%xmm0,%xmm7
pmuludq %xmm7,%xmm7
pshufd $0xe8,%xmm7,%xmm7
punpckldq %xmm7,%xmm6
pshufd $0xf5,%xmm5,%xmm7
pmuludq %xmm5,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm7,%xmm7
pshufd $0xe8,%xmm7,%xmm7
punpckldq %xmm7,%xmm5
movdqa %xmm6,(%r12,%rdx,4)
movdqa %xmm5,0x10(%r12,%rdx,4)
movdqa %xmm0,%xmm5
paddd  %xmm2,%xmm5
movdqa %xmm0,%xmm6
paddd  %xmm3,%xmm6
pshufd $0xf5,%xmm5,%xmm7
pmuludq %xmm5,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm7,%xmm7
pshufd $0xe8,%xmm7,%xmm7
punpckldq %xmm7,%xmm5
pshufd $0xf5,%xmm6,%xmm7
pmuludq %xmm6,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pmuludq %xmm7,%xmm7
pshufd $0xe8,%xmm7,%xmm7
punpckldq %xmm7,%xmm6
movdqa %xmm5,0x20(%r12,%rdx,4)
movdqa %xmm6,0x30(%r12,%rdx,4)
add    $0x10,%rdx
paddd  %xmm4,%xmm0
add    $0xfffffffffffffffe,%rdi
jne    12c0 <fig06_23+0x170>
test   $0x1,%sil
je     13ca <fig06_23+0x27a>
movdqa 0xc8d(%rip),%xmm1
paddd  %xmm0,%xmm1
pshufd $0xf5,%xmm0,%xmm2
pmuludq %xmm0,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pmuludq %xmm2,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm0
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm1,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm2,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqa %xmm0,(%r12,%rdx,4)
movdqa %xmm1,0x10(%r12,%rdx,4)
cmp    %rax,%rcx
je     13e2 <fig06_23+0x292>
nop
mov    %ecx,%edx
imul   %ecx,%edx
mov    %edx,(%r12,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13d0 <fig06_23+0x280>
mov    -0x38(%rbp),%r15d
test   %r15d,%r15d
jle    15d9 <fig06_23+0x489>
mov    -0x34(%rbp),%ecx
mov    %ecx,%r11d
and    $0xfffffff8,%r11d
lea    -0x8(%r11),%r9
mov    %r9,%r10
shr    $0x3,%r10
add    $0x1,%r10
mov    %r10,%rdx
movabs $0x3ffffffffffffffe,%rax
ff ff 3f
and    %rax,%rdx
mov    %rdx,-0x78(%rbp)
mov    -0x50(%rbp),%rdx
lea    0x30(%rdx),%rsi
mov    -0x58(%rbp),%rax
lea    0x0(,%rax,4),%r14
xor    %ebx,%ebx
movdqa 0xc15(%rip),%xmm8
movdqa 0xc1c(%rip),%xmm9
movdqa 0xc23(%rip),%xmm10
movdqa 0xc2a(%rip),%xmm11
jmp    1473 <fig06_23+0x323>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
add    %r14,%rsi
add    %r14,%rdx
cmp    %r15,%rbx
je     15d9 <fig06_23+0x489>
test   %ecx,%ecx
jle    1460 <fig06_23+0x310>
cmp    $0x8,%ecx
jae    1490 <fig06_23+0x340>
xor    %eax,%eax
jmp    15b0 <fig06_23+0x460>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movq   %rbx,%xmm4
pshufd $0x44,%xmm4,%xmm4
test   %r9,%r9
je     15c4 <fig06_23+0x474>
lea    0x4(%rbx),%rax
movq   %rax,%xmm5
pshufd $0x44,%xmm5,%xmm3
mov    -0x78(%rbp),%r8
xor    %r13d,%r13d
movdqa %xmm9,%xmm1
movdqa %xmm8,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movdqa %xmm1,%xmm5
paddq  %xmm4,%xmm5
movdqa %xmm0,%xmm6
paddq  %xmm4,%xmm6
shufps $0x88,%xmm6,%xmm5
movdqa %xmm3,%xmm6
paddq  %xmm1,%xmm6
movdqa %xmm3,%xmm7
paddq  %xmm0,%xmm7
shufps $0x88,%xmm7,%xmm6
movups %xmm5,-0x30(%rsi,%r13,4)
movups %xmm6,-0x20(%rsi,%r13,4)
movdqa %xmm0,%xmm5
paddq  %xmm10,%xmm5
movdqa %xmm1,%xmm6
paddq  %xmm10,%xmm6
movdqa %xmm3,%xmm7
paddq  %xmm6,%xmm7
paddq  %xmm4,%xmm6
movdqa %xmm3,%xmm2
paddq  %xmm5,%xmm2
paddq  %xmm4,%xmm5
shufps $0x88,%xmm5,%xmm6
shufps $0x88,%xmm2,%xmm7
movups %xmm6,-0x10(%rsi,%r13,4)
movups %xmm7,(%rsi,%r13,4)
add    $0x10,%r13
paddq  %xmm11,%xmm1
paddq  %xmm11,%xmm0
add    $0xfffffffffffffffe,%r8
jne    14d0 <fig06_23+0x380>
test   $0x1,%r10b
je     15a2 <fig06_23+0x452>
mov    %rbx,%rax
imul   -0x58(%rbp),%rax
mov    -0x50(%rbp),%rdi
lea    (%rdi,%rax,4),%rax
movdqa %xmm1,%xmm2
paddq  %xmm4,%xmm2
paddq  %xmm0,%xmm4
shufps $0x88,%xmm4,%xmm2
lea    0x4(%rbx),%edi
movd   %edi,%xmm3
pshufd $0x44,%xmm3,%xmm3
paddq  %xmm3,%xmm0
paddq  %xmm1,%xmm3
shufps $0x88,%xmm0,%xmm3
movups %xmm2,(%rax,%r13,4)
movups %xmm3,0x10(%rax,%r13,4)
mov    %r11,%rax
cmp    %rcx,%r11
je     1460 <fig06_23+0x310>
xchg   %ax,%ax
lea    (%rbx,%rax,1),%edi
mov    %edi,(%rdx,%rax,4)
add    $0x1,%rax
cmp    %rax,%rcx
jne    15b0 <fig06_23+0x460>
jmp    1460 <fig06_23+0x310>
xor    %r13d,%r13d
movdqa %xmm9,%xmm1
movdqa %xmm8,%xmm0
test   $0x1,%r10b
jne    155f <fig06_23+0x40f>
jmp    15a2 <fig06_23+0x452>
mov    -0x30(%rbp),%r11d
test   %r11d,%r11d
jle    17c8 <fig06_23+0x678>
mov    -0x2c(%rbp),%r13d
mov    %r13d,%r10d
and    $0xfffffff8,%r10d
lea    -0x8(%r10),%r8
mov    %r8,%r9
shr    $0x3,%r9
add    $0x1,%r9
and    %r9,-0x68(%rbp)
mov    -0x48(%rbp),%rdx
lea    0x30(%rdx),%rsi
mov    -0x60(%rbp),%rax
lea    0x0(,%rax,4),%r14
xor    %ebx,%ebx
movdqa 0xa2d(%rip),%xmm8
movdqa 0xa34(%rip),%xmm9
movdqa 0xa3b(%rip),%xmm10
movdqa 0xa42(%rip),%xmm11
mov    -0x48(%rbp),%rcx
jmp    1663 <fig06_23+0x513>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
add    %r14,%rsi
add    %r14,%rdx
cmp    %r11,%rbx
je     17c8 <fig06_23+0x678>
test   %r13d,%r13d
jle    1650 <fig06_23+0x500>
cmp    $0x8,%r13d
jae    1680 <fig06_23+0x530>
xor    %eax,%eax
jmp    17a0 <fig06_23+0x650>
cs nopw 0x0(%rax,%rax,1)
nop
movq   %rbx,%xmm4
pshufd $0x44,%xmm4,%xmm4
test   %r8,%r8
je     17b4 <fig06_23+0x664>
lea    0x4(%rbx),%rax
movq   %rax,%xmm5
pshufd $0x44,%xmm5,%xmm3
mov    -0x68(%rbp),%rdi
xor    %eax,%eax
movdqa %xmm9,%xmm1
movdqa %xmm8,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqa %xmm1,%xmm5
paddq  %xmm4,%xmm5
movdqa %xmm0,%xmm6
paddq  %xmm4,%xmm6
shufps $0x88,%xmm6,%xmm5
movdqa %xmm3,%xmm6
paddq  %xmm1,%xmm6
movdqa %xmm3,%xmm7
paddq  %xmm0,%xmm7
shufps $0x88,%xmm7,%xmm6
movups %xmm5,-0x30(%rsi,%rax,4)
movups %xmm6,-0x20(%rsi,%rax,4)
movdqa %xmm0,%xmm5
paddq  %xmm10,%xmm5
movdqa %xmm1,%xmm6
paddq  %xmm10,%xmm6
movdqa %xmm3,%xmm7
paddq  %xmm6,%xmm7
paddq  %xmm4,%xmm6
movdqa %xmm3,%xmm2
paddq  %xmm5,%xmm2
paddq  %xmm4,%xmm5
shufps $0x88,%xmm5,%xmm6
shufps $0x88,%xmm2,%xmm7
movups %xmm6,-0x10(%rsi,%rax,4)
movups %xmm7,(%rsi,%rax,4)
add    $0x10,%rax
paddq  %xmm11,%xmm1
paddq  %xmm11,%xmm0
add    $0xfffffffffffffffe,%rdi
jne    16c0 <fig06_23+0x570>
test   $0x1,%r9b
je     178a <fig06_23+0x63a>
mov    %rbx,%rdi
imul   -0x60(%rbp),%rdi
lea    (%rcx,%rdi,4),%r15
movdqa %xmm1,%xmm2
paddq  %xmm4,%xmm2
paddq  %xmm0,%xmm4
shufps $0x88,%xmm4,%xmm2
lea    0x4(%rbx),%edi
movd   %edi,%xmm3
pshufd $0x44,%xmm3,%xmm3
paddq  %xmm3,%xmm0
paddq  %xmm1,%xmm3
shufps $0x88,%xmm0,%xmm3
movups %xmm2,(%r15,%rax,4)
movups %xmm3,0x10(%r15,%rax,4)
mov    %r10,%rax
cmp    %r13,%r10
je     1650 <fig06_23+0x500>
cs nopw 0x0(%rax,%rax,1)
lea    (%rbx,%rax,1),%edi
mov    %edi,(%rdx,%rax,4)
add    $0x1,%rax
cmp    %rax,%r13
jne    17a0 <fig06_23+0x650>
jmp    1650 <fig06_23+0x500>
xor    %eax,%eax
movdqa %xmm9,%xmm1
movdqa %xmm8,%xmm0
test   $0x1,%r9b
jne    174b <fig06_23+0x5fb>
jmp    178a <fig06_23+0x63a>
lea    0x8f5(%rip),%rdi
call   1040 <puts@plt>
mov    -0x3c(%rbp),%edi
mov    %r12,%rsi
call   1030 <print1DArray@plt>
lea    0x8f6(%rip),%rdi
call   1040 <puts@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x50(%rbp),%rdx
call   1060 <print2DArray@plt>
lea    0x8f9(%rip),%rdi
call   1040 <puts@plt>
mov    -0x30(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x48(%rbp),%rdx
call   1060 <print2DArray@plt>
mov    -0x70(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movdqa 0x7d0(%rip),%xmm0
xor    %edx,%edx
test   $0x1,%sil
jne    137b <fig06_23+0x22b>
jmp    13ca <fig06_23+0x27a>

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

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