#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 EXIT_SUCCESS;
int /*<<< orphan*/ test(int, int);
int main() {
  test(2, 1);
  test(3, 1);
  test(3, 2);
  test(4, 1);
  test(4, 2);
  test(4, 3);
  test(5, 1);
  test(5, 2);
  test(5, 3);
  test(5, 4);
  test(5, 5);
  test(6, 1);
  test(6, 2);
  test(6, 3);
  test(6, 4);
  test(6, 5);
  test(6, 6);
  test(7, 1);
  test(7, 2);
  test(7, 3);
  test(7, 4);
  test(7, 5);
  test(7, 6);
  test(7, 7);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x4,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x4,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x4,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x4,%esi
call   1030 <test@plt>
mov    $0x5,%esi
mov    %esi,%edi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x4,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x5,%esi
call   1030 <test@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x4,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x5,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x6,%esi
call   1030 <test@plt>
mov    $0x7,%esi
mov    %esi,%edi
call   1030 <test@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x4,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x4,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x4,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x4,%esi
call   1030 <test@plt>
mov    $0x5,%edi
mov    $0x5,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x4,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x5,%esi
call   1030 <test@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x1,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x2,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x3,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x4,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x5,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x6,%esi
call   1030 <test@plt>
mov    $0x7,%edi
mov    $0x7,%esi
call   1030 <test@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test(i32 2, i32 1)
%3 = call i32 @test(i32 3, i32 1)
%4 = call i32 @test(i32 3, i32 2)
%5 = call i32 @test(i32 4, i32 1)
%6 = call i32 @test(i32 4, i32 2)
%7 = call i32 @test(i32 4, i32 3)
%8 = call i32 @test(i32 5, i32 1)
%9 = call i32 @test(i32 5, i32 2)
%10 = call i32 @test(i32 5, i32 3)
%11 = call i32 @test(i32 5, i32 4)
%12 = call i32 @test(i32 5, i32 5)
%13 = call i32 @test(i32 6, i32 1)
%14 = call i32 @test(i32 6, i32 2)
%15 = call i32 @test(i32 6, i32 3)
%16 = call i32 @test(i32 6, i32 4)
%17 = call i32 @test(i32 6, i32 5)
%18 = call i32 @test(i32 6, i32 6)
%19 = call i32 @test(i32 7, i32 1)
%20 = call i32 @test(i32 7, i32 2)
%21 = call i32 @test(i32 7, i32 3)
%22 = call i32 @test(i32 7, i32 4)
%23 = call i32 @test(i32 7, i32 5)
%24 = call i32 @test(i32 7, i32 6)
%25 = call i32 @test(i32 7, i32 7)
%26 = load i32, i32* @EXIT_SUCCESS
ret i32 %26
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 @test(i32 2, i32 1)
%2 = tail call i32 @test(i32 3, i32 1)
%3 = tail call i32 @test(i32 3, i32 2)
%4 = tail call i32 @test(i32 4, i32 1)
%5 = tail call i32 @test(i32 4, i32 2)
%6 = tail call i32 @test(i32 4, i32 3)
%7 = tail call i32 @test(i32 5, i32 1)
%8 = tail call i32 @test(i32 5, i32 2)
%9 = tail call i32 @test(i32 5, i32 3)
%10 = tail call i32 @test(i32 5, i32 4)
%11 = tail call i32 @test(i32 5, i32 5)
%12 = tail call i32 @test(i32 6, i32 1)
%13 = tail call i32 @test(i32 6, i32 2)
%14 = tail call i32 @test(i32 6, i32 3)
%15 = tail call i32 @test(i32 6, i32 4)
%16 = tail call i32 @test(i32 6, i32 5)
%17 = tail call i32 @test(i32 6, i32 6)
%18 = tail call i32 @test(i32 7, i32 1)
%19 = tail call i32 @test(i32 7, i32 2)
%20 = tail call i32 @test(i32 7, i32 3)
%21 = tail call i32 @test(i32 7, i32 4)
%22 = tail call i32 @test(i32 7, i32 5)
%23 = tail call i32 @test(i32 7, i32 6)
%24 = tail call i32 @test(i32 7, i32 7)
%25 = load i32, i32* @EXIT_SUCCESS
ret i32 %25
}