#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 *, int /*<<< orphan*/, char *);
scalar_t__ test_binheap_strings();
scalar_t__ test_binheap_uint64_benchmark();
int main(int argc, char **argv) {
  int _testnum = 1;
  if ((test_binheap_strings())) {
    printf("ok %d - %s\n", _testnum++, "strings");
  } else {
    printf("failed %d - %s\n", _testnum++, "strings");
  };
  if ((test_binheap_uint64_benchmark())) {
    printf("ok %d - %s\n", _testnum++, "benchmark");
  } else {
    printf("failed %d - %s\n", _testnum++, "benchmark");
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    $0x0,%al
call   1050 <test_binheap_strings@plt>
cmp    $0x0,%rax
je     1181 <main+0x51>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xe90(%rip),%rdi
lea    0xe95(%rip),%rdx
call   1030 <printf@plt>
jmp    119f <main+0x6f>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xe81(%rip),%rdi
lea    0xe72(%rip),%rdx
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <test_binheap_uint64_benchmark@plt>
cmp    $0x0,%rax
je     11d3 <main+0xa3>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xe3e(%rip),%rdi
lea    0xe5b(%rip),%rdx
call   1030 <printf@plt>
jmp    11f1 <main+0xc1>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0xe2f(%rip),%rdi
lea    0xe38(%rip),%rdx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <test_binheap_strings@plt>
test   %rax,%rax
lea    0xecf(%rip),%r14
lea    0xeb4(%rip),%rbx
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xeb2(%rip),%rdx
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <test_binheap_uint64_benchmark@plt>
test   %rax,%rax
cmove  %r14,%rbx
lea    0xeab(%rip),%rdx
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [12 x i8] c"ok %d - %s\0A\00"
@.str.1 = [8 x i8] c"strings\00"
@.str.2 = [16 x i8] c"failed %d - %s\0A\00"
@.str.3 = [10 x i8] c"benchmark\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%7 = call i64 (...) @test_binheap_strings()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, i32* %6
%11 = add nsw i32 %10, 1
store i32 %11, i32* %6
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %17
13: ; preds = %2
%14 = load i32, i32* %6
%15 = add nsw i32 %14, 1
store i32 %15, i32* %6
%16 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %13, %9
%18 = call i64 (...) @test_binheap_uint64_benchmark()
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
%23 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %21, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %28
24: ; preds = %17
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %6
%27 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %25, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %28
28: ; preds = %24, %20
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"ok %d - %s\0A\00"
@.str.1 = [8 x i8] c"strings\00"
@.str.2 = [16 x i8] c"failed %d - %s\0A\00"
@.str.3 = [10 x i8] c"benchmark\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 (...) @test_binheap_strings()
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0)
%6 = tail call i32 @printf(i8* %5, i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i64 (...) @test_binheap_uint64_benchmark()
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0)
%10 = tail call i32 @printf(i8* %9, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}