#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 */

/* Variables and functions */
int /*<<< orphan*/ abc(int /*<<< orphan*/, int, int, int, int);
int /*<<< orphan*/ printf(char *, int, int, int);
main() {
  int p[5] = {100, 99, 98, 100, 100};
  int *ptr;
  ptr = p;
  abc(*ptr++, *++ptr, ++*ptr, ++*ptr, *++ptr);
  ptr = p;
  ++ptr;
  printf("%d %d %d", --*ptr, *--ptr, ++*ptr);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecc(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    (%rax),%edi
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
mov    0x4(%rax),%esi
mov    -0x28(%rbp),%rax
mov    (%rax),%edx
add    $0x1,%edx
mov    %edx,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,%r8
add    $0x4,%r8
mov    %r8,-0x28(%rbp)
mov    0x4(%rax),%r8d
call   1040 <abc@plt>
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%esi
add    $0xffffffff,%esi
mov    %esi,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x28(%rbp)
mov    -0x4(%rax),%edx
mov    -0x28(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x64,%edi
mov    $0x62,%esi
mov    $0x63,%edx
mov    $0x64,%ecx
mov    $0x64,%r8d
call   1040 <abc@plt>
lea    0xeb9(%rip),%rdi
mov    $0x62,%esi
mov    $0x64,%edx
mov    $0x65,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.p = [5 x i32] [i32 100, i32 99, i32 98, i32 100, i32 100]
@.str = [9 x i8] c"%d %d %d\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca i32*
%3 = bitcast [5 x i32]* %1 to i8*
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
store i32* %4, i32** %2
%5 = load i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i32 1
store i32* %6, i32** %2
%7 = load i32, i32* %5
%8 = load i32*, i32** %2
%9 = getelementptr inbounds i32, i32* %8, i32 1
store i32* %9, i32** %2
%10 = load i32, i32* %9
%11 = load i32*, i32** %2
%12 = load i32, i32* %11
%13 = add nsw i32 %12, 1
store i32 %13, i32* %11
%14 = load i32*, i32** %2
%15 = load i32, i32* %14
%16 = add nsw i32 %15, 1
store i32 %16, i32* %14
%17 = load i32*, i32** %2
%18 = getelementptr inbounds i32, i32* %17, i32 1
store i32* %18, i32** %2
%19 = load i32, i32* %18
%20 = call i32 @abc(i32 %7, i32 %10, i32 %13, i32 %16, i32 %19)
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
store i32* %21, i32** %2
%22 = load i32*, i32** %2
%23 = getelementptr inbounds i32, i32* %22, i32 1
store i32* %23, i32** %2
%24 = load i32*, i32** %2
%25 = load i32, i32* %24
%26 = add nsw i32 %25, -1
store i32 %26, i32* %24
%27 = load i32*, i32** %2
%28 = getelementptr inbounds i32, i32* %27, i32 -1
store i32* %28, i32** %2
%29 = load i32, i32* %28
%30 = load i32*, i32** %2
%31 = load i32, i32* %30
%32 = add nsw i32 %31, 1
store i32 %32, i32* %30
%33 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %26, i32 %29, i32 %32)
ret i32 0
}

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