void inicialitzaStockExemple(int exemple, int stock[64 + 64]) {
  int i;
  for (i = 0; i < 64 + 64; i++) {
    stock[i] = -1;
  }
  if (exemple == 1) {
    stock[0] = 1;
    stock[1] = 7;
    stock[2] = 3;
    stock[3] = 3;
    stock[4] = 5;
    stock[5] = 4;
    stock[6] = 2;
    stock[7] = 0;
    stock[8] = 6;
    stock[9] = 8;
  }
  if (exemple == 2) {
    stock[0] = 1;
    stock[1] = 7;
    stock[2] = 3;
    stock[3] = 3;
    stock[4] = 5;
    stock[5] = 4;
    stock[6] = 2;
    stock[7] = 0;
    stock[8] = 6;
    stock[9] = 8;
  }
}


x86 assembly (clang, -O0):
<inicialitzaStockExemple>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    113c <inicialitzaStockExemple+0x3c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movl   $0xffffffff,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1112 <inicialitzaStockExemple+0x12>
cmpl   $0x1,-0x4(%rbp)
jne    11b3 <inicialitzaStockExemple+0xb3>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x7,0x4(%rax)
mov    -0x10(%rbp),%rax
movl   $0x3,0x8(%rax)
mov    -0x10(%rbp),%rax
movl   $0x3,0xc(%rax)
mov    -0x10(%rbp),%rax
movl   $0x5,0x10(%rax)
mov    -0x10(%rbp),%rax
movl   $0x4,0x14(%rax)
mov    -0x10(%rbp),%rax
movl   $0x2,0x18(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,0x1c(%rax)
mov    -0x10(%rbp),%rax
movl   $0x6,0x20(%rax)
mov    -0x10(%rbp),%rax
movl   $0x8,0x24(%rax)
cmpl   $0x2,-0x4(%rbp)
jne    122a <inicialitzaStockExemple+0x12a>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x7,0x4(%rax)
mov    -0x10(%rbp),%rax
movl   $0x3,0x8(%rax)
mov    -0x10(%rbp),%rax
movl   $0x3,0xc(%rax)
mov    -0x10(%rbp),%rax
movl   $0x5,0x10(%rax)
mov    -0x10(%rbp),%rax
movl   $0x4,0x14(%rax)
mov    -0x10(%rbp),%rax
movl   $0x2,0x18(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,0x1c(%rax)
mov    -0x10(%rbp),%rax
movl   $0x6,0x20(%rax)
mov    -0x10(%rbp),%rax
movl   $0x8,0x24(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<inicialitzaStockExemple>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    $0x200,%edx
mov    %rsi,%rdi
mov    $0xff,%esi
call   1030 <memset@plt>
add    $0xffffffff,%ebp
cmp    $0x1,%ebp
ja     1155 <inicialitzaStockExemple+0x45>
movaps 0xec7(%rip),%xmm0
movups %xmm0,(%rbx)
movaps 0xecd(%rip),%xmm0
movups %xmm0,0x10(%rbx)
movabs $0x800000006,%rax
mov    %rax,0x20(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @inicialitzaStockExemple(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 = %14, %2
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 128
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = load i32*, i32** %4
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, i32* %10, i64 %12
store i32 -1, i32* %13
br label %14
14: ; preds = %9
%15 = load i32, i32* %5
%16 = add nsw i32 %15, 1
store i32 %16, i32* %5
br label %6
17: ; preds = %6
%18 = load i32, i32* %3
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %41
20: ; preds = %17
%21 = load i32*, i32** %4
%22 = getelementptr inbounds i32, i32* %21, i64 0
store i32 1, i32* %22
%23 = load i32*, i32** %4
%24 = getelementptr inbounds i32, i32* %23, i64 1
store i32 7, i32* %24
%25 = load i32*, i32** %4
%26 = getelementptr inbounds i32, i32* %25, i64 2
store i32 3, i32* %26
%27 = load i32*, i32** %4
%28 = getelementptr inbounds i32, i32* %27, i64 3
store i32 3, i32* %28
%29 = load i32*, i32** %4
%30 = getelementptr inbounds i32, i32* %29, i64 4
store i32 5, i32* %30
%31 = load i32*, i32** %4
%32 = getelementptr inbounds i32, i32* %31, i64 5
store i32 4, i32* %32
%33 = load i32*, i32** %4
%34 = getelementptr inbounds i32, i32* %33, i64 6
store i32 2, i32* %34
%35 = load i32*, i32** %4
%36 = getelementptr inbounds i32, i32* %35, i64 7
store i32 0, i32* %36
%37 = load i32*, i32** %4
%38 = getelementptr inbounds i32, i32* %37, i64 8
store i32 6, i32* %38
%39 = load i32*, i32** %4
%40 = getelementptr inbounds i32, i32* %39, i64 9
store i32 8, i32* %40
br label %41
41: ; preds = %20, %17
%42 = load i32, i32* %3
%43 = icmp eq i32 %42, 2
br i1 %43, label %44, label %65
44: ; preds = %41
%45 = load i32*, i32** %4
%46 = getelementptr inbounds i32, i32* %45, i64 0
store i32 1, i32* %46
%47 = load i32*, i32** %4
%48 = getelementptr inbounds i32, i32* %47, i64 1
store i32 7, i32* %48
%49 = load i32*, i32** %4
%50 = getelementptr inbounds i32, i32* %49, i64 2
store i32 3, i32* %50
%51 = load i32*, i32** %4
%52 = getelementptr inbounds i32, i32* %51, i64 3
store i32 3, i32* %52
%53 = load i32*, i32** %4
%54 = getelementptr inbounds i32, i32* %53, i64 4
store i32 5, i32* %54
%55 = load i32*, i32** %4
%56 = getelementptr inbounds i32, i32* %55, i64 5
store i32 4, i32* %56
%57 = load i32*, i32** %4
%58 = getelementptr inbounds i32, i32* %57, i64 6
store i32 2, i32* %58
%59 = load i32*, i32** %4
%60 = getelementptr inbounds i32, i32* %59, i64 7
store i32 0, i32* %60
%61 = load i32*, i32** %4
%62 = getelementptr inbounds i32, i32* %61, i64 8
store i32 6, i32* %62
%63 = load i32*, i32** %4
%64 = getelementptr inbounds i32, i32* %63, i64 9
store i32 8, i32* %64
br label %65
65: ; preds = %44, %41
ret void
}

LLVM IR (-O2):
define void @inicialitzaStockExemple(i32 %0, i32* writeonly %1) {
%3 = bitcast i32* %1 to i8*
%4 = add i32 %0, -1
%5 = icmp ult i32 %4, 2
br i1 %5, label %6, label %12
6: ; preds = %2
%7 = bitcast i32* %1 to <4 x i32>*
store <4 x i32> <i32 1, i32 7, i32 3, i32 3>, <4 x i32>* %7
%8 = getelementptr inbounds i32, i32* %1, i64 4
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 5, i32 4, i32 2, i32 0>, <4 x i32>* %9
%10 = getelementptr inbounds i32, i32* %1, i64 8
store i32 6, i32* %10
%11 = getelementptr inbounds i32, i32* %1, i64 9
store i32 8, i32* %11
br label %12
12: ; preds = %2, %6
ret void
}