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


x86 assembly (clang, -O0):
<arr_float_print_t>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %r8b,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %al,-0x21(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    11c1 <arr_float_print_t+0x91>
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
imul   -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1030 <float_format@plt>
mov    -0x38(%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    -0x21(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <putc@plt>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1156 <arr_float_print_t+0x26>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arr_float_print_t>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
test   %rdx,%rdx
je     118b <arr_float_print_t+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_t+0x30>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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