#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 test2();
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();
  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   1090 <test1@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10d0 <test2@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <test3@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10c0 <test4@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <test5@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10b0 <test6@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <test7@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10e0 <test8@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10a0 <test9@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1080 <test10@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <tests_from_supercop@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1280 <main+0xc0>
lea    0xd8a(%rip),%rdi
call   1040 <puts@plt>
jmp    128c <main+0xcc>
lea    0xd8e(%rip),%rdi
call   1040 <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   1090 <test1@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10d0 <test2@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1070 <test3@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10c0 <test4@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1060 <test5@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10b0 <test6@plt>
mov    %eax,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   1050 <test7@plt>
mov    %eax,%ebp
or     %r15d,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10e0 <test8@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10a0 <test9@plt>
mov    %eax,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   1080 <test10@plt>
mov    %eax,%ebx
or     %r15d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <tests_from_supercop@plt>
or     %ebx,%eax
lea    0xdc8(%rip),%rax
lea    0xdac(%rip),%rdi
cmove  %rax,%rdi
call   1040 <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 = load i32, i32* %2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %0
%39 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %42
40: ; preds = %0
%41 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
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 = icmp eq i32 %21, 0
%23 = select i1 %22, 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)
%24 = tail call i32 @puts(i8* dereferenceable(1) %23)
ret i32 0
}