#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void t4_list(FILE *fp, float *t4) {
  int i, m;
  fprintf(fp, "t4\n");
  for (i = 0; i < 4; i++) {
    fprintf(fp, "%10.6f%10.6f%10.6f%10.4f\n", (t4 + i)[0], (t4 + i)[4],
            (t4 + i)[8], (t4 + i)[12]);
  }
}


x86 assembly (clang, -O0):
<t4_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    11aa <t4_list+0x9a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  0x10(%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  0x20(%rax,%rcx,4),%xmm2
cvtss2sd %xmm2,%xmm2
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  0x30(%rax,%rcx,4),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xe6f(%rip),%rsi
mov    $0x4,%al
call   1030 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1139 <t4_list+0x29>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t4_list>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xece(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1040 <fwrite@plt>
movss  (%rbx),%xmm0
movss  0x10(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x20(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x30(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xe96(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x4,%al
call   1030 <fprintf@plt>
movss  0x4(%rbx),%xmm0
movss  0x14(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x24(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x34(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x4,%al
call   1030 <fprintf@plt>
movss  0x8(%rbx),%xmm0
movss  0x18(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x28(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x38(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x4,%al
call   1030 <fprintf@plt>
movss  0xc(%rbx),%xmm0
movss  0x1c(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x2c(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x3c(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x4,%al
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"t4\0A\00"
@.str.1 = [26 x i8] c"%10.6f%10.6f%10.6f%10.4f\0A\00"
define void @t4_list(i32* %0, float* %1) {
%3 = alloca i32*
%4 = alloca float*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store float* %1, float** %4
%7 = load i32*, i32** %3
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %5
br label %9
9: ; preds = %43, %2
%10 = load i32, i32* %5
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %46
12: ; preds = %9
%13 = load i32*, i32** %3
%14 = load float*, float** %4
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds float, float* %14, i64 %16
%18 = getelementptr inbounds float, float* %17, i64 0
%19 = load float, float* %18
%20 = fpext float %19 to double
%21 = load float*, float** %4
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, float* %21, i64 %23
%25 = getelementptr inbounds float, float* %24, i64 4
%26 = load float, float* %25
%27 = fpext float %26 to double
%28 = load float*, float** %4
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, float* %28, i64 %30
%32 = getelementptr inbounds float, float* %31, i64 8
%33 = load float, float* %32
%34 = fpext float %33 to double
%35 = load float*, float** %4
%36 = load i32, i32* %5
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds float, float* %35, i64 %37
%39 = getelementptr inbounds float, float* %38, i64 12
%40 = load float, float* %39
%41 = fpext float %40 to double
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), double %20, double %27, double %34, double %41)
br label %43
43: ; preds = %12
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
br label %9
46: ; preds = %9
ret void
}

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