#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*/ changeValues(int *, float *, char *);
int /*<<< orphan*/ printf(char *, int, float, char);
int main() {
  int n = 101;
  float a = 103;
  char c = 'c';
  printf("before n=%d, a=%.2f, c=%c\n", n, a, c);
  changeValues(&n, &a, &c);
  printf("after n=%d, a=%.2f, c=%c\n", n, a, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x65,-0x8(%rbp)
movss  0xec2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movb   $0x63,-0xd(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xeae(%rip),%rdi
movsbl -0xd(%rbp),%edx
call   1040 <printf@plt>
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    -0xd(%rbp),%rdx
call   1030 <changeValues@plt>
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xea0(%rip),%rdi
movsbl -0xd(%rbp),%edx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0x65,0x14(%rsp)
movl   $0x42ce0000,0x10(%rsp)
42
movb   $0x63,0xf(%rsp)
lea    0xec4(%rip),%rdi
movss  0xeb8(%rip),%xmm0
mov    $0x65,%esi
mov    $0x63,%edx
call   1040 <printf@plt>
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xf(%rsp),%rdx
call   1030 <changeValues@plt>
mov    0x14(%rsp),%esi
movss  0x10(%rsp),%xmm0
movsbl 0xf(%rsp),%edx
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"before n=%d, a=%.2f, c=%c\0A\00"
@.str.1 = [26 x i8] c"after n=%d, a=%.2f, c=%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i8
store i32 0, i32* %1
store i32 101, i32* %2
store float 1.030000e+02, float* %3
store i8 99, i8* %4
%5 = load i32, i32* %2
%6 = load float, float* %3
%7 = load i8, i8* %4
%8 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %5, float %6, i8 signext %7)
%9 = call i32 @changeValues(i32* %2, float* %3, i8* %4)
%10 = load i32, i32* %2
%11 = load float, float* %3
%12 = load i8, i8* %4
%13 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %10, float %11, i8 signext %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"before n=%d, a=%.2f, c=%c\0A\00"
@.str.1 = [26 x i8] c"after n=%d, a=%.2f, c=%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8
%4 = bitcast i32* %1 to i8*
store i32 101, i32* %1
%5 = bitcast float* %2 to i8*
store float 1.030000e+02, float* %2
store i8 99, i8* %3
%6 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 101, float 1.030000e+02, i8 signext 99)
%7 = call i32 @changeValues(i32* %1, float* %2, i8* %3)
%8 = load i32, i32* %1
%9 = load float, float* %2
%10 = load i8, i8* %3
%11 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %8, float %9, i8 signext %10)
ret i32 0
}