#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 |= 0x1;
  x |= 0x2;
  x |= 0x4;
  x |= 0x8;
  x |= 0x16;
  x |= 0x32;
  x |= 0x64;
  x |= 0x128;
  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
or     $0x1,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x2,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x4,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x8,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x16,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x32,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x64,%eax
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%eax
or     $0x128,%eax
mov    %al,-0x5(%rbp)
mov    $0x0,%al
call   1030 <a2@plt>
cmp    $0x0,%eax
jne    1198 <main+0x88>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
orb    $0x1,0x7(%rsp)
orb    $0x2,0x7(%rsp)
orb    $0x4,0x7(%rsp)
orb    $0x8,0x7(%rsp)
orb    $0x16,0x7(%rsp)
orb    $0x32,0x7(%rsp)
orb    $0x64,0x7(%rsp)
orb    $0x28,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 = or i32 %4, 1
%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 = or i32 %8, 2
%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 = or i32 %12, 4
%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 = or i32 %16, 8
%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 = or i32 %20, 22
%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 = or i32 %24, 50
%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 = or i32 %28, 100
%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 = or i32 %32, 296
%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 = or i8 %2, 1
store volatile i8 %3, i8* %1
%4 = load volatile i8, i8* %1
%5 = or i8 %4, 2
store volatile i8 %5, i8* %1
%6 = load volatile i8, i8* %1
%7 = or i8 %6, 4
store volatile i8 %7, i8* %1
%8 = load volatile i8, i8* %1
%9 = or i8 %8, 8
store volatile i8 %9, i8* %1
%10 = load volatile i8, i8* %1
%11 = or i8 %10, 22
store volatile i8 %11, i8* %1
%12 = load volatile i8, i8* %1
%13 = or i8 %12, 50
store volatile i8 %13, i8* %1
%14 = load volatile i8, i8* %1
%15 = or i8 %14, 100
store volatile i8 %15, i8* %1
%16 = load volatile i8, i8* %1
%17 = or i8 %16, 40
store volatile i8 %17, i8* %1
%18 = tail call i32 (...) @a2()
ret i32 0
}