#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 *, unsigned long);
int /*<<< orphan*/ putc(char, int /*<<< orphan*/ *);
void arr_uint32_print_t(FILE *pFile, unsigned long int *pUInt,
                        unsigned long int num, unsigned long int stride,
                        char cDelim) {
  unsigned long int i;
  for (i = 0; i < num; i++) {
    fprintf(pFile, "%7lu", pUInt[i * stride]);
    putc(cDelim, pFile);
  }
}


x86 assembly (clang, -O0):
<arr_uint32_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)
movq   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    1195 <arr_uint32_print_t+0x75>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
imul   -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe90(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x21(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1030 <putc@plt>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1146 <arr_uint32_print_t+0x26>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arr_uint32_print_t>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %rdx,%rdx
je     1171 <arr_uint32_print_t+0x51>
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r12
shl    $0x3,%r14
lea    0xeb9(%rip),%r13
movsbl %r8b,%ebp
nopl   0x0(%rax,%rax,1)
mov    (%rbx),%rdx
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %r12,%rsi
call   1030 <putc@plt>
add    %r14,%rbx
add    $0xffffffffffffffff,%r15
jne    1150 <arr_uint32_print_t+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%7lu\00"
define void @arr_uint32_print_t(i32* %0, i64* %1, i64 %2, i64 %3, i8 signext %4) {
%6 = alloca i32*
%7 = alloca i64*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i8
%11 = alloca i64
store i32* %0, i32** %6
store i64* %1, i64** %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 = %28, %5
%13 = load i64, i64* %11
%14 = load i64, i64* %8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %31
16: ; preds = %12
%17 = load i32*, i32** %6
%18 = load i64*, i64** %7
%19 = load i64, i64* %11
%20 = load i64, i64* %9
%21 = mul i64 %19, %20
%22 = getelementptr inbounds i64, i64* %18, i64 %21
%23 = load i64, i64* %22
%24 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %23)
%25 = load i8, i8* %10
%26 = load i32*, i32** %6
%27 = call i32 @putc(i8 signext %25, i32* %26)
br label %28
28: ; preds = %16
%29 = load i64, i64* %11
%30 = add i64 %29, 1
store i64 %30, i64* %11
br label %12
31: ; preds = %12
ret void
}

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