#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 */
scalar_t__ EOF;
int F();
scalar_t__ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int t1();
int t2();
int t3();
int main(int argc, char *argv[]) {
  int result = 0;
  result |= t1();
  result |= t2();
  result |= t3();
  result |= F();
  result |= fflush(stdout) == EOF;
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1040 <t1@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1070 <t2@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <t3@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <F@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    0x2e32(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1040 <t1@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <t2@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1050 <t3@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1030 <F@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    0x2e53(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
sete   %cl
or     %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@EOF = global i64 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i32 (...) @t1()
%8 = load i32, i32* %6
%9 = or i32 %8, %7
store i32 %9, i32* %6
%10 = call i32 (...) @t2()
%11 = load i32, i32* %6
%12 = or i32 %11, %10
store i32 %12, i32* %6
%13 = call i32 (...) @t3()
%14 = load i32, i32* %6
%15 = or i32 %14, %13
store i32 %15, i32* %6
%16 = call i32 (...) @F()
%17 = load i32, i32* %6
%18 = or i32 %17, %16
store i32 %18, i32* %6
%19 = load i32, i32* @stdout
%20 = call i64 @fflush(i32 %19)
%21 = load i64, i64* @EOF
%22 = icmp eq i64 %20, %21
%23 = zext i1 %22 to i32
%24 = load i32, i32* %6
%25 = or i32 %24, %23
store i32 %25, i32* %6
%26 = load i32, i32* %6
ret i32 %26
}

LLVM IR (-O2):
@stdout = global i32 0
@EOF = global i64 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @t1()
%4 = tail call i32 (...) @t2()
%5 = or i32 %4, %3
%6 = tail call i32 (...) @t3()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @F()
%9 = or i32 %7, %8
%10 = load i32, i32* @stdout
%11 = tail call i64 @fflush(i32 %10)
%12 = load i64, i64* @EOF
%13 = icmp eq i64 %11, %12
%14 = zext i1 %13 to i32
%15 = or i32 %9, %14
ret i32 %15
}