#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 *, int, int, int, int);
void practice() {
  int a, b, c, d;
  a = 2;
  b = 64;
  c = 13;
  d = 99;
  printf("\n* * * Practice Function * * *\na=%d b=%d c=%d d=%d", a, b, c, d);
  a = a >> 2;
  b = b << 2;
  c = c >> 3;
  d = d << 5;
  printf("\na>>2=%d    b<<2=%d    c>>3=%d    d<<5=%d\n", a, b, c, d);
}


x86 assembly (clang, -O0):
<practice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2,-0x4(%rbp)
movl   $0x40,-0x8(%rbp)
movl   $0xd,-0xc(%rbp)
movl   $0x63,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x3,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
shl    $0x5,%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<practice>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x2,%esi
mov    $0x40,%edx
mov    $0xd,%ecx
mov    $0x63,%r8d
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
xor    %esi,%esi
mov    $0x100,%edx
mov    $0x1,%ecx
mov    $0xc60,%r8d
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [51 x i8] c"\0A* * * Practice Function * * *\0Aa=%d b=%d c=%d d=%d\00"
@.str.1 = [43 x i8] c"\0Aa>>2=%d b<<2=%d c>>3=%d d<<5=%d\0A\00"
define void @practice() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 2, i32* %1
store i32 64, i32* %2
store i32 13, i32* %3
store i32 99, i32* %4
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, i32 %7, i32 %8)
%10 = load i32, i32* %1
%11 = ashr i32 %10, 2
store i32 %11, i32* %1
%12 = load i32, i32* %2
%13 = shl i32 %12, 2
store i32 %13, i32* %2
%14 = load i32, i32* %3
%15 = ashr i32 %14, 3
store i32 %15, i32* %3
%16 = load i32, i32* %4
%17 = shl i32 %16, 5
store i32 %17, i32* %4
%18 = load i32, i32* %1
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = load i32, i32* %4
%22 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i32 %18, i32 %19, i32 %20, i32 %21)
ret void
}

LLVM IR (-O2):
@.str = [51 x i8] c"\0A* * * Practice Function * * *\0Aa=%d b=%d c=%d d=%d\00"
@.str.1 = [43 x i8] c"\0Aa>>2=%d b<<2=%d c>>3=%d d<<5=%d\0A\00"
define void @practice() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 2, i32 64, i32 13, i32 99)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 256, i32 1, i32 3168)
ret void
}