void fun_reset(int x3content[]) {
  int x1[2];
  int x2[2][2];
  int *x3[2];
  (void)x2;
  (void)x1;
  x1[0] = 42;
  x1[1] = 42;
  x2[0][0] = 42;
  x2[0][1] = 42;
  x2[1][0] = 42;
  x2[1][1] = 42;
  x3[0] = x3content;
  x3[1] = x3content;
  x3[0][0] = 42;
  x3[0][1] = 42;
  x3[1][0] = 42;
  x3[1][1] = 42;
  return;
}


x86 assembly (clang, -O0):
<fun_reset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x2a,-0x10(%rbp)
movl   $0x2a,-0xc(%rbp)
movl   $0x2a,-0x20(%rbp)
movl   $0x2a,-0x1c(%rbp)
movl   $0x2a,-0x18(%rbp)
movl   $0x2a,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movl   $0x2a,(%rax)
mov    -0x30(%rbp),%rax
movl   $0x2a,0x4(%rax)
mov    -0x28(%rbp),%rax
movl   $0x2a,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x2a,0x4(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_reset>:
movabs $0x2a0000002a,%rax
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
define void @fun_reset(i32* %0) {
%2 = alloca i32*
%3 = alloca [2 x i32]
%4 = alloca [2 x [2 x i32]]
%5 = alloca [2 x i32*]
store i32* %0, i32** %2
%6 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %4, i64 0, i64 0
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
store i32 42, i32* %8
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
store i32 42, i32* %9
%10 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %4, i64 0, i64 0
%11 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
store i32 42, i32* %11
%12 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %4, i64 0, i64 0
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 1
store i32 42, i32* %13
%14 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %4, i64 0, i64 1
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
store i32 42, i32* %15
%16 = getelementptr inbounds [2 x [2 x i32]], [2 x [2 x i32]]* %4, i64 0, i64 1
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 1
store i32 42, i32* %17
%18 = load i32*, i32** %2
%19 = getelementptr inbounds [2 x i32*], [2 x i32*]* %5, i64 0, i64 0
store i32* %18, i32** %19
%20 = load i32*, i32** %2
%21 = getelementptr inbounds [2 x i32*], [2 x i32*]* %5, i64 0, i64 1
store i32* %20, i32** %21
%22 = getelementptr inbounds [2 x i32*], [2 x i32*]* %5, i64 0, i64 0
%23 = load i32*, i32** %22
%24 = getelementptr inbounds i32, i32* %23, i64 0
store i32 42, i32* %24
%25 = getelementptr inbounds [2 x i32*], [2 x i32*]* %5, i64 0, i64 0
%26 = load i32*, i32** %25
%27 = getelementptr inbounds i32, i32* %26, i64 1
store i32 42, i32* %27
%28 = getelementptr inbounds [2 x i32*], [2 x i32*]* %5, i64 0, i64 1
%29 = load i32*, i32** %28
%30 = getelementptr inbounds i32, i32* %29, i64 0
store i32 42, i32* %30
%31 = getelementptr inbounds [2 x i32*], [2 x i32*]* %5, i64 0, i64 1
%32 = load i32*, i32** %31
%33 = getelementptr inbounds i32, i32* %32, i64 1
store i32 42, i32* %33
ret void
}

LLVM IR (-O2):
define void @fun_reset(i32* nocapture writeonly %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 1
store i32 42, i32* %0
store i32 42, i32* %2
ret void
}