#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 randNormalize();
void makeMatriz(int matriz[5][20]) {
  int i, j;
  for (i = 0; i < 5; i++) {
    for (j = 0; j < 20; j++) {
      matriz[i][j] = (int)(randNormalize() * (20));
    }
  }
}


x86 assembly (clang, -O0):
<makeMatriz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    117f <makeMatriz+0x6f>
movl   $0x0,-0x10(%rbp)
cmpl   $0x14,-0x10(%rbp)
jge    116c <makeMatriz+0x5c>
mov    $0x0,%al
call   1030 <randNormalize@plt>
imul   $0x14,%eax,%edx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <makeMatriz+0x24>
jmp    1171 <makeMatriz+0x61>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <makeMatriz+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<makeMatriz>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    $0x4c,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x4c(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x48(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x44(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x40(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x3c(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x38(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x34(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x30(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x2c(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x28(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x24(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x20(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x1c(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x18(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x14(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x10(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0xc(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x8(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,-0x4(%r14,%rbx,1)
xor    %eax,%eax
call   1030 <randNormalize@plt>
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
mov    %eax,(%r14,%rbx,1)
add    $0x50,%rbx
cmp    $0x1dc,%rbx
jne    1120 <makeMatriz+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @makeMatriz([20 x i32]* %0) {
%2 = alloca [20 x i32]*
%3 = alloca i32
%4 = alloca i32
store [20 x i32]* %0, [20 x i32]** %2
store i32 0, i32* %3
br label %5
5: ; preds = %26, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 5
br i1 %7, label %8, label %29
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %22, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 20
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = call i32 (...) @randNormalize()
%14 = mul nsw i32 %13, 20
%15 = load [20 x i32]*, [20 x i32]** %2
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [20 x i32], [20 x i32]* %15, i64 %17
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [20 x i32], [20 x i32]* %18, i64 0, i64 %20
store i32 %14, i32* %21
br label %22
22: ; preds = %12
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %9
25: ; preds = %9
br label %26
26: ; preds = %25
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %3
br label %5
29: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @makeMatriz([20 x i32]* nocapture writeonly %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %64, %2 ]
%4 = tail call i32 (...) @randNormalize()
%5 = mul nsw i32 %4, 20
%6 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 0
store i32 %5, i32* %6
%7 = tail call i32 (...) @randNormalize()
%8 = mul nsw i32 %7, 20
%9 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 1
store i32 %8, i32* %9
%10 = tail call i32 (...) @randNormalize()
%11 = mul nsw i32 %10, 20
%12 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 2
store i32 %11, i32* %12
%13 = tail call i32 (...) @randNormalize()
%14 = mul nsw i32 %13, 20
%15 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 3
store i32 %14, i32* %15
%16 = tail call i32 (...) @randNormalize()
%17 = mul nsw i32 %16, 20
%18 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 4
store i32 %17, i32* %18
%19 = tail call i32 (...) @randNormalize()
%20 = mul nsw i32 %19, 20
%21 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 5
store i32 %20, i32* %21
%22 = tail call i32 (...) @randNormalize()
%23 = mul nsw i32 %22, 20
%24 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 6
store i32 %23, i32* %24
%25 = tail call i32 (...) @randNormalize()
%26 = mul nsw i32 %25, 20
%27 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 7
store i32 %26, i32* %27
%28 = tail call i32 (...) @randNormalize()
%29 = mul nsw i32 %28, 20
%30 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 8
store i32 %29, i32* %30
%31 = tail call i32 (...) @randNormalize()
%32 = mul nsw i32 %31, 20
%33 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 9
store i32 %32, i32* %33
%34 = tail call i32 (...) @randNormalize()
%35 = mul nsw i32 %34, 20
%36 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 10
store i32 %35, i32* %36
%37 = tail call i32 (...) @randNormalize()
%38 = mul nsw i32 %37, 20
%39 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 11
store i32 %38, i32* %39
%40 = tail call i32 (...) @randNormalize()
%41 = mul nsw i32 %40, 20
%42 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 12
store i32 %41, i32* %42
%43 = tail call i32 (...) @randNormalize()
%44 = mul nsw i32 %43, 20
%45 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 13
store i32 %44, i32* %45
%46 = tail call i32 (...) @randNormalize()
%47 = mul nsw i32 %46, 20
%48 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 14
store i32 %47, i32* %48
%49 = tail call i32 (...) @randNormalize()
%50 = mul nsw i32 %49, 20
%51 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 15
store i32 %50, i32* %51
%52 = tail call i32 (...) @randNormalize()
%53 = mul nsw i32 %52, 20
%54 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 16
store i32 %53, i32* %54
%55 = tail call i32 (...) @randNormalize()
%56 = mul nsw i32 %55, 20
%57 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 17
store i32 %56, i32* %57
%58 = tail call i32 (...) @randNormalize()
%59 = mul nsw i32 %58, 20
%60 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 18
store i32 %59, i32* %60
%61 = tail call i32 (...) @randNormalize()
%62 = mul nsw i32 %61, 20
%63 = getelementptr inbounds [20 x i32], [20 x i32]* %0, i64 %3, i64 19
store i32 %62, i32* %63
%64 = add nuw nsw i64 %3, 1
%65 = icmp eq i64 %64, 5
br i1 %65, label %66, label %2
66: ; preds = %2
ret void
}