#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*/ free(float *);
int /*<<< orphan*/ functionDependTest(float *, float *, float *, float *,
                                      float *, size_t);
float *malloc(int);
int main(int argc, char **argv) {
  size_t size = 5;
  float *tabA = malloc(sizeof(float) * size);
  float *tabB = malloc(sizeof(float) * size);
  float *tabC = malloc(sizeof(float) * size);
  float *tabD = malloc(sizeof(float) * size);
  float *tabE = malloc(sizeof(float) * size);
  functionDependTest(tabA, tabD, tabB, tabC, tabE, size);
  free(tabA);
  free(tabB);
  free(tabC);
  free(tabD);
  free(tabE);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x5,-0x18(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x18(%rbp),%r9
call   1050 <functionDependTest@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,%r14
mov    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,%r15
mov    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,%r12
mov    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,%r13
mov    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    $0x5,%r9d
mov    %r14,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %rax,%r8
call   1050 <functionDependTest@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
%10 = alloca float*
%11 = alloca float*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 5, i64* %6
%12 = load i64, i64* %6
%13 = mul i64 4, %12
%14 = trunc i64 %13 to i32
%15 = call float* @malloc(i32 %14)
store float* %15, float** %7
%16 = load i64, i64* %6
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call float* @malloc(i32 %18)
store float* %19, float** %8
%20 = load i64, i64* %6
%21 = mul i64 4, %20
%22 = trunc i64 %21 to i32
%23 = call float* @malloc(i32 %22)
store float* %23, float** %9
%24 = load i64, i64* %6
%25 = mul i64 4, %24
%26 = trunc i64 %25 to i32
%27 = call float* @malloc(i32 %26)
store float* %27, float** %10
%28 = load i64, i64* %6
%29 = mul i64 4, %28
%30 = trunc i64 %29 to i32
%31 = call float* @malloc(i32 %30)
store float* %31, float** %11
%32 = load float*, float** %7
%33 = load float*, float** %10
%34 = load float*, float** %8
%35 = load float*, float** %9
%36 = load float*, float** %11
%37 = load i64, i64* %6
%38 = call i32 @functionDependTest(float* %32, float* %33, float* %34, float* %35, float* %36, i64 %37)
%39 = load float*, float** %7
%40 = call i32 @free(float* %39)
%41 = load float*, float** %8
%42 = call i32 @free(float* %41)
%43 = load float*, float** %9
%44 = call i32 @free(float* %43)
%45 = load float*, float** %10
%46 = call i32 @free(float* %45)
%47 = load float*, float** %11
%48 = call i32 @free(float* %47)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call float* @malloc(i32 20)
%4 = tail call float* @malloc(i32 20)
%5 = tail call float* @malloc(i32 20)
%6 = tail call float* @malloc(i32 20)
%7 = tail call float* @malloc(i32 20)
%8 = tail call i32 @functionDependTest(float* %3, float* %6, float* %4, float* %5, float* %7, i64 5)
%9 = tail call i32 @free(float* %3)
%10 = tail call i32 @free(float* %4)
%11 = tail call i32 @free(float* %5)
%12 = tail call i32 @free(float* %6)
%13 = tail call i32 @free(float* %7)
ret i32 0
}