#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*/ printf(char *);
int /*<<< orphan*/ prntB(int *, int, int);
int /*<<< orphan*/ prntT(double *, int, int);
void printMatrixes(int *B, double *Ta, double *Tb, int nx, int ny) {
  printf("B\n");
  prntB(B, nx, ny);
  printf("Ta\n");
  prntT(Ta, nx, ny);
  printf("Tb\n");
  prntT(Tb, nx, ny);
}


x86 assembly (clang, -O0):
<printMatrixes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1050 <prntB@plt>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1040 <prntT@plt>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1040 <prntT@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printMatrixes>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%ebx
mov    %ecx,%ebp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r12
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1050 <prntB@plt>
lea    0xe9d(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1040 <prntT@plt>
lea    0xe88(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <prntT@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"B\0A\00"
@.str.1 = [4 x i8] c"Ta\0A\00"
@.str.2 = [4 x i8] c"Tb\0A\00"
define void @printMatrixes(i32* %0, double* %1, double* %2, i32 %3, i32 %4) {
%6 = alloca i32*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %6
store double* %1, double** %7
store double* %2, double** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = load i32*, i32** %6
%13 = load i32, i32* %9
%14 = load i32, i32* %10
%15 = call i32 @prntB(i32* %12, i32 %13, i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%17 = load double*, double** %7
%18 = load i32, i32* %9
%19 = load i32, i32* %10
%20 = call i32 @prntT(double* %17, i32 %18, i32 %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%22 = load double*, double** %8
%23 = load i32, i32* %9
%24 = load i32, i32* %10
%25 = call i32 @prntT(double* %22, i32 %23, i32 %24)
ret void
}

LLVM IR (-O2):
@str = [2 x i8] c"B\00"
@str.3 = [3 x i8] c"Ta\00"
@str.4 = [3 x i8] c"Tb\00"
define void @printMatrixes(i32* %0, double* %1, double* %2, i32 %3, i32 %4) {
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @prntB(i32* %0, i32 %3, i32 %4)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.3, i64 0, i64 0))
%9 = tail call i32 @prntT(double* %1, i32 %3, i32 %4)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.4, i64 0, i64 0))
%11 = tail call i32 @prntT(double* %2, i32 %3, i32 %4)
ret void
}