#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*/ __print_int(int);
int main() {
  int a;
  a = 5;
  __print_int(a += 3);
  __print_int(a -= 4);
  __print_int(a *= 3);
  __print_int(a /= 5);
  __print_int(a <<= 2);
  __print_int(a %= 3);
  __print_int(a |= 5);
  __print_int(a ^= 31);
  __print_int(a &= 8);
  __print_int(a >>= 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
mov    -0x8(%rbp),%edi
add    $0x3,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%edi
sub    $0x4,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
imul   $0x3,-0x8(%rbp),%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%edi
shl    $0x2,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%edi
or     $0x5,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%edi
xor    $0x1f,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%edi
and    $0x8,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%edi
sar    $0x1,%edi
mov    %edi,-0x8(%rbp)
call   1030 <__print_int@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x8,%edi
call   1030 <__print_int@plt>
mov    $0x4,%edi
call   1030 <__print_int@plt>
mov    $0xc,%edi
call   1030 <__print_int@plt>
mov    $0x2,%edi
call   1030 <__print_int@plt>
mov    $0x8,%edi
call   1030 <__print_int@plt>
mov    $0x2,%edi
call   1030 <__print_int@plt>
mov    $0x7,%edi
call   1030 <__print_int@plt>
mov    $0x18,%edi
call   1030 <__print_int@plt>
mov    $0x8,%edi
call   1030 <__print_int@plt>
mov    $0x4,%edi
call   1030 <__print_int@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 3
store i32 %4, i32* %2
%5 = call i32 @__print_int(i32 %4)
%6 = load i32, i32* %2
%7 = sub nsw i32 %6, 4
store i32 %7, i32* %2
%8 = call i32 @__print_int(i32 %7)
%9 = load i32, i32* %2
%10 = mul nsw i32 %9, 3
store i32 %10, i32* %2
%11 = call i32 @__print_int(i32 %10)
%12 = load i32, i32* %2
%13 = sdiv i32 %12, 5
store i32 %13, i32* %2
%14 = call i32 @__print_int(i32 %13)
%15 = load i32, i32* %2
%16 = shl i32 %15, 2
store i32 %16, i32* %2
%17 = call i32 @__print_int(i32 %16)
%18 = load i32, i32* %2
%19 = srem i32 %18, 3
store i32 %19, i32* %2
%20 = call i32 @__print_int(i32 %19)
%21 = load i32, i32* %2
%22 = or i32 %21, 5
store i32 %22, i32* %2
%23 = call i32 @__print_int(i32 %22)
%24 = load i32, i32* %2
%25 = xor i32 %24, 31
store i32 %25, i32* %2
%26 = call i32 @__print_int(i32 %25)
%27 = load i32, i32* %2
%28 = and i32 %27, 8
store i32 %28, i32* %2
%29 = call i32 @__print_int(i32 %28)
%30 = load i32, i32* %2
%31 = ashr i32 %30, 1
store i32 %31, i32* %2
%32 = call i32 @__print_int(i32 %31)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__print_int(i32 8)
%2 = tail call i32 @__print_int(i32 4)
%3 = tail call i32 @__print_int(i32 12)
%4 = tail call i32 @__print_int(i32 2)
%5 = tail call i32 @__print_int(i32 8)
%6 = tail call i32 @__print_int(i32 2)
%7 = tail call i32 @__print_int(i32 7)
%8 = tail call i32 @__print_int(i32 24)
%9 = tail call i32 @__print_int(i32 8)
%10 = tail call i32 @__print_int(i32 4)
ret i32 0
}