#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*/ testAdd();
int /*<<< orphan*/ testShiftRight();
int /*<<< orphan*/ testSub();
int /*<<< orphan*/ test_modExp_4096bit_e65537();
int /*<<< orphan*/ test_modExp_8192_e65537();
int /*<<< orphan*/ test_modExp_8192bit();
int /*<<< orphan*/ test_montgomery_modexp();
int /*<<< orphan*/ test_montgomery_modulus();
int /*<<< orphan*/ test_montgomery_one_item_array();
void montgomery_array_tests(int bigtests) {
  testShiftRight();
  testAdd();
  testSub();
  test_montgomery_one_item_array();
  test_montgomery_modulus();
  test_montgomery_modexp();
  test_modExp_4096bit_e65537();
  test_modExp_8192_e65537();
  if (bigtests) {
    test_modExp_8192bit();
  }
}


x86 assembly (clang, -O0):
<montgomery_array_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1090 <testShiftRight@plt>
mov    $0x0,%al
call   1070 <testAdd@plt>
mov    $0x0,%al
call   1080 <testSub@plt>
mov    $0x0,%al
call   1030 <test_montgomery_one_item_array@plt>
mov    $0x0,%al
call   1050 <test_montgomery_modulus@plt>
mov    $0x0,%al
call   10a0 <test_montgomery_modexp@plt>
mov    $0x0,%al
call   1040 <test_modExp_4096bit_e65537@plt>
mov    $0x0,%al
call   10b0 <test_modExp_8192_e65537@plt>
cmpl   $0x0,-0x4(%rbp)
je     11e4 <montgomery_array_tests+0x54>
mov    $0x0,%al
call   1060 <test_modExp_8192bit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<montgomery_array_tests>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1090 <testShiftRight@plt>
xor    %eax,%eax
call   1070 <testAdd@plt>
xor    %eax,%eax
call   1080 <testSub@plt>
xor    %eax,%eax
call   1030 <test_montgomery_one_item_array@plt>
xor    %eax,%eax
call   1050 <test_montgomery_modulus@plt>
xor    %eax,%eax
call   10a0 <test_montgomery_modexp@plt>
xor    %eax,%eax
call   1040 <test_modExp_4096bit_e65537@plt>
xor    %eax,%eax
call   10b0 <test_modExp_8192_e65537@plt>
test   %ebx,%ebx
je     11d7 <montgomery_array_tests+0x47>
xor    %eax,%eax
pop    %rbx
jmp    1060 <test_modExp_8192bit@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @montgomery_array_tests(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @testShiftRight()
%4 = call i32 (...) @testAdd()
%5 = call i32 (...) @testSub()
%6 = call i32 (...) @test_montgomery_one_item_array()
%7 = call i32 (...) @test_montgomery_modulus()
%8 = call i32 (...) @test_montgomery_modexp()
%9 = call i32 (...) @test_modExp_4096bit_e65537()
%10 = call i32 (...) @test_modExp_8192_e65537()
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %1
%14 = call i32 (...) @test_modExp_8192bit()
br label %15
15: ; preds = %13, %1
ret void
}

LLVM IR (-O2):
define void @montgomery_array_tests(i32 %0) {
%2 = tail call i32 (...) @testShiftRight()
%3 = tail call i32 (...) @testAdd()
%4 = tail call i32 (...) @testSub()
%5 = tail call i32 (...) @test_montgomery_one_item_array()
%6 = tail call i32 (...) @test_montgomery_modulus()
%7 = tail call i32 (...) @test_montgomery_modexp()
%8 = tail call i32 (...) @test_modExp_4096bit_e65537()
%9 = tail call i32 (...) @test_modExp_8192_e65537()
%10 = icmp eq i32 %0, 0
br i1 %10, label %13, label %11
11: ; preds = %1
%12 = tail call i32 (...) @test_modExp_8192bit()
br label %13
13: ; preds = %11, %1
ret void
}