#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 */
char *float_format(float);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, float);
int /*<<< orphan*/ putc(char, int /*<<< orphan*/ *);
void arr_float_print_t2(FILE *pFile, float *pFloat, unsigned long int num,
                        unsigned long int stride, char cDelim, char cEOL) {
  unsigned long int i;
  for (i = 0; i < num; i++) {
    fprintf(pFile, float_format(pFloat[i * stride]), pFloat[i * stride]);
    if ((i < num) || (cEOL = 0x00)) {
      putc(cDelim, pFile);
    } else {
      putc(cEOL, pFile);
    }
  }
}


x86 assembly (clang, -O0):
<arr_float_print_t2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %r8d,-0x4c(%rbp)
mov    %rcx,%rax
mov    -0x4c(%rbp),%ecx
mov    %rax,-0x48(%rbp)
mov    %rdx,%rax
mov    -0x48(%rbp),%rdx
mov    %rax,-0x40(%rbp)
mov    %rsi,%rax
mov    -0x40(%rbp),%rsi
mov    %rax,-0x38(%rbp)
mov    %rdi,%r8
mov    -0x38(%rbp),%rdi
mov    %r9b,%al
mov    %r8,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %cl,-0x21(%rbp)
mov    %al,-0x22(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    1229 <arr_float_print_t2+0xf9>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
imul   -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1030 <float_format@plt>
mov    -0x58(%rbp),%rdi
mov    %rax,%rsi
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
imul   -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rax
cmp    -0x18(%rbp),%rax
jb     11f0 <arr_float_print_t2+0xc0>
movb   $0x0,-0x22(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    11f0 <arr_float_print_t2+0xc0>
jmp    1204 <arr_float_print_t2+0xd4>
mov    -0x21(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <putc@plt>
jmp    1213 <arr_float_print_t2+0xe3>
mov    -0x22(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <putc@plt>
jmp    1218 <arr_float_print_t2+0xe8>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1184 <arr_float_print_t2+0x54>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arr_float_print_t2>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
test   %rdx,%rdx
je     118b <arr_float_print_t2+0x5b>
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r12
shl    $0x2,%r14
movsbl %r8b,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%rbx),%xmm0
call   1030 <float_format@plt>
movss  (%rbx),%xmm0
mov    %r12,%rdi
mov    %rax,%rsi
call   1050 <fprintf@plt>
mov    %ebp,%edi
mov    %r12,%rsi
call   1040 <putc@plt>
add    %r14,%rbx
add    $0xffffffffffffffff,%r15
jne    1160 <arr_float_print_t2+0x30>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @arr_float_print_t2(i32* %0, float* %1, i64 %2, i64 %3, i8 signext %4, i8 signext %5) {
%7 = alloca i32*
%8 = alloca float*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i8
%12 = alloca i8
%13 = alloca i64
store i32* %0, i32** %7
store float* %1, float** %8
store i64 %2, i64* %9
store i64 %3, i64* %10
store i8 %4, i8* %11
store i8 %5, i8* %12
store i64 0, i64* %13
br label %14
14: ; preds = %47, %6
%15 = load i64, i64* %13
%16 = load i64, i64* %9
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %50
18: ; preds = %14
%19 = load i32*, i32** %7
%20 = load float*, float** %8
%21 = load i64, i64* %13
%22 = load i64, i64* %10
%23 = mul i64 %21, %22
%24 = getelementptr inbounds float, float* %20, i64 %23
%25 = load float, float* %24
%26 = call i8* @float_format(float %25)
%27 = load float*, float** %8
%28 = load i64, i64* %13
%29 = load i64, i64* %10
%30 = mul i64 %28, %29
%31 = getelementptr inbounds float, float* %27, i64 %30
%32 = load float, float* %31
%33 = call i32 @fprintf(i32* %19, i8* %26, float %32)
%34 = load i64, i64* %13
%35 = load i64, i64* %9
%36 = icmp ult i64 %34, %35
br i1 %36, label %38, label %37
37: ; preds = %18
store i8 0, i8* %12
br i1 false, label %38, label %42
38: ; preds = %37, %18
%39 = load i8, i8* %11
%40 = load i32*, i32** %7
%41 = call i32 @putc(i8 signext %39, i32* %40)
br label %46
42: ; preds = %37
%43 = load i8, i8* %12
%44 = load i32*, i32** %7
%45 = call i32 @putc(i8 signext %43, i32* %44)
br label %46
46: ; preds = %42, %38
br label %47
47: ; preds = %46
%48 = load i64, i64* %13
%49 = add i64 %48, 1
store i64 %49, i64* %13
br label %14
50: ; preds = %14
ret void
}

LLVM IR (-O2):
define void @arr_float_print_t2(i32* nocapture %0, float* nocapture %1, i64 %2, i64 %3, i8 signext %4, i8 signext %5) {
%7 = icmp eq i64 %2, 0
br i1 %7, label %19, label %8
8: ; preds = %6, %8
%9 = phi i64 [ %17, %8 ], [ 0, %6 ]
%10 = mul i64 %9, %3
%11 = getelementptr inbounds float, float* %1, i64 %10
%12 = load float, float* %11
%13 = tail call i8* @float_format(float %12)
%14 = load float, float* %11
%15 = tail call i32 @fprintf(i32* %0, i8* %13, float %14)
%16 = tail call i32 @putc(i8 signext %4, i32* %0)
%17 = add nuw i64 %9, 1
%18 = icmp eq i64 %17, %2
br i1 %18, label %19, label %8
19: ; preds = %8, %6
ret void
}