#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*/ IO_printLine(char *);
int /*<<< orphan*/ testPerfect(int, int, int);
void TEST_runTests(void) {
  IO_printLine("1..6");
  testPerfect(1, 0, 1);
  testPerfect(2, 0, 5);
  testPerfect(3, 1, 6);
  testPerfect(4, 0, 27);
  testPerfect(5, 1, 28);
  testPerfect(6, 0, 495);
  testPerfect(7, 1, 496);
}


x86 assembly (clang, -O0):
<TEST_runTests>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <IO_printLine@plt>
mov    $0x1,%edx
xor    %esi,%esi
mov    %edx,%edi
call   1040 <testPerfect@plt>
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x5,%edx
call   1040 <testPerfect@plt>
mov    $0x3,%edi
mov    $0x1,%esi
mov    $0x6,%edx
call   1040 <testPerfect@plt>
mov    $0x4,%edi
xor    %esi,%esi
mov    $0x1b,%edx
call   1040 <testPerfect@plt>
mov    $0x5,%edi
mov    $0x1,%esi
mov    $0x1c,%edx
call   1040 <testPerfect@plt>
mov    $0x6,%edi
xor    %esi,%esi
mov    $0x1ef,%edx
call   1040 <testPerfect@plt>
mov    $0x7,%edi
mov    $0x1,%esi
mov    $0x1f0,%edx
call   1040 <testPerfect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_runTests>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <IO_printLine@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1040 <testPerfect@plt>
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x5,%edx
call   1040 <testPerfect@plt>
mov    $0x3,%edi
mov    $0x1,%esi
mov    $0x6,%edx
call   1040 <testPerfect@plt>
mov    $0x4,%edi
xor    %esi,%esi
mov    $0x1b,%edx
call   1040 <testPerfect@plt>
mov    $0x5,%edi
mov    $0x1,%esi
mov    $0x1c,%edx
call   1040 <testPerfect@plt>
mov    $0x6,%edi
xor    %esi,%esi
mov    $0x1ef,%edx
call   1040 <testPerfect@plt>
mov    $0x7,%edi
mov    $0x1,%esi
mov    $0x1f0,%edx
pop    %rax
jmp    1040 <testPerfect@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"1..6\00"
define void @TEST_runTests() {
%1 = call i32 @IO_printLine(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @testPerfect(i32 1, i32 0, i32 1)
%3 = call i32 @testPerfect(i32 2, i32 0, i32 5)
%4 = call i32 @testPerfect(i32 3, i32 1, i32 6)
%5 = call i32 @testPerfect(i32 4, i32 0, i32 27)
%6 = call i32 @testPerfect(i32 5, i32 1, i32 28)
%7 = call i32 @testPerfect(i32 6, i32 0, i32 495)
%8 = call i32 @testPerfect(i32 7, i32 1, i32 496)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"1..6\00"
define void @TEST_runTests() {
%1 = tail call i32 @IO_printLine(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @testPerfect(i32 1, i32 0, i32 1)
%3 = tail call i32 @testPerfect(i32 2, i32 0, i32 5)
%4 = tail call i32 @testPerfect(i32 3, i32 1, i32 6)
%5 = tail call i32 @testPerfect(i32 4, i32 0, i32 27)
%6 = tail call i32 @testPerfect(i32 5, i32 1, i32 28)
%7 = tail call i32 @testPerfect(i32 6, i32 0, i32 495)
%8 = tail call i32 @testPerfect(i32 7, i32 1, i32 496)
ret void
}