#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 short 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    $0x50,%rsp
mov    %r8d,-0x44(%rbp)
mov    %rcx,%rax
mov    -0x44(%rbp),%ecx
mov    %rax,-0x40(%rbp)
mov    %rdx,%rax
mov    -0x40(%rbp),%rdx
mov    %rax,-0x38(%rbp)
mov    %rsi,%rax
mov    -0x38(%rbp),%rsi
mov    %rax,-0x30(%rbp)
mov    %rdi,%r8
mov    -0x30(%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)
movw   $0x0,-0x24(%rbp)
movzwl -0x24(%rbp),%eax
cmp    -0x18(%rbp),%rax
jae    1221 <arr_float_print_t2+0xf1>
mov    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movzwl -0x24(%rbp),%ecx
imul   -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1030 <float_format@plt>
mov    -0x50(%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>
movzwl -0x24(%rbp),%eax
cmp    -0x18(%rbp),%rax
jb     11e8 <arr_float_print_t2+0xb8>
movsbl -0x22(%rbp),%eax
cmp    $0x0,%eax
jne    11fc <arr_float_print_t2+0xcc>
mov    -0x21(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <putc@plt>
jmp    120b <arr_float_print_t2+0xdb>
mov    -0x22(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <putc@plt>
jmp    1210 <arr_float_print_t2+0xe0>
mov    -0x24(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x24(%rbp)
jmp    1182 <arr_float_print_t2+0x52>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arr_float_print_t2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %rdx,%rdx
je     119a <arr_float_print_t2+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_t2+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_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 i16
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 i16 0, i16* %13
br label %14
14: ; preds = %54, %6
%15 = load i16, i16* %13
%16 = zext i16 %15 to i64
%17 = load i64, i64* %9
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %57
19: ; preds = %14
%20 = load i32*, i32** %7
%21 = load float*, float** %8
%22 = load i16, i16* %13
%23 = zext i16 %22 to i64
%24 = load i64, i64* %10
%25 = mul i64 %23, %24
%26 = getelementptr inbounds float, float* %21, i64 %25
%27 = load float, float* %26
%28 = call i8* @float_format(float %27)
%29 = load float*, float** %8
%30 = load i16, i16* %13
%31 = zext i16 %30 to i64
%32 = load i64, i64* %10
%33 = mul i64 %31, %32
%34 = getelementptr inbounds float, float* %29, i64 %33
%35 = load float, float* %34
%36 = call i32 @fprintf(i32* %20, i8* %28, float %35)
%37 = load i16, i16* %13
%38 = zext i16 %37 to i64
%39 = load i64, i64* %9
%40 = icmp ult i64 %38, %39
br i1 %40, label %45, label %41
41: ; preds = %19
%42 = load i8, i8* %12
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %41, %19
%46 = load i8, i8* %11
%47 = load i32*, i32** %7
%48 = call i32 @putc(i8 signext %46, i32* %47)
br label %53
49: ; preds = %41
%50 = load i8, i8* %12
%51 = load i32*, i32** %7
%52 = call i32 @putc(i8 signext %50, i32* %51)
br label %53
53: ; preds = %49, %45
br label %54
54: ; preds = %53
%55 = load i16, i16* %13
%56 = add i16 %55, 1
store i16 %56, i16* %13
br label %14
57: ; 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 %20, label %8
8: ; preds = %6, %8
%9 = phi i64 [ %18, %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 nsw i64 %9, 1
%18 = and i64 %17, 65535
%19 = icmp ult i64 %18, %2
br i1 %19, label %8, label %20
20: ; preds = %8, %6
ret void
}