#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 short 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    $0x30,%rsp
mov    %r8b,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %al,-0x21(%rbp)
movw   $0x0,-0x24(%rbp)
movzwl -0x24(%rbp),%eax
cmp    -0x18(%rbp),%rax
jae    11bf <arr_float_print_t+0x8f>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movzwl -0x24(%rbp),%ecx
imul   -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1030 <float_format@plt>
mov    -0x30(%rbp),%rdi
mov    %rax,%rsi
mov    -0x10(%rbp),%rax
movzwl -0x24(%rbp),%ecx
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    -0x24(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x24(%rbp)
jmp    1154 <arr_float_print_t+0x24>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arr_float_print_t>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %rdx,%rdx
je     119a <arr_float_print_t+0x6a>
mov    %rcx,%r15
mov    %rdx,%r13
mov    %rsi,%r12
mov    %rdi,%rbx
xor    %ebp,%ebp
movsbl %r8b,%eax
mov    %eax,0x4(%rsp)
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%r14
imul   %r15,%r14
movss  (%r12,%r14,4),%xmm0
call   1030 <float_format@plt>
movss  (%r12,%r14,4),%xmm0
mov    %rbx,%rdi
mov    %rax,%rsi
call   1050 <fprintf@plt>
mov    0x4(%rsp),%edi
mov    %rbx,%rsi
call   1040 <putc@plt>
add    $0x1,%ebp
movzwl %bp,%ebp
cmp    %r13,%rbp
jb     1160 <arr_float_print_t+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
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 i16
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 i16 0, i16* %11
br label %12
12: ; preds = %38, %5
%13 = load i16, i16* %11
%14 = zext i16 %13 to i64
%15 = load i64, i64* %8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %41
17: ; preds = %12
%18 = load i32*, i32** %6
%19 = load float*, float** %7
%20 = load i16, i16* %11
%21 = zext i16 %20 to i64
%22 = load i64, i64* %9
%23 = mul i64 %21, %22
%24 = getelementptr inbounds float, float* %19, i64 %23
%25 = load float, float* %24
%26 = call i8* @float_format(float %25)
%27 = load float*, float** %7
%28 = load i16, i16* %11
%29 = zext i16 %28 to i64
%30 = load i64, i64* %9
%31 = mul i64 %29, %30
%32 = getelementptr inbounds float, float* %27, i64 %31
%33 = load float, float* %32
%34 = call i32 @fprintf(i32* %18, i8* %26, float %33)
%35 = load i8, i8* %10
%36 = load i32*, i32** %6
%37 = call i32 @putc(i8 signext %35, i32* %36)
br label %38
38: ; preds = %17
%39 = load i16, i16* %11
%40 = add i16 %39, 1
store i16 %40, i16* %11
br label %12
41: ; 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 %19, label %7
7: ; preds = %5, %7
%8 = phi i64 [ %17, %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 nsw i64 %8, 1
%17 = and i64 %16, 65535
%18 = icmp ult i64 %17, %2
br i1 %18, label %7, label %19
19: ; preds = %7, %5
ret void
}