#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 *, double);
void print3x3(double *mat) {
  double *mat00 __attribute__((unused)) = mat++;
  double *mat10 __attribute__((unused)) = mat++;
  double *mat20 __attribute__((unused)) = mat++;
  double *mat01 __attribute__((unused)) = mat++;
  double *mat11 __attribute__((unused)) = mat++;
  double *mat21 __attribute__((unused)) = mat++;
  double *mat02 __attribute__((unused)) = mat++;
  double *mat12 __attribute__((unused)) = mat++;
  double *mat22 __attribute__((unused)) = mat++;
  ;
  printf("%10.4g ", *mat00);
  printf("%10.4g ", *mat01);
  printf("%10.4g\n", *mat02);
  printf("%10.4g ", *mat10);
  printf("%10.4g ", *mat11);
  printf("%10.4g\n", *mat12);
  printf("%10.4g ", *mat20);
  printf("%10.4g ", *mat21);
  printf("%10.4g\n", *mat22);
}


x86 assembly (clang, -O0):
<print3x3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xe2a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xe16(%rip),%rdi
call   1030 <printf@plt>
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xe0a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xdee(%rip),%rdi
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xdda(%rip),%rdi
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xdce(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xdb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xd9e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xd92(%rip),%rdi
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print3x3>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
lea    0xedd(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
movsd  0x18(%rbx),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movsd  0x30(%rbx),%xmm0
lea    0xec4(%rip),%r15
mov    %r15,%rdi
call   1030 <printf@plt>
movsd  0x8(%rbx),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movsd  0x20(%rbx),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movsd  0x38(%rbx),%xmm0
mov    %r15,%rdi
call   1030 <printf@plt>
movsd  0x10(%rbx),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movsd  0x28(%rbx),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movsd  0x40(%rbx),%xmm0
mov    %r15,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"%10.4g \00"
@.str.1 = [8 x i8] c"%10.4g\0A\00"
define void @print3x3(double* %0) {
%2 = alloca double*
%3 = alloca double*
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
store double* %0, double** %2
%12 = load double*, double** %2
%13 = getelementptr inbounds double, double* %12, i32 1
store double* %13, double** %2
store double* %12, double** %3
%14 = load double*, double** %2
%15 = getelementptr inbounds double, double* %14, i32 1
store double* %15, double** %2
store double* %14, double** %4
%16 = load double*, double** %2
%17 = getelementptr inbounds double, double* %16, i32 1
store double* %17, double** %2
store double* %16, double** %5
%18 = load double*, double** %2
%19 = getelementptr inbounds double, double* %18, i32 1
store double* %19, double** %2
store double* %18, double** %6
%20 = load double*, double** %2
%21 = getelementptr inbounds double, double* %20, i32 1
store double* %21, double** %2
store double* %20, double** %7
%22 = load double*, double** %2
%23 = getelementptr inbounds double, double* %22, i32 1
store double* %23, double** %2
store double* %22, double** %8
%24 = load double*, double** %2
%25 = getelementptr inbounds double, double* %24, i32 1
store double* %25, double** %2
store double* %24, double** %9
%26 = load double*, double** %2
%27 = getelementptr inbounds double, double* %26, i32 1
store double* %27, double** %2
store double* %26, double** %10
%28 = load double*, double** %2
%29 = getelementptr inbounds double, double* %28, i32 1
store double* %29, double** %2
store double* %28, double** %11
%30 = load double*, double** %3
%31 = load double, double* %30
%32 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %31)
%33 = load double*, double** %6
%34 = load double, double* %33
%35 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %34)
%36 = load double*, double** %9
%37 = load double, double* %36
%38 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %37)
%39 = load double*, double** %4
%40 = load double, double* %39
%41 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %40)
%42 = load double*, double** %7
%43 = load double, double* %42
%44 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %43)
%45 = load double*, double** %10
%46 = load double, double* %45
%47 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %46)
%48 = load double*, double** %5
%49 = load double, double* %48
%50 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %49)
%51 = load double*, double** %8
%52 = load double, double* %51
%53 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %52)
%54 = load double*, double** %11
%55 = load double, double* %54
%56 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %55)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%10.4g \00"
@.str.1 = [8 x i8] c"%10.4g\0A\00"
define void @print3x3(double* nocapture %0) {
%2 = getelementptr inbounds double, double* %0, i64 1
%3 = getelementptr inbounds double, double* %0, i64 2
%4 = getelementptr inbounds double, double* %0, i64 3
%5 = getelementptr inbounds double, double* %0, i64 4
%6 = getelementptr inbounds double, double* %0, i64 5
%7 = getelementptr inbounds double, double* %0, i64 6
%8 = getelementptr inbounds double, double* %0, i64 7
%9 = getelementptr inbounds double, double* %0, i64 8
%10 = load double, double* %0
%11 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %10)
%12 = load double, double* %4
%13 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %12)
%14 = load double, double* %7
%15 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %14)
%16 = load double, double* %2
%17 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %16)
%18 = load double, double* %5
%19 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %18)
%20 = load double, double* %8
%21 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %20)
%22 = load double, double* %3
%23 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %22)
%24 = load double, double* %6
%25 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %24)
%26 = load double, double* %9
%27 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %26)
ret void
}