print_poly2(poly) double poly[25][25];
{
  int ord1, ord2;
  int i, j;
  order_poly2(poly, &ord1, &ord2);
  for (j = 0; j <= ord2; ++j) {
    for (i = 0; i <= ord1; ++i)
      printf("%f\t", poly[i][j]);
    printf("\n");
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<print_poly2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <order_poly2@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11b8 <print_poly2+0x98>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     119c <print_poly2+0x7c>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0xc8,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe79(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1159 <print_poly2+0x39>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1146 <print_poly2+0x26>
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_poly2>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%r14
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1050 <order_poly2@plt>
cmpl   $0x0,0x8(%rsp)
js     11c5 <print_poly2+0x95>
xor    %r15d,%r15d
lea    0xe9e(%rip),%r12
jmp    118f <print_poly2+0x5f>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r15),%rax
movslq 0x8(%rsp),%rcx
add    $0x8,%r14
cmp    %rcx,%r15
mov    %rax,%r15
jge    11c5 <print_poly2+0x95>
cmpl   $0x0,0xc(%rsp)
js     1170 <print_poly2+0x40>
mov    $0xffffffffffffffff,%r13
mov    %r14,%rbx
movsd  (%rbx),%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movslq 0xc(%rsp),%rax
add    $0x1,%r13
add    $0xc8,%rbx
cmp    %rax,%r13
jl     11a0 <print_poly2+0x70>
jmp    1170 <print_poly2+0x40>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%f\09\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @print_poly2([25 x double]* %0) {
%2 = alloca i32
%3 = alloca [25 x double]*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store [25 x double]* %0, [25 x double]** %3
%8 = load [25 x double]*, [25 x double]** %3
%9 = call i32 ([25 x double]*, i32*, i32*, ...) bitcast (i32 (...)* @order_poly2 to i32 ([25 x double]*, i32*, i32*, ...)*)([25 x double]* %8, i32* %4, i32* %5)
store i32 0, i32* %7
br label %10
10: ; preds = %34, %1
%11 = load i32, i32* %7
%12 = load i32, i32* %5
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %37
14: ; preds = %10
store i32 0, i32* %6
br label %15
15: ; preds = %29, %14
%16 = load i32, i32* %6
%17 = load i32, i32* %4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %32
19: ; preds = %15
%20 = load [25 x double]*, [25 x double]** %3
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [25 x double], [25 x double]* %20, i64 %22
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [25 x double], [25 x double]* %23, i64 0, i64 %25
%27 = load double, double* %26
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %27)
br label %29
29: ; preds = %19
%30 = load i32, i32* %6
%31 = add nsw i32 %30, 1
store i32 %31, i32* %6
br label %15
32: ; preds = %15
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %34
34: ; preds = %32
%35 = load i32, i32* %7
%36 = add nsw i32 %35, 1
store i32 %36, i32* %7
br label %10
37: ; preds = %10
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%39 = load i32, i32* %2
ret i32 %39
}

LLVM IR (-O2):
@.str = [4 x i8] c"%f\09\00"
define i32 @print_poly2([25 x double]* %0) {
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %2 to i8*
%5 = bitcast i32* %3 to i8*
%6 = call i32 ([25 x double]*, i32*, i32*, ...) bitcast (i32 (...)* @order_poly2 to i32 ([25 x double]*, i32*, i32*, ...)*)([25 x double]* %0, i32* %2, i32* %3)
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 0
br i1 %8, label %28, label %9
9: ; preds = %1, %22
%10 = phi i64 [ %24, %22 ], [ 0, %1 ]
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 0
br i1 %12, label %22, label %13
13: ; preds = %9, %13
%14 = phi i64 [ %18, %13 ], [ 0, %9 ]
%15 = getelementptr inbounds [25 x double], [25 x double]* %0, i64 %14, i64 %10
%16 = load double, double* %15
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %16)
%18 = add nuw nsw i64 %14, 1
%19 = load i32, i32* %2
%20 = sext i32 %19 to i64
%21 = icmp slt i64 %14, %20
br i1 %21, label %13, label %22
22: ; preds = %13, %9
%23 = call i32 @putchar(i32 10)
%24 = add nuw nsw i64 %10, 1
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = icmp slt i64 %10, %26
br i1 %27, label %9, label %28
28: ; preds = %22, %1
%29 = call i32 @putchar(i32 10)
ret i32 undef
}