#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*/ puts(char *);
int test1();
int test10();
int test16Parts0();
int test16Parts1();
int test16PartsFull();
int test2();
int test2Parts0();
int test2Parts1();
int test2PartsFull();
int test3();
int test4();
int test5();
int test6();
int test7();
int test8();
int test9();
int tests_from_supercop();
int main() {
  int result = 0;
  result |= test1();
  result |= test2();
  result |= test3();
  result |= test4();
  result |= test5();
  result |= test6();
  result |= test7();
  result |= test8();
  result |= test9();
  result |= test10();
  result |= tests_from_supercop();
  result |= test2Parts0();
  result |= test2Parts1();
  result |= test2PartsFull();
  result |= test16Parts0();
  result |= test16Parts1();
  result |= test16PartsFull();
  if (result) {
    puts("Test result:  FAILED");
  } else {
    puts("Tests result: SUCCESS");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   10b0 <test1@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1130 <test2@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1090 <test3@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1120 <test4@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1080 <test5@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1110 <test6@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <test7@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1140 <test8@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10c0 <test9@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10a0 <test10@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <tests_from_supercop@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10e0 <test2Parts0@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <test2Parts1@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10f0 <test2PartsFull@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <test16Parts0@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1100 <test16Parts1@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10d0 <test16PartsFull@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     132e <main+0x10e>
lea    0xcdc(%rip),%rdi
call   1050 <puts@plt>
jmp    133a <main+0x11a>
lea    0xce0(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   10b0 <test1@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1130 <test2@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1090 <test3@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1120 <test4@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1080 <test5@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1110 <test6@plt>
mov    %eax,%ebp
or     %r14d,%ebp
xor    %eax,%eax
call   1070 <test7@plt>
mov    %eax,%r14d
or     %ebp,%r14d
or     %ebx,%r14d
xor    %eax,%eax
call   1140 <test8@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10c0 <test9@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10a0 <test10@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1040 <tests_from_supercop@plt>
mov    %eax,%r15d
or     %ebx,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   10e0 <test2Parts0@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1030 <test2Parts1@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   10f0 <test2PartsFull@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1060 <test16Parts0@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1100 <test16Parts1@plt>
mov    %eax,%ebp
or     %ebx,%ebp
or     %r15d,%ebp
xor    %eax,%eax
call   10d0 <test16PartsFull@plt>
or     %ebp,%eax
lea    0xd23(%rip),%rax
lea    0xd07(%rip),%rdi
cmove  %rax,%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Test result: FAILED\00"
@.str.1 = [22 x i8] c"Tests result: SUCCESS\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i32 (...) @test1()
%4 = load i32, i32* %2
%5 = or i32 %4, %3
store i32 %5, i32* %2
%6 = call i32 (...) @test2()
%7 = load i32, i32* %2
%8 = or i32 %7, %6
store i32 %8, i32* %2
%9 = call i32 (...) @test3()
%10 = load i32, i32* %2
%11 = or i32 %10, %9
store i32 %11, i32* %2
%12 = call i32 (...) @test4()
%13 = load i32, i32* %2
%14 = or i32 %13, %12
store i32 %14, i32* %2
%15 = call i32 (...) @test5()
%16 = load i32, i32* %2
%17 = or i32 %16, %15
store i32 %17, i32* %2
%18 = call i32 (...) @test6()
%19 = load i32, i32* %2
%20 = or i32 %19, %18
store i32 %20, i32* %2
%21 = call i32 (...) @test7()
%22 = load i32, i32* %2
%23 = or i32 %22, %21
store i32 %23, i32* %2
%24 = call i32 (...) @test8()
%25 = load i32, i32* %2
%26 = or i32 %25, %24
store i32 %26, i32* %2
%27 = call i32 (...) @test9()
%28 = load i32, i32* %2
%29 = or i32 %28, %27
store i32 %29, i32* %2
%30 = call i32 (...) @test10()
%31 = load i32, i32* %2
%32 = or i32 %31, %30
store i32 %32, i32* %2
%33 = call i32 (...) @tests_from_supercop()
%34 = load i32, i32* %2
%35 = or i32 %34, %33
store i32 %35, i32* %2
%36 = call i32 (...) @test2Parts0()
%37 = load i32, i32* %2
%38 = or i32 %37, %36
store i32 %38, i32* %2
%39 = call i32 (...) @test2Parts1()
%40 = load i32, i32* %2
%41 = or i32 %40, %39
store i32 %41, i32* %2
%42 = call i32 (...) @test2PartsFull()
%43 = load i32, i32* %2
%44 = or i32 %43, %42
store i32 %44, i32* %2
%45 = call i32 (...) @test16Parts0()
%46 = load i32, i32* %2
%47 = or i32 %46, %45
store i32 %47, i32* %2
%48 = call i32 (...) @test16Parts1()
%49 = load i32, i32* %2
%50 = or i32 %49, %48
store i32 %50, i32* %2
%51 = call i32 (...) @test16PartsFull()
%52 = load i32, i32* %2
%53 = or i32 %52, %51
store i32 %53, i32* %2
%54 = load i32, i32* %2
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %0
%57 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %60
58: ; preds = %0
%59 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %60
60: ; preds = %58, %56
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Test result: FAILED\00"
@.str.1 = [22 x i8] c"Tests result: SUCCESS\00"
define i32 @main() {
%1 = tail call i32 (...) @test1()
%2 = tail call i32 (...) @test2()
%3 = or i32 %2, %1
%4 = tail call i32 (...) @test3()
%5 = or i32 %3, %4
%6 = tail call i32 (...) @test4()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @test5()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @test6()
%11 = or i32 %9, %10
%12 = tail call i32 (...) @test7()
%13 = or i32 %11, %12
%14 = tail call i32 (...) @test8()
%15 = or i32 %13, %14
%16 = tail call i32 (...) @test9()
%17 = or i32 %15, %16
%18 = tail call i32 (...) @test10()
%19 = or i32 %17, %18
%20 = tail call i32 (...) @tests_from_supercop()
%21 = or i32 %19, %20
%22 = tail call i32 (...) @test2Parts0()
%23 = or i32 %21, %22
%24 = tail call i32 (...) @test2Parts1()
%25 = or i32 %23, %24
%26 = tail call i32 (...) @test2PartsFull()
%27 = or i32 %25, %26
%28 = tail call i32 (...) @test16Parts0()
%29 = or i32 %27, %28
%30 = tail call i32 (...) @test16Parts1()
%31 = or i32 %29, %30
%32 = tail call i32 (...) @test16PartsFull()
%33 = or i32 %31, %32
%34 = icmp eq i32 %33, 0
%35 = select i1 %34, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0)
%36 = tail call i32 @puts(i8* dereferenceable(1) %35)
ret i32 0
}