main() {
  int a[] = {0, 1, 2, 3, 4};
  int *p[] = {a, a + 1, a + 2, a + 3, a + 4};
  int **pp = &p;
  printf("%d, %d, %d ", *pp - a, pp - p, **pp);
  pp++;
  pp++;
  ;
  ++pp;
  *++pp;
  printf("%d, %d, %d ", pp - p, *pp - a, **pp);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedc(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x48(%rbp)
lea    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
lea    -0x20(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x38(%rbp)
lea    -0x20(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x30(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    -0x20(%rbp),%rax
sub    %rax,%rsi
sar    $0x2,%rsi
mov    -0x58(%rbp),%rdx
lea    -0x50(%rbp),%rax
sub    %rax,%rdx
sar    $0x3,%rdx
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%ecx
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rsi
lea    -0x50(%rbp),%rax
sub    %rax,%rsi
sar    $0x3,%rsi
mov    -0x58(%rbp),%rax
mov    (%rax),%rdx
lea    -0x20(%rbp),%rax
sub    %rax,%rdx
sar    $0x2,%rdx
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%ecx
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x4,%esi
mov    $0x4,%edx
mov    %rbx,%rdi
mov    $0x4,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.a = [5 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4]
@.str = [12 x i8] c"%d, %d, %d \00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [5 x i32*]
%3 = alloca i32**
%4 = bitcast [5 x i32]* %1 to i8*
%5 = getelementptr inbounds [5 x i32*], [5 x i32*]* %2, i64 0, i64 0
%6 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
store i32* %6, i32** %5
%7 = getelementptr inbounds i32*, i32** %5, i64 1
%8 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%9 = getelementptr inbounds i32, i32* %8, i64 1
store i32* %9, i32** %7
%10 = getelementptr inbounds i32*, i32** %7, i64 1
%11 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%12 = getelementptr inbounds i32, i32* %11, i64 2
store i32* %12, i32** %10
%13 = getelementptr inbounds i32*, i32** %10, i64 1
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%15 = getelementptr inbounds i32, i32* %14, i64 3
store i32* %15, i32** %13
%16 = getelementptr inbounds i32*, i32** %13, i64 1
%17 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%18 = getelementptr inbounds i32, i32* %17, i64 4
store i32* %18, i32** %16
%19 = bitcast [5 x i32*]* %2 to i32**
store i32** %19, i32*** %3
%20 = load i32**, i32*** %3
%21 = load i32*, i32** %20
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%23 = ptrtoint i32* %21 to i64
%24 = ptrtoint i32* %22 to i64
%25 = sub i64 %23, %24
%26 = sdiv exact i64 %25, 4
%27 = load i32**, i32*** %3
%28 = getelementptr inbounds [5 x i32*], [5 x i32*]* %2, i64 0, i64 0
%29 = ptrtoint i32** %27 to i64
%30 = ptrtoint i32** %28 to i64
%31 = sub i64 %29, %30
%32 = sdiv exact i64 %31, 8
%33 = load i32**, i32*** %3
%34 = load i32*, i32** %33
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i64 %26, i64 %32, i32 %35)
%37 = load i32**, i32*** %3
%38 = getelementptr inbounds i32*, i32** %37, i32 1
store i32** %38, i32*** %3
%39 = load i32**, i32*** %3
%40 = getelementptr inbounds i32*, i32** %39, i32 1
store i32** %40, i32*** %3
%41 = load i32**, i32*** %3
%42 = getelementptr inbounds i32*, i32** %41, i32 1
store i32** %42, i32*** %3
%43 = load i32**, i32*** %3
%44 = getelementptr inbounds i32*, i32** %43, i32 1
store i32** %44, i32*** %3
%45 = load i32*, i32** %44
%46 = load i32**, i32*** %3
%47 = getelementptr inbounds [5 x i32*], [5 x i32*]* %2, i64 0, i64 0
%48 = ptrtoint i32** %46 to i64
%49 = ptrtoint i32** %47 to i64
%50 = sub i64 %48, %49
%51 = sdiv exact i64 %50, 8
%52 = load i32**, i32*** %3
%53 = load i32*, i32** %52
%54 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%55 = ptrtoint i32* %53 to i64
%56 = ptrtoint i32* %54 to i64
%57 = sub i64 %55, %56
%58 = sdiv exact i64 %57, 4
%59 = load i32**, i32*** %3
%60 = load i32*, i32** %59
%61 = load i32, i32* %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i64 %51, i64 %58, i32 %61)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%d, %d, %d \00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i64 0, i64 0, i32 0)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i64 4, i64 4, i32 4)
ret i32 0
}