#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 uint8_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ printf(char *);
void PrintVectorFile(uint8_t *DaStampare, FILE *fp) {
  int i;
  for (i = 0; i < 16; i++) {
    fprintf(fp, "%02X ", DaStampare[i]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<PrintVectorFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    116a <PrintVectorFile+0x4a>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xea9(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1137 <PrintVectorFile+0x17>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintVectorFile>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%edx
lea    0xecc(%rip),%r15
mov    %rsi,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x4(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x8(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0xc(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x10(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x14(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x18(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x1c(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x20(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x24(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x28(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x2c(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x30(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x34(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x38(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    0x3c(%rbx),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <fprintf@plt>
mov    $0xa,%edi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"%02X \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @PrintVectorFile(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %5
br label %6
6: ; preds = %17, %2
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 16
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = load i32*, i32** %4
%11 = load i32*, i32** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, i32* %11, i64 %13
%15 = load i32, i32* %14
%16 = call i32 @fprintf(i32* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %9
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %6
20: ; preds = %6
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%02X \00"
define void @PrintVectorFile(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = getelementptr inbounds i32, i32* %0, i64 1
%6 = load i32, i32* %5
%7 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = getelementptr inbounds i32, i32* %0, i64 2
%9 = load i32, i32* %8
%10 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = getelementptr inbounds i32, i32* %0, i64 3
%12 = load i32, i32* %11
%13 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = getelementptr inbounds i32, i32* %0, i64 4
%15 = load i32, i32* %14
%16 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = getelementptr inbounds i32, i32* %0, i64 5
%18 = load i32, i32* %17
%19 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds i32, i32* %0, i64 6
%21 = load i32, i32* %20
%22 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %21)
%23 = getelementptr inbounds i32, i32* %0, i64 7
%24 = load i32, i32* %23
%25 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds i32, i32* %0, i64 8
%27 = load i32, i32* %26
%28 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds i32, i32* %0, i64 9
%30 = load i32, i32* %29
%31 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds i32, i32* %0, i64 10
%33 = load i32, i32* %32
%34 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds i32, i32* %0, i64 11
%36 = load i32, i32* %35
%37 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds i32, i32* %0, i64 12
%39 = load i32, i32* %38
%40 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds i32, i32* %0, i64 13
%42 = load i32, i32* %41
%43 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds i32, i32* %0, i64 14
%45 = load i32, i32* %44
%46 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds i32, i32* %0, i64 15
%48 = load i32, i32* %47
%49 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %48)
%50 = tail call i32 @putchar(i32 10)
ret void
}