#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 */

/* Variables and functions */
int /*<<< orphan*/ hmppcf_epilogue__();
int /*<<< orphan*/ hmppcf_prologue__();
int /*<<< orphan*/ printf(char *, int);
long codelet_3dyvtu3z(int __hmpp_addr__size[1], int *tab,
                      int __hmpp_addr__i[1]) {
  int i = *__hmpp_addr__i;
  int size = *__hmpp_addr__size;
  hmppcf_prologue__();
  for (i = 0; i < size; i++)
    printf("%d ", tab[i]);
  *__hmpp_addr__i = i;
  return (*((long *)&__hmpp_addr__size)) + (*((long *)&tab)) + (*((long *)&i)) +
         (*((long *)&__hmpp_addr__i));
  hmppcf_epilogue__();
}


x86 assembly (clang, -O0):
<codelet_3dyvtu3z>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <hmppcf_prologue__@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1185 <codelet_3dyvtu3z+0x65>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1154 <codelet_3dyvtu3z+0x34>
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
add    -0x10(%rbp),%rax
add    -0x1c(%rbp),%rax
add    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<codelet_3dyvtu3z>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r13
mov    %rdi,%r15
mov    (%rdi),%ebx
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <hmppcf_prologue__@plt>
test   %ebx,%ebx
jle    1168 <codelet_3dyvtu3z+0x48>
xor    %ebp,%ebp
lea    0xeb4(%rip),%r12
nopl   0x0(%rax)
mov    0x0(%r13,%rbp,4),%esi
mov    %r12,%rdi
call   1030 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1150 <codelet_3dyvtu3z+0x30>
mov    %ebx,%ebp
mov    %ebp,(%r14)
add    %r15,%r13
mov    %ebp,%eax
add    %r14,%r13
add    %rax,%r13
mov    %r13,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d \00"
define i64 @codelet_3dyvtu3z(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%9 = load i32*, i32** %6
%10 = load i32, i32* %9
store i32 %10, i32* %7
%11 = load i32*, i32** %4
%12 = load i32, i32* %11
store i32 %12, i32* %8
%13 = call i32 (...) @hmppcf_prologue__()
store i32 0, i32* %7
br label %14
14: ; preds = %25, %3
%15 = load i32, i32* %7
%16 = load i32, i32* %8
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %14
%19 = load i32*, i32** %5
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %19, i64 %21
%23 = load i32, i32* %22
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %18
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
store i32 %27, i32* %7
br label %14
28: ; preds = %14
%29 = load i32, i32* %7
%30 = load i32*, i32** %6
store i32 %29, i32* %30
%31 = bitcast i32** %4 to i64*
%32 = load i64, i64* %31
%33 = bitcast i32** %5 to i64*
%34 = load i64, i64* %33
%35 = add nsw i64 %32, %34
%36 = bitcast i32* %7 to i64*
%37 = load i64, i64* %36
%38 = add nsw i64 %35, %37
%39 = bitcast i32** %6 to i64*
%40 = load i64, i64* %39
%41 = add nsw i64 %38, %40
ret i64 %41
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i64 @codelet_3dyvtu3z(i32* %0, i32* %1, i32* %2) {
%4 = load i32, i32* %0
%5 = tail call i32 (...) @hmppcf_prologue__()
%6 = icmp sgt i32 %4, 0
br i1 %6, label %7, label %16
7: ; preds = %3
%8 = zext i32 %4 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %14, %9 ]
%11 = getelementptr inbounds i32, i32* %1, i64 %10
%12 = load i32, i32* %11
%13 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = add nuw nsw i64 %10, 1
%15 = icmp eq i64 %14, %8
br i1 %15, label %16, label %9
16: ; preds = %9, %3
%17 = phi i32 [ 0, %3 ], [ %4, %9 ]
store i32 %17, i32* %2
%18 = ptrtoint i32* %0 to i64
%19 = ptrtoint i32* %1 to i64
%20 = add nsw i64 %19, %18
%21 = zext i32 %17 to i64
%22 = ptrtoint i32* %2 to i64
%23 = add i64 %20, %22
%24 = add i64 %23, %21
ret i64 %24
}