#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*/ printf(char *, char);
void practice() {
  int a = 1;
  int b = 4;
  float c = 3.4;
  float d = 7.2;
  char e = 'e';
  char f = 'f';
  int *ptrA;
  float *ptrB;
  char *ptrC;
  ptrA = &a;
  printf("%d", *ptrA);
  ptrA = &b;
  printf("%d", *ptrA);
  ptrB = &c;
  printf("%f", *ptrB);
  ptrB = &d;
  printf("%f", *ptrB);
  ptrC = &e;
  printf("%c", *ptrC);
  ptrC = &f;
  printf("%c", *ptrC);
}


x86 assembly (clang, -O0):
<practice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x1,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
movl   $0x4059999a,-0xc(%rbp)
movl   $0x40e66666,-0x10(%rbp)
movb   $0x65,-0x11(%rbp)
movb   $0x66,-0x12(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%esi
lea    0xeae(%rip),%rdi
mov    %rdi,-0x38(%rbp)
call   1030 <printf@plt>
mov    -0x38(%rbp),%rdi
lea    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%esi
call   1030 <printf@plt>
lea    -0xc(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cvttss2si (%rax),%eax
movsbl %al,%esi
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
lea    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
cvttss2si %xmm0,%eax
lea    0xe56(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
lea    -0x11(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
lea    0xe3e(%rip),%rdi
movsbl (%rax),%esi
call   1030 <printf@plt>
lea    -0x12(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
lea    0xe23(%rip),%rdi
movsbl (%rax),%esi
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<practice>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xeac(%rip),%rbx
mov    %rbx,%rdi
mov    $0x65,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x66,%esi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [3 x i8] c"%c\00"
define void @practice() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca i8
%6 = alloca i8
%7 = alloca i32*
%8 = alloca float*
%9 = alloca i8*
store i32 1, i32* %1
store i32 4, i32* %2
store float 0x400B333340000000, float* %3
store float 0x401CCCCCC0000000, float* %4
store i8 101, i8* %5
store i8 102, i8* %6
store i32* %1, i32** %7
%10 = load i32*, i32** %7
%11 = load i32, i32* %10
%12 = trunc i32 %11 to i8
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %12)
store i32* %2, i32** %7
%14 = load i32*, i32** %7
%15 = load i32, i32* %14
%16 = trunc i32 %15 to i8
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %16)
store float* %3, float** %8
%18 = load float*, float** %8
%19 = load float, float* %18
%20 = fptosi float %19 to i8
%21 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %20)
store float* %4, float** %8
%22 = load float*, float** %8
%23 = load float, float* %22
%24 = fptosi float %23 to i8
%25 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %24)
store i8* %5, i8** %9
%26 = load i8*, i8** %9
%27 = load i8, i8* %26
%28 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8 signext %27)
store i8* %6, i8** %9
%29 = load i8*, i8** %9
%30 = load i8, i8* %29
%31 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8 signext %30)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [3 x i8] c"%c\00"
define void @practice() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext 3)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext 7)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8 signext 101)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8 signext 102)
ret void
}