#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 */
scalar_t__ calloc(int, int);
int **create2Darray(int, int);
int /*<<< orphan*/ fill2Darray(int **, int, int, char *, int);
int /*<<< orphan*/ print2DArray(char *, int, int **, int, int);
int /*<<< orphan*/ rotatestringright(char *, int);
int /*<<< orphan*/ srand(unsigned int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
long strtol(char const *, char **, int);
scalar_t__ time(int /*<<< orphan*/ *);
int main(int args, const char *argv[]) {
  srand((unsigned)time(NULL));
  argv[1] = "80";
  args = 2;
  int stringlen = 3599;
  int bufferlen = 3599;
  char *string = (char *)calloc(stringlen, stringlen * sizeof(char));
  char *buffer = (char *)calloc(stringlen, bufferlen * sizeof(char));
  strcpy(string, "\0");
  strcat(string, "0001011101010011011001110001100000111000011101011000011000110"
                 "01101011101010101100011111110000100110");
  strcat(string, "0010101001111000011101001101000000001011011001101101011100011"
                 "010011101101000010010100100100101000000");
  strcat(string, "0000111000110101101010101011010100100100110100011100011001101"
                 "010111001110001101100000111101011111000");
  strcat(string, "1100011101000101011111011001010010001111010110000111111101011"
                 "010111001011011110111110110101011111100");
  strcat(string, "1100011101010001110001111101010101111111101101000001111111111"
                 "011001101000011000110111110000110110110");
  strcat(string, "1101001110011001010100100000000110101010110100011001010101010"
                 "100000101001101110001111101101111111101");
  strcat(string, "1011101010101000110100000001100101111111010101010101001101111"
                 "100101001000100000101111100011101110111");
  strcat(string, "0101101111000101000011001100110110101001100101010110101000111"
                 "110010001110001001011000100011110100000");
  strcat(string, "0101010000000000101010000100011110101111000111001100011101001"
                 "100010111110100001101001110110010010101");
  strcat(string, "1011011111010011101000010010100110110010001010110101110110010"
                 "110001100011000111100011111010110101000");
  strcat(string, "0010000101110101100010001011001001011111000100111110111000111"
                 "111010110011111101101100000101011001000");
  strcat(string, "0110110000110000000010101000011111001110111001001100100000000"
                 "111111010100011010001111010011101111111");
  strcat(string, "1000011000101110000000101100111110101000101001011100011001000"
                 "001111101001100111010000001110011110110");
  strcat(string, "1110110111111100111001001110110101101010110110110100110110101"
                 "100101010101101011000000111100110101011");
  strcat(string, "1100010110100101001001110011011111011001101111101000010110010"
                 "011010010100010111010100101011111001011");
  strcat(string, "0000010000111111010011011010010100010011011000100101100010001"
                 "100110111010010100000110010100101011010");
  strcat(string, "0000101011000010000100011110010001111000001011111111000101101"
                 "111100100101011011000110110000100000101");
  strcat(string, "1110001010110001110001010011110100001011111001010110111010111"
                 "111000100000001011100101100110100110011");
  strcat(string, "0011001111011001111011010001001100101111010010110110000110001"
                 "011010011000000100001000110111010101100");
  strcat(string, "0111001010100100100000101011011100100111011010001101111100011"
                 "101100100010001001100100110011111101110");
  strcat(string, "1011101100001100100111010100100001001101100011001010111101101"
                 "100100000000100100010011101110100001011");
  strcat(string, "0101001100000010110101010111001101011101101010011101000101010"
                 "011010000100111111100111000000100001010");
  strcat(string, "1001011001101110000110101000011100000000010111010010000001011"
                 "101010011001011101111101111111100010000");
  strcat(string, "0010010100011010010111111101111110101110110010101000000000110"
                 "010011101001001101101101011010110110011");
  strcat(string, "1001110110001110110011001100111110110111001110001001111110100"
                 "010110011111101100010000000101000111000");
  strcat(string, "0000000000010010000100000000101000000001010100000111111001110"
                 "100101101101000010100001010001111010001");
  strcat(string, "0101011100011100000100001110000110001100000100100011010110010"
                 "000001111011011000001001111111100001010");
  strcat(string, "1011110101000011010101101001111111011001111010010100010000010"
                 "110111100000001011100010110010000100010");
  strcat(string, "1001011011000011110110111111010100000000101000010011001010000"
                 "000010010101000010000110111011100000000");
  strcat(string, "1111110111000101101101010011001001110111100111010110100011011"
                 "101100011001111010000100111011011001101");
  strcat(string, "1110101111010101100100001110001010010010010111010111101111110"
                 "110001101010011100000111110111010100000");
  strcat(string, "0010111000110011010111010101100101000000000110101100001010101"
                 "011001000100111001111000010001010011010");
  strcat(string, "1101110001011000001110001001000111011110111101100011000011010"
                 "010111110110101110101010011101101011001");
  strcat(string, "1010111010101010010110100000011001001000010100110110001110001"
                 "100100011101000010110000011100010011100");
  strcat(string, "0000100001110110010101100100100110111100101101111100011001110"
                 "110000101111010111010110111001110000111");
  strcat(string,
         "001010010001010010100001000101110011001010110111110001010000001\0");
  char *ptr;
  long inp;
  int i, size = 0;
  for (i = 0; i < args; i++) {
    inp = 0;
    inp = strtol(argv[i], &ptr, 10);
    if (inp != 0)
      size = (int)inp;
  }
  int **array = create2Darray(size, size);
  while (1) {
    rotatestringright(string, stringlen);
    fill2Darray(array, size, size, string, (int)strlen(string));
    print2DArray(buffer, bufferlen, array, size, size);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    -0x10(%rbp),%rax
lea    0xe1f(%rip),%rcx
mov    %rcx,0x8(%rax)
movl   $0x2,-0x8(%rbp)
movl   $0xe0f,-0x14(%rbp)
movl   $0xe0f,-0x18(%rbp)
mov    -0x14(%rbp),%edi
movslq -0x14(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%esi
call   1080 <calloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
movslq -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%esi
call   1080 <calloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
lea    0x1ba0(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xe16(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xe6b(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xec0(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xf15(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xf6a(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0xfbf(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1014(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1069(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x10be(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1113(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1168(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x11bd(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1212(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1267(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x12bc(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1311(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1366(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x13bb(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1410(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1465(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x14ba(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x150f(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1564(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x15b9(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x160e(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1663(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x16b8(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x170d(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1762(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x17b7(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x180c(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1861(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x18b6(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x190b(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x20(%rbp),%rdi
lea    0x1962(%rip),%rsi
call   10c0 <strcat@plt>
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14db <main+0x32b>
movq   $0x0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x30(%rbp),%rsi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     14c8 <main+0x318>
mov    -0x38(%rbp),%rax
mov    %eax,-0x40(%rbp)
jmp    14cd <main+0x31d>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1484 <main+0x2d4>
mov    -0x40(%rbp),%edi
mov    -0x40(%rbp),%esi
call   10d0 <create2Darray@plt>
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1050 <rotatestringright@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%esi
mov    -0x54(%rbp),%edx
mov    -0x50(%rbp),%rcx
mov    %eax,%r8d
call   10b0 <fill2Darray@plt>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x48(%rbp),%rdx
mov    -0x40(%rbp),%ecx
mov    -0x40(%rbp),%r8d
call   1060 <print2DArray@plt>
jmp    14ea <main+0x33a>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r15
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
lea    0xe2b(%rip),%rax
mov    %rax,0x8(%r15)
mov    $0xe0f,%edi
mov    $0xe0f,%esi
call   1080 <calloc@plt>
mov    %rax,%r12
mov    $0xe0f,%edi
mov    $0xe0f,%esi
call   1080 <calloc@plt>
mov    %rax,%r14
lea    0x1bcd(%rip),%rsi
mov    %r12,%rdi
call   1030 <strcpy@plt>
lea    0xdf0(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0xe45(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0xe9b(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0xef1(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0xf47(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0xf9d(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0xff3(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1049(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x109f(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x10f5(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x114b(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x11a1(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x11f7(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x124d(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x12a3(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x12f9(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x134f(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x13a5(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x13fb(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1451(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x14a7(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x14fd(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1553(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x15a9(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x15ff(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1655(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x16ab(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1701(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1757(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x17ad(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1803(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1859(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x18af(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x1905(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x195b(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
lea    0x19b3(%rip),%rsi
mov    %r12,%rdi
call   10c0 <strcat@plt>
mov    (%r15),%rdi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%r13
mov    0x8(%r15),%rdi
mov    %rbx,%rsi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%rbx
test   %rax,%rax
cmove  %r13d,%ebx
mov    %ebx,%edi
mov    %ebx,%esi
call   10d0 <create2Darray@plt>
mov    %rax,%r15
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    $0xe0f,%esi
call   1050 <rotatestringright@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    %ebx,%esi
mov    %ebx,%edx
mov    %r12,%rcx
mov    %eax,%r8d
call   10b0 <fill2Darray@plt>
mov    %r14,%rdi
mov    $0xe0f,%esi
mov    %r15,%rdx
mov    %ebx,%ecx
mov    %ebx,%r8d
call   1060 <print2DArray@plt>
jmp    1470 <main+0x2c0>

LLVM IR (-O0):
@.str = [3 x i8] c"80\00"
@.str.1 = [2 x i8] zeroinitializer
@.str.2 = [100 x i8] c"000101110101001101100111000110000011100001110101100001100011001101011101010101100011111110000100110\00"
@.str.3 = [101 x i8] c"0010101001111000011101001101000000001011011001101101011100011010011101101000010010100100100101000000\00"
@.str.4 = [101 x i8] c"0000111000110101101010101011010100100100110100011100011001101010111001110001101100000111101011111000\00"
@.str.5 = [101 x i8] c"1100011101000101011111011001010010001111010110000111111101011010111001011011110111110110101011111100\00"
@.str.6 = [101 x i8] c"1100011101010001110001111101010101111111101101000001111111111011001101000011000110111110000110110110\00"
@.str.7 = [101 x i8] c"1101001110011001010100100000000110101010110100011001010101010100000101001101110001111101101111111101\00"
@.str.8 = [101 x i8] c"1011101010101000110100000001100101111111010101010101001101111100101001000100000101111100011101110111\00"
@.str.9 = [101 x i8] c"0101101111000101000011001100110110101001100101010110101000111110010001110001001011000100011110100000\00"
@.str.10 = [101 x i8] c"0101010000000000101010000100011110101111000111001100011101001100010111110100001101001110110010010101\00"
@.str.11 = [101 x i8] c"1011011111010011101000010010100110110010001010110101110110010110001100011000111100011111010110101000\00"
@.str.12 = [101 x i8] c"0010000101110101100010001011001001011111000100111110111000111111010110011111101101100000101011001000\00"
@.str.13 = [101 x i8] c"0110110000110000000010101000011111001110111001001100100000000111111010100011010001111010011101111111\00"
@.str.14 = [101 x i8] c"1000011000101110000000101100111110101000101001011100011001000001111101001100111010000001110011110110\00"
@.str.15 = [101 x i8] c"1110110111111100111001001110110101101010110110110100110110101100101010101101011000000111100110101011\00"
@.str.16 = [101 x i8] c"1100010110100101001001110011011111011001101111101000010110010011010010100010111010100101011111001011\00"
@.str.17 = [101 x i8] c"0000010000111111010011011010010100010011011000100101100010001100110111010010100000110010100101011010\00"
@.str.18 = [101 x i8] c"0000101011000010000100011110010001111000001011111111000101101111100100101011011000110110000100000101\00"
@.str.19 = [101 x i8] c"1110001010110001110001010011110100001011111001010110111010111111000100000001011100101100110100110011\00"
@.str.20 = [101 x i8] c"0011001111011001111011010001001100101111010010110110000110001011010011000000100001000110111010101100\00"
@.str.21 = [101 x i8] c"0111001010100100100000101011011100100111011010001101111100011101100100010001001100100110011111101110\00"
@.str.22 = [101 x i8] c"1011101100001100100111010100100001001101100011001010111101101100100000000100100010011101110100001011\00"
@.str.23 = [101 x i8] c"0101001100000010110101010111001101011101101010011101000101010011010000100111111100111000000100001010\00"
@.str.24 = [101 x i8] c"1001011001101110000110101000011100000000010111010010000001011101010011001011101111101111111100010000\00"
@.str.25 = [101 x i8] c"0010010100011010010111111101111110101110110010101000000000110010011101001001101101101011010110110011\00"
@.str.26 = [101 x i8] c"1001110110001110110011001100111110110111001110001001111110100010110011111101100010000000101000111000\00"
@.str.27 = [101 x i8] c"0000000000010010000100000000101000000001010100000111111001110100101101101000010100001010001111010001\00"
@.str.28 = [101 x i8] c"0101011100011100000100001110000110001100000100100011010110010000001111011011000001001111111100001010\00"
@.str.29 = [101 x i8] c"1011110101000011010101101001111111011001111010010100010000010110111100000001011100010110010000100010\00"
@.str.30 = [101 x i8] c"1001011011000011110110111111010100000000101000010011001010000000010010101000010000110111011100000000\00"
@.str.31 = [101 x i8] c"1111110111000101101101010011001001110111100111010110100011011101100011001111010000100111011011001101\00"
@.str.32 = [101 x i8] c"1110101111010101100100001110001010010010010111010111101111110110001101010011100000111110111010100000\00"
@.str.33 = [101 x i8] c"0010111000110011010111010101100101000000000110101100001010101011001000100111001111000010001010011010\00"
@.str.34 = [101 x i8] c"1101110001011000001110001001000111011110111101100011000011010010111110110101110101010011101101011001\00"
@.str.35 = [101 x i8] c"1010111010101010010110100000011001001000010100110110001110001100100011101000010110000011100010011100\00"
@.str.36 = [101 x i8] c"0000100001110110010101100100100110111100101101111100011001110110000101111010111010110111001110000111\00"
@.str.37 = [65 x i8] c"001010010001010010100001000101110011001010110111110001010000001\00\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 i8*
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = call i64 @time(i32* null)
%16 = trunc i64 %15 to i32
%17 = call i32 @srand(i32 %16)
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %19
store i32 2, i32* %4
store i32 3599, i32* %6
store i32 3599, i32* %7
%20 = load i32, i32* %6
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 1
%24 = trunc i64 %23 to i32
%25 = call i64 @calloc(i32 %20, i32 %24)
%26 = inttoptr i64 %25 to i8*
store i8* %26, i8** %8
%27 = load i32, i32* %6
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 1
%31 = trunc i64 %30 to i32
%32 = call i64 @calloc(i32 %27, i32 %31)
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %9
%34 = load i8*, i8** %8
%35 = call i32 @strcpy(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%36 = load i8*, i8** %8
%37 = call i32 @strcat(i8* %36, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.2, i64 0, i64 0))
%38 = load i8*, i8** %8
%39 = call i32 @strcat(i8* %38, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.3, i64 0, i64 0))
%40 = load i8*, i8** %8
%41 = call i32 @strcat(i8* %40, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.4, i64 0, i64 0))
%42 = load i8*, i8** %8
%43 = call i32 @strcat(i8* %42, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0))
%44 = load i8*, i8** %8
%45 = call i32 @strcat(i8* %44, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.6, i64 0, i64 0))
%46 = load i8*, i8** %8
%47 = call i32 @strcat(i8* %46, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.7, i64 0, i64 0))
%48 = load i8*, i8** %8
%49 = call i32 @strcat(i8* %48, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.8, i64 0, i64 0))
%50 = load i8*, i8** %8
%51 = call i32 @strcat(i8* %50, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.9, i64 0, i64 0))
%52 = load i8*, i8** %8
%53 = call i32 @strcat(i8* %52, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.10, i64 0, i64 0))
%54 = load i8*, i8** %8
%55 = call i32 @strcat(i8* %54, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.11, i64 0, i64 0))
%56 = load i8*, i8** %8
%57 = call i32 @strcat(i8* %56, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.12, i64 0, i64 0))
%58 = load i8*, i8** %8
%59 = call i32 @strcat(i8* %58, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.13, i64 0, i64 0))
%60 = load i8*, i8** %8
%61 = call i32 @strcat(i8* %60, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.14, i64 0, i64 0))
%62 = load i8*, i8** %8
%63 = call i32 @strcat(i8* %62, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.15, i64 0, i64 0))
%64 = load i8*, i8** %8
%65 = call i32 @strcat(i8* %64, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.16, i64 0, i64 0))
%66 = load i8*, i8** %8
%67 = call i32 @strcat(i8* %66, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.17, i64 0, i64 0))
%68 = load i8*, i8** %8
%69 = call i32 @strcat(i8* %68, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.18, i64 0, i64 0))
%70 = load i8*, i8** %8
%71 = call i32 @strcat(i8* %70, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.19, i64 0, i64 0))
%72 = load i8*, i8** %8
%73 = call i32 @strcat(i8* %72, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.20, i64 0, i64 0))
%74 = load i8*, i8** %8
%75 = call i32 @strcat(i8* %74, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.21, i64 0, i64 0))
%76 = load i8*, i8** %8
%77 = call i32 @strcat(i8* %76, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.22, i64 0, i64 0))
%78 = load i8*, i8** %8
%79 = call i32 @strcat(i8* %78, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.23, i64 0, i64 0))
%80 = load i8*, i8** %8
%81 = call i32 @strcat(i8* %80, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.24, i64 0, i64 0))
%82 = load i8*, i8** %8
%83 = call i32 @strcat(i8* %82, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.25, i64 0, i64 0))
%84 = load i8*, i8** %8
%85 = call i32 @strcat(i8* %84, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.26, i64 0, i64 0))
%86 = load i8*, i8** %8
%87 = call i32 @strcat(i8* %86, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.27, i64 0, i64 0))
%88 = load i8*, i8** %8
%89 = call i32 @strcat(i8* %88, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.28, i64 0, i64 0))
%90 = load i8*, i8** %8
%91 = call i32 @strcat(i8* %90, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.29, i64 0, i64 0))
%92 = load i8*, i8** %8
%93 = call i32 @strcat(i8* %92, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.30, i64 0, i64 0))
%94 = load i8*, i8** %8
%95 = call i32 @strcat(i8* %94, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.31, i64 0, i64 0))
%96 = load i8*, i8** %8
%97 = call i32 @strcat(i8* %96, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.32, i64 0, i64 0))
%98 = load i8*, i8** %8
%99 = call i32 @strcat(i8* %98, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.33, i64 0, i64 0))
%100 = load i8*, i8** %8
%101 = call i32 @strcat(i8* %100, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.34, i64 0, i64 0))
%102 = load i8*, i8** %8
%103 = call i32 @strcat(i8* %102, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.35, i64 0, i64 0))
%104 = load i8*, i8** %8
%105 = call i32 @strcat(i8* %104, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.36, i64 0, i64 0))
%106 = load i8*, i8** %8
%107 = call i32 @strcat(i8* %106, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.37, i64 0, i64 0))
store i32 0, i32* %13
store i32 0, i32* %12
br label %108
108: ; preds = %125, %2
%109 = load i32, i32* %12
%110 = load i32, i32* %4
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %128
112: ; preds = %108
store i64 0, i64* %11
%113 = load i8**, i8*** %5
%114 = load i32, i32* %12
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8*, i8** %113, i64 %115
%117 = load i8*, i8** %116
%118 = call i64 @strtol(i8* %117, i8** %10, i32 10)
store i64 %118, i64* %11
%119 = load i64, i64* %11
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %124
121: ; preds = %112
%122 = load i64, i64* %11
%123 = trunc i64 %122 to i32
store i32 %123, i32* %13
br label %124
124: ; preds = %121, %112
br label %125
125: ; preds = %124
%126 = load i32, i32* %12
%127 = add nsw i32 %126, 1
store i32 %127, i32* %12
br label %108
128: ; preds = %108
%129 = load i32, i32* %13
%130 = load i32, i32* %13
%131 = call i32** @create2Darray(i32 %129, i32 %130)
store i32** %131, i32*** %14
br label %132
132: ; preds = %128, %132
%133 = load i8*, i8** %8
%134 = load i32, i32* %6
%135 = call i32 @rotatestringright(i8* %133, i32 %134)
%136 = load i32**, i32*** %14
%137 = load i32, i32* %13
%138 = load i32, i32* %13
%139 = load i8*, i8** %8
%140 = load i8*, i8** %8
%141 = call i64 @strlen(i8* %140)
%142 = trunc i64 %141 to i32
%143 = call i32 @fill2Darray(i32** %136, i32 %137, i32 %138, i8* %139, i32 %142)
%144 = load i8*, i8** %9
%145 = load i32, i32* %7
%146 = load i32**, i32*** %14
%147 = load i32, i32* %13
%148 = load i32, i32* %13
%149 = call i32 @print2DArray(i8* %144, i32 %145, i32** %146, i32 %147, i32 %148)
br label %132
}

LLVM IR (-O2):
@.str = [3 x i8] c"80\00"
@.str.1 = [2 x i8] zeroinitializer
@.str.2 = [100 x i8] c"000101110101001101100111000110000011100001110101100001100011001101011101010101100011111110000100110\00"
@.str.3 = [101 x i8] c"0010101001111000011101001101000000001011011001101101011100011010011101101000010010100100100101000000\00"
@.str.4 = [101 x i8] c"0000111000110101101010101011010100100100110100011100011001101010111001110001101100000111101011111000\00"
@.str.5 = [101 x i8] c"1100011101000101011111011001010010001111010110000111111101011010111001011011110111110110101011111100\00"
@.str.6 = [101 x i8] c"1100011101010001110001111101010101111111101101000001111111111011001101000011000110111110000110110110\00"
@.str.7 = [101 x i8] c"1101001110011001010100100000000110101010110100011001010101010100000101001101110001111101101111111101\00"
@.str.8 = [101 x i8] c"1011101010101000110100000001100101111111010101010101001101111100101001000100000101111100011101110111\00"
@.str.9 = [101 x i8] c"0101101111000101000011001100110110101001100101010110101000111110010001110001001011000100011110100000\00"
@.str.10 = [101 x i8] c"0101010000000000101010000100011110101111000111001100011101001100010111110100001101001110110010010101\00"
@.str.11 = [101 x i8] c"1011011111010011101000010010100110110010001010110101110110010110001100011000111100011111010110101000\00"
@.str.12 = [101 x i8] c"0010000101110101100010001011001001011111000100111110111000111111010110011111101101100000101011001000\00"
@.str.13 = [101 x i8] c"0110110000110000000010101000011111001110111001001100100000000111111010100011010001111010011101111111\00"
@.str.14 = [101 x i8] c"1000011000101110000000101100111110101000101001011100011001000001111101001100111010000001110011110110\00"
@.str.15 = [101 x i8] c"1110110111111100111001001110110101101010110110110100110110101100101010101101011000000111100110101011\00"
@.str.16 = [101 x i8] c"1100010110100101001001110011011111011001101111101000010110010011010010100010111010100101011111001011\00"
@.str.17 = [101 x i8] c"0000010000111111010011011010010100010011011000100101100010001100110111010010100000110010100101011010\00"
@.str.18 = [101 x i8] c"0000101011000010000100011110010001111000001011111111000101101111100100101011011000110110000100000101\00"
@.str.19 = [101 x i8] c"1110001010110001110001010011110100001011111001010110111010111111000100000001011100101100110100110011\00"
@.str.20 = [101 x i8] c"0011001111011001111011010001001100101111010010110110000110001011010011000000100001000110111010101100\00"
@.str.21 = [101 x i8] c"0111001010100100100000101011011100100111011010001101111100011101100100010001001100100110011111101110\00"
@.str.22 = [101 x i8] c"1011101100001100100111010100100001001101100011001010111101101100100000000100100010011101110100001011\00"
@.str.23 = [101 x i8] c"0101001100000010110101010111001101011101101010011101000101010011010000100111111100111000000100001010\00"
@.str.24 = [101 x i8] c"1001011001101110000110101000011100000000010111010010000001011101010011001011101111101111111100010000\00"
@.str.25 = [101 x i8] c"0010010100011010010111111101111110101110110010101000000000110010011101001001101101101011010110110011\00"
@.str.26 = [101 x i8] c"1001110110001110110011001100111110110111001110001001111110100010110011111101100010000000101000111000\00"
@.str.27 = [101 x i8] c"0000000000010010000100000000101000000001010100000111111001110100101101101000010100001010001111010001\00"
@.str.28 = [101 x i8] c"0101011100011100000100001110000110001100000100100011010110010000001111011011000001001111111100001010\00"
@.str.29 = [101 x i8] c"1011110101000011010101101001111111011001111010010100010000010110111100000001011100010110010000100010\00"
@.str.30 = [101 x i8] c"1001011011000011110110111111010100000000101000010011001010000000010010101000010000110111011100000000\00"
@.str.31 = [101 x i8] c"1111110111000101101101010011001001110111100111010110100011011101100011001111010000100111011011001101\00"
@.str.32 = [101 x i8] c"1110101111010101100100001110001010010010010111010111101111110110001101010011100000111110111010100000\00"
@.str.33 = [101 x i8] c"0010111000110011010111010101100101000000000110101100001010101011001000100111001111000010001010011010\00"
@.str.34 = [101 x i8] c"1101110001011000001110001001000111011110111101100011000011010010111110110101110101010011101101011001\00"
@.str.35 = [101 x i8] c"1010111010101010010110100000011001001000010100110110001110001100100011101000010110000011100010011100\00"
@.str.36 = [101 x i8] c"0000100001110110010101100100100110111100101101111100011001110110000101111010111010110111001110000111\00"
@.str.37 = [65 x i8] c"001010010001010010100001000101110011001010110111110001010000001\00\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = tail call i64 @time(i32* null)
%5 = trunc i64 %4 to i32
%6 = tail call i32 @srand(i32 %5)
%7 = getelementptr inbounds i8*, i8** %1, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %7
%8 = tail call i64 @calloc(i32 3599, i32 3599)
%9 = inttoptr i64 %8 to i8*
%10 = tail call i64 @calloc(i32 3599, i32 3599)
%11 = tail call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0))
%16 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.6, i64 0, i64 0))
%17 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.7, i64 0, i64 0))
%18 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.8, i64 0, i64 0))
%19 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.11, i64 0, i64 0))
%22 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.12, i64 0, i64 0))
%23 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.13, i64 0, i64 0))
%24 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.14, i64 0, i64 0))
%25 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.15, i64 0, i64 0))
%26 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.16, i64 0, i64 0))
%27 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.17, i64 0, i64 0))
%28 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.18, i64 0, i64 0))
%29 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.19, i64 0, i64 0))
%30 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.20, i64 0, i64 0))
%31 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.21, i64 0, i64 0))
%32 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.22, i64 0, i64 0))
%33 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.23, i64 0, i64 0))
%34 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.24, i64 0, i64 0))
%35 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.25, i64 0, i64 0))
%36 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.26, i64 0, i64 0))
%37 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.27, i64 0, i64 0))
%38 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.28, i64 0, i64 0))
%39 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.29, i64 0, i64 0))
%40 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.30, i64 0, i64 0))
%41 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.31, i64 0, i64 0))
%42 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.32, i64 0, i64 0))
%43 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.33, i64 0, i64 0))
%44 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.34, i64 0, i64 0))
%45 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.35, i64 0, i64 0))
%46 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.36, i64 0, i64 0))
%47 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.37, i64 0, i64 0))
%48 = bitcast i8** %3 to i8*
%49 = load i8*, i8** %1
%50 = call i64 @strtol(i8* %49, i8** %3, i32 10)
%51 = load i8*, i8** %7
%52 = call i64 @strtol(i8* %51, i8** %3, i32 10)
%53 = icmp eq i64 %52, 0
%54 = select i1 %53, i64 %50, i64 %52
%55 = trunc i64 %54 to i32
%56 = inttoptr i64 %10 to i8*
%57 = tail call i32** @create2Darray(i32 %55, i32 %55)
br label %58
58: ; preds = %58, %2
%59 = tail call i32 @rotatestringright(i8* %9, i32 3599)
%60 = tail call i64 @strlen(i8* dereferenceable(1) %9)
%61 = trunc i64 %60 to i32
%62 = tail call i32 @fill2Darray(i32** %57, i32 %55, i32 %55, i8* %9, i32 %61)
%63 = tail call i32 @print2DArray(i8* %56, i32 3599, i32** %57, i32 %55, i32 %55)
br label %58
}