void tabPrintTransform(int r, int c, double M[r][c], int indent) {
  if (r == 0 || c == 0) {
    tabprintf("[]\n", indent);
    return;
  }
  tabprintf("[", indent);
  for (int i = 0; i < r; i++) {
    for (int j = 0; j < c; j++) {
      char *pre = signbit(M[i][j]) ? "" : " ";
      char *post1 = "\t";
      char *post2 = (j == (c - 1)) ? (i == (r - 1)) ? "" : ";" : " ";
      printf("%s%.3lf%s%s", pre, M[i][j], post1, post2);
    }
    printf("%s", (i == (r - 1)) ? "]\n" : "\n ");
    tabprintf(" ", indent);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<tabPrintTransform>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %rax,-0x40(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1160 <tabPrintTransform+0x30>
cmpl   $0x0,-0x8(%rbp)
jne    1176 <tabPrintTransform+0x46>
mov    -0x14(%rbp),%esi
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1040 <tabprintf@plt>
jmp    12e9 <tabPrintTransform+0x1b9>
mov    -0x14(%rbp),%esi
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <tabprintf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12db <tabPrintTransform+0x1ab>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1291 <tabPrintTransform+0x161>
mov    -0x40(%rbp),%rdx
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x1,%al
call   1050 <signbit@plt>
mov    %eax,%edx
lea    0xe3a(%rip),%rax
lea    0xe23(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x28(%rbp)
lea    0xe10(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1231 <tabPrintTransform+0x101>
mov    -0x18(%rbp),%edx
mov    -0x4(%rbp),%esi
sub    $0x1,%esi
lea    0xded(%rip),%rax
lea    0xde5(%rip),%rcx
cmp    %esi,%edx
cmove  %rcx,%rax
mov    %rax,-0x48(%rbp)
jmp    1241 <tabPrintTransform+0x111>
lea    0xddf(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    1241 <tabPrintTransform+0x111>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rsi
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
lea    0xd8e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a1 <tabPrintTransform+0x71>
mov    -0x18(%rbp),%ecx
mov    -0x4(%rbp),%edx
sub    $0x1,%edx
lea    0xd75(%rip),%rsi
lea    0xd59(%rip),%rax
cmp    %edx,%ecx
cmove  %rax,%rsi
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1040 <tabprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    118e <tabPrintTransform+0x5e>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tabPrintTransform>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %ecx,0xc(%rsp)
test   %edi,%edi
je     128d <tabPrintTransform+0x14d>
mov    %esi,%r12d
test   %esi,%esi
je     128d <tabPrintTransform+0x14d>
mov    %rdx,%rbx
mov    %edi,%ebp
lea    0xe93(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1050 <tabprintf@plt>
test   %ebp,%ebp
jle    12ad <tabPrintTransform+0x16d>
mov    %r12d,%r14d
lea    -0x1(%r12),%r15d
lea    -0x1(%rbp),%eax
mov    %rax,0x18(%rsp)
mov    %ebp,%eax
mov    %rax,0x28(%rsp)
lea    0x0(,%r14,8),%rax
mov    %rax,0x20(%rsp)
lea    0xe68(%rip),%rbp
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    %r12,0x30(%rsp)
jmp    1219 <tabPrintTransform+0xd9>
nopl   (%rax)
mov    0x10(%rsp),%r12
cmp    0x18(%rsp),%r12
lea    0xe45(%rip),%rsi
lea    0xe29(%rip),%rax
cmove  %rax,%rsi
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1050 <tabprintf@plt>
add    $0x1,%r12
add    0x20(%rsp),%rbx
mov    %r12,%rax
mov    %r12,0x10(%rsp)
cmp    0x28(%rsp),%r12
mov    0x30(%rsp),%r12
je     12ad <tabPrintTransform+0x16d>
test   %r12d,%r12d
jle    11c0 <tabPrintTransform+0x80>
mov    0x10(%rsp),%rax
cmp    0x18(%rsp),%rax
lea    0xdd9(%rip),%r12
lea    0xdd1(%rip),%rax
cmove  %rax,%r12
xor    %r13d,%r13d
nopl   (%rax)
movsd  (%rbx,%r13,8),%xmm0
mov    $0x1,%al
call   1060 <signbit@plt>
test   %eax,%eax
lea    0xdb1(%rip),%rsi
cmove  %rbp,%rsi
cmp    %r13,%r15
mov    %rbp,%rcx
cmove  %r12,%rcx
movsd  (%rbx,%r13,8),%xmm0
lea    0xd99(%rip),%rdi
lea    0xd8e(%rip),%rdx
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%r13
cmp    %r13,%r14
jne    1240 <tabPrintTransform+0x100>
jmp    11c0 <tabPrintTransform+0x80>
lea    0xd6c(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <tabprintf@plt>
mov    $0xa,%edi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"[]\0A\00"
@.str.1 = [2 x i8] c"[\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [2 x i8] c" \00"
@.str.4 = [2 x i8] c"\09\00"
@.str.5 = [2 x i8] c";\00"
@.str.6 = [12 x i8] c"%s%.3lf%s%s\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [3 x i8] c"]\0A\00"
@.str.9 = [3 x i8] c"\0A \00"
@.str.10 = [2 x i8] c"\0A\00"
define void @tabPrintTransform(i32 %0, i32 %1, double* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store i32 %0, i32* %5
store i32 %1, i32* %6
store double* %2, double** %7
store i32 %3, i32* %8
%14 = load i32, i32* %5
%15 = zext i32 %14 to i64
%16 = load i32, i32* %6
%17 = zext i32 %16 to i64
%18 = load i32, i32* %5
%19 = icmp eq i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %4
%21 = load i32, i32* %6
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20, %4
%24 = load i32, i32* %8
%25 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @tabprintf to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %24)
br label %97
26: ; preds = %20
%27 = load i32, i32* %8
%28 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @tabprintf to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %27)
store i32 0, i32* %9
br label %29
29: ; preds = %92, %26
%30 = load i32, i32* %9
%31 = load i32, i32* %5
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %95
33: ; preds = %29
store i32 0, i32* %10
br label %34
34: ; preds = %79, %33
%35 = load i32, i32* %10
%36 = load i32, i32* %6
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %82
38: ; preds = %34
%39 = load double*, double** %7
%40 = load i32, i32* %9
%41 = sext i32 %40 to i64
%42 = mul nsw i64 %41, %17
%43 = getelementptr inbounds double, double* %39, i64 %42
%44 = load i32, i32* %10
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
%47 = load double, double* %46
%48 = call i32 (double, ...) bitcast (i32 (...)* @signbit to i32 (double, ...)*)(double %47)
%49 = icmp ne i32 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0)
store i8* %51, i8** %11
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8** %12
%52 = load i32, i32* %10
%53 = load i32, i32* %6
%54 = sub nsw i32 %53, 1
%55 = icmp eq i32 %52, %54
br i1 %55, label %56, label %63
56: ; preds = %38
%57 = load i32, i32* %9
%58 = load i32, i32* %5
%59 = sub nsw i32 %58, 1
%60 = icmp eq i32 %57, %59
%61 = zext i1 %60 to i64
%62 = select i1 %60, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0)
br label %64
63: ; preds = %38
br label %64
64: ; preds = %63, %56
%65 = phi i8* [ %62, %56 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %63 ]
store i8* %65, i8** %13
%66 = load i8*, i8** %11
%67 = load double*, double** %7
%68 = load i32, i32* %9
%69 = sext i32 %68 to i64
%70 = mul nsw i64 %69, %17
%71 = getelementptr inbounds double, double* %67, i64 %70
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %71, i64 %73
%75 = load double, double* %74
%76 = load i8*, i8** %12
%77 = load i8*, i8** %13
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %66, double %75, i8* %76, i8* %77)
br label %79
79: ; preds = %64
%80 = load i32, i32* %10
%81 = add nsw i32 %80, 1
store i32 %81, i32* %10
br label %34
82: ; preds = %34
%83 = load i32, i32* %9
%84 = load i32, i32* %5
%85 = sub nsw i32 %84, 1
%86 = icmp eq i32 %83, %85
%87 = zext i1 %86 to i64
%88 = select i1 %86, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %88)
%90 = load i32, i32* %8
%91 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @tabprintf to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %82
%93 = load i32, i32* %9
%94 = add nsw i32 %93, 1
store i32 %94, i32* %9
br label %29
95: ; preds = %29
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %97
97: ; preds = %95, %23
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"[]\0A\00"
@.str.1 = [2 x i8] c"[\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [2 x i8] c" \00"
@.str.4 = [2 x i8] c"\09\00"
@.str.5 = [2 x i8] c";\00"
@.str.6 = [12 x i8] c"%s%.3lf%s%s\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [3 x i8] c"]\0A\00"
@.str.9 = [3 x i8] c"\0A \00"
define void @tabPrintTransform(i32 %0, i32 %1, double* nocapture %2, i32 %3) {
%5 = zext i32 %1 to i64
%6 = icmp eq i32 %0, 0
%7 = icmp eq i32 %1, 0
%8 = or i1 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @tabprintf to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %50
11: ; preds = %4
%12 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @tabprintf to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%13 = icmp sgt i32 %0, 0
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = icmp sgt i32 %1, 0
%16 = add nsw i32 %1, -1
%17 = add nsw i32 %0, -1
%18 = zext i32 %16 to i64
%19 = zext i32 %17 to i64
%20 = zext i32 %0 to i64
br label %21
21: ; preds = %14, %30
%22 = phi i64 [ 0, %14 ], [ %35, %30 ]
br i1 %15, label %23, label %30
23: ; preds = %21
%24 = mul nuw nsw i64 %22, %5
%25 = getelementptr inbounds double, double* %2, i64 %24
%26 = icmp eq i64 %22, %19
%27 = select i1 %26, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0)
br label %37
28: ; preds = %30, %11
%29 = tail call i32 @putchar(i32 10)
br label %50
30: ; preds = %37, %21
%31 = icmp eq i64 %22, %19
%32 = select i1 %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %32)
%34 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @tabprintf to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %3)
%35 = add nuw nsw i64 %22, 1
%36 = icmp eq i64 %35, %20
br i1 %36, label %28, label %21
37: ; preds = %23, %37
%38 = phi i64 [ 0, %23 ], [ %48, %37 ]
%39 = getelementptr inbounds double, double* %25, i64 %38
%40 = load double, double* %39
%41 = tail call i32 (double, ...) bitcast (i32 (...)* @signbit to i32 (double, ...)*)(double %40)
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%44 = icmp eq i64 %38, %18
%45 = select i1 %44, i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0)
%46 = load double, double* %39
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %43, double %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* %45)
%48 = add nuw nsw i64 %38, 1
%49 = icmp eq i64 %48, %5
br i1 %49, label %30, label %37
50: ; preds = %28, %9
ret void
}