void Mmtrm(m, n, p, alpha, A, Aj0, B, Bj0, C, Cj0) int m, n, p;
double alpha;
double **A, **B, **C;
int Aj0, Bj0, Cj0;
{
  register int i, j, k;
  for (k = 0; k < p; k++)
    Mupdate(m, n, alpha, &(A[k][Aj0]), &(B[k][Bj0]), C, Cj0);
}


x86 assembly (clang, -O0):
<Mmtrm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a5 <Mmtrm+0x95>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
movsd  -0x18(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
movslq 0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    0x18(%rbp),%r8
mov    0x20(%rbp),%r9d
mov    $0x1,%al
call   1030 <Mupdate@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1143 <Mmtrm+0x33>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Mmtrm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %edx,%edx
jle    1198 <Mmtrm+0x88>
mov    %r9,%rbp
mov    %rcx,%rbx
mov    %esi,%r14d
mov    %edi,%r12d
movslq %r8d,%rax
movslq 0x50(%rsp),%r13
mov    %edx,%edx
mov    %rdx,(%rsp)
xor    %r15d,%r15d
shl    $0x3,%rax
mov    %rax,0x8(%rsp)
shl    $0x3,%r13
movsd  %xmm0,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rbx,%r15,8),%rdx
add    0x8(%rsp),%rdx
mov    0x0(%rbp,%r15,8),%rcx
add    %r13,%rcx
mov    %r12d,%edi
mov    %r14d,%esi
movsd  0x10(%rsp),%xmm0
mov    0x58(%rsp),%r8
mov    0x60(%rsp),%r9d
mov    $0x1,%al
call   1030 <Mupdate@plt>
add    $0x1,%r15
cmp    %r15,(%rsp)
jne    1160 <Mmtrm+0x50>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @Mmtrm(i32 %0, i32 %1, i32 %2, double %3, double** %4, i32 %5, double** %6, i32 %7, double** %8, i32 %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double**
%16 = alloca i32
%17 = alloca double**
%18 = alloca i32
%19 = alloca double**
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store double %3, double* %14
store double** %4, double*** %15
store i32 %5, i32* %16
store double** %6, double*** %17
store i32 %7, i32* %18
store double** %8, double*** %19
store i32 %9, i32* %20
store i32 0, i32* %23
br label %24
24: ; preds = %51, %10
%25 = load i32, i32* %23
%26 = load i32, i32* %13
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %54
28: ; preds = %24
%29 = load i32, i32* %11
%30 = load i32, i32* %12
%31 = load double, double* %14
%32 = load double**, double*** %15
%33 = load i32, i32* %23
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double*, double** %32, i64 %34
%36 = load double*, double** %35
%37 = load i32, i32* %16
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
%40 = load double**, double*** %17
%41 = load i32, i32* %23
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double*, double** %40, i64 %42
%44 = load double*, double** %43
%45 = load i32, i32* %18
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %44, i64 %46
%48 = load double**, double*** %19
%49 = load i32, i32* %20
%50 = call i32 (i32, i32, double, double*, double*, double**, i32, ...) bitcast (i32 (...)* @Mupdate to i32 (i32, i32, double, double*, double*, double**, i32, ...)*)(i32 %29, i32 %30, double %31, double* %39, double* %47, double** %48, i32 %49)
br label %51
51: ; preds = %28
%52 = load i32, i32* %23
%53 = add nsw i32 %52, 1
store i32 %53, i32* %23
br label %24
54: ; preds = %24
ret void
}

LLVM IR (-O2):
define void @Mmtrm(i32 %0, i32 %1, i32 %2, double %3, double** nocapture %4, i32 %5, double** nocapture %6, i32 %7, double** %8, i32 %9) {
%11 = icmp sgt i32 %2, 0
br i1 %11, label %12, label %27
12: ; preds = %10
%13 = sext i32 %5 to i64
%14 = sext i32 %7 to i64
%15 = zext i32 %2 to i64
br label %16
16: ; preds = %12, %16
%17 = phi i64 [ 0, %12 ], [ %25, %16 ]
%18 = getelementptr inbounds double*, double** %4, i64 %17
%19 = load double*, double** %18
%20 = getelementptr inbounds double, double* %19, i64 %13
%21 = getelementptr inbounds double*, double** %6, i64 %17
%22 = load double*, double** %21
%23 = getelementptr inbounds double, double* %22, i64 %14
%24 = tail call i32 (i32, i32, double, double*, double*, double**, i32, ...) bitcast (i32 (...)* @Mupdate to i32 (i32, i32, double, double*, double*, double**, i32, ...)*)(i32 %0, i32 %1, double %3, double* %20, double* %23, double** %8, i32 %9)
%25 = add nuw nsw i64 %17, 1
%26 = icmp eq i64 %25, %15
br i1 %26, label %27, label %16
27: ; preds = %16, %10
ret void
}