#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*/ adjust_point(int *);
int /*<<< orphan*/ printf(char *, int, int, int);
int main(void) {
  int a = -1, b = 20, c = 101;
  printf("a = %d, b = %d, c = %d\n", a, b, c);
  adjust_point(&a);
  adjust_point(&b);
  adjust_point(&c);
  printf("a = %d, b = %d, c = %d\n", a, b, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
movl   $0x14,-0xc(%rbp)
movl   $0x65,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
lea    -0x8(%rbp),%rdi
call   1040 <adjust_point@plt>
lea    -0xc(%rbp),%rdi
call   1040 <adjust_point@plt>
lea    -0x10(%rbp),%rdi
call   1040 <adjust_point@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0xffffffff,0xc(%rsp)
ff
movl   $0x14,0x8(%rsp)
movl   $0x65,0x4(%rsp)
lea    0xebc(%rip),%rbx
mov    %rbx,%rdi
mov    $0xffffffff,%esi
mov    $0x14,%edx
mov    $0x65,%ecx
call   1030 <printf@plt>
lea    0xc(%rsp),%rdi
call   1040 <adjust_point@plt>
lea    0x8(%rsp),%rdi
call   1040 <adjust_point@plt>
lea    0x4(%rsp),%rdi
call   1040 <adjust_point@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0x4(%rsp),%ecx
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"a = %d, b = %d, c = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %2
store i32 20, i32* %3
store i32 101, i32* %4
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, i32 %7)
%9 = call i32 @adjust_point(i32* %2)
%10 = call i32 @adjust_point(i32* %3)
%11 = call i32 @adjust_point(i32* %4)
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13, i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"a = %d, b = %d, c = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
store i32 -1, i32* %1
%5 = bitcast i32* %2 to i8*
store i32 20, i32* %2
%6 = bitcast i32* %3 to i8*
store i32 101, i32* %3
%7 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 -1, i32 20, i32 101)
%8 = call i32 @adjust_point(i32* %1)
%9 = call i32 @adjust_point(i32* %2)
%10 = call i32 @adjust_point(i32* %3)
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12, i32 %13)
ret i32 0
}