#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 cli_1();
int cli_2();
int cli_3();
int cli_4();
int cli_5();
int cli_6();
int cli_7();
int cli_tests() {
  int results = 0;
  results = results | cli_1();
  results = results | cli_2();
  results = results | cli_3();
  results = results | cli_4();
  results = results | cli_5();
  results = results | cli_6();
  results = results | cli_7();
  return results;
}


x86 assembly (clang, -O0):
<cli_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1050 <cli_1@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1090 <cli_2@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1060 <cli_3@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <cli_4@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <cli_5@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1070 <cli_6@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <cli_7@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cli_tests>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1050 <cli_1@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <cli_2@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1060 <cli_3@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1080 <cli_4@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <cli_5@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1070 <cli_6@plt>
mov    %eax,%ebp
or     %r14d,%ebp
xor    %eax,%eax
call   1040 <cli_7@plt>
or     %ebp,%eax
or     %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @cli_tests() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* %1
%3 = call i32 (...) @cli_1()
%4 = or i32 %2, %3
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = call i32 (...) @cli_2()
%7 = or i32 %5, %6
store i32 %7, i32* %1
%8 = load i32, i32* %1
%9 = call i32 (...) @cli_3()
%10 = or i32 %8, %9
store i32 %10, i32* %1
%11 = load i32, i32* %1
%12 = call i32 (...) @cli_4()
%13 = or i32 %11, %12
store i32 %13, i32* %1
%14 = load i32, i32* %1
%15 = call i32 (...) @cli_5()
%16 = or i32 %14, %15
store i32 %16, i32* %1
%17 = load i32, i32* %1
%18 = call i32 (...) @cli_6()
%19 = or i32 %17, %18
store i32 %19, i32* %1
%20 = load i32, i32* %1
%21 = call i32 (...) @cli_7()
%22 = or i32 %20, %21
store i32 %22, i32* %1
%23 = load i32, i32* %1
ret i32 %23
}

LLVM IR (-O2):
define i32 @cli_tests() {
%1 = tail call i32 (...) @cli_1()
%2 = tail call i32 (...) @cli_2()
%3 = or i32 %2, %1
%4 = tail call i32 (...) @cli_3()
%5 = or i32 %3, %4
%6 = tail call i32 (...) @cli_4()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @cli_5()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @cli_6()
%11 = or i32 %9, %10
%12 = tail call i32 (...) @cli_7()
%13 = or i32 %11, %12
ret i32 %13
}