#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 */
typedef int /*<<< orphan*/ p;
typedef int /*<<< orphan*/ m;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ a2;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, int, int, int, int, int, int, int);
int f(int a[], int a2[73], int m[][3]) {
  int b[10];
  int c[10];
  int *p = (int *)malloc(sizeof(int) * 10);
  a++;
  a2++;
  printf("a: %d / a2: %d / b: %d / m: %d / m[0]: %d / p: %d / int: %d\n",
         sizeof(a), sizeof(a2), sizeof(b), sizeof(m), sizeof(m[1]), sizeof(p),
         sizeof(int));
  a = b;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    $0x28,%edi
call   1040 <malloc@plt>
mov    %rax,-0x88(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x18(%rbp)
lea    0xe99(%rip),%rdi
mov    $0x8,%r8d
mov    $0x28,%ecx
mov    $0xc,%r9d
mov    %r8d,%esi
mov    %r8d,%edx
movl   $0x8,(%rsp)
movl   $0x4,0x8(%rsp)
call   1030 <printf@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rax
mov    $0x28,%edi
call   1040 <malloc@plt>
lea    0xece(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    $0x28,%ecx
mov    $0x8,%r8d
mov    $0xc,%r9d
push   $0x4
push   $0x8
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
@.str = [61 x i8] c"a: %d / a2: %d / b: %d / m: %d / m[0]: %d / p: %d / int: %d\0A\00"
define i32 @f(i32* %0, i32* %1, [3 x i32]* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca [3 x i32]*
%8 = alloca [10 x i32]
%9 = alloca [10 x i32]
%10 = alloca i32*
store i32* %0, i32** %5
store i32* %1, i32** %6
store [3 x i32]* %2, [3 x i32]** %7
%11 = call i64 @malloc(i32 40)
%12 = inttoptr i64 %11 to i32*
store i32* %12, i32** %10
%13 = load i32*, i32** %5
%14 = getelementptr inbounds i32, i32* %13, i32 1
store i32* %14, i32** %5
%15 = load i32*, i32** %6
%16 = getelementptr inbounds i32, i32* %15, i32 1
store i32* %16, i32** %6
%17 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i32 8, i32 8, i32 40, i32 8, i32 12, i32 8, i32 4)
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 0
store i32* %18, i32** %5
%19 = load i32, i32* %4
ret i32 %19
}

LLVM IR (-O2):
@.str = [61 x i8] c"a: %d / a2: %d / b: %d / m: %d / m[0]: %d / p: %d / int: %d\0A\00"
define i32 @f(i32* nocapture readnone %0, i32* nocapture readnone %1, [3 x i32]* nocapture readnone %2) {
%4 = tail call i64 @malloc(i32 40)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i32 8, i32 8, i32 40, i32 8, i32 12, i32 8, i32 4)
ret i32 undef
}