#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*/ a2();
int main() {
  volatile unsigned char x;
  x &= 0xFE;
  x &= 0xFD;
  x &= 0xFB;
  x &= 0xF7;
  x &= 0xEF;
  x &= 0xDF;
  x &= 0xBF;
  x &= 0x7F;
  if (!a2())
    return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xfe,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xfd,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xfb,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xf7,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xef,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xdf,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0xbf,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
and    $0x7f,%eax
mov    %al,-0x5(%rbp)
mov    $0x0,%al
call   1030 <a2@plt>
cmp    $0x0,%eax
jne    11a4 <main+0x94>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
andb   $0xfe,0x7(%rsp)
andb   $0xfd,0x7(%rsp)
andb   $0xfb,0x7(%rsp)
andb   $0xf7,0x7(%rsp)
andb   $0xef,0x7(%rsp)
andb   $0xdf,0x7(%rsp)
andb   $0xbf,0x7(%rsp)
andb   $0x7f,0x7(%rsp)
xor    %eax,%eax
call   1030 <a2@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = load volatile i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, 254
%6 = trunc i32 %5 to i8
store volatile i8 %6, i8* %2
%7 = load volatile i8, i8* %2
%8 = zext i8 %7 to i32
%9 = and i32 %8, 253
%10 = trunc i32 %9 to i8
store volatile i8 %10, i8* %2
%11 = load volatile i8, i8* %2
%12 = zext i8 %11 to i32
%13 = and i32 %12, 251
%14 = trunc i32 %13 to i8
store volatile i8 %14, i8* %2
%15 = load volatile i8, i8* %2
%16 = zext i8 %15 to i32
%17 = and i32 %16, 247
%18 = trunc i32 %17 to i8
store volatile i8 %18, i8* %2
%19 = load volatile i8, i8* %2
%20 = zext i8 %19 to i32
%21 = and i32 %20, 239
%22 = trunc i32 %21 to i8
store volatile i8 %22, i8* %2
%23 = load volatile i8, i8* %2
%24 = zext i8 %23 to i32
%25 = and i32 %24, 223
%26 = trunc i32 %25 to i8
store volatile i8 %26, i8* %2
%27 = load volatile i8, i8* %2
%28 = zext i8 %27 to i32
%29 = and i32 %28, 191
%30 = trunc i32 %29 to i8
store volatile i8 %30, i8* %2
%31 = load volatile i8, i8* %2
%32 = zext i8 %31 to i32
%33 = and i32 %32, 127
%34 = trunc i32 %33 to i8
store volatile i8 %34, i8* %2
%35 = call i32 (...) @a2()
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %0
store i32 0, i32* %1
br label %38
38: ; preds = %37, %0
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i8
%2 = load volatile i8, i8* %1
%3 = and i8 %2, -2
store volatile i8 %3, i8* %1
%4 = load volatile i8, i8* %1
%5 = and i8 %4, -3
store volatile i8 %5, i8* %1
%6 = load volatile i8, i8* %1
%7 = and i8 %6, -5
store volatile i8 %7, i8* %1
%8 = load volatile i8, i8* %1
%9 = and i8 %8, -9
store volatile i8 %9, i8* %1
%10 = load volatile i8, i8* %1
%11 = and i8 %10, -17
store volatile i8 %11, i8* %1
%12 = load volatile i8, i8* %1
%13 = and i8 %12, -33
store volatile i8 %13, i8* %1
%14 = load volatile i8, i8* %1
%15 = and i8 %14, -65
store volatile i8 %15, i8* %1
%16 = load volatile i8, i8* %1
%17 = and i8 %16, 127
store volatile i8 %17, i8* %1
%18 = tail call i32 (...) @a2()
ret i32 0
}