int main(void) {
  srand(time(0));
  unsigned char arreglo[6];
  unsigned char *puntArreglo = arreglo;
  unsigned char newArreglo[6][2];
  unsigned char *puntNewArreglo = newArreglo;
  int j, i;
  makeArray(puntArreglo);
  printf("Vector:\n");
  for (i = 0; i < 6; i++) {
    printf("%hhx\t", arreglo[i]);
  }
  stdDesv(puntNewArreglo, arreglo);
  printf("\nMatriz:\n");
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 2; j++) {
      printf("%d\t", newArreglo[i][j]);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
mov    $0x0,%al
call   1060 <time@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1050 <srand@plt>
lea    -0xa(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x24(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1030 <makeArray@plt>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jge    11d0 <main+0x80>
movslq -0x38(%rbp),%rax
movzbl -0xa(%rbp,%rax,1),%esi
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11a1 <main+0x51>
mov    -0x30(%rbp),%rdi
lea    -0xa(%rbp),%rsi
mov    $0x0,%al
call   1070 <stdDesv@plt>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jge    125e <main+0x10e>
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1242 <main+0xf2>
movslq -0x38(%rbp),%rcx
lea    -0x24(%rbp),%rax
shl    $0x1,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1205 <main+0xb5>
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11f4 <main+0xa4>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
xor    %edi,%edi
xor    %eax,%eax
call   1080 <time@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1070 <srand@plt>
lea    0x6(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <makeArray@plt>
lea    0xe6b(%rip),%rdi
call   1050 <puts@plt>
movzbl 0x6(%rsp),%esi
lea    0xe50(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc(%rsp),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1090 <stdDesv@plt>
lea    0xdf7(%rip),%rdi
call   1050 <puts@plt>
movzbl 0xc(%rsp),%esi
lea    0xdda(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movzbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movzbl 0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movzbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movzbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movzbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Vector:\0A\00"
@.str.1 = [6 x i8] c"%hhx\09\00"
@.str.2 = [10 x i8] c"\0AMatriz:\0A\00"
@.str.3 = [4 x i8] c"%d\09\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x i8]
%3 = alloca i8*
%4 = alloca [6 x [2 x i8]]
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 (i32, ...) bitcast (i32 (...)* @time to i32 (i32, ...)*)(i32 0)
%9 = call i32 (i32, ...) bitcast (i32 (...)* @srand to i32 (i32, ...)*)(i32 %8)
%10 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
store i8* %10, i8** %3
%11 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %4, i64 0, i64 0
%12 = bitcast [2 x i8]* %11 to i8*
store i8* %12, i8** %5
%13 = load i8*, i8** %3
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @makeArray to i32 (i8*, ...)*)(i8* %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %7
br label %16
16: ; preds = %26, %0
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 6
br i1 %18, label %19, label %29
19: ; preds = %16
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = zext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %26
26: ; preds = %19
%27 = load i32, i32* %7
%28 = add nsw i32 %27, 1
store i32 %28, i32* %7
br label %16
29: ; preds = %16
%30 = load i8*, i8** %5
%31 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%32 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @stdDesv to i32 (i8*, i8*, ...)*)(i8* %30, i8* %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %7
br label %34
34: ; preds = %56, %29
%35 = load i32, i32* %7
%36 = icmp slt i32 %35, 6
br i1 %36, label %37, label %59
37: ; preds = %34
store i32 0, i32* %6
br label %38
38: ; preds = %51, %37
%39 = load i32, i32* %6
%40 = icmp slt i32 %39, 2
br i1 %40, label %41, label %54
41: ; preds = %38
%42 = load i32, i32* %7
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %4, i64 0, i64 %43
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [2 x i8], [2 x i8]* %44, i64 0, i64 %46
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %41
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
br label %38
54: ; preds = %38
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %56
56: ; preds = %54
%57 = load i32, i32* %7
%58 = add nsw i32 %57, 1
store i32 %58, i32* %7
br label %34
59: ; preds = %34
%60 = load i32, i32* %1
ret i32 %60
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"%hhx\09\00"
@.str.3 = [4 x i8] c"%d\09\00"
@str = [8 x i8] c"Vector:\00"
@str.5 = [9 x i8] c"\0AMatriz:\00"
define i32 @main() {
%1 = alloca [6 x i8]
%2 = alloca [6 x [2 x i8]]
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @time to i32 (i32, ...)*)(i32 0)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @srand to i32 (i32, ...)*)(i32 %3)
%5 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 0, i64 0
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @makeArray to i32 (i8*, ...)*)(i8* %5)
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%9 = load i8, i8* %5
%10 = zext i8 %9 to i32
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 1
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 2
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 3
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %22)
%24 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 4
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 5
%29 = load i8, i8* %28
%30 = zext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @stdDesv to i32 (i8*, i8*, ...)*)(i8* %6, i8* %5)
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.5, i64 0, i64 0))
%34 = load i8, i8* %6
%35 = zext i8 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %35)
%37 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 0, i64 1
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %39)
%41 = call i32 @putchar(i32 10)
%42 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 1, i64 0
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 1, i64 1
%47 = load i8, i8* %46
%48 = zext i8 %47 to i32
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %48)
%50 = call i32 @putchar(i32 10)
%51 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 2, i64 0
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 2, i64 1
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %57)
%59 = call i32 @putchar(i32 10)
%60 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 3, i64 0
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 3, i64 1
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %66)
%68 = call i32 @putchar(i32 10)
%69 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 4, i64 0
%70 = load i8, i8* %69
%71 = zext i8 %70 to i32
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 4, i64 1
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %75)
%77 = call i32 @putchar(i32 10)
%78 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 5, i64 0
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %80)
%82 = getelementptr inbounds [6 x [2 x i8]], [6 x [2 x i8]]* %2, i64 0, i64 5, i64 1
%83 = load i8, i8* %82
%84 = zext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %84)
%86 = call i32 @putchar(i32 10)
ret i32 0
}