#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ allocate_matrix(int ***, int, int);
int atoi(char *);
int /*<<< orphan*/ cell_transitions(int **, int **, int, int);
int find_neighbor_count(int **, int **, int, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ free_matrix(int ***, int);
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(int);
int optind;
int optopt;
int /*<<< orphan*/ print_cell_matrix(int **, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ random_population(int **, int, int, double);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ usleep(int);
int main(int argc, char **argv) {
  int **cells;
  int **neighbors;
  int nx = 80;
  int ny = 30;
  int c;
  unsigned int it = 0;
  int world_is_dead = 0;
  while ((c = getopt(argc, argv, "hv")) != -1)
    switch (c) {
    case 'h':
      printf("usage: %s [OPTIONS] nx ny\n"
             "where nx and ny are the grid dimensions.\n"
             "-h\tDisplay help\n"
             "-v\tDisplay version information\n",
             argv[0]);
      return 0;
      break;
    case 'v':
      printf("%s: Conway's Game of Life, version %.1f\n"
             "Written by Anders Damsgaard, "
             "https://github.com/anders-dc/game-of-life\n",
             argv[0], 0.1);
      return 0;
      break;
    case '?':
      if (isprint(optopt))
        fprintf(stderr, "Unknown option `-%c`.\n", optopt);
      else
        fprintf(stderr, "Unknown option character `\\x%x`.\n", optopt);
      return 1;
    default:
      abort();
    }
  if (optind == argc - 2) {
    nx = atoi(argv[optind]);
    ny = atoi(argv[optind + 1]);
  }
  printf("Grid dimensions: %dx%d\n", nx, ny);
  allocate_matrix(&cells, nx, ny);
  allocate_matrix(&neighbors, nx, ny);
  random_population(cells, nx, ny, 0.5);
  print_cell_matrix(cells, nx, ny);
  while (world_is_dead == 0) {
    world_is_dead = find_neighbor_count(cells, neighbors, nx, ny);
    cell_transitions(cells, neighbors, nx, ny);
    printf("\n%d. generation (end with Ctrl-C)\n", it);
    print_cell_matrix(cells, nx, ny);
    usleep(5e5);
    it++;
  }
  free_matrix(&cells, nx);
  free_matrix(&neighbors, nx);
  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)
movl   $0x50,-0x24(%rbp)
movl   $0x1e,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe00(%rip),%rdx
call   10c0 <getopt@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0xffffffff,%eax
je     130c <main+0x13c>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x38(%rbp)
sub    $0x3f,%eax
je     12a1 <main+0xd1>
jmp    1235 <main+0x65>
mov    -0x38(%rbp),%eax
sub    $0x68,%eax
je     1257 <main+0x87>
jmp    1246 <main+0x76>
mov    -0x38(%rbp),%eax
sub    $0x76,%eax
je     1278 <main+0xa8>
jmp    1305 <main+0x135>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    143e <main+0x26e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe00(%rip),%rdi
movsd  0xd7a(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    143e <main+0x26e>
mov    0x2d40(%rip),%rax
mov    (%rax),%edi
call   10b0 <isprint@plt>
cmp    $0x0,%eax
je     12db <main+0x10b>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
mov    0x2d20(%rip),%rax
mov    (%rax),%edx
lea    0xe25(%rip),%rsi
call   1090 <fprintf@plt>
jmp    12f9 <main+0x129>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
mov    0x2cfd(%rip),%rax
mov    (%rax),%edx
lea    0xe19(%rip),%rsi
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    143e <main+0x26e>
mov    $0x0,%al
call   1050 <abort@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jne    135c <main+0x18c>
mov    -0x10(%rbp),%rax
mov    0x2cb2(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2c98(%rip),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    -0x18(%rbp),%rdi
call   10a0 <allocate_matrix@plt>
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    -0x20(%rbp),%rdi
call   10a0 <allocate_matrix@plt>
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
movsd  0xc60(%rip),%xmm0
call   1030 <random_population@plt>
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
call   1040 <print_cell_matrix@plt>
cmpl   $0x0,-0x34(%rbp)
jne    141f <main+0x24f>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   1060 <find_neighbor_count@plt>
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   10e0 <cell_transitions@plt>
mov    -0x30(%rbp),%esi
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
call   1040 <print_cell_matrix@plt>
mov    $0x7a120,%edi
call   10f0 <usleep@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13b4 <main+0x1e4>
mov    -0x24(%rbp),%esi
lea    -0x18(%rbp),%rdi
call   1070 <free_matrix@plt>
mov    -0x24(%rbp),%esi
lea    -0x20(%rbp),%rdi
call   1070 <free_matrix@plt>
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   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe28(%rip),%rdx
call   10c0 <getopt@plt>
cmp    $0x67,%eax
jg     122d <main+0x5d>
cmp    $0xffffffff,%eax
je     1253 <main+0x83>
cmp    $0x3f,%eax
jne    13a4 <main+0x1d4>
mov    0x2de1(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%edi
call   10b0 <isprint@plt>
mov    0x2db9(%rip),%rcx
mov    (%rcx),%edi
test   %eax,%eax
je     1382 <main+0x1b2>
lea    0xece(%rip),%rsi
jmp    1389 <main+0x1b9>
cmp    $0x76,%eax
je     1280 <main+0xb0>
cmp    $0x68,%eax
jne    13a4 <main+0x1d4>
mov    (%rbx),%rsi
lea    0xdce(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1395 <main+0x1c5>
mov    0x2d86(%rip),%rax
movslq (%rax),%r14
add    $0xfffffffe,%ebp
cmp    %ebp,%r14d
jne    129e <main+0xce>
mov    (%rbx,%r14,8),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r15d
mov    0x8(%rbx,%r14,8),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r12d
jmp    12aa <main+0xda>
mov    (%rbx),%rsi
lea    0xdfc(%rip),%rdi
movsd  0xd6e(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
jmp    137e <main+0x1ae>
mov    $0x1e,%r12d
mov    $0x50,%r15d
lea    0xe7e(%rip),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rsp,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
call   10a0 <allocate_matrix@plt>
lea    0x8(%rsp),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
call   10a0 <allocate_matrix@plt>
mov    (%rsp),%rdi
movsd  0xd20(%rip),%xmm0
mov    %r15d,%esi
mov    %r12d,%edx
call   1030 <random_population@plt>
mov    (%rsp),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
call   1040 <print_cell_matrix@plt>
lea    0xe3e(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    %r15d,%edx
mov    %r12d,%ecx
call   1060 <find_neighbor_count@plt>
mov    %eax,%ebp
mov    (%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    %r15d,%edx
mov    %r12d,%ecx
call   10e0 <cell_transitions@plt>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%rsp),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
call   1040 <print_cell_matrix@plt>
mov    $0x7a120,%edi
call   10f0 <usleep@plt>
add    $0x1,%ebx
test   %ebp,%ebp
je     1310 <main+0x140>
mov    %rsp,%rdi
mov    %r15d,%esi
call   1070 <free_matrix@plt>
lea    0x8(%rsp),%rdi
mov    %r15d,%esi
call   1070 <free_matrix@plt>
xor    %ebx,%ebx
jmp    1395 <main+0x1c5>
lea    0xd84(%rip),%rsi
mov    %ebx,%edx
call   1090 <fprintf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1050 <abort@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"hv\00"
@.str.1 = [115 x i8] c"usage: %s [OPTIONS] nx ny\0Awhere nx and ny are the grid dimensions.\0A-h\09Display help\0A-v\09Display version information\0A\00"
@.str.2 = [112 x i8] c"%s: Conway's Game of Life, version %.1f\0AWritten by Anders Damsgaard, https://github.com/anders-dc/game-of-life\0A\00"
@optopt = global i32 0
@stderr = global i32 0
@.str.3 = [23 x i8] c"Unknown option `-%c`.\0A\00"
@.str.4 = [34 x i8] c"Unknown option character `\\x%x`.\0A\00"
@optind = global i32 0
@.str.5 = [24 x i8] c"Grid dimensions: %dx%d\0A\00"
@.str.6 = [35 x i8] c"\0A%d. generation (end with Ctrl-C)\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 80, i32* %8
store i32 30, i32* %9
store i32 0, i32* %11
store i32 0, i32* %12
br label %13
13: ; preds = %2
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 @getopt(i32 %14, i8** %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 %16, i32* %10
%17 = icmp ne i32 %16, -1
br i1 %17, label %18, label %45
18: ; preds = %13
%19 = load i32, i32* %10
switch i32 %19, label %43 [
i32 104, label %20
i32 118, label %25
i32 63, label %30
]
20: ; preds = %18
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.1, i64 0, i64 0), i8* %23)
store i32 0, i32* %3
br label %110
25: ; preds = %18
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 0
%28 = load i8*, i8** %27
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.2, i64 0, i64 0), i8* %28, double 1.000000e-01)
store i32 0, i32* %3
br label %110
30: ; preds = %18
%31 = load i32, i32* @optopt
%32 = call i32 @isprint(i32 %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %30
%35 = load i32, i32* @stderr
%36 = load i32, i32* @optopt
%37 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %36)
br label %42
38: ; preds = %30
%39 = load i32, i32* @stderr
%40 = load i32, i32* @optopt
%41 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %38, %34
store i32 1, i32* %3
br label %110
43: ; preds = %18
%44 = call i32 (...) @abort()
unreachable
45: ; preds = %13
%46 = load i32, i32* @optind
%47 = load i32, i32* %4
%48 = sub nsw i32 %47, 2
%49 = icmp eq i32 %46, %48
br i1 %49, label %50, label %64
50: ; preds = %45
%51 = load i8**, i8*** %5
%52 = load i32, i32* @optind
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8*, i8** %51, i64 %53
%55 = load i8*, i8** %54
%56 = call i32 @atoi(i8* %55)
store i32 %56, i32* %8
%57 = load i8**, i8*** %5
%58 = load i32, i32* @optind
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %57, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 @atoi(i8* %62)
store i32 %63, i32* %9
br label %64
64: ; preds = %50, %45
%65 = load i32, i32* %8
%66 = load i32, i32* %9
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %65, i32 %66)
%68 = load i32, i32* %8
%69 = load i32, i32* %9
%70 = call i32 @allocate_matrix(i32*** %6, i32 %68, i32 %69)
%71 = load i32, i32* %8
%72 = load i32, i32* %9
%73 = call i32 @allocate_matrix(i32*** %7, i32 %71, i32 %72)
%74 = load i32**, i32*** %6
%75 = load i32, i32* %8
%76 = load i32, i32* %9
%77 = call i32 @random_population(i32** %74, i32 %75, i32 %76, double 5.000000e-01)
%78 = load i32**, i32*** %6
%79 = load i32, i32* %8
%80 = load i32, i32* %9
%81 = call i32 @print_cell_matrix(i32** %78, i32 %79, i32 %80)
br label %82
82: ; preds = %85, %64
%83 = load i32, i32* %12
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %105
85: ; preds = %82
%86 = load i32**, i32*** %6
%87 = load i32**, i32*** %7
%88 = load i32, i32* %8
%89 = load i32, i32* %9
%90 = call i32 @find_neighbor_count(i32** %86, i32** %87, i32 %88, i32 %89)
store i32 %90, i32* %12
%91 = load i32**, i32*** %6
%92 = load i32**, i32*** %7
%93 = load i32, i32* %8
%94 = load i32, i32* %9
%95 = call i32 @cell_transitions(i32** %91, i32** %92, i32 %93, i32 %94)
%96 = load i32, i32* %11
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i32 %96)
%98 = load i32**, i32*** %6
%99 = load i32, i32* %8
%100 = load i32, i32* %9
%101 = call i32 @print_cell_matrix(i32** %98, i32 %99, i32 %100)
%102 = call i32 @usleep(i32 500000)
%103 = load i32, i32* %11
%104 = add i32 %103, 1
store i32 %104, i32* %11
br label %82
105: ; preds = %82
%106 = load i32, i32* %8
%107 = call i32 @free_matrix(i32*** %6, i32 %106)
%108 = load i32, i32* %8
%109 = call i32 @free_matrix(i32*** %7, i32 %108)
store i32 0, i32* %3
br label %110
110: ; preds = %105, %42, %25, %20
%111 = load i32, i32* %3
ret i32 %111
}

LLVM IR (-O2):
@.str = [3 x i8] c"hv\00"
@.str.1 = [115 x i8] c"usage: %s [OPTIONS] nx ny\0Awhere nx and ny are the grid dimensions.\0A-h\09Display help\0A-v\09Display version information\0A\00"
@.str.2 = [112 x i8] c"%s: Conway's Game of Life, version %.1f\0AWritten by Anders Damsgaard, https://github.com/anders-dc/game-of-life\0A\00"
@optopt = global i32 0
@stderr = global i32 0
@.str.3 = [23 x i8] c"Unknown option `-%c`.\0A\00"
@.str.4 = [34 x i8] c"Unknown option character `\\x%x`.\0A\00"
@optind = global i32 0
@.str.5 = [24 x i8] c"Grid dimensions: %dx%d\0A\00"
@.str.6 = [35 x i8] c"\0A%d. generation (end with Ctrl-C)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32**
%4 = alloca i32**
%5 = bitcast i32*** %3 to i8*
%6 = bitcast i32*** %4 to i8*
%7 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
switch i32 %7, label %23 [
i32 -1, label %25
i32 104, label %8
i32 118, label %11
i32 63, label %14
]
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([115 x i8], [115 x i8]* @.str.1, i64 0, i64 0), i8* %9)
br label %66
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @.str.2, i64 0, i64 0), i8* %12, double 1.000000e-01)
br label %66
14: ; preds = %2
%15 = load i32, i32* @optopt
%16 = tail call i32 @isprint(i32 %15)
%17 = icmp eq i32 %16, 0
%18 = load i32, i32* @stderr
br i1 %17, label %21, label %19
19: ; preds = %14
%20 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %15)
br label %66
21: ; preds = %14
%22 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %15)
br label %66
23: ; preds = %2
%24 = tail call i32 (...) @abort()
unreachable
25: ; preds = %2
%26 = load i32, i32* @optind
%27 = add nsw i32 %0, -2
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %39
29: ; preds = %25
%30 = sext i32 %26 to i64
%31 = getelementptr inbounds i8*, i8** %1, i64 %30
%32 = load i8*, i8** %31
%33 = tail call i32 @atoi(i8* %32)
%34 = add nsw i32 %26, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %1, i64 %35
%37 = load i8*, i8** %36
%38 = tail call i32 @atoi(i8* %37)
br label %39
39: ; preds = %29, %25
%40 = phi i32 [ %33, %29 ], [ 80, %25 ]
%41 = phi i32 [ %38, %29 ], [ 30, %25 ]
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %40, i32 %41)
%43 = call i32 @allocate_matrix(i32*** %3, i32 %40, i32 %41)
%44 = call i32 @allocate_matrix(i32*** %4, i32 %40, i32 %41)
%45 = load i32**, i32*** %3
%46 = call i32 @random_population(i32** %45, i32 %40, i32 %41, double 5.000000e-01)
%47 = load i32**, i32*** %3
%48 = call i32 @print_cell_matrix(i32** %47, i32 %40, i32 %41)
br label %49
49: ; preds = %39, %49
%50 = phi i32 [ 0, %39 ], [ %61, %49 ]
%51 = load i32**, i32*** %3
%52 = load i32**, i32*** %4
%53 = call i32 @find_neighbor_count(i32** %51, i32** %52, i32 %40, i32 %41)
%54 = load i32**, i32*** %3
%55 = load i32**, i32*** %4
%56 = call i32 @cell_transitions(i32** %54, i32** %55, i32 %40, i32 %41)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%58 = load i32**, i32*** %3
%59 = call i32 @print_cell_matrix(i32** %58, i32 %40, i32 %41)
%60 = call i32 @usleep(i32 500000)
%61 = add i32 %50, 1
%62 = icmp eq i32 %53, 0
br i1 %62, label %49, label %63
63: ; preds = %49
%64 = call i32 @free_matrix(i32*** %3, i32 %40)
%65 = call i32 @free_matrix(i32*** %4, i32 %40)
br label %66
66: ; preds = %19, %21, %63, %11, %8
%67 = phi i32 [ 0, %11 ], [ 0, %8 ], [ 0, %63 ], [ 1, %21 ], [ 1, %19 ]
ret i32 %67
}