#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdout;
void printMatrix(int **mat, int m, int n) {
  do {
    if (0) {
      printf("[");
      fflush(stdout);
    }
  } while (0);
  for (int i = 0; i < m; i++) {
    do {
      if (0) {
        printf(" ");
        fflush(stdout);
      }
    } while (0);
    for (int j = 0; j < n; j++) {
      do {
        if (0) {
          printf("%d ", mat[i][j]);
          fflush(stdout);
        }
      } while (0);
    }
    if (i != m - 1)
      do {
        if (0) {
          printf("\n");
          fflush(stdout);
        }
      } while (0);
  }
  do {
    if (0) {
      printf("]\n");
      fflush(stdout);
    }
  } while (0);
}


x86 assembly (clang, -O0):
<printMatrix>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
jmp    1113 <printMatrix+0x13>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1193 <printMatrix+0x93>
jmp    112b <printMatrix+0x2b>
jmp    1130 <printMatrix+0x30>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1160 <printMatrix+0x60>
jmp    1148 <printMatrix+0x48>
jmp    114d <printMatrix+0x4d>
jmp    1152 <printMatrix+0x52>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1137 <printMatrix+0x37>
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     1180 <printMatrix+0x80>
jmp    1176 <printMatrix+0x76>
jmp    117b <printMatrix+0x7b>
jmp    1180 <printMatrix+0x80>
jmp    1185 <printMatrix+0x85>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    111a <printMatrix+0x1a>
jmp    1198 <printMatrix+0x98>
jmp    119d <printMatrix+0x9d>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printMatrix>:
ret

LLVM IR (-O0):
@stdout = global i32 0
define void @printMatrix(i32** %0, i32 %1, i32 %2) {
%4 = alloca i32**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32** %0, i32*** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
br label %9
9: ; preds = %3
br label %10
10: ; preds = %9
store i32 0, i32* %7
br label %11
11: ; preds = %37, %10
%12 = load i32, i32* %7
%13 = load i32, i32* %5
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %40
15: ; preds = %11
br label %16
16: ; preds = %15
br label %17
17: ; preds = %16
store i32 0, i32* %8
br label %18
18: ; preds = %25, %17
%19 = load i32, i32* %8
%20 = load i32, i32* %6
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %28
22: ; preds = %18
br label %23
23: ; preds = %22
br label %24
24: ; preds = %23
br label %25
25: ; preds = %24
%26 = load i32, i32* %8
%27 = add nsw i32 %26, 1
store i32 %27, i32* %8
br label %18
28: ; preds = %18
%29 = load i32, i32* %7
%30 = load i32, i32* %5
%31 = sub nsw i32 %30, 1
%32 = icmp ne i32 %29, %31
br i1 %32, label %33, label %36
33: ; preds = %28
br label %34
34: ; preds = %33
br label %35
35: ; preds = %34
br label %36
36: ; preds = %35, %28
br label %37
37: ; preds = %36
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %11
40: ; preds = %11
br label %41
41: ; preds = %40
br label %42
42: ; preds = %41
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
define void @printMatrix(i32** nocapture %0, i32 %1, i32 %2) {
ret void
}