#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*/ printf(char *, ...);
scalar_t__ test_almost_equal();
scalar_t__ test_attemp_load_bad_dimens();
scalar_t__ test_bad_load_symbols();
scalar_t__ test_bad_symbols();
scalar_t__ test_basic_tip_apply();
scalar_t__ test_big_multistate_symbols();
scalar_t__ test_bulk_balanced_tree_cases();
scalar_t__ test_bulk_unrooted_tree_cases();
scalar_t__ test_count_applic_inapplic();
scalar_t__ test_count_gaps_basic();
scalar_t__ test_count_states_in_parts_simple();
scalar_t__ test_count_states_in_parts_w_polymorphs();
scalar_t__ test_create_destroy_Morphy();
scalar_t__ test_data_partitioning_gapmissing();
scalar_t__ test_data_partitioning_gapnewstate();
scalar_t__ test_data_partitioning_simple();
scalar_t__ test_delete_Morphy_no_input();
scalar_t__ test_get_added_length_for_na();
scalar_t__ test_get_added_length_for_na_morechars();
scalar_t__ test_get_partial_reopt_for_na();
scalar_t__ test_get_states();
scalar_t__ test_good_symbols();
scalar_t__ test_imbalance_distributions();
scalar_t__ test_init_Morphy();
scalar_t__ test_isreal();
scalar_t__ test_load_symbols();
scalar_t__ test_local_reoptimisation();
scalar_t__ test_multistate_symbols();
scalar_t__ test_partition_push_index();
scalar_t__ test_reinit_no_data();
scalar_t__ test_reinit_with_data();
scalar_t__ test_resetting_frac_weights();
scalar_t__ test_resetting_weights();
scalar_t__ test_set_weights();
scalar_t__ test_simple_chtype_setting();
scalar_t__ test_small_fitch();
scalar_t__ test_small_fitch_na();
scalar_t__ test_small_fitch_withmissing();
scalar_t__ test_small_wagner();
int /*<<< orphan*/ test_state_retrieval();
scalar_t__ test_twopass_fitch();
scalar_t__ test_usr_order_symbols();
scalar_t__ test_wagner_extended();
scalar_t__ test_weighted_small_fitch();
scalar_t__ test_weights_realtree();
int main(void) {
  int fails = 0;
  fails += test_get_states();
  fails += test_count_applic_inapplic();
  fails += test_good_symbols();
  fails += test_bad_symbols();
  fails += test_load_symbols();
  fails += test_bad_load_symbols();
  fails += test_multistate_symbols();
  fails += test_usr_order_symbols();
  fails += test_big_multistate_symbols();
  fails += test_count_states_in_parts_simple();
  fails += test_count_states_in_parts_w_polymorphs();
  fails += test_isreal();
  fails += test_almost_equal();
  fails += test_resetting_weights();
  fails += test_resetting_frac_weights();
  fails += test_count_gaps_basic();
  fails += test_partition_push_index();
  fails += test_data_partitioning_simple();
  fails += test_data_partitioning_gapmissing();
  fails += test_data_partitioning_gapnewstate();
  fails += test_weights_realtree();
  fails += test_set_weights();
  fails += test_create_destroy_Morphy();
  fails += test_simple_chtype_setting();
  fails += test_init_Morphy();
  fails += test_reinit_no_data();
  fails += test_reinit_with_data();
  fails += test_attemp_load_bad_dimens();
  fails += test_delete_Morphy_no_input();
  fails += test_basic_tip_apply();
  test_state_retrieval();
  fails += test_small_fitch();
  fails += test_weighted_small_fitch();
  fails += test_small_fitch_na();
  fails += test_small_fitch_withmissing();
  fails += test_bulk_balanced_tree_cases();
  fails += test_bulk_unrooted_tree_cases();
  fails += test_twopass_fitch();
  fails += test_local_reoptimisation();
  fails += test_get_partial_reopt_for_na();
  fails += test_get_added_length_for_na();
  fails += test_get_added_length_for_na_morechars();
  fails += test_imbalance_distributions();
  fails += test_small_wagner();
  fails += test_wagner_extended();
  printf("\n\nTest summary:\n\n");
  if (fails) {
    printf("[  ** FAILED ** ] %i times. Review output to see details.\n",
           fails);
  } else {
    printf("[  ** PASSED ** ] All tests passed.\n");
  }
  printf("\n");
  return fails;
}


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   21d0 <test_get_states@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2040 <test_count_applic_inapplic@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2120 <test_good_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2190 <test_bad_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   20a0 <test_load_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2210 <test_bad_load_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   22f0 <test_multistate_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2030 <test_usr_order_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2130 <test_big_multistate_symbols@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2160 <test_count_states_in_parts_simple@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2270 <test_count_states_in_parts_w_polymorphs@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2090 <test_isreal@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   21e0 <test_almost_equal@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   20f0 <test_resetting_weights@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   21a0 <test_resetting_frac_weights@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   20d0 <test_count_gaps_basic@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   22b0 <test_partition_push_index@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   20c0 <test_data_partitioning_simple@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2290 <test_data_partitioning_gapmissing@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2100 <test_data_partitioning_gapnewstate@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2080 <test_weights_realtree@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   21c0 <test_set_weights@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2170 <test_create_destroy_Morphy@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2240 <test_simple_chtype_setting@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   20e0 <test_init_Morphy@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2260 <test_reinit_no_data@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2140 <test_reinit_with_data@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   21b0 <test_attemp_load_bad_dimens@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2300 <test_delete_Morphy_no_input@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   20b0 <test_basic_tip_apply@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2220 <test_state_retrieval@plt>
mov    $0x0,%al
call   2200 <test_small_fitch@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   22a0 <test_weighted_small_fitch@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   22c0 <test_small_fitch_na@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2070 <test_small_fitch_withmissing@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2250 <test_bulk_balanced_tree_cases@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2050 <test_bulk_unrooted_tree_cases@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2060 <test_twopass_fitch@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   22e0 <test_local_reoptimisation@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   22d0 <test_get_partial_reopt_for_na@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2230 <test_get_added_length_for_na@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   21f0 <test_get_added_length_for_na_morechars@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2180 <test_imbalance_distributions@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2150 <test_small_wagner@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   2280 <test_wagner_extended@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
lea    0x88c(%rip),%rdi
mov    $0x0,%al
call   2110 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
je     279b <main+0x3bb>
mov    -0x8(%rbp),%esi
lea    0x883(%rip),%rdi
mov    $0x0,%al
call   2110 <printf@plt>
jmp    27a9 <main+0x3c9>
lea    0x8ab(%rip),%rdi
mov    $0x0,%al
call   2110 <printf@plt>
lea    0x860(%rip),%rdi
mov    $0x0,%al
call   2110 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %eax,%eax
call   21f0 <test_get_states@plt>
mov    %rax,%r14
xor    %eax,%eax
call   2050 <test_count_applic_inapplic@plt>
mov    %rax,%r15
add    %r14d,%r15d
xor    %eax,%eax
call   2140 <test_good_symbols@plt>
mov    %rax,%rbx
add    %r15d,%ebx
xor    %eax,%eax
call   21b0 <test_bad_symbols@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   20c0 <test_load_symbols@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2230 <test_bad_load_symbols@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2310 <test_multistate_symbols@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2040 <test_usr_order_symbols@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2150 <test_big_multistate_symbols@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2180 <test_count_states_in_parts_simple@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2290 <test_count_states_in_parts_w_polymorphs@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   20b0 <test_isreal@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2200 <test_almost_equal@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2110 <test_resetting_weights@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   21c0 <test_resetting_frac_weights@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   20f0 <test_count_gaps_basic@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   22d0 <test_partition_push_index@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   20e0 <test_data_partitioning_simple@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   22b0 <test_data_partitioning_gapmissing@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2120 <test_data_partitioning_gapnewstate@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2090 <test_weights_realtree@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   21e0 <test_set_weights@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2190 <test_create_destroy_Morphy@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2260 <test_simple_chtype_setting@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2100 <test_init_Morphy@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2280 <test_reinit_no_data@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2160 <test_reinit_with_data@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   21d0 <test_attemp_load_bad_dimens@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2320 <test_delete_Morphy_no_input@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   20d0 <test_basic_tip_apply@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2240 <test_state_retrieval@plt>
xor    %eax,%eax
call   2220 <test_small_fitch@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   22c0 <test_weighted_small_fitch@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   22e0 <test_small_fitch_na@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2080 <test_small_fitch_withmissing@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2270 <test_bulk_balanced_tree_cases@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2060 <test_bulk_unrooted_tree_cases@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2070 <test_twopass_fitch@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2300 <test_local_reoptimisation@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   22f0 <test_get_partial_reopt_for_na@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   2250 <test_get_added_length_for_na@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2210 <test_get_added_length_for_na_morechars@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   21a0 <test_imbalance_distributions@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   2170 <test_small_wagner@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   22a0 <test_wagner_extended@plt>
mov    %rax,%r14
lea    0x9f2(%rip),%rdi
call   20a0 <puts@plt>
add    %ebx,%r14d
je     2666 <main+0x266>
lea    0x9a6(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   2130 <printf@plt>
jmp    2672 <main+0x272>
lea    0x9df(%rip),%rdi
call   20a0 <puts@plt>
mov    $0xa,%edi
call   2030 <putchar@plt>
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\0A\0ATest summary:\0A\0A\00"
@.str.1 = [59 x i8] c"[ ** FAILED ** ] %i times. Review output to see details.\0A\00"
@.str.2 = [37 x i8] c"[ ** PASSED ** ] All tests passed.\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i64 (...) @test_get_states()
%4 = load i32, i32* %2
%5 = sext i32 %4 to i64
%6 = add nsw i64 %5, %3
%7 = trunc i64 %6 to i32
store i32 %7, i32* %2
%8 = call i64 (...) @test_count_applic_inapplic()
%9 = load i32, i32* %2
%10 = sext i32 %9 to i64
%11 = add nsw i64 %10, %8
%12 = trunc i64 %11 to i32
store i32 %12, i32* %2
%13 = call i64 (...) @test_good_symbols()
%14 = load i32, i32* %2
%15 = sext i32 %14 to i64
%16 = add nsw i64 %15, %13
%17 = trunc i64 %16 to i32
store i32 %17, i32* %2
%18 = call i64 (...) @test_bad_symbols()
%19 = load i32, i32* %2
%20 = sext i32 %19 to i64
%21 = add nsw i64 %20, %18
%22 = trunc i64 %21 to i32
store i32 %22, i32* %2
%23 = call i64 (...) @test_load_symbols()
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = add nsw i64 %25, %23
%27 = trunc i64 %26 to i32
store i32 %27, i32* %2
%28 = call i64 (...) @test_bad_load_symbols()
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, %28
%32 = trunc i64 %31 to i32
store i32 %32, i32* %2
%33 = call i64 (...) @test_multistate_symbols()
%34 = load i32, i32* %2
%35 = sext i32 %34 to i64
%36 = add nsw i64 %35, %33
%37 = trunc i64 %36 to i32
store i32 %37, i32* %2
%38 = call i64 (...) @test_usr_order_symbols()
%39 = load i32, i32* %2
%40 = sext i32 %39 to i64
%41 = add nsw i64 %40, %38
%42 = trunc i64 %41 to i32
store i32 %42, i32* %2
%43 = call i64 (...) @test_big_multistate_symbols()
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = add nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, i32* %2
%48 = call i64 (...) @test_count_states_in_parts_simple()
%49 = load i32, i32* %2
%50 = sext i32 %49 to i64
%51 = add nsw i64 %50, %48
%52 = trunc i64 %51 to i32
store i32 %52, i32* %2
%53 = call i64 (...) @test_count_states_in_parts_w_polymorphs()
%54 = load i32, i32* %2
%55 = sext i32 %54 to i64
%56 = add nsw i64 %55, %53
%57 = trunc i64 %56 to i32
store i32 %57, i32* %2
%58 = call i64 (...) @test_isreal()
%59 = load i32, i32* %2
%60 = sext i32 %59 to i64
%61 = add nsw i64 %60, %58
%62 = trunc i64 %61 to i32
store i32 %62, i32* %2
%63 = call i64 (...) @test_almost_equal()
%64 = load i32, i32* %2
%65 = sext i32 %64 to i64
%66 = add nsw i64 %65, %63
%67 = trunc i64 %66 to i32
store i32 %67, i32* %2
%68 = call i64 (...) @test_resetting_weights()
%69 = load i32, i32* %2
%70 = sext i32 %69 to i64
%71 = add nsw i64 %70, %68
%72 = trunc i64 %71 to i32
store i32 %72, i32* %2
%73 = call i64 (...) @test_resetting_frac_weights()
%74 = load i32, i32* %2
%75 = sext i32 %74 to i64
%76 = add nsw i64 %75, %73
%77 = trunc i64 %76 to i32
store i32 %77, i32* %2
%78 = call i64 (...) @test_count_gaps_basic()
%79 = load i32, i32* %2
%80 = sext i32 %79 to i64
%81 = add nsw i64 %80, %78
%82 = trunc i64 %81 to i32
store i32 %82, i32* %2
%83 = call i64 (...) @test_partition_push_index()
%84 = load i32, i32* %2
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, i32* %2
%88 = call i64 (...) @test_data_partitioning_simple()
%89 = load i32, i32* %2
%90 = sext i32 %89 to i64
%91 = add nsw i64 %90, %88
%92 = trunc i64 %91 to i32
store i32 %92, i32* %2
%93 = call i64 (...) @test_data_partitioning_gapmissing()
%94 = load i32, i32* %2
%95 = sext i32 %94 to i64
%96 = add nsw i64 %95, %93
%97 = trunc i64 %96 to i32
store i32 %97, i32* %2
%98 = call i64 (...) @test_data_partitioning_gapnewstate()
%99 = load i32, i32* %2
%100 = sext i32 %99 to i64
%101 = add nsw i64 %100, %98
%102 = trunc i64 %101 to i32
store i32 %102, i32* %2
%103 = call i64 (...) @test_weights_realtree()
%104 = load i32, i32* %2
%105 = sext i32 %104 to i64
%106 = add nsw i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, i32* %2
%108 = call i64 (...) @test_set_weights()
%109 = load i32, i32* %2
%110 = sext i32 %109 to i64
%111 = add nsw i64 %110, %108
%112 = trunc i64 %111 to i32
store i32 %112, i32* %2
%113 = call i64 (...) @test_create_destroy_Morphy()
%114 = load i32, i32* %2
%115 = sext i32 %114 to i64
%116 = add nsw i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, i32* %2
%118 = call i64 (...) @test_simple_chtype_setting()
%119 = load i32, i32* %2
%120 = sext i32 %119 to i64
%121 = add nsw i64 %120, %118
%122 = trunc i64 %121 to i32
store i32 %122, i32* %2
%123 = call i64 (...) @test_init_Morphy()
%124 = load i32, i32* %2
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, i32* %2
%128 = call i64 (...) @test_reinit_no_data()
%129 = load i32, i32* %2
%130 = sext i32 %129 to i64
%131 = add nsw i64 %130, %128
%132 = trunc i64 %131 to i32
store i32 %132, i32* %2
%133 = call i64 (...) @test_reinit_with_data()
%134 = load i32, i32* %2
%135 = sext i32 %134 to i64
%136 = add nsw i64 %135, %133
%137 = trunc i64 %136 to i32
store i32 %137, i32* %2
%138 = call i64 (...) @test_attemp_load_bad_dimens()
%139 = load i32, i32* %2
%140 = sext i32 %139 to i64
%141 = add nsw i64 %140, %138
%142 = trunc i64 %141 to i32
store i32 %142, i32* %2
%143 = call i64 (...) @test_delete_Morphy_no_input()
%144 = load i32, i32* %2
%145 = sext i32 %144 to i64
%146 = add nsw i64 %145, %143
%147 = trunc i64 %146 to i32
store i32 %147, i32* %2
%148 = call i64 (...) @test_basic_tip_apply()
%149 = load i32, i32* %2
%150 = sext i32 %149 to i64
%151 = add nsw i64 %150, %148
%152 = trunc i64 %151 to i32
store i32 %152, i32* %2
%153 = call i32 (...) @test_state_retrieval()
%154 = call i64 (...) @test_small_fitch()
%155 = load i32, i32* %2
%156 = sext i32 %155 to i64
%157 = add nsw i64 %156, %154
%158 = trunc i64 %157 to i32
store i32 %158, i32* %2
%159 = call i64 (...) @test_weighted_small_fitch()
%160 = load i32, i32* %2
%161 = sext i32 %160 to i64
%162 = add nsw i64 %161, %159
%163 = trunc i64 %162 to i32
store i32 %163, i32* %2
%164 = call i64 (...) @test_small_fitch_na()
%165 = load i32, i32* %2
%166 = sext i32 %165 to i64
%167 = add nsw i64 %166, %164
%168 = trunc i64 %167 to i32
store i32 %168, i32* %2
%169 = call i64 (...) @test_small_fitch_withmissing()
%170 = load i32, i32* %2
%171 = sext i32 %170 to i64
%172 = add nsw i64 %171, %169
%173 = trunc i64 %172 to i32
store i32 %173, i32* %2
%174 = call i64 (...) @test_bulk_balanced_tree_cases()
%175 = load i32, i32* %2
%176 = sext i32 %175 to i64
%177 = add nsw i64 %176, %174
%178 = trunc i64 %177 to i32
store i32 %178, i32* %2
%179 = call i64 (...) @test_bulk_unrooted_tree_cases()
%180 = load i32, i32* %2
%181 = sext i32 %180 to i64
%182 = add nsw i64 %181, %179
%183 = trunc i64 %182 to i32
store i32 %183, i32* %2
%184 = call i64 (...) @test_twopass_fitch()
%185 = load i32, i32* %2
%186 = sext i32 %185 to i64
%187 = add nsw i64 %186, %184
%188 = trunc i64 %187 to i32
store i32 %188, i32* %2
%189 = call i64 (...) @test_local_reoptimisation()
%190 = load i32, i32* %2
%191 = sext i32 %190 to i64
%192 = add nsw i64 %191, %189
%193 = trunc i64 %192 to i32
store i32 %193, i32* %2
%194 = call i64 (...) @test_get_partial_reopt_for_na()
%195 = load i32, i32* %2
%196 = sext i32 %195 to i64
%197 = add nsw i64 %196, %194
%198 = trunc i64 %197 to i32
store i32 %198, i32* %2
%199 = call i64 (...) @test_get_added_length_for_na()
%200 = load i32, i32* %2
%201 = sext i32 %200 to i64
%202 = add nsw i64 %201, %199
%203 = trunc i64 %202 to i32
store i32 %203, i32* %2
%204 = call i64 (...) @test_get_added_length_for_na_morechars()
%205 = load i32, i32* %2
%206 = sext i32 %205 to i64
%207 = add nsw i64 %206, %204
%208 = trunc i64 %207 to i32
store i32 %208, i32* %2
%209 = call i64 (...) @test_imbalance_distributions()
%210 = load i32, i32* %2
%211 = sext i32 %210 to i64
%212 = add nsw i64 %211, %209
%213 = trunc i64 %212 to i32
store i32 %213, i32* %2
%214 = call i64 (...) @test_small_wagner()
%215 = load i32, i32* %2
%216 = sext i32 %215 to i64
%217 = add nsw i64 %216, %214
%218 = trunc i64 %217 to i32
store i32 %218, i32* %2
%219 = call i64 (...) @test_wagner_extended()
%220 = load i32, i32* %2
%221 = sext i32 %220 to i64
%222 = add nsw i64 %221, %219
%223 = trunc i64 %222 to i32
store i32 %223, i32* %2
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%225 = load i32, i32* %2
%226 = icmp ne i32 %225, 0
br i1 %226, label %227, label %230
227: ; preds = %0
%228 = load i32, i32* %2
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i32 %228)
br label %232
230: ; preds = %0
%231 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %232
232: ; preds = %230, %227
%233 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%234 = load i32, i32* %2
ret i32 %234
}

LLVM IR (-O2):
@.str.1 = [59 x i8] c"[ ** FAILED ** ] %i times. Review output to see details.\0A\00"
@str = [17 x i8] c"\0A\0ATest summary:\0A\00"
@str.4 = [36 x i8] c"[ ** PASSED ** ] All tests passed.\00"
define i32 @main() {
%1 = tail call i64 (...) @test_get_states()
%2 = tail call i64 (...) @test_count_applic_inapplic()
%3 = add i64 %2, %1
%4 = tail call i64 (...) @test_good_symbols()
%5 = add i64 %3, %4
%6 = tail call i64 (...) @test_bad_symbols()
%7 = add i64 %5, %6
%8 = tail call i64 (...) @test_load_symbols()
%9 = add i64 %7, %8
%10 = tail call i64 (...) @test_bad_load_symbols()
%11 = add i64 %9, %10
%12 = tail call i64 (...) @test_multistate_symbols()
%13 = add i64 %11, %12
%14 = tail call i64 (...) @test_usr_order_symbols()
%15 = add i64 %13, %14
%16 = tail call i64 (...) @test_big_multistate_symbols()
%17 = add i64 %15, %16
%18 = tail call i64 (...) @test_count_states_in_parts_simple()
%19 = add i64 %17, %18
%20 = tail call i64 (...) @test_count_states_in_parts_w_polymorphs()
%21 = add i64 %19, %20
%22 = tail call i64 (...) @test_isreal()
%23 = add i64 %21, %22
%24 = tail call i64 (...) @test_almost_equal()
%25 = add i64 %23, %24
%26 = tail call i64 (...) @test_resetting_weights()
%27 = add i64 %25, %26
%28 = tail call i64 (...) @test_resetting_frac_weights()
%29 = add i64 %27, %28
%30 = tail call i64 (...) @test_count_gaps_basic()
%31 = add i64 %29, %30
%32 = tail call i64 (...) @test_partition_push_index()
%33 = add i64 %31, %32
%34 = tail call i64 (...) @test_data_partitioning_simple()
%35 = add i64 %33, %34
%36 = tail call i64 (...) @test_data_partitioning_gapmissing()
%37 = add i64 %35, %36
%38 = tail call i64 (...) @test_data_partitioning_gapnewstate()
%39 = add i64 %37, %38
%40 = tail call i64 (...) @test_weights_realtree()
%41 = add i64 %39, %40
%42 = tail call i64 (...) @test_set_weights()
%43 = add i64 %41, %42
%44 = tail call i64 (...) @test_create_destroy_Morphy()
%45 = add i64 %43, %44
%46 = tail call i64 (...) @test_simple_chtype_setting()
%47 = add i64 %45, %46
%48 = tail call i64 (...) @test_init_Morphy()
%49 = add i64 %47, %48
%50 = tail call i64 (...) @test_reinit_no_data()
%51 = add i64 %49, %50
%52 = tail call i64 (...) @test_reinit_with_data()
%53 = add i64 %51, %52
%54 = tail call i64 (...) @test_attemp_load_bad_dimens()
%55 = add i64 %53, %54
%56 = tail call i64 (...) @test_delete_Morphy_no_input()
%57 = add i64 %55, %56
%58 = tail call i64 (...) @test_basic_tip_apply()
%59 = add i64 %57, %58
%60 = tail call i32 (...) @test_state_retrieval()
%61 = tail call i64 (...) @test_small_fitch()
%62 = add i64 %59, %61
%63 = tail call i64 (...) @test_weighted_small_fitch()
%64 = add i64 %62, %63
%65 = tail call i64 (...) @test_small_fitch_na()
%66 = add i64 %64, %65
%67 = tail call i64 (...) @test_small_fitch_withmissing()
%68 = add i64 %66, %67
%69 = tail call i64 (...) @test_bulk_balanced_tree_cases()
%70 = add i64 %68, %69
%71 = tail call i64 (...) @test_bulk_unrooted_tree_cases()
%72 = add i64 %70, %71
%73 = tail call i64 (...) @test_twopass_fitch()
%74 = add i64 %72, %73
%75 = tail call i64 (...) @test_local_reoptimisation()
%76 = add i64 %74, %75
%77 = tail call i64 (...) @test_get_partial_reopt_for_na()
%78 = add i64 %76, %77
%79 = tail call i64 (...) @test_get_added_length_for_na()
%80 = add i64 %78, %79
%81 = tail call i64 (...) @test_get_added_length_for_na_morechars()
%82 = add i64 %80, %81
%83 = tail call i64 (...) @test_imbalance_distributions()
%84 = add i64 %82, %83
%85 = tail call i64 (...) @test_small_wagner()
%86 = add i64 %84, %85
%87 = tail call i64 (...) @test_wagner_extended()
%88 = add i64 %86, %87
%89 = trunc i64 %88 to i32
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%91 = icmp eq i32 %89, 0
br i1 %91, label %94, label %92
92: ; preds = %0
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i32 %89)
br label %96
94: ; preds = %0
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.4, i64 0, i64 0))
br label %96
96: ; preds = %94, %92
%97 = tail call i32 @putchar(i32 10)
ret i32 %89
}