int main(int argc, char **argv) {
  char *newArray = (char *)malloc(132);
  int i = 17, j;
  f(newArray);
  printf("-----\n");
  printf(" argc [%u] argv [%u]\n", &argc, &argv);
  printf(" newArray [%u] i [%u] j[%u]\n", newArray, &i, &j);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x84,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x11,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1030 <f@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe8f(%rip),%rdi
lea    -0x1c(%rbp),%rdx
lea    -0x20(%rbp),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
mov    %edi,0xc(%rsp)
mov    %rsi,0x10(%rsp)
mov    $0x84,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
movl   $0x11,0x8(%rsp)
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <f@plt>
lea    0xebf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe80(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe7e(%rip),%rdi
lea    0x8(%rsp),%rdx
lea    0x1c(%rsp),%rcx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"-----\0A\00"
@.str.1 = [22 x i8] c" argc [%u] argv [%u]\0A\00"
@.str.2 = [29 x i8] c" newArray [%u] i [%u] j[%u]\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%8 = call i8* @malloc(i64 132)
store i8* %8, i8** %5
store i32 17, i32* %6
%9 = load i8*, i8** %5
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @f to i32 (i8*, ...)*)(i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32* %3, i8*** %4)
%13 = load i8*, i8** %5
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %13, i32* %6, i32* %7)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [22 x i8] c" argc [%u] argv [%u]\0A\00"
@.str.2 = [29 x i8] c" newArray [%u] i [%u] j[%u]\0A\00"
@str = [6 x i8] c"-----\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%7 = tail call dereferenceable_or_null(132) i8* @malloc(i64 132)
%8 = bitcast i32* %5 to i8*
store i32 17, i32* %5
%9 = bitcast i32* %6 to i8*
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @f to i32 (i8*, ...)*)(i8* %7)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32* %3, i8*** %4)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %7, i32* %5, i32* %6)
ret i32 0
}