#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 */
struct DynArr {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ addDynArr(struct DynArr *, int);
void fillTestData(struct DynArr *myArr) {
  addDynArr(myArr, 14);
  addDynArr(myArr, 3);
  addDynArr(myArr, 1);
  addDynArr(myArr, 2);
  addDynArr(myArr, 15);
  addDynArr(myArr, 8);
  addDynArr(myArr, 16);
  addDynArr(myArr, 4);
  addDynArr(myArr, 6);
  addDynArr(myArr, 7);
  addDynArr(myArr, 9);
  addDynArr(myArr, 12);
  addDynArr(myArr, 5);
  addDynArr(myArr, 13);
  addDynArr(myArr, 10);
  addDynArr(myArr, 11);
}


x86 assembly (clang, -O0):
<fillTestData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xe,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x2,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0xf,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x4,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x7,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0xc,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0xd,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0xa,%esi
call   1030 <addDynArr@plt>
mov    -0x8(%rbp),%rdi
mov    $0xb,%esi
call   1030 <addDynArr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fillTestData>:
push   %rbx
mov    %rdi,%rbx
mov    $0xe,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <addDynArr@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
pop    %rbx
jmp    1030 <addDynArr@plt>

LLVM IR (-O0):
%struct.DynArr = type { i32 }
define void @fillTestData(%struct.DynArr* %0) {
%2 = alloca %struct.DynArr*
store %struct.DynArr* %0, %struct.DynArr** %2
%3 = load %struct.DynArr*, %struct.DynArr** %2
%4 = call i32 @addDynArr(%struct.DynArr* %3, i32 14)
%5 = load %struct.DynArr*, %struct.DynArr** %2
%6 = call i32 @addDynArr(%struct.DynArr* %5, i32 3)
%7 = load %struct.DynArr*, %struct.DynArr** %2
%8 = call i32 @addDynArr(%struct.DynArr* %7, i32 1)
%9 = load %struct.DynArr*, %struct.DynArr** %2
%10 = call i32 @addDynArr(%struct.DynArr* %9, i32 2)
%11 = load %struct.DynArr*, %struct.DynArr** %2
%12 = call i32 @addDynArr(%struct.DynArr* %11, i32 15)
%13 = load %struct.DynArr*, %struct.DynArr** %2
%14 = call i32 @addDynArr(%struct.DynArr* %13, i32 8)
%15 = load %struct.DynArr*, %struct.DynArr** %2
%16 = call i32 @addDynArr(%struct.DynArr* %15, i32 16)
%17 = load %struct.DynArr*, %struct.DynArr** %2
%18 = call i32 @addDynArr(%struct.DynArr* %17, i32 4)
%19 = load %struct.DynArr*, %struct.DynArr** %2
%20 = call i32 @addDynArr(%struct.DynArr* %19, i32 6)
%21 = load %struct.DynArr*, %struct.DynArr** %2
%22 = call i32 @addDynArr(%struct.DynArr* %21, i32 7)
%23 = load %struct.DynArr*, %struct.DynArr** %2
%24 = call i32 @addDynArr(%struct.DynArr* %23, i32 9)
%25 = load %struct.DynArr*, %struct.DynArr** %2
%26 = call i32 @addDynArr(%struct.DynArr* %25, i32 12)
%27 = load %struct.DynArr*, %struct.DynArr** %2
%28 = call i32 @addDynArr(%struct.DynArr* %27, i32 5)
%29 = load %struct.DynArr*, %struct.DynArr** %2
%30 = call i32 @addDynArr(%struct.DynArr* %29, i32 13)
%31 = load %struct.DynArr*, %struct.DynArr** %2
%32 = call i32 @addDynArr(%struct.DynArr* %31, i32 10)
%33 = load %struct.DynArr*, %struct.DynArr** %2
%34 = call i32 @addDynArr(%struct.DynArr* %33, i32 11)
ret void
}

LLVM IR (-O2):
%struct.DynArr = type { i32 }
define void @fillTestData(%struct.DynArr* %0) {
%2 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 14)
%3 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 3)
%4 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 1)
%5 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 2)
%6 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 15)
%7 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 8)
%8 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 16)
%9 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 4)
%10 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 6)
%11 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 7)
%12 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 9)
%13 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 12)
%14 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 5)
%15 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 13)
%16 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 10)
%17 = tail call i32 @addDynArr(%struct.DynArr* %0, i32 11)
ret void
}