#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 */
typedef int field;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main(void) {
  unsigned int field = 0;
  ((field) |= ((1U << 4)));
  assert(((field) & ((1U << 4))));
  assert(!((field) & ((1U << 6))));
  ((field) ^= ((1U << 4)));
  assert(!((field) & ((1U << 4))));
  ((field) |= ((1U << 6)));
  assert(((field) & ((1U << 6))));
  ((field) &= ~((1U << 6)));
  assert(!((field) & ((1U << 6))));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
or     $0x10,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
and    $0x10,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
xor    $0x10,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
and    $0x40,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
and    $0xffffffbf,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x10,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x40,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@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 0, i32* %2
%3 = load i32, i32* %2
%4 = or i32 %3, 16
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = and i32 %5, 16
%7 = call i32 @assert(i32 %6)
%8 = load i32, i32* %2
%9 = and i32 %8, 64
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = load i32, i32* %2
%15 = xor i32 %14, 16
store i32 %15, i32* %2
%16 = load i32, i32* %2
%17 = and i32 %16, 16
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = load i32, i32* %2
%23 = or i32 %22, 64
store i32 %23, i32* %2
%24 = load i32, i32* %2
%25 = and i32 %24, 64
%26 = call i32 @assert(i32 %25)
%27 = load i32, i32* %2
%28 = and i32 %27, -65
store i32 %28, i32* %2
%29 = load i32, i32* %2
%30 = and i32 %29, 64
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 16)
%2 = tail call i32 @assert(i32 1)
%3 = tail call i32 @assert(i32 1)
%4 = tail call i32 @assert(i32 64)
%5 = tail call i32 @assert(i32 1)
ret i32 0
}